!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=181)}([function(e,t,r){var n=r(100);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.NotNull=function(e,t,r){},t.Nullable=function(e,t,r){},t.Override=function(e,t,r){},t.SuppressWarnings=function(e){return(e,t,r)=>{}}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(63),o=r(9),s=r(1),a=r(84),l=r(30);class u extends a.RuleContext{constructor(e,t){null==t?super():super(e,t)}static emptyContext(){return u.EMPTY}copyFrom(e){if(this._parent=e._parent,this.invokingState=e.invokingState,this._start=e._start,this._stop=e._stop,e.children){this.children=[];for(let t of e.children)t instanceof i.ErrorNode&&this.addChild(t)}}enterRule(e){}exitRule(e){}addAnyChild(e){return this.children?this.children.push(e):this.children=[e],e}addChild(e){return e instanceof l.TerminalNode?(e.setParent(this),void this.addAnyChild(e)):e instanceof a.RuleContext?void this.addAnyChild(e):(e=new l.TerminalNode(e),this.addAnyChild(e),e.setParent(this),e)}addErrorNode(e){if(e instanceof i.ErrorNode){const t=e;return t.setParent(this),this.addAnyChild(t)}{const t=e;let r=new i.ErrorNode(t);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let e=super.parent;if(void 0===e||e instanceof u)return e;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(e,t){if(!this.children||e<0||e>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==t)return this.children[e];let r=this.tryGetChild(e,t);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(e,t){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof t&&(r++,r===e))return n}getToken(e,t){let r=this.tryGetToken(e,t);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(e,t){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode){if(n.symbol.type===e&&(r++,r===t))return n}}getTokens(e){let t=[];if(!this.children)return t;for(let r of this.children)if(r instanceof l.TerminalNode){r.symbol.type===e&&t.push(r)}return t}get ruleContext(){return this}getRuleContext(e,t){return this.getChild(e,t)}tryGetRuleContext(e,t){return this.tryGetChild(e,t)}getRuleContexts(e){let t=[];if(!this.children)return t;for(let r of this.children)r instanceof e&&t.push(r);return t}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex>>0)-r+t,r|=0}return r}(t):"object"==typeof t&&(t=t.hashCode());let r=t;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),e=(e^=r)<<13|e>>>19,4294967295&(e=Math.imul(e,5)+3864292196)}function n(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}e.initialize=t,e.update=r,e.finish=n,e.hashCode=function(e,i=0){let o=t(i),s=0;for(let t of e)o=r(o,t),s++;return o=n(o,s),o}}(t.MurmurHash||(t.MurmurHash={}))},function(e,t,r){"use strict";(function(e,n){var i;r.d(t,"a",(function(){return g})),r.d(t,"d",(function(){return x})),r.d(t,"b",(function(){return E})),r.d(t,"c",(function(){return S})),r.d(t,"e",(function(){return T}));let o=!1,s=!1,a=!1,l=!1,u=!1,c=!1,h=!1,d=void 0,p="en",f=void 0,m=void 0;const g="object"==typeof self?self:"object"==typeof e?e:{};let _=void 0;void 0!==g.vscode&&void 0!==g.vscode.process?_=g.vscode.process:void 0!==n&&(_=n);const y="string"==typeof(null===(i=null==_?void 0:_.versions)||void 0===i?void 0:i.electron)&&"renderer"===_.type,N=y&&(null==_?void 0:_.sandboxed);(()=>{if(N)return"bypassHeatCheck";const e=null==_?void 0:_.env.VSCODE_BROWSER_CODE_LOADING})();if("object"!=typeof navigator||y)if("object"==typeof _){o="win32"===_.platform,s="darwin"===_.platform,a="linux"===_.platform,l=a&&!!_.env.SNAP&&!!_.env.SNAP_REVISION,d="en",p="en";const e=_.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),r=t.availableLanguages["*"];d=t.locale,p=r||"en",f=t._translationsConfigFile}catch(e){}u=!0}else console.error("Unable to resolve platform.");else m=navigator.userAgent,o=m.indexOf("Windows")>=0,s=m.indexOf("Macintosh")>=0,h=(m.indexOf("Macintosh")>=0||m.indexOf("iPad")>=0||m.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=m.indexOf("Linux")>=0,c=!0,d=navigator.language,p=d;let v=0;s?v=1:o?v=3:a&&(v=2);const x=o,E=s,S=c,T=function(){if(g.setImmediate)return g.setImmediate.bind(g);if("function"==typeof g.postMessage&&!g.importScripts){let e=[];g.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let r=0,n=e.length;r{const n=++t;e.push({id:n,callback:r}),g.postMessage({vscodeSetImmediateId:n},"*")}}if("function"==typeof(null==_?void 0:_.nextTick))return _.nextTick.bind(_);const e=Promise.resolve();return t=>e.then(t)}()}).call(this,r(68),r(35))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(29),s=r(74),a=r(24),l=r(77),u=r(108),c=r(1),h=r(15),d=r(13),p=r(4),f=r(10);let m=class{constructor(e,t){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=e,this.maxTokenType=t}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let e=0;e0)return this.decisionToState[e]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new RangeError("Invalid state number.");let r=t,n=this.states[e],i=this.nextTokens(n);if(!i.contains(p.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(p.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(p.Token.EPSILON);){let e=this.states[r.invokingState].transition(0);i=this.nextTokens(e.followState),o.addAll(i),o.remove(p.Token.EPSILON),r=r._parent}return i.contains(p.Token.EPSILON)&&o.add(p.Token.EOF),o}};n([c.NotNull],m.prototype,"states",void 0),n([c.NotNull],m.prototype,"decisionToState",void 0),n([c.NotNull],m.prototype,"modeNameToStartState",void 0),n([c.NotNull],m.prototype,"modeToStartState",void 0),n([c.NotNull],m.prototype,"decisionToDFA",void 0),n([c.NotNull],m.prototype,"modeToDFA",void 0),n([c.NotNull],m.prototype,"nextTokens",null),n([i(0,c.NotNull)],m.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],m.prototype,"defineMode",null),n([i(0,c.NotNull)],m.prototype,"defineDecisionState",null),n([c.NotNull],m.prototype,"getExpectedTokens",null),m=n([i(0,c.NotNull)],m),t.ATN=m,function(e){e.INVALID_ALT_NUMBER=0}(m=t.ATN||(t.ATN={})),t.ATN=m},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.INVALID_TYPE=0]="INVALID_TYPE",e[e.BASIC=1]="BASIC",e[e.RULE_START=2]="RULE_START",e[e.BLOCK_START=3]="BLOCK_START",e[e.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",e[e.STAR_BLOCK_START=5]="STAR_BLOCK_START",e[e.TOKEN_START=6]="TOKEN_START",e[e.RULE_STOP=7]="RULE_STOP",e[e.BLOCK_END=8]="BLOCK_END",e[e.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",e[e.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",e[e.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",e[e.LOOP_END=12]="LOOP_END"}(t.ATNStateType||(t.ATNStateType={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{constructor(e,t){this.a=e,this.b=t}static get INVALID(){return o._INVALID}static of(e,t){return e!==t||e<0||e>1e3?new o(e,t):(null==o.cache[e]&&(o.cache[e]=new o(e,e)),o.cache[e])}get length(){return this.b=e.a}startsAfter(e){return this.a>e.a}startsAfterDisjoint(e){return this.a>e.b}startsAfterNonDisjoint(e){return this.a>e.a&&this.a<=e.b}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.a===e.b+1||this.b===e.a-1}properlyContains(e){return e.a>=this.a&&e.b<=this.b}union(e){return o.of(Math.min(this.a,e.a),Math.max(this.b,e.b))}intersection(e){return o.of(Math.max(this.a,e.a),Math.min(this.b,e.b))}differenceNotProperlyContained(e){let t;return e.startsBeforeNonDisjoint(this)?t=o.of(Math.max(this.a,e.b+1),this.b):e.startsAfterNonDisjoint(this)&&(t=o.of(this.a,e.a-1)),t}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),t.Interval=o},function(e,t,r){"use strict";(function(t){var n=r(103); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(a=c[u],!N(e[a],t[a],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function v(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&_(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!e&&i&&!r;if((!e&&s.isError(i)&&o&&x(i,r)||a)&&_(i,r,"Got unwanted exception"+n),e&&i&&r&&!x(i,r)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=f(t),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=_,d.ok=y,d.equal=function(e,t,r){e!=t&&_(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&_(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){N(e,t,!1)||_(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){N(e,t,!0)||_(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){N(e,t,!1)&&_(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){N(t,r,!0)&&_(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&_(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&_(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){E(!0,e,t,r)},d.doesNotThrow=function(e,t,r){E(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n((function e(t,r){t||_(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(68))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.escapeWhitespace=function(e,t){return t?e.replace(/ /,"·"):e.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},t.join=function(e,t){let r="",n=!0;for(let i of e)n?n=!1:r+=t,r+=i;return r},t.equals=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.equals(t)},t.toMap=function(e){let t=new Map;for(let r=0;re.cwd(),nextTick:e=>Object(n.e)(e)}}else i=void 0!==e?{get platform(){return e.platform},get env(){return e.env},cwd:()=>e.env.VSCODE_CWD||e.cwd(),nextTick:t=>e.nextTick(t)}:{get platform(){return n.d?"win32":n.b?"darwin":"linux"},nextTick:e=>Object(n.e)(e),get env(){return Object.create(null)},cwd:()=>"/"};const o=i.cwd,s=i.env,a=i.platform}).call(this,r(35))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(29),s=r(22),a=r(55),l=r(5),u=r(1),c=r(57),h=r(10);class d{constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=l.MurmurHash.initialize(1);return e=l.MurmurHash.finish(e,0),e}static calculateSingleHashCode(e,t){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,e),r=l.MurmurHash.update(r,t),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(e,t){let r=l.MurmurHash.initialize(1);for(let t of e)r=l.MurmurHash.update(r,t);for(let e of t)r=l.MurmurHash.update(r,e);return r=l.MurmurHash.finish(r,2*e.length),r}static fromRuleContext(e,t,r=!0){if(t.isEmpty)return r?d.EMPTY_FULL:d.EMPTY_LOCAL;let n;n=t._parent?d.fromRuleContext(e,t._parent,r):r?d.EMPTY_FULL:d.EMPTY_LOCAL;let i=e.states[t.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(e){return e.addEmptyContext()}static removeEmptyContext(e){return e.removeEmptyContext()}static join(e,t,r=c.PredictionContextCache.UNCACHED){if(e===t)return e;if(e.isEmpty)return d.isEmptyLocal(e)?e:d.addEmptyContext(t);if(t.isEmpty)return d.isEmptyLocal(t)?t:d.addEmptyContext(e);let n=e.size,i=t.size;if(1===n&&1===i&&e.getReturnState(0)===t.getReturnState(0)){let n=r.join(e.getParent(0),t.getParent(0));return n===e.getParent(0)?e:n===t.getParent(0)?t:n.getChild(e.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,p=!0,g=!0;for(;l0){let e=1;for(;1<>>0>o&(1<>>0)-1,s=s&&t>=a.size-1,t>=a.size)continue e;o+=e}if(e){u.length>1&&(u+=" ");let t=e.atn.states[l];u+=e.ruleNames[t.ruleIndex]}else a.getReturnState(t)!==d.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(t)));l=a.getReturnState(t),a=a.getParent(t)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],d.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"getCachedContext",null),t.PredictionContext=d;class p extends d{constructor(e){super(d.calculateEmptyHashCode()),this.fullContext=e}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(e){throw new Error("index out of bounds")}getReturnState(e){throw new Error("index out of bounds")}findReturnState(e){return-1}get size(){return 0}appendSingleContext(e,t){return t.getChild(this,e)}appendContext(e,t){return e}get isEmpty(){return!0}get hasEmpty(){return!0}equals(e){return this===e}toStrings(e,t,r){return["[]"]}}n([u.Override],p.prototype,"addEmptyContext",null),n([u.Override],p.prototype,"removeEmptyContext",null),n([u.Override],p.prototype,"getParent",null),n([u.Override],p.prototype,"getReturnState",null),n([u.Override],p.prototype,"findReturnState",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"appendSingleContext",null),n([u.Override],p.prototype,"appendContext",null),n([u.Override],p.prototype,"isEmpty",null),n([u.Override],p.prototype,"hasEmpty",null),n([u.Override],p.prototype,"equals",null),n([u.Override],p.prototype,"toStrings",null);let f=class e extends d{constructor(e,t,r){super(r||d.calculateHashCode(e,t)),h(e.length===t.length),h(t.length>1||t[0]!==d.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=e,this.returnStates=t}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}findReturnState(e){return a.Arrays.binarySearch(this.returnStates,e)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===d.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let t=this.parents.slice(0),r=this.returnStates.slice(0);return t.push(d.EMPTY_FULL),r.push(d.EMPTY_FULL_STATE_KEY),new e(t,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new m(this.parents[0],this.returnStates[0]);{let t=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new e(t,r)}}appendContext(t,r){return e.appendContextImpl(this,t,new d.IdentityHashMap)}static appendContextImpl(t,r,n){if(r.isEmpty){if(d.isEmptyLocal(r)){if(t.hasEmpty)return d.EMPTY_LOCAL;throw new Error("what to do here?")}return t}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(t);if(!i){if(t.isEmpty)i=r;else{let o=t.size;t.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let e=0;e1),i=new e(s,a)),t.hasEmpty&&(i=d.join(i,r))}n.put(t,i)}return i}equals(t){if(this===t)return!0;if(!(t instanceof e))return!1;if(this.hashCode()!==t.hashCode())return!1;let r=t;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(e,t){let r=[],n=[];for(r.push(this),n.push(e);;){let e=r.pop(),i=n.pop();if(!e||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(e,i);if(!t.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let e=0;e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(32),o=r(3),s=r(1);class a extends o.RecognitionException{constructor(e,t,r,n,o,s){e instanceof i.Parser&&(void 0===t&&(t=e.inputStream),void 0===r&&(r=e.currentToken),void 0===n&&(n=e.currentToken),void 0===s&&(s=e.context)),super(e,t,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(e,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),t.NoViableAltException=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),t.ObjectEqualityComparator=o},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(4);class s{constructor(e,t,r){this.literalNames=e,this.symbolicNames=t,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(e){if(e>=0&&e=0&&e=0&&e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(e){return e instanceof o&&this.stateNumber===e.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(e,t){if(0===this.transitions.length)this.epsilonOnlyTransitions=e.isEpsilon;else if(this.epsilonOnlyTransitions!==e.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==t?t:this.transitions.length,0,e)}transition(e){return this.transitions[e]}setTransition(e,t){this.transitions[e]=t}removeTransition(e){return this.transitions.splice(e,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(e){this.ruleIndex=e}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(e){return this.optimizedTransitions[e]}addOptimizedTransition(e){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(e)}setOptimizedTransition(e,t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[e]=t}removeOptimizedTransition(e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(e,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),t.ATNState=o,function(e){e.INVALID_STATE_NUMBER=-1}(o=t.ATNState||(t.ATNState={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(56),o=r(72),s=r(9),a=r(20),l=r(41),u=r(48),c=r(1),h=r(38),d=r(4);class p extends h.Recognizer{constructor(e){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=p.DEFAULT_MODE,this._input=e,this._tokenFactorySourcePair={source:this,stream:e}}static get DEFAULT_TOKEN_CHANNEL(){return d.Token.DEFAULT_CHANNEL}static get HIDDEN(){return d.Token.HIDDEN_CHANNEL}reset(e){(void 0===e||e)&&this._input.seek(0),this._token=void 0,this._type=d.Token.INVALID_TYPE,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=p.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let e=this._input.mark();try{e:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let e;this._type=d.Token.INVALID_TYPE;try{e=this.interpreter.match(this._input,this._mode)}catch(t){if(!(t instanceof u.LexerNoViableAltException))throw t;this.notifyListeners(t),this.recover(t),e=p.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===d.Token.INVALID_TYPE&&(this._type=e),this._type===p.SKIP)continue e}while(this._type===p.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(e)}}skip(){this._type=p.SKIP}more(){this._type=p.MORE}mode(e){this._mode=e}pushMode(e){l.LexerATNSimulator.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(e){this._factory=e}get inputStream(){return this._input}set inputStream(e){this.reset(!1),this._input=e,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(e){return e||(e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=e,e}emitEOF(){let e=this.charPositionInLine,t=this.line,r=this._factory.create(this._tokenFactorySourcePair,d.Token.EOF,void 0,d.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,t,e);return this.emit(r),r}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(e){this.interpreter.charPositionInLine=e}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(e){this._text=e}get token(){return this._token}set token(e){this._token=e}set type(e){this._type=e}get type(){return this._type}set channel(e){this._channel=e}get channel(){return this._channel}getAllTokens(){let e=[],t=this.nextToken();for(;t.type!==d.Token.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){let t=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(t)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,e)}getErrorDisplay(e){if("number"==typeof e){switch(e){case d.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(e)}return e.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(e){return"'"+this.getErrorDisplay(e)+"'"}recover(e){e instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}p.DEFAULT_MODE=0,p.MORE=-2,p.SKIP=-3,p.MIN_CHAR_VALUE=0,p.MAX_CHAR_VALUE=1114111,n([c.Override],p.prototype,"nextToken",null),n([c.Override],p.prototype,"tokenFactory",null),n([c.Override],p.prototype,"inputStream",null),n([c.Override],p.prototype,"sourceName",null),n([c.Override],p.prototype,"line",null),n([c.Override],p.prototype,"charPositionInLine",null),t.Lexer=p},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(3),s=r(1),a=r(71);let l=class e extends o.RecognitionException{constructor(t,r,n){super(t,t.inputStream,t.context,e.formatMessage(r,n));let i=t.interpreter.atn.states[t.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(t,t.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(e,t){return t||`failed predicate: {${e}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),t.FailedPredicateException=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EOF=-1,e.UNKNOWN_SOURCE_NAME=""}(t.IntStream||(t.IntStream={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1);let s=class{constructor(e){if(null==e)throw new Error("target cannot be null.");this.target=e}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),t.Transition=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(10),s=r(106),a=r(1),l=r(5);class u{constructor(e,t=16){if(this.n=0,this.threshold=Math.floor(12),e instanceof u){this.comparator=e.comparator,this.buckets=e.buckets.slice(0);for(let e=0;ethis.threshold&&this.expand(),this.getOrAddImpl(e)}getOrAddImpl(e){let t=this.getBucket(e),r=this.buckets[t];if(!r)return r=[e],this.buckets[t]=r,this.n++,e;for(let t of r)if(this.comparator.equals(t,e))return t;return r.push(e),this.n++,e}get(e){if(null==e)return e;let t=this.getBucket(e),r=this.buckets[t];if(r)for(let t of r)if(this.comparator.equals(t,e))return t}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}hashCode(){let e=l.MurmurHash.initialize();for(let t of this.buckets)if(null!=t)for(let r of t){if(null==r)break;e=l.MurmurHash.update(e,this.comparator.hashCode(r))}return e=l.MurmurHash.finish(e,this.size),e}equals(e){if(e===this)return!0;if(!(e instanceof u))return!1;if(e.size!==this.size)return!1;return this.containsAll(e)}expand(){let e=this.buckets,t=2*this.buckets.length,r=this.createBuckets(t);this.buckets=r,this.threshold=Math.floor(.75*t);let n=this.size;for(let t of e)if(t)for(let e of t){let t=this.getBucket(e),r=this.buckets[t];r||(r=[],this.buckets[t]=r),r.push(e)}o(this.n===n)}add(e){return this.getOrAdd(e)===e}get size(){return this.n}get isEmpty(){return 0===this.n}contains(e){return this.containsFast(this.asElementType(e))}containsFast(e){return null!=e&&null!=this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e[t++]=n}return e}containsAll(e){if(e instanceof u){let t=e;for(let e of t.buckets)if(null!=e)for(let t of e){if(null==t)break;if(!this.containsFast(this.asElementType(t)))return!1}}else for(let t of e)if(!this.containsFast(this.asElementType(t)))return!1;return!0}addAll(e){let t=!1;for(let r of e){this.getOrAdd(r)!==r&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t?t=!1:e+=", ",e+=n.toString()}return e+="}",e}toTableString(){let e="";for(let t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let r=!0;for(let n of t)r?r=!1:e+=" ",e+=null==n?"_":n.toString();e+="]\n"}return e}asElementType(e){return e}createBuckets(e){return new Array(e)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),t.Array2DHashSet=u},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(69),i=r(5),o=new Uint16Array(0);function s(e){return e>>>4}function a(e){return 16*e}function l(e){let t=1;for(let r=0;r<16;r++){if(0!=(e&t))return r;t=t<<1>>>0}throw new RangeError("No specified bit found")}function u(e){let t=32768;for(let r=15;r>=0;r--){if(0!=(e&t))return r;t>>>=1}throw new RangeError("No specified bit found")}function c(e,t){return(e&=15)===(t&=15)?1<>>0:65535>>>15-t^65535>>>16-e}const h=new Uint8Array(65536);for(let e=0;e<16;e++){const t=1<>>0;let r=0;for(;rr)return-1;let i=65535^c(e,15);if(65535==(t[n]|i)){for(n++,i=0;nr)return-1;let i=c(e,15);if(0==(t[n]&i)){for(n++,i=65535;n=r)return-1}return a(n)+l(t[n]&i)}or(e){const t=this.data,r=e.data,n=Math.min(t.length,r.length),i=Math.max(t.length,r.length),s=t.length===i?t:new Uint16Array(i);let a=-1;for(let e=0;er.length?t:r;for(let e=n;e=r&&(n=r-1);let i=65535^c(0,e);if(65535==(t[n]|i)){for(i=0,n--;n>=0&&65535===t[n];n--);if(n<0)return-1}return a(n)+u(65535^(t[n]|i))}previousSetBit(e){if(e<0)throw new RangeError("fromIndex cannot be negative");const t=this.data,r=t.length;let n=s(e);n>=r&&(n=r-1);let i=c(0,e);if(0==(t[n]&i)){for(n--,i=65535;n>=0&&0===t[n];n--);if(n<0)return-1}return a(n)+u(t[n]&i)}set(e,t,r){if(void 0===t?(t=e,r=!0):"boolean"==typeof t&&(r=t,t=e),void 0===r&&(r=!0),e<0||e>t)throw new RangeError;let n=s(e),i=s(t);if(r&&i>=this.data.length){let e=new Uint16Array(i+1);this.data.forEach((t,r)=>e[r]=t),this.data=e}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,t=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(e,t));else{for(this._setBits(n++,r,c(e,15));n=0;r=this.nextSetBit(r+1))t?t=!1:e+=", ",e+=r;return e+="}",e}xor(e){const t=this.data,r=e.data,n=Math.min(t.length,r.length),i=Math.max(t.length,r.length),s=t.length===i?t:new Uint16Array(i);let a=-1;for(let e=0;er.length?t:r;for(let e=n;e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(43),s=r(54),a=r(9),l=r(18),u=r(5),c=r(1),h=r(4);class d{constructor(e){this.readonly=!1,this._intervals=null!=e?e.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===d._COMPLETE_CHAR_SET&&(d._COMPLETE_CHAR_SET=d.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),d._COMPLETE_CHAR_SET.setReadonly(!0)),d._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==d._EMPTY_SET&&(d._EMPTY_SET=new d,d._EMPTY_SET.setReadonly(!0)),d._EMPTY_SET}static of(e,t=e){let r=new d;return r.add(e,t),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(e,t=e){this.addRange(a.Interval.of(e,t))}addRange(e){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(e.bs.b)n++;else if(l.a>s.a&&(e=new a.Interval(s.a,l.a-1)),l.b>1,i=this._intervals[n],o=i.a;if(i.be))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let e=u.MurmurHash.initialize();for(let t of this._intervals)e=u.MurmurHash.update(e,t.a),e=u.MurmurHash.update(e,t.b);return e=u.MurmurHash.finish(e,2*this._intervals.length),e}equals(e){return null!=e&&e instanceof d&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,e._intervals)}toString(e=!1){let t="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(t+="{");let r=!0;for(let n of this._intervals){r?r=!1:t+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?t+="":t+=e?"'"+String.fromCodePoint(i)+"'":i:t+=e?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(t+="}"),t}toStringVocabulary(e){if(null==this._intervals||0===this._intervals.length)return"{}";let t="";this.size>1&&(t+="{");let r=!0;for(let n of this._intervals){r?r=!1:t+=", ";let i=n.a,o=n.b;if(i===o)t+=this.elementName(e,i);else for(let r=i;r<=o;r++)r>i&&(t+=", "),t+=this.elementName(e,r)}return this.size>1&&(t+="}"),t}elementName(e,t){return t===h.Token.EOF?"":t===h.Token.EPSILON?"":e.getDisplayName(t)}get size(){let e=0,t=this._intervals.length;if(1===t){let e=this._intervals[0];return e.b-e.a+1}for(let r=0;rn&&e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(7),s=r(36),a=r(63),l=r(1),u=r(32),c=r(2),h=r(64),d=r(30),p=r(4),f=r(11);class m{static toStringTree(e,t){let r;r=t instanceof u.Parser?t.ruleNames:t;let n=f.escapeWhitespace(this.getNodeText(e,r),!1);if(0===e.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(e,r),!1),i+=n,i+=" ";for(let t=0;t0&&(i+=" "),i+=this.toStringTree(e.getChild(t),r);return i+=")",i}static getNodeText(e,t){let r;if(t instanceof u.Parser)r=t.ruleNames;else{if(!t){let t=e.payload;return"string"==typeof t.text?t.text:e.payload.toString()}r=t}if(e instanceof h.RuleNode){let t=e.ruleContext,n=r[t.ruleIndex],i=t.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(e instanceof a.ErrorNode)return e.toString();if(e instanceof d.TerminalNode){return e.symbol.text||""}throw new TypeError("Unexpected node type")}static getChildren(e){let t=[];for(let r=0;r=e.start.tokenIndex&&(null==n||r<=n.tokenIndex))return e}}static stripChildrenOutOfRange(e,t,r,n){if(!e)return;let i=e.childCount;for(let o=0;on)&&m.isAncestorOf(i,t)){let t=new s.CommonToken(p.Token.INVALID_TYPE,"...");e.children[o]=new d.TerminalNode(t)}}}static findNodeSuchThat(e,t){if(t(e))return e;let r=e.childCount;for(let n=0;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(22),s=r(43),a=r(5),l=r(1),u=r(15),c=r(11);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(e,t){return this}static and(e,t){if(!e||e===h.NONE)return t;if(t===h.NONE)return e;let r=new h.AND(e,t);return 1===r.opnds.length?r.opnds[0]:r}static or(e,t){if(!e)return t;if(e===h.NONE||t===h.NONE)return h.NONE;let r=new h.OR(e,t);return 1===r.opnds.length?r.opnds[0]:r}}t.SemanticContext=h,function(e){function t(t){let r=[];for(let n=0;n=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.PrecedencePredicate=h;class d extends e{}e.Operator=d;let p=class r extends d{constructor(e,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);e instanceof r?i.addAll(e.opnds):i.add(e),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(e){let t;for(let r of e){if(void 0===t){t=r;continue}t.compareTo(r)>0&&(t=r)}return t}(t(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(e){return this===e||e instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,e.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(e,t){for(let r of this.opnds)if(!r.eval(e,t))return!1;return!0}evalPrecedence(t,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(t,r);if(n=n||s!==o,null==s)return;s!==e.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return e.NONE;let o=i[0];for(let t=1;t=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(9),o=r(1),s=r(4);class a{constructor(e){this._symbol=e}getChild(e){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this._symbol}get sourceInterval(){let e=this._symbol.tokenIndex;return new i.Interval(e,e)}get childCount(){return 0}accept(e){return e.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(e){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),t.TerminalNode=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{constructor(e){this.nodeName=e,this.invert=!1}toString(){let e=this.invert?"!":"";return Object.constructor.name+"["+e+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),t.XPathElement=o},function(e,t,r){"use strict";(function(e){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(s,a)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const s=r(11),a=r(80),l=r(34),u=r(52),c=r(63),h=r(72),d=r(18),p=r(1),f=r(134),m=r(33),g=r(86),_=r(38),y=r(30),N=r(4);class v{constructor(e,t){this.ruleNames=e,this.tokenStream=t}enterEveryRule(e){console.log("enter "+this.ruleNames[e.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(e){console.log("exit "+this.ruleNames[e.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(e){}visitTerminal(e){let t=e.parent.ruleContext,r=e.symbol;console.log("consume "+r+" rule "+this.ruleNames[t.ruleIndex])}}n([p.Override],v.prototype,"enterEveryRule",null),n([p.Override],v.prototype,"exitEveryRule",null),n([p.Override],v.prototype,"visitErrorNode",null),n([p.Override],v.prototype,"visitTerminal",null);class x extends _.Recognizer{constructor(e){super(),this._errHandler=new u.DefaultErrorStrategy,this._precedenceStack=new h.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=e}reset(e){(void 0===e||e)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let t=this.interpreter;null!=t&&t.reset()}match(e){let t=this.currentToken;return t.type===e?(e===N.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}matchWildcard(){let e=this.currentToken;return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}set buildParseTree(e){this._buildParseTrees=e}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(e){if(null==e)throw new TypeError("listener cannot be null");this._parseListeners.push(e)}removeParseListener(e){let t=this._parseListeners.findIndex(t=>t===e);-1!==t&&this._parseListeners.splice(t,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let e of this._parseListeners)e.enterEveryRule&&e.enterEveryRule(this._ctx),this._ctx.enterRule(e)}triggerExitRuleEvent(){for(let e=this._parseListeners.length-1;e>=0;e--){let t=this._parseListeners[e];this._ctx.exitRule(t),t.exitEveryRule&&t.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let e=this.serializedATN;if(null==e)throw new Error("The current parser does not support an ATN with bypass alternatives.");let t=x.bypassAltsAtnCache.get(e);if(null==t){let r=new a.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,t=new l.ATNDeserializer(r).deserialize(s.toCharArray(e)),x.bypassAltsAtnCache.set(e,t)}return t}compileParseTreePattern(e,t,n){return o(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let e=this.inputStream.tokenSource;e instanceof d.Lexer&&(n=e)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then(()=>r(135))).ParseTreePatternMatcher)(i,this).compile(e,t)}))}get errorHandler(){return this._errHandler}set errorHandler(e){this._errHandler=e}get inputStream(){return this._input}set inputStream(e){this.reset(!1),this._input=e}get currentToken(){return this._input.LT(1)}notifyErrorListeners(e,t,r){void 0===t?t=this.currentToken:null===t&&(t=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=t&&(n=t.line,i=t.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,t,n,i,e,r)}consume(){let e=this.currentToken;e.type!==x.EOF&&this.inputStream.consume();let t=0!==this._parseListeners.length;if(this._buildParseTrees||t)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,e));if(t)for(let e of this._parseListeners)e.visitErrorNode&&e.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,e);if(this._ctx.addChild(r),t)for(let e of this._parseListeners)e.visitTerminal&&e.visitTerminal(r)}return e}createTerminalNode(e,t){return new y.TerminalNode(t)}createErrorNode(e,t){return new c.ErrorNode(t)}addContextToParseTree(){let e=this._ctx._parent;null!=e&&e.addChild(this._ctx)}enterRule(e,t,r){this.state=t,this._ctx=e,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(e,t,r){if(this.state=t,this._buildParseTrees){let t=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),t._parent=e,e.addChild(t)}this._ctx=e,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(e,t){if(e.altNumber=t,this._buildParseTrees&&this._ctx!==e){let t=this._ctx._parent;null!=t&&(t.removeLastChild(),t.addChild(e))}this._ctx=e}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(e,t,r,n){this.state=t,this._precedenceStack.push(n),this._ctx=e,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,r){let n=this._ctx;n._parent=e,n.invokingState=t,n._stop=this._input.tryLT(-1),this._ctx=e,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let t=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=e;t._parent=e,this._buildParseTrees&&null!=e&&e.addChild(t)}getInvokingContext(e){let t=this._ctx;for(;t&&t.ruleIndex!==e;)t=t._parent;return t}get context(){return this._ctx}set context(e){this._ctx=e}precpred(e,t){return t>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new g.ProxyParserErrorListener(this.getErrorListeners())}inContext(e){return!1}isExpectedToken(e){let t=this.interpreter.atn,r=this._ctx,n=t.states[this.state],i=t.nextTokens(n);if(i.contains(e))return!0;if(!i.contains(N.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(N.Token.EPSILON);){let n=t.states[r.invokingState].transition(0);if(i=t.nextTokens(n.followState),i.contains(e))return!0;r=r._parent}return!(!i.contains(N.Token.EPSILON)||e!==N.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){let t=this.getRuleIndexMap().get(e);return null!=t?t:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(e=this._ctx){let t=e,r=this.ruleNames,n=[];for(;null!=t;){let e=t.ruleIndex;e<0?n.push("n/a"):n.push(r[e]),t=t._parent}return n}getDFAStrings(){let e=[];for(let t of this._interp.atn.decisionToDFA)e.push(t.toString(this.vocabulary,this.ruleNames));return e}dumpDFA(){let t=!1;for(let r of this._interp.atn.decisionToDFA)r.isEmpty||(t&&console.log(),console.log("Decision "+r.decision+":"),e.stdout.write(r.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>r(95)).then(e=>{let t=this.interpreter;if(t instanceof e.ProfilingATNSimulator)return new f.ParseInfo(t)})}setProfile(e){return o(this,void 0,void 0,(function*(){let t=yield Promise.resolve().then(()=>r(95)),n=this.interpreter;e?n instanceof t.ProfilingATNSimulator||(this.interpreter=new t.ProfilingATNSimulator(this)):n instanceof t.ProfilingATNSimulator&&(this.interpreter=new m.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(e){e?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new v(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}x.bypassAltsAtnCache=new Map,n([p.NotNull],x.prototype,"_errHandler",void 0),n([p.NotNull],x.prototype,"match",null),n([p.NotNull],x.prototype,"matchWildcard",null),n([p.NotNull],x.prototype,"getParseListeners",null),n([i(0,p.NotNull)],x.prototype,"addParseListener",null),n([p.NotNull],x.prototype,"getATNWithBypassAlts",null),n([p.NotNull,i(0,p.NotNull)],x.prototype,"errorHandler",null),n([p.Override],x.prototype,"inputStream",null),n([p.NotNull],x.prototype,"currentToken",null),n([i(0,p.NotNull)],x.prototype,"enterRule",null),n([p.Override,i(0,p.Nullable)],x.prototype,"precpred",null),n([p.Override],x.prototype,"getErrorListenerDispatch",null),n([p.NotNull],x.prototype,"getExpectedTokens",null),n([p.NotNull],x.prototype,"getExpectedTokensWithinCurrentRule",null),n([p.Override],x.prototype,"parseInfo",null),t.Parser=x}).call(this,r(35))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(73),s=r(81),a=r(22),l=r(55),u=r(7),c=r(45),h=r(37),d=r(46),p=r(8),f=r(82),m=r(23),g=r(123),_=r(25),y=r(47),N=r(54),v=r(9),x=r(20),E=r(1),S=r(60),T=r(14),C=r(15),b=r(2),O=r(13),A=r(57),R=r(124),L=r(39),I=r(62),w=r(28),P=r(61),k=r(85),D=r(4),M=r(16),F=r(10);let j=class e extends d.ATNSimulator{constructor(e,t){super(e),this.predictionMode=R.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=t}getPredictionMode(){return this.predictionMode}setPredictionMode(e){this.predictionMode=e}reset(){}adaptivePredict(t,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(F(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let e=t.LA(1);if(e>=0&&e<=65535){let t=(r<<16>>>0)+e,n=this.atn.LL1Table.get(t);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=b.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,t,n,i)),null==o&&(null==n&&(n=b.ParserRuleContext.emptyContext()),e.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=t.mark(),l=t.index;try{let r=this.execDFA(s,t,l,o);return e.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,t.seek(l),t.release(a)}}getStartState(e,t,r,n){if(!n){if(e.isPrecedenceDfa){let t=e.getPrecedenceStartState(this._parser.precedence,!1);if(null==t)return;return new k.SimulatorState(r,t,!1,r)}if(null==e.s0)return;return new k.SimulatorState(r,e.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(F(null!=r),i=e.isPrecedenceDfa?e.getPrecedenceStartState(this._parser.precedence,!0):e.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?F(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new k.SimulatorState(r,i,n,o):void 0}execDFA(t,r,n,i){let o=i.outerContext;e.dfa_debug&&console.log("DFA decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),e.dfa_debug&&console.log(t.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(e.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let e;if(null!=l&&(l=this.skipTailCalls(l),e=s.getContextTarget(this.getReturnState(l))),null==e){let e=new k.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(t,r,n,e)}F(null!=l),l=l.parent,s=e}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?e.dfa_debug&&console.log("accept "+s):e.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}F(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(e.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),e.dfa_debug){let e=v.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(e)+" at DFA state "+s.stateNumber)}let c=new k.SimulatorState(o,s,i.useContext,l);return u=this.execATN(t,r,n,c),e.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+t.toString(this._parser.vocabulary,this._parser.ruleNames)),e.dfa_debug&&console.log("DFA decision "+t.decision+" predicts "+u),u}if(u===d.ATNSimulator.ERROR){let e=new k.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,e)}s=u,this.isAcceptState(s,i.useContext)||a===x.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&t.atnStartState instanceof _.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let e;F(!i.useContext);let a=s.predicates;if(null!=a){let t=r.index;if(t!==n&&r.seek(n),e=this.evalSemanticContext(a,o,!0),1===e.cardinality())return e.nextSetBit(0);t!==n&&r.seek(t)}if(this.reportAmbiguities){let a=new k.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(t,e,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,t.decision,o,!0)}let u=s.predicates;if(null!=u){let e=r.index;n!==e&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==e&&r.seek(e),this.reportAmbiguity(t,s,n,e,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return e.dfa_debug&&console.log("DFA decision "+t.decision+" predicts "+s.prediction),s.prediction}isAcceptState(e,t){return!!e.isAcceptState&&(null==e.configs.conflictingAlts||(!t||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||e.configs.isExactConflict))}execATN(t,r,n,i){e.debug&&console.log("execATN decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new A.PredictionContextCache;for(;;){let i=this.computeReachSet(t,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),d.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(F(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),F(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!t.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&t.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let e=(t.decision<<16>>>0)+a;this.atn.LL1Table.set(e,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(t,c,i,n,r.index)}c=h.prediction;let d=null!=l&&this.userWantsCtxSensitive;if(d&&(d=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let e=h.predicates;if(null!=e){let t=r.index;switch(t!==n&&r.seek(n),l=this.evalSemanticContext(e,o,d||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}t!==n&&r.seek(t)}}if(d){F(!s),F(this.isAcceptState(h,!1)),e.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(t,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(t,l,i,n,r.index),r.seek(n),this.execATN(t,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(t,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==x.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(e,t,r){if(null!=r.s0){let n=new m.BitSet,i=0;for(let e of r.s0.configs)(e.reachesIntoOuterContext||e.state instanceof L.RuleStopState)&&(n.set(e.alt),i=Math.max(i,e.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let e of r.s0.configs)(e.reachesIntoOuterContext||e.state instanceof L.RuleStopState)&&o.add(e);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=e.index;try{e.seek(t);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{e.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(e,r.outerContext,r.s0.configs,t)}computeReachSet(e,t,r,n){let i=t.useContext,o=t.remainingOuterContext,s=t.s0;if(i)for(;s.isContextSymbol(r);){let e;if(null!=o&&(o=this.skipTailCalls(o),e=s.getContextTarget(this.getReturnState(o))),null==e)break;F(null!=o),o=o.parent,s=e}if(F(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new k.SimulatorState(t.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let t=this.computeTargetState(e,a,o,r,i,n);l=t[0],o=t[1]}return l!==d.ATNSimulator.ERROR?(F(!i||!l.configs.dipsIntoOuterContext),new k.SimulatorState(t.outerContext,l,i,o)):void 0}getExistingTargetState(e,t){return e.getTarget(t)}computeTargetState(t,r,n,i,o,s){let a,l,c=r.configs.toArray(),p=new h.ATNConfigSet;do{let t=!o||null!=n;t||(p.isOutermostConfigSet=!0);let r,d=new h.ATNConfigSet;for(let t of c){if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+t.toString()),t.state instanceof L.RuleStopState){F(t.context.isEmpty),(o&&!t.reachesIntoOuterContext||i===x.IntStream.EOF)&&(null==r&&(r=[]),r.push(t));continue}let n=t.state.numberOfOptimizedTransitions;for(let e=0;e0);for(let e of r)p.add(e,s)}if(o&&l){p.clear(),n=n,n=this.skipTailCalls(n);let e=this.getReturnState(n);if(null==a&&(a=new N.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(e),e!==O.PredictionContext.EMPTY_FULL_STATE_KEY)for(let t=0;t0;){let e=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,t,e,l,r,n,i,0,o);s=e}}closureImpl(t,r,n,i,o,a,l,u,h){if(e.debug&&console.log("closure("+t.toString(this._parser,!0)+")"),t.state instanceof L.RuleStopState)if(t.context.isEmpty){if(!a)return void r.add(t,l);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),t.context===O.PredictionContext.EMPTY_FULL?t=t.transform(t.state,!1,O.PredictionContext.EMPTY_LOCAL):!t.reachesIntoOuterContext&&O.PredictionContext.isEmptyLocal(t.context)&&r.add(t,l)}else{let e=t.context.hasEmpty,s=t.context.size-(e?1:0);for(let e=0;e-2147483648),this.closureImpl(p,r,n,i,o,a,l,u-1,h)}if(!e||!a)return;t=t.transform(t.state,!1,O.PredictionContext.EMPTY_LOCAL)}let d=t.state;d.onlyHasEpsilonTransitions||(r.add(t,l),e.debug&&console.log("added config "+r));for(let c=0;c-2147483648),s--,e.debug&&console.log("dips into outer ctx: "+g)}else if(f instanceof I.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&O.PredictionContext.isEmptyLocal(t.context)?s>=0&&s++:(F(g.context===t.context),0===s&&(s--,!this.tail_call_preserves_sll&&O.PredictionContext.isEmptyLocal(t.context)&&(g.outerContextDepth=g.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(g))continue;this.closureImpl(g,r,n,i,m,a,l,s,h)}}}getRuleName(e){return null!=this._parser&&e>=0?this._parser.ruleNames[e]:""}getEpsilonTarget(e,t,r,n,i,o){switch(t.serializationType){case 3:return this.ruleTransition(e,t,i);case 10:return this.precedenceTransition(e,t,r,n);case 4:return this.predTransition(e,t,r,n);case 6:return this.actionTransition(e,t);case 1:return e.transform(t.target,!1);case 5:case 2:case 7:return o&&t.matches(D.Token.EOF,0,1)?e.transform(t.target,!1):void 0;default:return}}actionTransition(t,r){return e.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),t.transform(r.target,!1)}precedenceTransition(t,r,n,i){let o;if(e.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let e=w.SemanticContext.and(t.semanticContext,r.predicate);o=t.transform(r.target,!1,e)}else o=t.transform(r.target,!1);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,r,n,i){let o;if(e.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let e=w.SemanticContext.and(t.semanticContext,r.predicate);o=t.transform(r.target,!1,e)}else o=t.transform(r.target,!1);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,r,n){e.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+t.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&O.PredictionContext.isEmptyLocal(t.context)?null!=n?n.getChild(t.context,o.stateNumber):t.context.getChild(o.stateNumber):t.context,t.transform(r.target,!1,i)}isConflicted(t,r){if(t.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||t.size<=1)return;let n=t.toArray();n.sort(e.STATE_ALT_SORT_COMPARATOR);let i=!t.dipsIntoOuterContext,o=new m.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let e of n){let t=e.state.nonStopStateNumber;if(t!==l){if(e.alt!==s)return;l=t}}if(i){l=n[0].state.nonStopStateNumber,a=new m.BitSet;let e=s;for(let t of n){if(t.state.nonStopStateNumber!==l)break;let r=t.alt;a.set(r),e=r}l=n[0].state.nonStopStateNumber;let t=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(t!==e){i=!1;break}l=n,t=s}else if(o!==t){if(o!==a.nextSetBit(t+1)){i=!1;break}t=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,d=n[0].context;for(let e=1;e"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");let t=e.deadEndConfigs;if(t)for(let e of t){let t="no edges";if(e.state.numberOfOptimizedTransitions>0){let r=e.state.getOptimizedTransition(0);if(r instanceof f.AtomTransition)t="Atom "+this.getTokenName(r._label);else if(r instanceof P.SetTransition){t=(r instanceof S.NotSetTransition?"~":"")+"Set "+r.set.toString()}}console.log(e.toString(this._parser,!0)+":"+t)}}noViableAlt(e,t,r,n){return new T.NoViableAltException(this._parser,e,e.get(n),e.LT(1),r,t)}getUniqueAlt(e){let t=u.ATN.INVALID_ALT_NUMBER;for(let r of e)if(t===u.ATN.INVALID_ALT_NUMBER)t=r.alt;else if(r.alt!==t)return u.ATN.INVALID_ALT_NUMBER;return t}configWithAltAtStopState(e,t){for(let r of e)if(r.alt===t&&r.state instanceof L.RuleStopState)return!0;return!1}addDFAEdge(t,r,n,i,o,s){F(null==i||i.isEmpty||t.isContextSensitive);let a=r,l=this.addDFAState(t,o,s);if(null!=i)for(let e of i.toArray()){if(e===O.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(e);null==r?(r=this.addDFAContextState(t,a.configs,e,s),F(e!==O.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(e,r),a=r):a=r}return e.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),e.debug&&console.log("DFA=\n"+t.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(e,t,r){null!=e&&e.setTarget(t,r)}addDFAContextState(e,t,r,n){if(r!==O.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let e of t)i.add(e.appendContext(r,n));return this.addDFAState(e,i,n)}return F(!t.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(t=t.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(e,t,n)}addDFAState(t,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let e=this.createDFAState(t,r),n=t.states.get(e);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(t,r.clone(!0)),a=this.atn.getDecisionState(t.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let e=r.conflictingAlts;e&&(s.acceptStateInfo=new o.AcceptStateInfo(e.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=t.addState(s);return e.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(e,t){return new y.DFAState(t)}reportAttemptingFullContext(t,r,n,i,o){if(e.debug||e.retry_debug){let e=v.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+t.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportAttemptingFullContext&&e.reportAttemptingFullContext(this._parser,t,i,o,r,n)}}reportContextSensitivity(t,r,n,i,o){if(e.debug||e.retry_debug){let e=v.Interval.of(i,o);console.log("reportContextSensitivity decision="+t.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportContextSensitivity&&e.reportContextSensitivity(this._parser,t,i,o,r,n)}}reportAmbiguity(t,r,n,i,o,s,a){if(e.debug||e.retry_debug){let e=v.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportAmbiguity&&e.reportAmbiguity(this._parser,t,n,i,o,s,a)}}getReturnState(e){if(e.isEmpty)return O.PredictionContext.EMPTY_FULL_STATE_KEY;return this.atn.states[e.invokingState].transition(0).followState.stateNumber}skipTailCalls(e){if(!this.optimize_tail_calls)return e;for(;!e.isEmpty;){let t=this.atn.states[e.invokingState];if(F(1===t.numberOfTransitions&&3===t.transition(0).serializationType),!t.transition(0).tailCall)break;e=e.parent}return e}get parser(){return this._parser}};j.debug=!1,j.dfa_debug=!1,j.retry_debug=!1,j.STATE_ALT_SORT_COMPARATOR=(e,t)=>{let r=e.state.nonStopStateNumber-t.state.nonStopStateNumber;return 0!==r?r:(r=e.alt-t.alt,0!==r?r:0)},n([E.NotNull],j.prototype,"predictionMode",void 0),n([E.NotNull],j.prototype,"getPredictionMode",null),n([i(0,E.NotNull)],j.prototype,"setPredictionMode",null),n([E.Override],j.prototype,"reset",null),n([i(0,E.NotNull)],j.prototype,"adaptivePredict",null),n([i(0,E.NotNull),i(1,E.NotNull),i(2,E.NotNull)],j.prototype,"getStartState",null),n([i(0,E.NotNull),i(1,E.NotNull),i(3,E.NotNull)],j.prototype,"execDFA",null),n([i(0,E.NotNull),i(1,E.NotNull),i(3,E.NotNull)],j.prototype,"execATN",null),n([i(0,E.NotNull),i(2,E.NotNull)],j.prototype,"handleNoViableAlt",null),n([i(0,E.NotNull)],j.prototype,"getExistingTargetState",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"computeTargetState",null),n([E.NotNull,i(0,E.NotNull)],j.prototype,"removeAllConfigsNotInRuleStopState",null),n([E.NotNull],j.prototype,"computeStartState",null),n([E.NotNull,i(0,E.NotNull)],j.prototype,"applyPrecedenceFilter",null),n([i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"getReachableTarget",null),n([i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"getPredsForAmbigAlts",null),n([i(0,E.NotNull)],j.prototype,"evalSemanticContext",null),n([i(0,E.NotNull)],j.prototype,"evalSemanticContextImpl",null),n([i(1,E.NotNull),i(4,E.Nullable)],j.prototype,"closure",null),n([i(0,E.NotNull),i(1,E.NotNull),i(2,E.Nullable),i(3,E.NotNull),i(6,E.NotNull)],j.prototype,"closureImpl",null),n([E.NotNull],j.prototype,"getRuleName",null),n([i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"getEpsilonTarget",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"actionTransition",null),n([E.Nullable,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"precedenceTransition",null),n([E.Nullable,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"predTransition",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull),i(2,E.Nullable)],j.prototype,"ruleTransition",null),n([i(0,E.NotNull)],j.prototype,"isConflicted",null),n([E.NotNull],j.prototype,"getTokenName",null),n([i(0,E.NotNull)],j.prototype,"dumpDeadEndConfigs",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull),i(2,E.NotNull)],j.prototype,"noViableAlt",null),n([i(0,E.NotNull)],j.prototype,"getUniqueAlt",null),n([i(0,E.NotNull)],j.prototype,"configWithAltAtStopState",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull),i(4,E.NotNull)],j.prototype,"addDFAEdge",null),n([i(0,E.Nullable),i(2,E.Nullable)],j.prototype,"setDFAEdge",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"addDFAContextState",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"addDFAState",null),n([E.NotNull,i(0,E.NotNull),i(1,E.NotNull)],j.prototype,"createDFAState",null),n([i(0,E.NotNull),i(2,E.NotNull)],j.prototype,"reportAttemptingFullContext",null),n([i(0,E.NotNull),i(2,E.NotNull)],j.prototype,"reportContextSensitivity",null),n([i(0,E.NotNull),i(5,E.NotNull),i(6,E.NotNull)],j.prototype,"reportAmbiguity",null),j=n([i(0,E.NotNull)],j),t.ParserATNSimulator=j},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(81),s=r(22),a=r(7),l=r(80),u=r(8),c=r(82),h=r(112),d=r(78),p=r(23),f=r(113),m=r(49),g=r(25),_=r(74),y=r(114),N=r(24),v=r(77),x=r(115),E=r(116),S=r(117),T=r(118),C=r(119),b=r(120),O=r(121),A=r(122),R=r(83),L=r(1),I=r(60),w=r(33),P=r(125),k=r(126),D=r(127),M=r(71),F=r(128),j=r(129),U=r(39),z=r(62),H=r(61),B=r(130),q=r(131),V=r(59),G=r(4),Y=r(132),K=r(133),W=r(79);var $;!function(e){e[e.UNICODE_BMP=0]="UNICODE_BMP",e[e.UNICODE_SMP=1]="UNICODE_SMP"}($||($={}));class X{constructor(e){null==e&&(e=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=e}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(e,t){let r=X.SUPPORTED_UUIDS.findIndex(t=>t.equals(e));return!(r<0)&&X.SUPPORTED_UUIDS.findIndex(e=>e.equals(t))>=r}static getUnicodeDeserializer(e){return 0===e?{readUnicode:(e,t)=>X.toInt(e[t]),size:1}:{readUnicode:(e,t)=>X.toInt32(e,t),size:2}}deserialize(e){e=e.slice(0);for(let t=1;te.equals(n))<0){let e=`Could not deserialize ATN with UUID ${n} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(e)}let i=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n),l=X.toInt(e[t++]),p=X.toInt(e[t++]),g=new a.ATN(l,p),N=[],x=[],S=X.toInt(e[t++]);for(let r=0;re.stopState^e.returnState^e.outermostPrecedenceReturn,equals:(e,t)=>e.stopState===t.stopState&&e.returnState===t.returnState&&e.outermostPrecedenceReturn===t.outermostPrecedenceReturn}),D=[];for(let e of g.states){let t=e.ruleIndex>=0&&g.ruleToStartState[e.ruleIndex].leftFactored;for(let r=0;r0;){let r=g.ruleToStartState[e].removeTransition(g.ruleToStartState[e].numberOfTransitions-1);t.addTransition(r)}g.ruleToStartState[e].addTransition(new y.EpsilonTransition(t)),i.addTransition(new y.EpsilonTransition(r));let o=new d.BasicState;g.addState(o),o.addTransition(new c.AtomTransition(i,g.ruleToTokenType[e])),t.addTransition(new y.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}if(this.deserializationOptions.isOptimize){for(;;){let e=0;e+=X.inlineSetRules(g),e+=X.combineChainedEpsilons(g);let t=0===g.grammarType;if(e+=X.optimizeSets(g,t),0===e)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}return X.identifyTailCalls(g),g}deserializeSets(e,t,r,n){let i=X.toInt(e[t++]);for(let o=0;o=0)}else this.checkCondition(t.numberOfTransitions<=1||t instanceof U.RuleStopState)}}checkCondition(e,t){if(!e)throw new Error("IllegalStateException: "+t)}static inlineSetRules(e){let t=0,r=new Array(e.ruleToStartState.length);for(let t=0;t0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let e of i)n.addOptimizedTransition(e)}}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+t+" rule invocations by inlining sets."),t}static combineChainedEpsilons(e){let t=0;for(let r of e.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let e;e:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let t of e)r.addOptimizedTransition(t)}}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+t+" transitions by combining chained epsilon transitions."),t}static optimizeSets(e,t){if(t)return 0;let r=0,n=e.decisionToState;for(let t of n){let n=new N.IntervalSet;for(let e=0;e0;)t.removeOptimizedTransition(t.numberOfOptimizedTransitions-1);for(let e of i)t.addOptimizedTransition(e)}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(e){for(let t of e.states){for(let r=0;r>>0}static toUUID(e,t){let r=X.toInt32(e,t),n=X.toInt32(e,t+2),i=X.toInt32(e,t+4),o=X.toInt32(e,t+6);return new K.UUID(o,i,n,r)}edgeFactory(e,t,r,n,i,s,a,l){let u=e.states[n];switch(t){case 1:return new y.EpsilonTransition(u);case 2:return 0!==a?new F.RangeTransition(u,G.Token.EOF,s):new F.RangeTransition(u,i,s);case 3:return new z.RuleTransition(e.states[i],s,a,u);case 4:return new M.PredicateTransition(u,i,s,0!==a);case 10:return new D.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,G.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new H.SetTransition(u,l[i]);case 8:return new I.NotSetTransition(u,l[i]);case 9:return new W.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(e,t){let r;switch(e){case u.ATNStateType.INVALID_TYPE:return new v.InvalidState;case u.ATNStateType.BASIC:r=new d.BasicState;break;case u.ATNStateType.RULE_START:r=new j.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new P.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new B.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new Y.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new q.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new V.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new k.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${e} is not valid.`)}return r.ruleIndex=t,r}lexerActionFactory(e,t,r){switch(e){case 0:return new x.LexerChannelAction(t);case 1:return new E.LexerCustomAction(t,r);case 2:return new S.LexerModeAction(t);case 3:return T.LexerMoreAction.INSTANCE;case 4:return C.LexerPopModeAction.INSTANCE;case 5:return new b.LexerPushModeAction(t);case 6:return O.LexerSkipAction.INSTANCE;case 7:return new A.LexerTypeAction(t);default:throw new Error(`The specified lexer action type ${e} is not valid.`)}}}X.BASE_SERIALIZED_UUID=K.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),X.ADDED_LEXER_ACTIONS=K.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),X.ADDED_UNICODE_SMP=K.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),X.SUPPORTED_UUIDS=[X.BASE_SERIALIZED_UUID,X.ADDED_LEXER_ACTIONS,X.ADDED_UNICODE_SMP],X.SERIALIZED_UUID=X.ADDED_UNICODE_SMP,n([L.NotNull],X.prototype,"deserializationOptions",void 0),n([i(0,L.NotNull)],X.prototype,"deserialize",null),n([i(0,L.NotNull)],X.prototype,"markPrecedenceDecisions",null),n([L.NotNull,i(0,L.NotNull)],X.prototype,"edgeFactory",null),t.ATNDeserializer=X},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++h1)for(var r=1;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(9),s=r(1),a=r(4);let l=class e{constructor(t,r,n=e.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=t,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(t){let r=new e(t.type,void 0,e.EMPTY_SOURCE,t.channel,t.startIndex,t.stopIndex);return r._line=t.line,r.index=t.tokenIndex,r._charPositionInLine=t.charPositionInLine,t instanceof e?(r._text=t.text,r.source=t.source):(r._text=t.text,r.source={source:t.tokenSource,stream:t.inputStream}),r}get type(){return this._type}set type(e){this._type=e}get line(){return this._line}set line(e){this._line=e}get text(){if(null!=this._text)return this._text;let e=this.inputStream;if(null==e)return;let t=e.size;return this.start"}set text(e){this._text=e}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(e){this._charPositionInLine=e}get channel(){return this._channel}set channel(e){this._channel=e}get startIndex(){return this.start}set startIndex(e){this.start=e}get stopIndex(){return this.stop}set stopIndex(e){this.stop=e}get tokenIndex(){return this.index}set tokenIndex(e){this.index=e}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(e){let t="";this._channel>0&&(t=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return e&&(n=e.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+t+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),t.CommonToken=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(29),o=r(22),s=r(43),a=r(7),l=r(45),u=r(23),c=r(1),h=r(15),d=r(13),p=r(57),f=r(28),m=r(10),g=r(11);class _{hashCode(e){return e.state^e.alt}equals(e,t){return e.state===t.state&&e.alt===t.alt}}function y(e){return e?new i.Array2DHashMap(e):new i.Array2DHashMap(_.INSTANCE)}_.INSTANCE=new _;class N{constructor(e,t){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,e?(t?(this.mergedConfigs=void 0,this.unmerged=void 0):e.isReadOnly?(this.mergedConfigs=y(),this.unmerged=[]):(this.mergedConfigs=y(e.mergedConfigs),this.unmerged=e.unmerged.slice(0)),this.configs=e.configs.slice(0),this._dipsIntoOuterContext=e._dipsIntoOuterContext,this._hasSemanticContext=e._hasSemanticContext,this.outermostConfigSet=e.outermostConfigSet,!t&&e.isReadOnly||(this._uniqueAlt=e._uniqueAlt,this._conflictInfo=e._conflictInfo)):(this.mergedConfigs=y(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let e=new u.BitSet;for(let t of this)e.set(t.alt);return e}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(e){if(this.outermostConfigSet&&!e)throw new Error("IllegalStateException");m(!e||!this._dipsIntoOuterContext),this.outermostConfigSet=e}getStates(){let e=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(0!==this.configs.length)for(let t of this.configs)t.context=e.atn.getCachedContext(t.context)}clone(e){let t=new N(this,e);return!e&&this.isReadOnly&&t.addAll(this.configs),t}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(e){if(!(e instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let t=e,r=this.getKey(t),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(t,r,n))return n.contains(t);for(let t of this.unmerged)if(t.contains(e))return!0}else for(let t of this.configs)if(t.contains(e))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(e,t){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;m(!this.outermostConfigSet||!e.reachesIntoOuterContext),null==t&&(t=p.PredictionContextCache.UNCACHED);let n=this.getKey(e),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(e,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,e.outerContextDepth),e.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=d.PredictionContext.join(i.context,e.context,t);return this.updatePropertiesForMergedConfig(e),i.context===r?!1:(i.context=r,!0)}for(let i=0;ie.alt!==t.alt?e.alt-t.alt:e.state.stateNumber!==t.state.stateNumber?e.state.stateNumber-t.state.stateNumber:e.semanticContext.toString().localeCompare(t.semanticContext.toString())),t+="[";for(let n=0;n0&&(t+=", "),t+=r[n].toString(void 0,!0,e);return t+="]",this._hasSemanticContext&&(t+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(t+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(t+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(t+="*")),this._dipsIntoOuterContext&&(t+=",dipsIntoOuterContext"),t.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(e){this.ensureWritable(),this._hasSemanticContext=e}get conflictInfo(){return this._conflictInfo}set conflictInfo(e){this.ensureWritable(),this._conflictInfo=e}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(e){return this.configs[e]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],N.prototype,"getRepresentedAlternatives",null),n([c.Override],N.prototype,"size",null),n([c.Override],N.prototype,"isEmpty",null),n([c.Override],N.prototype,"contains",null),n([c.Override],N.prototype,Symbol.iterator,null),n([c.Override],N.prototype,"toArray",null),n([c.Override],N.prototype,"containsAll",null),n([c.Override],N.prototype,"clear",null),n([c.Override],N.prototype,"equals",null),n([c.Override],N.prototype,"hashCode",null),t.ATNConfigSet=N},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(76),s=r(58),a=r(1),l=r(4),u=r(11);class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let e=this.vocabulary,t=c.tokenTypeMapCache.get(e);if(null==t){let r=new Map;for(let t=0;t<=this.atn.maxTokenType;t++){let n=e.getLiteralName(t);null!=n&&r.set(n,t);let i=e.getSymbolicName(t);null!=i&&r.set(i,t)}r.set("EOF",l.Token.EOF),t=r,c.tokenTypeMapCache.set(e,t)}return t}getRuleIndexMap(){let e=this.ruleNames;if(null==e)throw new Error("The current recognizer does not provide a list of rule names.");let t=c.ruleIndexMapCache.get(e);return null==t&&(t=u.toMap(e),c.ruleIndexMapCache.set(e,t)),t}getTokenType(e){let t=this.getTokenTypeMap().get(e);return null!=t?t:l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(e){this._interp=e}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(e){let t=e.getOffendingToken();return t?"line "+t.line+":"+t.charPositionInLine:""}addErrorListener(e){if(!e)throw new TypeError("listener must not be null");this._listeners.push(e)}removeErrorListener(e){let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(e,t,r){return!0}precpred(e,t){return!0}action(e,t,r){}get state(){return this._stateNumber}set state(e){this._stateNumber=e}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),t.Recognizer=c},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),t.RuleStopState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1);let s=class{constructor(e,t,r,n,i,o){this.decision=e,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=t}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),t.DecisionEventInfo=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(73),s=r(7),a=r(45),l=r(37),u=r(46),c=r(47),h=r(9),d=r(20),p=r(18),f=r(109),m=r(48),g=r(1),_=r(111),y=r(13),N=r(39),v=r(4),x=r(10);let E=class e extends u.ATNSimulator{constructor(t,r){super(t),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE,this.prevAccept=new e.SimState,this.recog=r}copyState(e){this._charPositionInLine=e.charPositionInLine,this._line=e._line,this.mode=e.mode,this.startIndex=e.startIndex}match(t,r){e.match_calls++,this.mode=r;let n=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let e=this.atn.modeToDFA[r].s0;return null==e?this.matchATN(t):this.execATN(t,e)}finally{t.release(n)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE}matchATN(t){let r=this.atn.modeToStartState[this.mode];e.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(t,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let e=this.atn.modeToDFA[this.mode];e.s0?s=e.s0:e.s0=s}let a=this.execATN(t,s);return e.debug&&console.log("DFA after matchATN: "+this.atn.modeToDFA[n].toLexerString()),a}execATN(t,r){e.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,t,r);let n=t.LA(1),i=r;for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(t,i,n)),r===u.ATNSimulator.ERROR)break;if(n!==d.IntStream.EOF&&this.consume(t),r.isAcceptState&&(this.captureSimState(this.prevAccept,t,r),n===d.IntStream.EOF))break;n=t.LA(1),i=r}return this.failOrAccept(this.prevAccept,t,i.configs,n)}getExistingTargetState(t,r){let n=t.getTarget(r);return e.debug&&null!=n&&console.log("reuse state "+t.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(e,t,r){let n=new _.OrderedATNConfigSet;return this.getReachableConfigSet(e,t.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(t,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(t,r,n)}failOrAccept(e,t,r,n){if(null!=e.dfaState){let r=e.dfaState.lexerActionExecutor;return this.accept(t,r,this.startIndex,e.index,e.line,e.charPos),e.dfaState.prediction}if(n===d.IntStream.EOF&&t.index===this.startIndex)return v.Token.EOF;throw new m.LexerNoViableAltException(this.recog,t,this.startIndex,r)}getReachableConfigSet(t,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;e.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let e=0;e "+n+" upon "+String.fromCharCode(r)),null!=t&&t.setTarget(r,n)}addDFAState(e){x(!e.hasSemanticContext);let t=new c.DFAState(e),r=this.atn.modeToDFA[this.mode].states.get(t);if(null!=r)return r;e.optimizeConfigs(this);let n,i=new c.DFAState(e.clone(!0));for(let t of e)if(t.state instanceof N.RuleStopState){n=t;break}if(null!=n){let e=this.atn.ruleToTokenType[n.state.ruleIndex],t=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(e,t)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(e){return this.atn.modeToDFA[e]}getText(e){return e.getText(h.Interval.of(this.startIndex,e.index-1))}get line(){return this._line}set line(e){this._line=e}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(e){this._charPositionInLine=e}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,e.consume()}getTokenName(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"}};E.match_calls=0,n([g.NotNull],E.prototype,"prevAccept",void 0),n([i(0,g.NotNull)],E.prototype,"copyState",null),n([i(0,g.NotNull)],E.prototype,"match",null),n([g.Override],E.prototype,"reset",null),n([i(0,g.NotNull)],E.prototype,"matchATN",null),n([i(0,g.NotNull),i(1,g.NotNull)],E.prototype,"execATN",null),n([i(0,g.NotNull)],E.prototype,"getExistingTargetState",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],E.prototype,"computeTargetState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],E.prototype,"getReachableConfigSet",null),n([i(0,g.NotNull)],E.prototype,"accept",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],E.prototype,"computeStartState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],E.prototype,"closure",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull),i(3,g.NotNull)],E.prototype,"getEpsilonTarget",null),n([i(0,g.NotNull)],E.prototype,"evaluatePredicate",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],E.prototype,"captureSimState",null),n([g.NotNull,i(0,g.NotNull)],E.prototype,"addDFAState",null),n([g.NotNull],E.prototype,"getDFA",null),n([g.NotNull,i(0,g.NotNull)],E.prototype,"getText",null),n([i(0,g.NotNull)],E.prototype,"consume",null),n([g.NotNull],E.prototype,"getTokenName",null),E=n([i(0,g.NotNull)],E),t.LexerATNSimulator=E,function(e){e.debug=!1,e.dfa_debug=!1;e.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}}(E=t.LexerATNSimulator||(t.LexerATNSimulator={})),t.LexerATNSimulator=E},function(e,t,r){"use strict";var n=r(175).default;r(180),(t=e.exports=n).default=t},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(5),s=r(15);class a{hashCode(e){return null==e?0:o.MurmurHash.hashCode(e,0)}equals(e,t){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(3),s=r(1);let a=class extends o.RecognitionException{constructor(e,t,r){void 0===r&&(r=e.context),super(e,e.inputStream,r),void 0!==t&&this.setOffendingState(t),this.setOffendingToken(e,e.currentToken)}};a=n([i(0,s.NotNull)],a),t.InputMismatchException=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(29),s=r(25),a=r(5),l=r(1),u=r(15),c=r(13),h=r(28),d=r(10);let p=class e{constructor(e,t,r){"number"==typeof t?(d((16777215&t)===t),this._state=e,this.altAndOuterContextDepth=t,this._context=r):(this._state=e,this.altAndOuterContextDepth=t.altAndOuterContextDepth,this._context=r)}static create(t,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new g(o,i,t,r,n,!1):new f(i,t,r,n):null!=o?new m(o,t,r,n,!1):new e(t,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(e){this._context=e}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(e){d(e>=0),e=Math.min(e,127),this.altAndOuterContextDepth=e<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(e,t,r){return null==r?this.transformImpl(e,this._context,this.semanticContext,t,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(e,r,this.semanticContext,t,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(e,this._context,r,t,this.lexerActionExecutor):this.transformImpl(e,this._context,this.semanticContext,t,r)}transformImpl(t,r,n,i,o){let s=i&&e.checkNonGreedyDecision(this,t);return n!==h.SemanticContext.NONE?null!=o||s?new g(o,n,t,this,r,s):new f(n,t,this,r):null!=o||s?new m(o,t,this,r,s):new e(t,this,r)}static checkNonGreedyDecision(e,t){return e.hasPassedThroughNonGreedyDecision||t instanceof s.DecisionState&&t.nonGreedy}appendContext(e,t){if("number"==typeof e){let r=this.context.appendSingleContext(e,t);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(e,t);return this.transform(this.state,!1,r)}}contains(e){if(this.state.stateNumber!==e.state.stateNumber||this.alt!==e.alt||!this.semanticContext.equals(e.semanticContext))return!1;let t=[],r=[];for(t.push(this.context),r.push(e.context);;){let e=t.pop(),n=r.pop();if(!e||!n)break;if(e===n)return!0;if(e.size=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(37),s=r(47),a=r(1),l=r(13);let u=class e{constructor(e){this.atn=e}static get ERROR(){return e._ERROR||(e._ERROR=new s.DFAState(new o.ATNConfigSet),e._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),e._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),t.ATNSimulator=u,u=t.ATNSimulator||(t.ATNSimulator={}),t.ATNSimulator=u},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(7),s=r(23),a=r(5),l=r(1),u=r(13),c=r(10);class h{constructor(e){this.stateNumber=-1,this.configs=e,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(e){return!!this.isContextSensitive&&this.contextSymbols.get(e)}setContextSymbol(e){c(this.isContextSensitive),this.contextSymbols.set(e)}setContextSensitive(e){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new s.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(e){this._acceptStateInfo=e}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(e){return this.edges.get(e)}setTarget(e,t){this.edges.set(e,t)}getEdgeMap(){return this.edges}getContextTarget(e){return e===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(e=-1),this.contextEdges.get(e)}setContextTarget(e,t){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");e===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(e=-1),this.contextEdges.set(e,t)}getContextEdgeMap(){let e=new Map(this.contextEdges),t=e.get(-1);if(void 0!==t){if(1===e.size){let e=new Map;return e.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,t),e}e.delete(-1),e.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,t)}return e}hashCode(){let e=a.MurmurHash.initialize(7);return e=a.MurmurHash.update(e,this.configs.hashCode()),e=a.MurmurHash.finish(e,1),e}equals(e){if(this===e)return!0;if(!(e instanceof h))return!1;let t=e;return this.configs.equals(t.configs)}toString(){let e="";return e+=this.stateNumber+":"+this.configs,this.isAcceptState&&(e+="=>",this.predicates?e+=this.predicates:e+=this.prediction),e.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.DFAState=h,function(e){let t=class{constructor(e,t){this.alt=t,this.pred=e}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],t.prototype,"pred",void 0),n([l.Override],t.prototype,"toString",null),t=n([i(0,l.NotNull)],t),e.PredPrediction=t}(h=t.DFAState||(t.DFAState={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(3),s=r(1),a=r(9),l=r(11);let u=class extends o.RecognitionException{constructor(e,t,r,n){super(e,t),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let e="";return this._startIndex>=0&&this._startIndex=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(17),s=r(8),a=r(19),l=r(44),u=r(24),c=r(14),h=r(13),d=r(4),p=r(1);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof c.NoViableAltException?this.reportNoViableAlternative(e,t):t instanceof l.InputMismatchException?this.reportInputMismatch(e,t):t instanceof a.FailedPredicateException?this.reportFailedPredicate(e,t):(console.error("unknown recognition error type: "+t),this.notifyErrorListeners(e,t.toString(),t)))}notifyErrorListeners(e,t,r){let n=r.getOffendingToken(e);void 0===n&&(n=null),e.notifyErrorListeners(t,n,r)}recover(e,t){this.lastErrorIndex===e.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(e.state);let r=this.getErrorRecoverySet(e);this.consumeUntil(e,r)}sync(e){let t=e.interpreter.atn.states[e.state];if(this.inErrorRecoveryMode(e))return;let r=e.inputStream.LA(1),n=e.atn.nextTokens(t);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(d.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokensState=e.state);else switch(t.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(e))return;throw new l.InputMismatchException(e);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(e);let t=e.getExpectedTokens().or(this.getErrorRecoverySet(e));this.consumeUntil(e,t)}}reportNoViableAlternative(e,t){let r,n=e.inputStream;r=n?t.startToken.type===d.Token.EOF?"":n.getTextFromRange(t.startToken,t.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(e,i,t)}reportInputMismatch(e,t){let r=t.expectedTokens,n=r?r.toStringVocabulary(e.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(t.getOffendingToken(e))+" expecting "+n;this.notifyErrorListeners(e,i,t)}reportFailedPredicate(e,t){let r="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;this.notifyErrorListeners(e,r,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let t=e.currentToken,r="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringVocabulary(e.vocabulary);e.notifyErrorListeners(r,t,void 0)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let t=e.currentToken,r="missing "+this.getExpectedTokens(e).toStringVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(r,t,void 0)}recoverInline(e){let t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw void 0===this.nextTokensContext?new l.InputMismatchException(e):new l.InputMismatchException(e,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(e){let t=e.inputStream.LA(1),r=e.interpreter.atn.states[e.state].transition(0).target,n=e.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,e.context)).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){let t=e.inputStream.LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();let t=e.currentToken;return this.reportMatch(e),t}}getMissingSymbol(e){let t,r=e.currentToken,n=this.getExpectedTokens(e),i=d.Token.INVALID_TYPE;n.isNil||(i=n.minElement),t=i===d.Token.EOF?"":"";let o=r,s=e.inputStream.tryLT(-1);return o.type===d.Token.EOF&&null!=s&&(o=s),this.constructToken(e.inputStream.tokenSource,i,t,o)}constructToken(e,t,r,n){let i=e.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:e,stream:s},t,r,d.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(!e)return"";let t=this.getSymbolText(e);return t||(t=this.getSymbolType(e)===d.Token.EOF?"":`<${this.getSymbolType(e)}>`),this.escapeWSAndQuote(t)}getSymbolText(e){return e.text}getSymbolType(e){return e.type}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(e){let t=e.interpreter.atn,r=e.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let e=t.states[r.invokingState].transition(0),i=t.nextTokens(e.followState);n.addAll(i),r=r._parent}return n.remove(d.Token.EPSILON),n}consumeUntil(e,t){let r=e.inputStream.LA(1);for(;r!==d.Token.EOF&&!t.contains(r);)e.consume(),r=e.inputStream.LA(1)}}n([p.Override],f.prototype,"reset",null),n([i(0,p.NotNull)],f.prototype,"beginErrorCondition",null),n([p.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,p.NotNull)],f.prototype,"endErrorCondition",null),n([p.Override],f.prototype,"reportMatch",null),n([p.Override],f.prototype,"reportError",null),n([i(0,p.NotNull)],f.prototype,"notifyErrorListeners",null),n([p.Override],f.prototype,"recover",null),n([p.Override],f.prototype,"sync",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,p.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,p.NotNull)],f.prototype,"reportMissingToken",null),n([p.Override],f.prototype,"recoverInline",null),n([i(0,p.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,p.NotNull)],f.prototype,"singleTokenDeletion",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getMissingSymbol",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,p.NotNull)],f.prototype,"getSymbolText",null),n([i(0,p.NotNull)],f.prototype,"getSymbolType",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"escapeWSAndQuote",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"consumeUntil",null),t.DefaultErrorStrategy=f},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(21);class i extends n.Transition{constructor(e){super(e)}}t.AbstractPredicateTransition=i},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(55),o=r(1),s=new Int32Array(0);class a{constructor(e){if(e)if(e instanceof a)this._data=e._data.slice(0),this._size=e._size;else if("number"==typeof e)0===e?(this._data=s,this._size=0):(this._data=new Int32Array(e),this._size=0);else{this._data=s,this._size=0;for(let t of e)this.add(t)}else this._data=s,this._size=0}add(e){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=e,this._size++}addAll(e){if(Array.isArray(e))this.ensureCapacity(this._size+e.length),this._data.subarray(this._size,this._size+e.length).set(e),this._size+=e.length;else if(e instanceof a)this.ensureCapacity(this._size+e._size),this._data.subarray(this._size,this._size+e.size).set(e._data),this._size+=e._size;else{this.ensureCapacity(this._size+e.size);let t=0;for(let r of e)this._data[this._size+t]=r,t++;this._size+=e.size}}get(e){if(e<0||e>=this._size)throw RangeError();return this._data[e]}contains(e){for(let t=0;t=this._size)throw RangeError();let r=this._data[e];return this._data[e]=t,r}removeAt(e){let t=this.get(e);return this._data.copyWithin(e,e+1,this._size),this._data[this._size-1]=0,this._size--,t}removeRange(e,t){if(e<0||t<0||e>this._size||t>this._size)throw RangeError();if(e>t)throw RangeError();this._data.copyWithin(t,e,this._size),this._data.fill(0,this._size-(t-e),this._size),this._size-=t-e}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(e){if(e===this)return!0;if(!(e instanceof a))return!1;if(this._size!==e._size)return!1;for(let t=0;tthis._size||r>this._size)throw new RangeError;if(t>r)throw new RangeError;return i.Arrays.binarySearch(this._data,e,t,r)}ensureCapacity(e){if(e<0||e>2147483639)throw new RangeError;let t;for(t=0===this._data.length?4:this._data.length;t2147483639)&&(t=2147483639);let r=new Int32Array(t);r.set(this._data),this._data=r}toCharArray(){let e=new Uint16Array(this._size),t=0,r=!1;for(let n=0;n=0&&i<65536){e[t]=i,t++;continue}if(!r){let t=new Uint16Array(this.charArraySize());t.set(e,0),e=t,r=!0}let o=String.fromCodePoint(i);e[t]=o.charCodeAt(0),e[t+1]=o.charCodeAt(1),t+=2}return e}charArraySize(){let e=0;for(let t=0;t=65536?2:1;return e}}n([o.NotNull],a.prototype,"_data",void 0),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"toString",null),t.IntegerList=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.binarySearch=function(e,t,r,n){return function(e,t,r,n){let i=t,o=r-1;for(;i<=o;){let t=i+o>>>1,r=e[t];if(rn))return t;o=t-1}}return-(i+1)}(e,void 0!==r?r:0,void 0!==n?n:e.length,t)},e.toString=function(e){let t="[",r=!0;for(let n of e)r?r=!1:t+=", ",t+=null===n?"null":void 0===n?"undefined":n;return t+="]",t}}(t.Arrays||(t.Arrays={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(36),o=r(9),s=r(1);class a{constructor(e=!1){this.copyText=e}create(e,t,r,n,s,a,l,u){let c=new i.CommonToken(t,r,e,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=e.stream&&(c.text=e.stream.getText(o.Interval.of(s,a))),c}createSimple(e,t){return new i.CommonToken(e,t)}}n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),t.CommonTokenFactory=a,function(e){e.DEFAULT=new e}(a=t.CommonTokenFactory||(t.CommonTokenFactory={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(29),o=r(1),s=r(15),a=r(13),l=r(10);class u{constructor(e=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=e}getAsCached(e){if(!this.enableCache)return e;let t=this.contexts.get(e);return t||(t=e,this.contexts.put(e,e)),t}getChild(e,t){if(!this.enableCache)return e.getChild(t);let r=new u.PredictionContextAndInt(e,t),n=this.childContexts.get(r);return n||(n=e.getChild(t),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(e,t){if(!this.enableCache)return a.PredictionContext.join(e,t,this);let r=new u.IdentityCommutativePredictionContextOperands(e,t),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(e,t,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}u.UNCACHED=new u(!1),t.PredictionContextCache=u,function(e){class t{constructor(e,t){this.obj=e,this.value=t}equals(e){if(!(e instanceof t))return!1;if(e===this)return!0;let r=e;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let e=5;return e=7*e+(null!=this.obj?this.obj.hashCode():0),e=7*e+this.value,e}}n([o.Override],t.prototype,"equals",null),n([o.Override],t.prototype,"hashCode",null),e.PredictionContextAndInt=t;class r{constructor(e,t){l(null!=e),l(null!=t),this._x=e,this._y=t}get x(){return this._x}get y(){return this._y}equals(e){if(!(e instanceof r))return!1;if(this===e)return!0;let t=e;return this._x===t._x&&this._y===t._y||this._x===t._y&&this._y===t._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),e.IdentityCommutativePredictionContextOperands=r}(u=t.PredictionContextCache||(t.PredictionContextCache={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1);class s{constructor(e){if(this.delegates=e,!e)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(e,t,r,n,i,o){this.delegates.forEach(s=>{s.syntaxError&&s.syntaxError(e,t,r,n,i,o)})}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),t.ProxyErrorListener=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(23),s=r(25),a=r(1);class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),t.StarLoopEntryState=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(61);let a=class extends s.SetTransition{constructor(e,t){super(e,t)}get serializationType(){return 8}matches(e,t,r){return e>=t&&e<=r&&!super.matches(e,t,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),t.NotSetTransition=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(24),s=r(1),a=r(4),l=r(21);let u=class extends l.Transition{constructor(e,t){super(e),null==t&&(t=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=t}get serializationType(){return 7}get label(){return this.set}matches(e,t,r){return this.set.contains(e)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),t.SetTransition=u},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(21);let a=class extends s.Transition{constructor(e,t,r,n){super(e),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=t,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(e,t,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),t.RuleTransition=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(30);class s extends o.TerminalNode{constructor(e){super(e)}accept(e){return e.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),t.ErrorNode=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.RuleNode=class{}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(87),i=r(88),o=r(20);!function(e){e.fromString=function(e,t){void 0!==t&&0!==t.length||(t=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(e.length),s=new Uint16Array(e.length);for(let t=0;t=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(89),s=r(1),a=r(4);let l=class extends o.BufferedTokenStream{constructor(e,t=a.Token.DEFAULT_CHANNEL){super(e),this.channel=t}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}tryLB(e){if(this.p-e<0)return;let t=this.p,r=1;for(;r<=e&&t>0;)t=this.previousTokenOnChannel(t-1,this.channel),r++;return t<0?void 0:this.tokens[t]}tryLT(e){if(this.lazyInit(),0===e)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let t=this.p,r=1;for(;r{throw e},t.removeErrorListeners(),t.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(t);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+t.charPositionInLine+" in path '"+e+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,d=0;e:for(;d0){this.elements[n].evaluate(t).forEach(e.add,e)}n++,r=e}return r}}g.WILDCARD="*",g.NOT="!",t.XPath=g},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),l=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),c(n,e,n.depth)}function l(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&S(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return _(i)||(i=c(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(_(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(r);if(0===s.length){if(S(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(N(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return h(r)}var u,v="",T=!1,C=["{","}"];(p(r)&&(T=!0,C=["[","]"]),S(r))&&(v=" [Function"+(r.name?": "+r.name:"")+"]");return N(r)&&(v=" "+RegExp.prototype.toString.call(r)),x(r)&&(v=" "+Date.prototype.toUTCString.call(r)),E(r)&&(v=" "+h(r)),0!==s.length||T&&0!=r.length?n<0?N(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=T?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,v,C)):C[0]+v+C[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=m(r)?c(e,l.value,null):c(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function _(e){return"string"==typeof e}function y(e){return void 0===e}function N(e){return v(e)&&"[object RegExp]"===T(e)}function v(e){return"object"==typeof e&&null!==e}function x(e){return v(e)&&"[object Date]"===T(e)}function E(e){return v(e)&&("[object Error]"===T(e)||e instanceof Error)}function S(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(y(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=f,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=_,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=N,t.isObject=v,t.isDate=x,t.isError=E,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(104);var b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),b[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=r(105),t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(52),o=r(44),s=r(1),a=r(91);class l extends i.DefaultErrorStrategy{recover(e,t){for(let r=e.context;r;r=r.parent)r.exception=t;throw new a.ParseCancellationException(t)}recoverInline(e){let t=new o.InputMismatchException(e);for(let r=e.context;r;r=r.parent)r.exception=t;throw new a.ParseCancellationException(t)}sync(e){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),t.BailErrorStrategy=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(53),s=r(1),a=r(28);let l=class extends o.AbstractPredicateTransition{constructor(e,t,r,n){super(e),this.ruleIndex=t,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(e,t,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),t.PredicateTransition=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(54);class i extends n.IntegerList{constructor(e){super(e)}push(e){this.add(e)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}t.IntegerStack=i},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.AcceptStateInfo=class{constructor(e,t){this._prediction=e,this._lexerActionExecutor=t}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(22),s=r(37),a=r(75),l=r(47),u=r(107),c=r(1),h=r(15),d=r(59),p=r(16);let f=class{constructor(e,t=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!e.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=e,this.atn=e.atn,this.decision=t;let r=!1;e instanceof d.StarLoopEntryState&&e.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(e,t){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return t?this.s0full.getTarget(e):this.s0.getTarget(e)}setPrecedenceStartState(e,t,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||(t?this.s0full.setTarget(e,r):this.s0.setTarget(e,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(e){return e.stateNumber=this.nextStateNumber++,this.states.getOrAdd(e)}toString(e,t){if(e||(e=p.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=t?new a.DFASerializer(this,e,t,this.atnStartState.atn):new a.DFASerializer(this,e),r.toString()}toLexerString(){if(!this.s0)return"";return new u.LexerDFASerializer(this).toString()}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),t.DFA=f},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(46),o=r(1),s=r(13),a=r(38),l=r(16);class u{constructor(e,t,r,n){t instanceof a.Recognizer?(r=t.ruleNames,n=t.atn,t=t.vocabulary):t||(t=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=e,this.vocabulary=t,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let e="";if(this.dfa.states){let t=new Array(...this.dfa.states.toArray());t.sort((e,t)=>e.stateNumber-t.stateNumber);for(let r of t){let t=r.getEdgeMap(),n=[...t.keys()].sort((e,t)=>e-t),o=r.getContextEdgeMap(),s=[...o.keys()].sort((e,t)=>e-t);for(let o of n){let n=t.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;e+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(e+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?e+=this.getStateString(a)+"\n":s&&(e+="ctx\n")}if(r.isContextSensitive)for(let t of s)e+=this.getStateString(r)+"-"+this.getContextLabel(t)+"->"+this.getStateString(o.get(t))+"\n"}}let t=e;return 0===t.length?"":t}getContextLabel(e){if(e===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(e===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&e>0&&e<=this.atn.states.length){let t=this.atn.states[e].ruleIndex;if(this.ruleNames&&t>=0&&t"+e.predicates:":s"+t+"=>"+e.prediction),e.isContextSensitive){r+="*";for(let t of e.configs)if(t.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),t.DFASerializer=u},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class n{syntaxError(e,t,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}n.INSTANCE=new n,t.ConsoleErrorListener=n},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(78),s=r(1);class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),t.InvalidState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),t.BasicState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(21);let a=class extends s.Transition{constructor(e){super(e)}get serializationType(){return 9}matches(e,t,r){return e>=t&&e<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),t.WildcardTransition=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{constructor(e){this.readOnly=!1,e?(this.verifyATN=e.verifyATN,this.generateRuleBypassTransitions=e.generateRuleBypassTransitions,this.optimize=e.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(e){this.throwIfReadOnly(),this.verifyATN=e}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(e){this.throwIfReadOnly(),this.generateRuleBypassTransitions=e}get isOptimize(){return this.optimize}set isOptimize(e){this.throwIfReadOnly(),this.optimize=e}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),t.ATNDeserializationOptions=o},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(21);let a=class extends s.Transition{constructor(e,t,r=-1,n=!1){super(e),this.ruleIndex=t,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(e,t,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),t.ActionTransition=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(24),s=r(1),a=r(21);let l=class extends a.Transition{constructor(e,t){super(e),this._label=t}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(e,t,r){return this._label===e}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),t.AtomTransition=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),t.LoopEndState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(7),o=r(38),s=r(64),a=r(9),l=r(1),u=r(26),c=r(2);class h extends s.RuleNode{constructor(e,t){super(),this._parent=e,this.invokingState=null!=t?t:-1}static getChildContext(e,t){return new h(e,t)}depth(){let e=0,t=this;for(;t;)t=t._parent,e++;return e}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this}get text(){if(0===this.childCount)return"";let e="";for(let t=0;t=0&&e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(2);let a=class{constructor(e,t,r,n){this.outerContext=null!=e?e:s.ParserRuleContext.emptyContext(),this.s0=t,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),t.SimulatorState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(58),o=r(1);class s extends i.ProxyErrorListener{constructor(e){super(e)}reportAmbiguity(e,t,r,n,i,o,s){this.getDelegates().forEach(a=>{a.reportAmbiguity&&a.reportAmbiguity(e,t,r,n,i,o,s)})}reportAttemptingFullContext(e,t,r,n,i,o){this.getDelegates().forEach(s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(e,t,r,n,i,o)})}reportContextSensitivity(e,t,r,n,i,o){this.getDelegates().forEach(s=>{s.reportContextSensitivity&&s.reportContextSensitivity(e,t,r,n,i,o)})}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),t.ProxyParserErrorListener=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(10),i=r(136);class o{constructor(e,t){this.buffer=e,this._position=0,this._size=t}static withArray(e){return new o(e,e.length)}get position(){return this._position}set position(e){if(e<0||e>this._size)throw new RangeError;this._position=e}get remaining(){return this._size-this.position}get(e){return this.buffer[e]}array(){return this.buffer.slice(0,this._size)}static builder(e){return new o.Builder(e)}}t.CodePointBuffer=o,function(e){let t;!function(e){e[e.BYTE=0]="BYTE",e[e.CHAR=1]="CHAR",e[e.INT=2]="INT"}(t||(t={}));class r{constructor(e){this.type=0,this.buffer=new Uint8Array(e),this.prevHighSurrogate=-1,this.position=0}build(){return new e(this.buffer,this.position)}static roundUpToNextPowerOfTwo(e){let t=32-Math.clz32(e-1);return Math.pow(2,t)}ensureRemaining(e){switch(this.type){case 0:if(this.buffer.length-this.position>1));t.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=t}byteToIntBuffer(e){let t=new Int32Array(Math.max(this.position+e,this.buffer.length>>2));t.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=t}charToIntBuffer(e){let t=new Int32Array(Math.max(this.position+e,this.buffer.length>>1));t.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=t}}e.Builder=r}(o=t.CodePointBuffer||(t.CodePointBuffer={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(10),o=r(20),s=r(9),a=r(1);class l{constructor(e,t,r,n){i(0===t),this._array=e,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(e,t){return void 0!==t&&0!==t.length||(t=o.IntStream.UNKNOWN_SOURCE_NAME),new l(e.array(),e.position,e.remaining,t)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(e){}seek(e){this._position=e}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(e){let t;switch(Math.sign(e)){case-1:return t=this.index+e,t<0?o.IntStream.EOF:this._array[t];case 0:return 0;case 1:return t=this.index+e-1,t>=this.size?o.IntStream.EOF:this._array[t]}throw new RangeError("Not reached")}getText(e){const t=Math.min(e.a,this.size),r=Math.min(e.b-e.a+1,this.size-t);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(t,t+r))):String.fromCharCode(...Array.from(this._array.subarray(t,t+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),t.CodePointCharStream=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(10),s=r(36),a=r(9),l=r(18),u=r(1),c=r(4);let h=class{constructor(e){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==e)throw new Error("tokenSource cannot be null");this._tokenSource=e}get tokenSource(){return this._tokenSource}set tokenSource(e){this._tokenSource=e,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(e){}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}consume(){let e;if(e=this.p>=0&&(this.fetchedEOF?this.p=0);let t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t=this.tokens.length)throw new RangeError("token index "+e+" out of range 0.."+(this.tokens.length-1));return this.tokens[e]}getRange(e,t){if(e<0||t<0)return[];this.lazyInit();let r=new Array;t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<=t;n++){let e=this.tokens[n];if(e.type===c.Token.EOF)break;r.push(e)}return r}LA(e){let t=this.LT(e);return t?t.type:c.Token.INVALID_TYPE}tryLB(e){if(!(this.p-e<0))return this.tokens[this.p-e]}LT(e){let t=this.tryLT(e);if(void 0===t)throw new RangeError("requested lookback index out of range");return t}tryLT(e){if(this.lazyInit(),0===e)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(e,t,r){if(this.lazyInit(),void 0===e)return o(void 0===t&&void 0===r),this.tokens;if(void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===r)return this.tokens.slice(e,t+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(e,t+1);return i=i.filter(e=>n.has(e.type)),i}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.size)return this.size-1;let r=this.tokens[e];for(;r.channel!==t;){if(r.type===c.Token.EOF)return e;e++,this.sync(e),r=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(this.sync(e),e>=this.size)return this.size-1;for(;e>=0;){let r=this.tokens[e];if(r.type===c.Token.EOF||r.channel===t)return e;e--}return e}getHiddenTokensToRight(e,t=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(e+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=e+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,t)}getHiddenTokensToLeft(e,t=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));if(0===e)return[];let r=this.previousTokenOnChannel(e-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===e-1)return[];let n=r+1,i=e-1;return this.filterForChannel(n,i,t)}filterForChannel(e,t,r){let n=new Array;for(let i=e;i<=t;i++){let e=this.tokens[i];-1===r?e.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(e):e.channel===r&&n.push(e)}return n}get sourceName(){return this.tokenSource.sourceName}getText(e){void 0===e?e=a.Interval.of(0,this.size-1):e instanceof a.Interval||(e=e.sourceInterval);let t=e.a,r=e.b;if(t<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let e=t;e<=r;e++){let t=this.tokens[e];if(t.type===c.Token.EOF)break;n+=t.text}return n.toString()}getTextFromRange(e,t){return this.isToken(e)&&this.isToken(t)?this.getText(a.Interval.of(e.tokenIndex,t.tokenIndex)):""}fill(){this.lazyInit();for(;;){if(this.fetch(1e3)<1e3)return}}isWritableToken(e){return e instanceof s.CommonToken}isToken(e){return e instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),t.BufferedTokenStream=h},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(56),s=r(1),a=r(4);let l=class{constructor(e,t){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==e)throw new Error("tokens cannot be null");this.tokens=e,this._sourceName=t}get charPositionInLine(){if(this.i0){let e=this.tokens[this.tokens.length-1],t=e.text;if(null!=t){let e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.charPositionInLine+e.stopIndex-e.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let e=-1;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1].stopIndex;-1!==t&&(e=t+1)}let t=Math.max(-1,e-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,e,t,this.line,this.charPositionInLine)}return this.eofToken}let e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===a.Token.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i0){let e=this.tokens[this.tokens.length-1],t=e.line,r=e.text;if(null!=r)for(let e=0;e0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let e=this.inputStream;return null!=e?e.sourceName:"List"}set tokenFactory(e){this._factory=e}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),t.ListTokenSource=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e.message),this.cause=e,this.stack=e.stack}getCause(){return this.cause}}t.ParseCancellationException=n},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(17),s=r(8),a=r(23),l=r(19),u=r(44),c=r(93),h=r(83),d=r(1),p=r(1),f=r(32),m=r(33),g=r(3),_=r(59),y=r(4);let N=class e extends f.Parser{constructor(t,r,n,i,o){if(super(t instanceof e?t.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,t instanceof e){let e=t;this._grammarFileName=e._grammarFileName,this._atn=e._atn,this.pushRecursionContextStates=e.pushRecursionContextStates,this._ruleNames=e._ruleNames,this._vocabulary=e._vocabulary,this.interpreter=new m.ParserATNSimulator(this._atn,this)}else{r=r,n=n,i=i,this._grammarFileName=t,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let e of i.states)e instanceof _.StarLoopEntryState&&e.precedenceRuleDecision&&this.pushRecursionContextStates.set(e.stateNumber);this.interpreter=new m.ParserATNSimulator(i,this)}}reset(e){void 0===e?super.reset():super.reset(e),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(e){let t=this._atn.ruleToStartState[e];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,e),t.isPrecedenceRule?this.enterRecursionRule(this._rootContext,t.stateNumber,e,0):this.enterRule(this._rootContext,t.stateNumber,e);;){let e=this.atnState;switch(e.stateType){case s.ATNStateType.RULE_STOP:if(this._ctx.isEmpty){if(t.isPrecedenceRule){let e=this._ctx,t=this._parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this._rootContext}this.visitRuleStopState(e);break;default:try{this.visitState(e)}catch(t){if(!(t instanceof g.RecognitionException))throw t;this.state=this._atn.ruleToStopState[e.ruleIndex].stateNumber,this.context.exception=t,this.errorHandler.reportError(this,t),this.recover(t)}}}}enterRecursionRule(e,t,r,n){this._parentContextStack.push([this._ctx,e.invokingState]),super.enterRecursionRule(e,t,r,n)}get atnState(){return this._atn.states[this.state]}visitState(e){let t=1;e.numberOfTransitions>1&&(t=this.visitDecisionState(e));let r=e.transition(t-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(e.stateNumber)&&!(r.target instanceof h.LoopEndState)){let t=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(t[0],t[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[e.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),y.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let t=r.target,n=t.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,e.stateNumber,n);t.isPrecedenceRule?this.enterRecursionRule(i,t.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let e=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(e){let t;this.errorHandler.sync(this);let r=e.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this._input,r,this._ctx):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0),t}createInterpreterRuleContext(e,t,r){return new c.InterpreterRuleContext(r,e,t)}visitRuleStopState(e){if(this._atn.ruleToStartState[e.ruleIndex].isPrecedenceRule){let e=this._parentContextStack.pop();this.unrollRecursionContexts(e[0]),this.state=e[1]}else this.exitRule();let t=this._atn.states[this.state].transition(0);this.state=t.followState.stateNumber}addDecisionOverride(e,t,r){this.overrideDecision=e,this.overrideDecisionInputIndex=t,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(e){let t=this._input.index;if(this.errorHandler.recover(this,e),this._input.index===t){let t=e.getOffendingToken();if(!t)throw new Error("Expected exception to have an offending token");let r=t.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(e instanceof u.InputMismatchException){let r=e.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=y.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,t.text,y.Token.DEFAULT_CHANNEL,-1,-1,t.line,t.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{t.tokenSource;let e=this.tokenFactory.create(n,y.Token.INVALID_TYPE,t.text,y.Token.DEFAULT_CHANNEL,-1,-1,t.line,t.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([d.NotNull],N.prototype,"_vocabulary",void 0),n([p.Override],N.prototype,"reset",null),n([p.Override],N.prototype,"atn",null),n([p.Override],N.prototype,"vocabulary",null),n([p.Override],N.prototype,"ruleNames",null),n([p.Override],N.prototype,"grammarFileName",null),n([p.Override],N.prototype,"enterRecursionRule",null),N=n([i(1,d.NotNull)],N),t.ParserInterpreter=N},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(2);class s extends o.ParserRuleContext{constructor(e,t,r){void 0!==r?super(t,r):super(),this._ruleIndex=e}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),t.InterpreterRuleContext=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.Chunk=class{}},function(e,t,r){"use strict";(function(e){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(152),s=r(7),a=r(46),l=r(153),u=r(154),c=r(155),h=r(1),d=r(156),p=r(33),f=r(157),m=r(28),g=r(85);class _ extends p.ParserATNSimulator{constructor(e){super(e.interpreter.atn,e),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let e=0;ethis.decisions[r].SLL_MaxLook&&(this.decisions[r].SLL_MaxLook=u,this.decisions[r].SLL_MaxLookEvent=new d.LookaheadEventInfo(r,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let e=this._llStopIndex-this._startIndex+1;this.decisions[r].LL_TotalLook+=e,this.decisions[r].LL_MinLook=0===this.decisions[r].LL_MinLook?e:Math.min(this.decisions[r].LL_MinLook,e),e>this.decisions[r].LL_MaxLook&&(this.decisions[r].LL_MaxLook=e,this.decisions[r].LL_MaxLookEvent=new d.LookaheadEventInfo(r,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(e,t,r,n){let i=super.getStartState(e,t,r,n);return this.currentState=i,i}computeStartState(e,t,r){let n=super.computeStartState(e,t,r);return this.currentState=n,n}computeReachSet(e,t,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(e,t,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,t,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(e,t){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(e,t);if(null!=r&&(this.currentState=new g.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===a.ATNSimulator.ERROR)){let t=new g.SimulatorState(this.currentState.outerContext,e,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,t,this._input,this._startIndex,this._input.index))}return r}computeTargetState(e,t,r,n,i,o){let s=super.computeTargetState(e,t,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(e,t,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(e,t,r);if(!(e instanceof m.SemanticContext.PrecedencePredicate)){let t=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new f.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,t,e,n,r))}return n}reportContextSensitivity(e,t,r,n,i){if(void 0===this._input)throw new Error("Invalid state");t!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new l.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(e,t,r,n,i)}reportAttemptingFullContext(e,t,r,n,i){this.conflictingAltResolvedBySLL=null!=t?t.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(e,t,r,n,i)}reportAmbiguity(e,t,r,n,i,a,u){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=a?a.nextSetBit(0):u.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==s.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new l.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new o.AmbiguityInfo(this.currentDecision,this.currentState,a,this._input,r,n)),super.reportAmbiguity(e,t,r,n,i,a,u)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}n([h.Override,i(0,h.NotNull)],_.prototype,"adaptivePredict",null),n([h.Override],_.prototype,"getStartState",null),n([h.Override],_.prototype,"computeStartState",null),n([h.Override],_.prototype,"computeReachSet",null),n([h.Override],_.prototype,"getExistingTargetState",null),n([h.Override],_.prototype,"computeTargetState",null),n([h.Override],_.prototype,"evalSemanticContextImpl",null),n([h.Override],_.prototype,"reportContextSensitivity",null),n([h.Override],_.prototype,"reportAttemptingFullContext",null),n([h.Override,i(0,h.NotNull),i(5,h.NotNull),i(6,h.NotNull)],_.prototype,"reportAmbiguity",null),t.ProfilingATNSimulator=_}).call(this,r(35))},function(e,t,r){"use strict";t.extend=function(e){var t,r,i,o,s=Array.prototype.slice.call(arguments,1);for(t=0,r=s.length;t=0;--n){var i=this.tryEntries[n],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(a&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:R(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(51).default,i=r(101);e.exports=function(e){var t=i(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(51).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(10),o=r(1),s=r(20);class a{constructor(e){this.p=0,this.data=e,this.n=e.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+e-1)}LT(e){return this.LA(e)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(e){}seek(e){if(e<=this.p)this.p=e;else for(e=Math.min(e,this.n);this.p=this.n&&(r=this.n-1);let n=r-t+1;return t>=this.n?"":this.data.substr(t,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),t.ANTLRInputStream=a},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,l=s(e),u=1;u=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(5),s=r(15);class a{hashCode(e){return null==e?0:"string"==typeof e||"number"==typeof e?o.MurmurHash.hashCode([e]):s.ObjectEqualityComparator.INSTANCE.hashCode(e)}equals(e,t){return null==e?null==t:"string"==typeof e||"number"==typeof e?e===t:s.ObjectEqualityComparator.INSTANCE.equals(e,t)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),t.DefaultEqualityComparator=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(75),s=r(1),a=r(16);let l=class extends o.DFASerializer{constructor(e){super(e,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(e){return"'"+String.fromCodePoint(e)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),t.LexerDFASerializer=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(53),s=r(22),a=r(45),l=r(23),u=r(24),c=r(1),h=r(60),d=r(15),p=r(13),f=r(39),m=r(62),g=r(4),_=r(79);let y=class e{constructor(e){this.atn=e}getDecisionLookahead(t){if(null==t)return;let r=new Array(t.numberOfTransitions);for(let n=0;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(43),s=r(110),a=r(5),l=r(1);let u=class e{constructor(e){this._lexerActions=e;let t=a.MurmurHash.initialize();for(let r of e)t=a.MurmurHash.update(t,r);this.cachedHashCode=a.MurmurHash.finish(t,e.length)}static append(t,r){if(!t)return new e([r]);let n=t._lexerActions.slice(0);return n.push(r),new e(n)}fixOffsetBeforeMatch(t){let r;for(let e=0;e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);let a=class e{constructor(e,t){this._offset=e,this._action=t}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(e){this._action.execute(e)}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this._offset),e=o.MurmurHash.update(e,this._action),o.MurmurHash.finish(e,2)}equals(t){return t===this||t instanceof e&&(this._offset===t._offset&&this._action.equals(t._action))}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),t.LexerIndexedCustomAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(37),o=r(1);class s extends i.ATNConfigSet{constructor(e,t){null!=e&&null!=t?super(e,t):super()}clone(e){let t=new s(this,e);return!e&&this.isReadOnly&&t.addAll(this),t}getKey(e){return{state:0,alt:e.hashCode()}}canMerge(e,t,r){return e.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),t.OrderedATNConfigSet=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(49),s=r(1);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),t.BasicBlockStartState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),t.BlockEndState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(21);let a=class extends s.Transition{constructor(e,t=-1){super(e),this._outermostPrecedenceReturn=t}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(e,t,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),t.EpsilonTransition=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(e){this._channel=e}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(e){e.channel=this._channel}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),e=o.MurmurHash.update(e,this._channel),o.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof a&&this._channel===e._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerChannelAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(e,t){this._ruleIndex=e,this._actionIndex=t}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(e){e.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),e=o.MurmurHash.update(e,this._ruleIndex),e=o.MurmurHash.update(e,this._actionIndex),o.MurmurHash.finish(e,3)}equals(e){return e===this||e instanceof a&&(this._ruleIndex===e._ruleIndex&&this._actionIndex===e._actionIndex)}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),t.LexerCustomAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(e){this._mode=e}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(e){e.mode(this._mode)}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),e=o.MurmurHash.update(e,this._mode),o.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof a&&this._mode===e._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerModeAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(e){e.more()}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),o.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"more"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerMoreAction=a,function(e){e.INSTANCE=new e}(a=t.LexerMoreAction||(t.LexerMoreAction={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(e){e.popMode()}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),o.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"popMode"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerPopModeAction=a,function(e){e.INSTANCE=new e}(a=t.LexerPopModeAction||(t.LexerPopModeAction={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(e){this._mode=e}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(e){e.pushMode(this._mode)}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),e=o.MurmurHash.update(e,this._mode),o.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof a&&this._mode===e._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerPushModeAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(e){e.skip()}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),o.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"skip"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerSkipAction=a,function(e){e.INSTANCE=new e}(a=t.LexerSkipAction||(t.LexerSkipAction={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(5),s=r(1);class a{constructor(e){this._type=e}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(e){e.type=this._type}hashCode(){let e=o.MurmurHash.initialize();return e=o.MurmurHash.update(e,this.actionType),e=o.MurmurHash.update(e,this._type),o.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof a&&this._type===e._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),t.LexerTypeAction=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(11);class s{constructor(e,t){this._conflictedAlts=e,this.exact=t}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(e){return e===this||e instanceof s&&(this.isExact===e.isExact&&o.equals(this.conflictedAlts,e.conflictedAlts))}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),t.ConflictInfo=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(29),o=r(5),s=r(1),a=r(39);!function(e){e[e.SLL=0]="SLL",e[e.LL=1]="LL",e[e.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION"}(t.PredictionMode||(t.PredictionMode={})),function(e){i.Array2DHashMap;class t{AltAndContextConfigEqualityComparator(){}hashCode(e){let t=o.MurmurHash.initialize(7);return t=o.MurmurHash.update(t,e.state.stateNumber),t=o.MurmurHash.update(t,e.context),t=o.MurmurHash.finish(t,2),t}equals(e,t){return e===t||null!=e&&null!=t&&(e.state.stateNumber===t.state.stateNumber&&e.context.equals(t.context))}}t.INSTANCE=new t,n([s.Override],t.prototype,"hashCode",null),n([s.Override],t.prototype,"equals",null),e.hasConfigInRuleStopState=function(e){for(let t of e)if(t.state instanceof a.RuleStopState)return!0;return!1},e.allConfigsInRuleStopStates=function(e){for(let t of e)if(!(t.state instanceof a.RuleStopState))return!1;return!0}}(t.PredictionMode||(t.PredictionMode={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(49),s=r(1);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),t.PlusBlockStartState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(25),s=r(1);class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),t.PlusLoopbackState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(53),s=r(1),a=r(28);let l=class extends o.AbstractPredicateTransition{constructor(e,t){super(e),this.precedence=t}get serializationType(){return 10}get isEpsilon(){return!0}matches(e,t,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),t.PrecedencePredicateTransition=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(24),s=r(1),a=r(21);let l=class extends a.Transition{constructor(e,t,r){super(e),this.from=t,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(e,t,r){return e>=this.from&&e<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),t.RangeTransition=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),t.RuleStartState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(49),s=r(1);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),t.StarBlockStartState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(17),o=r(8),s=r(1);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),t.StarLoopbackState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8),o=r(25),s=r(1);class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),t.TokensStartState=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const n=r(5);class i{constructor(e,t,r,n){this.data=new Uint32Array(4),this.data[0]=e,this.data[1]=t,this.data[2]=r,this.data[3]=n}static fromString(e){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(e))throw new Error("Incorrectly formatted UUID");let t=e.split("-"),r=parseInt(t[0],16),n=(parseInt(t[1],16)<<16>>>0)+parseInt(t[2],16),o=(parseInt(t[3],16)<<16>>>0)+parseInt(t[4].substr(0,4),16),s=parseInt(t[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(e){return e===this||e instanceof i&&(this.data[0]===e.data[0]&&this.data[1]===e.data[1]&&this.data[2]===e.data[2]&&this.data[3]===e.data[3])}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}t.UUID=i},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1);let s=class{constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let e=this.atnSimulator.getDecisionInfo(),t=[];for(let r=0;r0&&t.push(r)}return t}getTotalTimeInPrediction(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.timeInPrediction;return t}getTotalSLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.SLL_TotalLook;return t}getTotalLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.LL_TotalLook;return t}getTotalSLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.SLL_ATNTransitions;return t}getTotalLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.LL_ATNTransitions;return t}getTotalATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let r of e)t+=r.SLL_ATNTransitions,t+=r.LL_ATNTransitions;return t}getDFASize(e){if(e){return this.atnSimulator.atn.decisionToDFA[e].states.size}{let e=0,t=this.atnSimulator.atn.decisionToDFA;for(let r=0;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(70),s=r(65),a=r(66),l=r(90),u=r(137),c=r(1),h=r(91),d=r(92),p=r(2),f=r(138),m=r(139),g=r(3),_=r(64),y=r(148),N=r(149),v=r(30),x=r(150),E=r(4),S=r(151);class T{constructor(e,t){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=e,this._parser=t}setDelimiters(e,t,r){if(!e)throw new Error("start cannot be null or empty");if(!t)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(e,t,r=0){if("string"==typeof t){let n=this.compile(t,r);return this.matches(e,n)}{let r=new u.MultiMap;return!this.matchImpl(e,t.patternTree,r)}}match(e,t,r=0){if("string"==typeof t){let n=this.compile(t,r);return this.match(e,n)}{let r=new u.MultiMap,n=this.matchImpl(e,t.patternTree,r);return new f.ParseTreeMatch(e,t,r,n)}}compile(e,t){let r=this.tokenize(e),n=new l.ListTokenSource(r),i=new a.CommonTokenStream(n);const s=this._parser;let u,c=new d.ParserInterpreter(s.grammarFileName,s.vocabulary,s.ruleNames,s.getATNWithBypassAlts(),i);try{c.errorHandler=new o.BailErrorStrategy,u=c.parse(t)}catch(e){throw e instanceof h.ParseCancellationException?e.getCause():e instanceof g.RecognitionException?e:e instanceof Error?new T.CannotInvokeStartRule(e):e}if(i.LA(1)!==E.Token.EOF)throw new T.StartRuleDoesNotConsumeFullPattern;return new m.ParseTreePattern(this,e,t,u)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(e,t,r){if(!e)throw new TypeError("tree cannot be null");if(!t)throw new TypeError("patternTree cannot be null");if(e instanceof v.TerminalNode&&t instanceof v.TerminalNode){let n;if(e.symbol.type===t.symbol.type)if(t.symbol instanceof S.TokenTagToken){let n=t.symbol;r.map(n.tokenName,e);const i=n.label;i&&r.map(i,e)}else e.text===t.text||n||(n=e);else n||(n=e);return n}if(e instanceof p.ParserRuleContext&&t instanceof p.ParserRuleContext){let n,i=this.getRuleTagToken(t);if(i){if(e.ruleContext.ruleIndex===t.ruleContext.ruleIndex){r.map(i.ruleName,e);const t=i.label;t&&r.map(t,e)}else n||(n=e);return n}if(e.childCount!==t.childCount)return n||(n=e),n;let o=e.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+e);if(i.length=o[t])throw new Error("tag delimiters out of order in pattern: "+e);if(0===s){let t=e.substring(0,r);n.push(new x.TextChunk(t))}if(s>0&&i[0]>0){let t=e.substring(0,i[0]);n.push(new x.TextChunk(t))}for(let t=0;t=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new N.TagChunk(l,r)),t+10){let t=o[s-1]+this.stop.length;if(t=55296&&e<=56319},t.isLowSurrogate=function(e){return e>=56320&&e<=57343},t.isSupplementaryCodePoint=function(e){return e>=65536}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class n extends Map{constructor(){super()}map(e,t){let r=super.get(e);r||(r=[],super.set(e,r)),r.push(t)}getPairs(){let e=[];return this.forEach((t,r)=>{t.forEach(t=>{e.push([r,t])})}),e}}t.MultiMap=n},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1);let s=class{constructor(e,t,r,n){if(!e)throw new Error("tree cannot be null");if(!t)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=e,this._pattern=t,this._labels=r,this._mismatchedNode=n}get(e){let t=this._labels.get(e);if(t&&0!==t.length)return t[t.length-1]}getAll(e){const t=this._labels.get(e);return t||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),t.ParseTreeMatch=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(67);let a=class{constructor(e,t,r,n){this._matcher=e,this._patternRuleIndex=r,this._pattern=t,this._patternTree=n}match(e){return this._matcher.match(e,this)}matches(e){return this._matcher.match(e,this).succeeded}findAll(e,t){let r=s.XPath.findAll(e,t,this._matcher.parser),n=[];for(let e of r){let t=this.match(e);t.succeeded&&n.push(t)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),t.ParseTreePattern=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(34),i=r(18),o=r(41),s=r(16),a=r(11);class l extends i.Lexer{constructor(e){super(e),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(e,t,r){switch(t){case 4:this.ID_action(e,r)}}ID_action(e,t){switch(t){case 0:let e=this.text;e.charAt(0)===e.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],""),t.XPathLexer=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{syntaxError(e,t,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),t.XPathLexerErrorListener=o},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(26),s=r(31);class a extends s.XPathElement{constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return o.Trees.findAllRuleNodes(e,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),t.XPathRuleAnywhereElement=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(2),o=r(1),s=r(26),a=r(31);class l extends a.XPathElement{constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){let t=[];for(let r of s.Trees.getChildren(e))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(r);return t}}n([o.Override],l.prototype,"evaluate",null),t.XPathRuleElement=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(26),s=r(31);class a extends s.XPathElement{constructor(e,t){super(e),this.tokenType=t}evaluate(e){return o.Trees.findAllTokenNodes(e,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),t.XPathTokenAnywhereElement=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(30),s=r(26),a=r(31);class l extends a.XPathElement{constructor(e,t){super(e),this.tokenType=t}evaluate(e){let t=[];for(let r of s.Trees.getChildren(e))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&t.push(r);return t}}n([i.Override],l.prototype,"evaluate",null),t.XPathTokenElement=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(26),s=r(67),a=r(31);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(e){return this.invert?[]:o.Trees.getDescendants(e)}}n([i.Override],l.prototype,"evaluate",null),t.XPathWildcardAnywhereElement=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1),o=r(26),s=r(67),a=r(31);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(e){let t=[];if(this.invert)return t;for(let r of o.Trees.getChildren(e))t.push(r);return t}}n([i.Override],l.prototype,"evaluate",null),t.XPathWildcardElement=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(1),s=r(4);let a=class{constructor(e,t,r){if(null==e||0===e.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=e,this.bypassTokenType=t,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),t.RuleTagToken=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(94),o=r(1);class s extends i.Chunk{constructor(e,t){if(super(),null==e||0===e.length)throw new Error("tag cannot be null or empty");this._tag=e,this._label=t}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),t.TagChunk=s},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(94),s=r(1);let a=class extends o.Chunk{constructor(e){if(super(),null==e)throw new Error("text cannot be null");this._text=e}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),t.TextChunk=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(36),s=r(1);let a=class extends o.CommonToken{constructor(e,t,r){super(t),this._tokenName=e,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),t.TokenTagToken=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(40),s=r(1);let a=class extends o.DecisionEventInfo{constructor(e,t,r,n,i,o){super(e,t,n,i,o,t.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),t.AmbiguityInfo=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(40),s=r(1);let a=class extends o.DecisionEventInfo{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),t.ContextSensitivityInfo=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1);class o{constructor(e){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=e}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),t.DecisionInfo=o},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(40),s=r(1);let a=class extends o.DecisionEventInfo{constructor(e,t,r,n,i){super(e,t,r,n,i,t.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),t.ErrorInfo=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(40),s=r(1);let a=class extends o.DecisionEventInfo{constructor(e,t,r,n,i,o,s){super(e,t,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),t.LookaheadEventInfo=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(40),s=r(1);let a=class extends o.DecisionEventInfo{constructor(e,t,r,n,i,o,s,a){super(t,e,r,n,i,e.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),t.PredicateEvalInfo=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SELF=0]="SELF",e[e.PARENTS=1]="PARENTS",e[e.CHILDREN=2]="CHILDREN",e[e.ANCESTORS=3]="ANCESTORS",e[e.DESCENDANTS=4]="DESCENDANTS",e[e.SIBLINGS=5]="SIBLINGS",e[e.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",e[e.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",e[e.PRECEEDING=8]="PRECEEDING",e[e.FOLLOWING=9]="FOLLOWING"}(t.Dependents||(t.Dependents={}))},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(23),s=r(1),a=r(9);class l{constructor(e=!0){this.exactOnly=e,this.exactOnly=e}syntaxError(e,t,r,n,i,o){}reportAmbiguity(e,t,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(e,t)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${e.inputStream.getText(a.Interval.of(r,n))}'`;e.notifyErrorListeners(l)}reportAttemptingFullContext(e,t,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(e,t)}, input='${e.inputStream.getText(a.Interval.of(r,n))}'`;e.notifyErrorListeners(s)}reportContextSensitivity(e,t,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(e,t)}, input='${e.inputStream.getText(a.Interval.of(r,n))}'`;e.notifyErrorListeners(s)}getDecisionDescription(e,t){let r=t.decision,n=t.atnStartState.ruleIndex,i=e.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(e,t){if(null!=e)return e;let r=new o.BitSet;for(let e of t)r.set(e.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),t.DiagnosticErrorListener=l},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(18),s=r(41),a=r(1),l=r(1);let u=class extends o.Lexer{constructor(e,t,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=e,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=t,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),t.LexerInterpreter=u},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(7),o=r(1),s=r(2);class a extends s.ParserRuleContext{constructor(e,t){void 0!==t?super(e,t):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(e){this._altNumber=e}}n([o.Override],a.prototype,"altNumber",null),t.RuleContextWithAltNum=a},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.RuleDependency=function(e){return(e,t,r)=>{}}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.RuleVersion=function(e){return(e,t,r)=>{}}},function(e,t,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(9),o=r(1),s=r(4);class a{constructor(e){this.tokens=e,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(e,t=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(t);null!=r&&this.programs.set(t,r.slice(a.MIN_TOKEN_INDEX,e))}deleteProgram(e=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,e)}insertAfter(e,t,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof e?e:e.tokenIndex;let i=new c(this.tokens,n,t),o=this.getProgram(r);i.instructionIndex=o.length,o.push(i)}insertBefore(e,t,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof e?e:e.tokenIndex;let i=new u(this.tokens,n,t),o=this.getProgram(r);i.instructionIndex=o.length,o.push(i)}replaceSingle(e,t){this.replace(e,e,t)}replace(e,t,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof e&&(e=e.tokenIndex),"number"!=typeof t&&(t=t.tokenIndex),e>t||e<0||t<0||t>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${t}(size=${this.tokens.size})`);let i=new h(this.tokens,e,t,r),o=this.getProgram(n);i.instructionIndex=o.length,o.push(i)}delete(e,t,r=a.DEFAULT_PROGRAM_NAME){void 0===t&&(t=e),this.replace(e,t,"",r)}getLastRewriteTokenIndex(e=a.DEFAULT_PROGRAM_NAME){let t=this.lastRewriteTokenIndexes.get(e);return null==t?-1:t}setLastRewriteTokenIndex(e,t){this.lastRewriteTokenIndexes.set(e,t)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){let t=[];return this.programs.set(e,t),t}getText(e,t=a.DEFAULT_PROGRAM_NAME){let r;r=e instanceof i.Interval?e:i.Interval.of(0,this.tokens.size-1),"string"==typeof e&&(t=e);let n=this.programs.get(t),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h=this.tokens.size-1&&u.push(e.text.toString());return u.join("")}reduceToSingleOperationPerIndex(e){for(let t=0;tn.index&&t.index<=n.lastIndex&&(e[t.instructionIndex]=void 0);let o=this.getKindOfOps(e,h,t);for(let t of o){if(t.index>=n.index&&t.lastIndex<=n.lastIndex){e[t.instructionIndex]=void 0;continue}let r=t.lastIndexn.lastIndex;if(null!=t.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${t}`)}else e[t.instructionIndex]=void 0,n.index=Math.min(t.index,n.index),n.lastIndex=Math.max(t.lastIndex,n.lastIndex)}}for(let t=0;t=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),e[t]=void 0}let t=new Map;for(let r of e)if(null!=r){if(null!=t.get(r.index))throw new Error("should only be one op per index");t.set(r.index,r)}return t}catOpText(e,t){let r="",n="";return null!=e&&(r=e.toString()),null!=t&&(n=t.toString()),r+n}getKindOfOps(e,t,r){let n=[];for(let i=0;i'}}n([o.Override],l.prototype,"toString",null),t.RewriteOperation=l;class u extends l{constructor(e,t,r){super(e,t,r)}execute(e){return e.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(e,t,r){super(e,t+1,r)}}class h extends l{constructor(e,t,r,n){super(e,t,n),this.lastIndex=r}execute(e){return null!=this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},function(e,t,r){"use strict";var n=r(166);function i(e){if("undefined"!=typeof JSON){var t,r,n,i=[];for(t=0,r=e.length;t1?arguments[1]:{},i={},o={start:Le},s=Le,a=function(e){return{type:"messageFormatPattern",elements:e,location:Ce()}},l=function(e){var t,r,n,i,o,s="";for(t=0,n=e.length;tEe&&(Ee=Ne,Se=[]),Se.push(e))}function Re(t,r,n,i){return null!==r&&function(e){var t=1;for(e.sort((function(e,t){return e.descriptiont.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(r,n),r,n,i)}function Le(){return Ie()}function Ie(){var e,t,r;for(e=Ne,t=[],r=we();r!==i;)t.push(r),r=we();return t!==i&&(ve=e,t=a(t)),e=t}function we(){var e;return(e=ke())===i&&(e=Me()),e}function Pe(){var e,r,n,o,s,a;if(e=Ne,r=[],n=Ne,(o=Ke())!==i&&(s=Je())!==i&&(a=Ke())!==i?n=o=[o,s,a]:(Ne=n,n=i),n!==i)for(;n!==i;)r.push(n),n=Ne,(o=Ke())!==i&&(s=Je())!==i&&(a=Ke())!==i?n=o=[o,s,a]:(Ne=n,n=i);else r=i;return r!==i&&(ve=e,r=l(r)),(e=r)===i&&(e=Ne,e=(r=Ye())!==i?t.substring(e,Ne):r),e}function ke(){var e,t;return e=Ne,(t=Pe())!==i&&(ve=e,t=u(t)),e=t}function De(){var e,r,n;if((e=Xe())===i){if(e=Ne,r=[],c.test(t.charAt(Ne))?(n=t.charAt(Ne),Ne++):(n=i,0===Te&&Ae(h)),n!==i)for(;n!==i;)r.push(n),c.test(t.charAt(Ne))?(n=t.charAt(Ne),Ne++):(n=i,0===Te&&Ae(h));else r=i;e=r!==i?t.substring(e,Ne):r}return e}function Me(){var e,r,n,o,s,a,l;return e=Ne,123===t.charCodeAt(Ne)?(r=d,Ne++):(r=i,0===Te&&Ae(p)),r!==i&&Ke()!==i&&(n=De())!==i&&Ke()!==i?(o=Ne,44===t.charCodeAt(Ne)?(s=f,Ne++):(s=i,0===Te&&Ae(m)),s!==i&&(a=Ke())!==i&&(l=Fe())!==i?o=s=[s,a,l]:(Ne=o,o=i),o===i&&(o=null),o!==i&&(s=Ke())!==i?(125===t.charCodeAt(Ne)?(a=g,Ne++):(a=i,0===Te&&Ae(_)),a!==i?(ve=e,e=r=y(n,o)):(Ne=e,e=i)):(Ne=e,e=i)):(Ne=e,e=i),e}function Fe(){var e;return(e=je())===i&&(e=Ue())===i&&(e=ze())===i&&(e=He()),e}function je(){var e,r,n,o,s,a;return e=Ne,t.substr(Ne,6)===N?(r=N,Ne+=6):(r=i,0===Te&&Ae(v)),r===i&&(t.substr(Ne,4)===x?(r=x,Ne+=4):(r=i,0===Te&&Ae(E)),r===i&&(t.substr(Ne,4)===S?(r=S,Ne+=4):(r=i,0===Te&&Ae(T)))),r!==i&&Ke()!==i?(n=Ne,44===t.charCodeAt(Ne)?(o=f,Ne++):(o=i,0===Te&&Ae(m)),o!==i&&(s=Ke())!==i&&(a=Je())!==i?n=o=[o,s,a]:(Ne=n,n=i),n===i&&(n=null),n!==i?(ve=e,e=r=C(r,n)):(Ne=e,e=i)):(Ne=e,e=i),e}function Ue(){var e,r,n,o;return e=Ne,t.substr(Ne,6)===b?(r=b,Ne+=6):(r=i,0===Te&&Ae(O)),r!==i&&Ke()!==i?(44===t.charCodeAt(Ne)?(n=f,Ne++):(n=i,0===Te&&Ae(m)),n!==i&&Ke()!==i&&(o=Ge())!==i?(ve=e,e=r=A(o)):(Ne=e,e=i)):(Ne=e,e=i),e}function ze(){var e,r,n,o;return e=Ne,t.substr(Ne,13)===R?(r=R,Ne+=13):(r=i,0===Te&&Ae(L)),r!==i&&Ke()!==i?(44===t.charCodeAt(Ne)?(n=f,Ne++):(n=i,0===Te&&Ae(m)),n!==i&&Ke()!==i&&(o=Ge())!==i?(ve=e,e=r=I(o)):(Ne=e,e=i)):(Ne=e,e=i),e}function He(){var e,r,n,o,s;if(e=Ne,t.substr(Ne,6)===w?(r=w,Ne+=6):(r=i,0===Te&&Ae(P)),r!==i)if(Ke()!==i)if(44===t.charCodeAt(Ne)?(n=f,Ne++):(n=i,0===Te&&Ae(m)),n!==i)if(Ke()!==i){if(o=[],(s=qe())!==i)for(;s!==i;)o.push(s),s=qe();else o=i;o!==i?(ve=e,e=r=k(o)):(Ne=e,e=i)}else Ne=e,e=i;else Ne=e,e=i;else Ne=e,e=i;else Ne=e,e=i;return e}function Be(){var e,r,n,o;return e=Ne,r=Ne,61===t.charCodeAt(Ne)?(n=D,Ne++):(n=i,0===Te&&Ae(M)),n!==i&&(o=Xe())!==i?r=n=[n,o]:(Ne=r,r=i),(e=r!==i?t.substring(e,Ne):r)===i&&(e=Je()),e}function qe(){var e,r,n,o,s;return e=Ne,Ke()!==i&&(r=Be())!==i&&Ke()!==i?(123===t.charCodeAt(Ne)?(n=d,Ne++):(n=i,0===Te&&Ae(p)),n!==i&&Ke()!==i&&(o=Ie())!==i&&Ke()!==i?(125===t.charCodeAt(Ne)?(s=g,Ne++):(s=i,0===Te&&Ae(_)),s!==i?(ve=e,e=F(r,o)):(Ne=e,e=i)):(Ne=e,e=i)):(Ne=e,e=i),e}function Ve(){var e,r,n;return e=Ne,t.substr(Ne,7)===j?(r=j,Ne+=7):(r=i,0===Te&&Ae(U)),r!==i&&Ke()!==i&&(n=Xe())!==i?(ve=e,e=r=z(n)):(Ne=e,e=i),e}function Ge(){var e,t,r,n;if(e=Ne,(t=Ve())===i&&(t=null),t!==i)if(Ke()!==i){if(r=[],(n=qe())!==i)for(;n!==i;)r.push(n),n=qe();else r=i;r!==i?(ve=e,e=t=H(t,r)):(Ne=e,e=i)}else Ne=e,e=i;else Ne=e,e=i;return e}function Ye(){var e,r;if(Te++,e=[],q.test(t.charAt(Ne))?(r=t.charAt(Ne),Ne++):(r=i,0===Te&&Ae(V)),r!==i)for(;r!==i;)e.push(r),q.test(t.charAt(Ne))?(r=t.charAt(Ne),Ne++):(r=i,0===Te&&Ae(V));else e=i;return Te--,e===i&&(r=i,0===Te&&Ae(B)),e}function Ke(){var e,r,n;for(Te++,e=Ne,r=[],n=Ye();n!==i;)r.push(n),n=Ye();return e=r!==i?t.substring(e,Ne):r,Te--,e===i&&(r=i,0===Te&&Ae(G)),e}function We(){var e;return Y.test(t.charAt(Ne))?(e=t.charAt(Ne),Ne++):(e=i,0===Te&&Ae(K)),e}function $e(){var e;return W.test(t.charAt(Ne))?(e=t.charAt(Ne),Ne++):(e=i,0===Te&&Ae($)),e}function Xe(){var e,r,n,o,s,a;if(e=Ne,48===t.charCodeAt(Ne)?(r=X,Ne++):(r=i,0===Te&&Ae(Q)),r===i){if(r=Ne,n=Ne,J.test(t.charAt(Ne))?(o=t.charAt(Ne),Ne++):(o=i,0===Te&&Ae(Z)),o!==i){for(s=[],a=We();a!==i;)s.push(a),a=We();s!==i?n=o=[o,s]:(Ne=n,n=i)}else Ne=n,n=i;r=n!==i?t.substring(r,Ne):n}return r!==i&&(ve=e,r=ee(r)),e=r}function Qe(){var e,r,n,o,s,a,l,u;return te.test(t.charAt(Ne))?(e=t.charAt(Ne),Ne++):(e=i,0===Te&&Ae(re)),e===i&&(e=Ne,t.substr(Ne,2)===ne?(r=ne,Ne+=2):(r=i,0===Te&&Ae(ie)),r!==i&&(ve=e,r=oe()),(e=r)===i&&(e=Ne,t.substr(Ne,2)===se?(r=se,Ne+=2):(r=i,0===Te&&Ae(ae)),r!==i&&(ve=e,r=le()),(e=r)===i&&(e=Ne,t.substr(Ne,2)===ue?(r=ue,Ne+=2):(r=i,0===Te&&Ae(ce)),r!==i&&(ve=e,r=he()),(e=r)===i&&(e=Ne,t.substr(Ne,2)===de?(r=de,Ne+=2):(r=i,0===Te&&Ae(pe)),r!==i&&(ve=e,r=fe()),(e=r)===i&&(e=Ne,t.substr(Ne,2)===me?(r=me,Ne+=2):(r=i,0===Te&&Ae(ge)),r!==i?(n=Ne,o=Ne,(s=$e())!==i&&(a=$e())!==i&&(l=$e())!==i&&(u=$e())!==i?o=s=[s,a,l,u]:(Ne=o,o=i),(n=o!==i?t.substring(n,Ne):o)!==i?(ve=e,e=r=_e(n)):(Ne=e,e=i)):(Ne=e,e=i)))))),e}function Je(){var e,t,r;if(e=Ne,t=[],(r=Qe())!==i)for(;r!==i;)t.push(r),r=Qe();else t=i;return t!==i&&(ve=e,t=ye(t)),e=t}if((r=s())!==i&&Ne===t.length)return r;throw r!==i&&Ne=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&o.arrIndexOf.call(s,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+s.join('", "')+'"')},l.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(l.defaultLocale);var t,r,n,i,o=l.__localeData__;for(t=0,r=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+a.join('", "')+'"')},l.prototype._selectUnits=function(e){var t,r,n,i=s.filter((function(e){return e.indexOf("-short")<1}));for(t=0,r=i.length;t{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){let{name:t,message:r}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack}}return e}function a(e){return e instanceof Error&&"Canceled"===e.name&&"Canceled"===e.message}var l;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const r of e)if(t(r))return!0;return!1},e.find=function(e,t){for(const r of e)if(t(r))return r},e.filter=function*(e,t){for(const r of e)t(r)&&(yield r)},e.map=function*(e,t){for(const r of e)yield t(r)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,r){let n=r;for(const r of e)n=t(n,r);return n},e.slice=function*(e,t,r=e.length){for(t<0&&(t+=e.length),r<0?r+=e.length:r>e.length&&(r=e.length);ti}]},e.equals=function(e,t,r=((e,t)=>e===t)){const n=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=n.next(),t=i.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!r(e.value,t.value))return!1}}}(l||(l={}));let u=null;function c(e){u&&u.markTracked(e)}function h(e){return u?(u.trackDisposable(e),e):e}class d extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function p(e){if(l.is(e)){let t=[];for(const r of e)if(r){c(r);try{r.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new d(t);return Array.isArray(e)?[]:e}if(e)return c(e),e.dispose(),e}function f(...e){return e.forEach(c),function(e){const t=h({dispose:()=>{c(t),e()}});return t}(()=>p(e))}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e),this._isDisposed?m.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}m.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new m,h(this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});var _=r(6);function y(e){const t=[];for(const r of function(e){let t=[],r=Object.getPrototypeOf(e);for(;Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return t}(e))"function"==typeof e[r]&&t.push(r);return t}function N(e,t){const r=e=>function(){const r=Array.prototype.slice.call(arguments,0);return t(e,r)};let n={};for(const t of e)n[t]=r(t);return n}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let r=String(++this._lastSentReq);return new Promise((n,i)=>{this._pendingReplies[r]={resolve:n,reject:i},this._send({vsWorker:this._workerId,req:r,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&(e=new Error,e.name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void r.reject(e)}return void r.resolve(t.res)}let t=e,r=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:r,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=s(e.detail)),this._send({vsWorker:this._workerId,seq:r,res:void 0,err:s(e)})})}_send(e){let t=[];if(e.req){const r=e;for(let e=0;e{e(t,r)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,r,n){this._protocol.setWorkerId(e);const i=N(n,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(y(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([r],r=>{this._requestHandler=r.create(i),this._requestHandler?e(y(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}class E{constructor(e,t,r,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=r,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function S(e){return 55296<=e&&e<=56319}function T(e){return 56320<=e&&e<=57343}function C(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class b{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return b._INSTANCE||(b._INSTANCE=new b),b._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,r=t.length/3;let n=1;for(;n<=r;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function O(e,t){return(t<<5)-t+e|0}function A(e,t){t=O(149417,t);for(let r=0,n=e.length;r>>n)>>>0}function L(e,t=0,r=e.byteLength,n=0){for(let i=0;ie.toString(16).padStart(2,"0")).join(""):function(e,t,r="0"){for(;e.length>>0).toString(16),t/4)}b._INSTANCE=null;class w{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const r=this._buff;let n,i,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(n=s,i=-1,s=0):(n=e.charCodeAt(0),i=0);;){let a=n;if(S(n)){if(!(i+1>>6,e[t++]=128|(63&r)>>>0):r<65536?(e[t++]=224|(61440&r)>>>12,e[t++]=128|(4032&r)>>>6,e[t++]=128|(63&r)>>>0):(e[t++]=240|(1835008&r)>>>18,e[t++]=128|(258048&r)>>>12,e[t++]=128|(4032&r)>>>6,e[t++]=128|(63&r)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),I(this._h0)+I(this._h1)+I(this._h2)+I(this._h3)+I(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,L(this._buff,this._buffLen),this._buffLen>56&&(this._step(),L(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=w._bigBlock32,t=this._buffDV;for(let r=0;r<64;r+=4)e.setUint32(r,t.getUint32(r,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,R(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let r,n,i,o=this._h0,s=this._h1,a=this._h2,l=this._h3,u=this._h4;for(let t=0;t<80;t++)t<20?(r=s&a|~s&l,n=1518500249):t<40?(r=s^a^l,n=1859775393):t<60?(r=s&a|s&l|a&l,n=2400959708):(r=s^a^l,n=3395469782),i=R(o,5)+r+u+n+e.getUint32(4*t,!1)&4294967295,u=l,l=a,a=R(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+u&4294967295}}w._bigBlock32=new DataView(new ArrayBuffer(320));class P{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let r=0,n=e.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new E(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class j{constructor(e,t,r=null){this.ContinueProcessingPredicate=r;const[n,i,o]=j._getElements(e),[s,a,l]=j._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(j._isStringArray(t)){const e=new Int32Array(t.length);for(let r=0,n=t.length;r=e&&n>=r&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||r>n){let i;return r<=n?(D.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new E(e,0,r,n-r+1)]):e<=t?(D.Assert(r===n+1,"modifiedStart should only be one more than modifiedEnd"),i=[new E(e,t-e+1,r,0)]):(D.Assert(e===t+1,"originalStart should only be one more than originalEnd"),D.Assert(r===n+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,r,n,o,s,i),l=o[0],u=s[0];if(null!==a)return a;if(!i[0]){const o=this.ComputeDiffRecursive(e,l,r,u,i);let s=[];return s=i[0]?[new E(l+1,t-(l+1)+1,u+1,n-(u+1)+1)]:this.ComputeDiffRecursive(l+1,t,u+1,n,i),this.ConcatenateChanges(o,s)}return[new E(e,t-e+1,r,n-r+1)]}WALKTRACE(e,t,r,n,i,o,s,a,l,u,c,h,d,p,f,m,g,_){let y=null,N=null,v=new F,x=t,S=r,T=d[0]-m[0]-n,C=-1073741824,b=this.m_forwardHistory.length-1;do{const t=T+e;t===x||t=0&&(e=(l=this.m_forwardHistory[b])[0],x=1,S=l.length-1)}while(--b>=-1);if(y=v.getReverseChanges(),_[0]){let e=d[0]+1,t=m[0]+1;if(null!==y&&y.length>0){const r=y[y.length-1];e=Math.max(e,r.getOriginalEnd()),t=Math.max(t,r.getModifiedEnd())}N=[new E(e,h-e+1,t,f-t+1)]}else{v=new F,x=o,S=s,T=d[0]-m[0]-a,C=1073741824,b=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=T+i;e===x||e=u[e+1]?(p=(c=u[e+1]-1)-T-a,c>C&&v.MarkNextChange(),C=c+1,v.AddOriginalElement(c+1,p+1),T=e+1-i):(p=(c=u[e-1])-T-a,c>C&&v.MarkNextChange(),C=c,v.AddModifiedElement(c+1,p+1),T=e-1-i),b>=0&&(i=(u=this.m_reverseHistory[b])[0],x=1,S=u.length-1)}while(--b>=-1);N=v.getChanges()}return this.ConcatenateChanges(y,N)}ComputeRecursionPoint(e,t,r,n,i,o,s){let a=0,l=0,u=0,c=0,h=0,d=0;e--,r--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(n-r),f=p+1,m=new Int32Array(f),g=new Int32Array(f),_=n-r,y=t-e,N=e-r,v=t-n,x=(y-_)%2==0;m[_]=e,g[y]=t,s[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,T=0;u=this.ClipDiagonalBound(_-S,S,_,f),c=this.ClipDiagonalBound(_+S,S,_,f);for(let e=u;e<=c;e+=2){a=e===u||ep+T&&(p=a,T=l),!x&&Math.abs(e-y)<=S-1&&a>=g[e])return i[0]=a,o[0]=l,r<=g[e]&&S<=1448?this.WALKTRACE(_,u,c,N,y,h,d,v,m,g,a,t,i,l,n,o,x,s):null}const C=(p-e+(T-r)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,C))return s[0]=!0,i[0]=p,o[0]=T,C>0&&S<=1448?this.WALKTRACE(_,u,c,N,y,h,d,v,m,g,a,t,i,l,n,o,x,s):(e++,r++,[new E(e,t-e+1,r,n-r+1)]);h=this.ClipDiagonalBound(y-S,S,y,f),d=this.ClipDiagonalBound(y+S,S,y,f);for(let p=h;p<=d;p+=2){a=p===h||p=g[p+1]?g[p+1]-1:g[p-1],l=a-(p-y)-v;const f=a;for(;a>e&&l>r&&this.ElementsAreEqual(a,l);)a--,l--;if(g[p]=a,x&&Math.abs(p-_)<=S&&a<=m[p])return i[0]=a,o[0]=l,f>=m[p]&&S<=1448?this.WALKTRACE(_,u,c,N,y,h,d,v,m,g,a,t,i,l,n,o,x,s):null}if(S<=1447){let e=new Int32Array(c-u+2);e[0]=_-u+1,M.Copy2(m,u,e,1,c-u+1),this.m_forwardHistory.push(e),e=new Int32Array(d-h+2),e[0]=y-h+1,M.Copy2(g,h,e,1,d-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,u,c,N,y,h,d,v,m,g,a,t,i,l,n,o,x,s)}PrettifyChanges(e){for(let t=0;t0,s=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;t--){const r=e[t];let n=0,i=0;if(t>0){const r=e[t-1];n=r.originalStart+r.originalLength,i=r.modifiedStart+r.modifiedLength}const o=r.originalLength>0,s=r.modifiedLength>0;let a=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let e=1;;e++){const t=r.originalStart-e,u=r.modifiedStart-e;if(tl&&(l=c,a=e)}r.originalStart-=a,r.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,r=e.length;t0&&r>a&&(a=r,l=t,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,r){let n=0;for(let i=0;i=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const r=e+t;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const r=e+t;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,t,r,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(r,n)?1:0)}ConcatenateChanges(e,t){let r=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],r)){const n=new Array(e.length+t.length-1);return M.Copy(e,0,n,0,e.length-1),n[e.length-1]=r[0],M.Copy(t,1,n,e.length,t.length-1),n}{const r=new Array(e.length+t.length);return M.Copy(e,0,r,0,e.length),M.Copy(t,0,r,e.length,t.length),r}}ChangesOverlap(e,t,r){if(D.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),D.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),r[0]=new E(n,i,o,s),!0}return r[0]=null,!1}ClipDiagonalBound(e,t,r,n){if(e>=0&&e=65&&e<=90||e>=97&&e<=122}function G(e,t,r,n){let i="",o=0,s=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u2){const e=i.lastIndexOf(r);-1===e?(i="",o=0):(i=i.slice(0,e),o=i.length-1-i.lastIndexOf(r)),s=u,a=0;continue}if(0!==i.length){i="",o=0,s=u,a=0;continue}}t&&(i+=i.length>0?r+"..":"..",o=2)}else i.length>0?i+=`${r}${e.slice(s+1,u)}`:i=e.slice(s+1,u),o=u-s-1;s=u,a=0}else 46===l&&-1!==a?++a:a=-1}return i}function Y(e,t){if(null===t||"object"!=typeof t)throw new z("pathObject","Object",t);const r=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${n}`:`${r}${e}${n}`:n}const K={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],H(o,"path"),0===o.length)continue}else 0===t.length?o=U.a():(o=U.b["="+t]||U.a(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=t+"\\"));const s=o.length;let a=0,l="",u=!1;const c=o.charCodeAt(0);if(1===s)B(c)&&(a=1,u=!0);else if(B(c))if(u=!0,B(o.charCodeAt(1))){let e=2,t=e;for(;e2&&B(o.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(n){if(t.length>0)break}else if(r=`${o.slice(a)}\\${r}`,n=u,u&&t.length>0)break}return r=G(r,!n,"\\",B),n?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){H(e,"path");const t=e.length;if(0===t)return".";let r,n=0,i=!1;const o=e.charCodeAt(0);if(1===t)return q(o)?"\\":e;if(B(o))if(i=!0,B(e.charCodeAt(1))){let i=2,o=i;for(;i2&&B(e.charCodeAt(2))&&(i=!0,n=3));let s=n0&&B(e.charCodeAt(t-1))&&(s+="\\"),void 0===r?i?"\\"+s:s:i?`${r}\\${s}`:`${r}${s}`},isAbsolute(e){H(e,"path");const t=e.length;if(0===t)return!1;const r=e.charCodeAt(0);return B(r)||t>2&&V(r)&&58===e.charCodeAt(1)&&B(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,r;for(let n=0;n0&&(void 0===t?t=r=i:t+="\\"+i)}if(void 0===t)return".";let n=!0,i=0;if("string"==typeof r&&B(r.charCodeAt(0))){++i;const e=r.length;e>1&&B(r.charCodeAt(1))&&(++i,e>2&&(B(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(t="\\"+t.slice(i))}return K.normalize(t)},relative(e,t){if(H(e,"from"),H(t,"to"),e===t)return"";const r=K.resolve(e),n=K.resolve(t);if(r===n)return"";if((e=r.toLowerCase())===(t=n.toLowerCase()))return"";let i=0;for(;ii&&92===e.charCodeAt(o-1);)o--;const s=o-i;let a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;const u=l-a,c=sc){if(92===t.charCodeAt(a+d))return n.slice(a+d+1);if(2===d)return n.slice(a+d)}s>c&&(92===e.charCodeAt(i+d)?h=d:2===d&&(h=3)),-1===h&&(h=0)}let p="";for(d=i+h+1;d<=o;++d)d!==o&&92!==e.charCodeAt(d)||(p+=0===p.length?"..":"\\..");return a+=h,p.length>0?`${p}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=K.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){const e=t.charCodeAt(2);if(63!==e&&46!==e)return"\\\\?\\UNC\\"+t.slice(2)}}else if(V(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return"\\\\?\\"+t;return e},dirname(e){H(e,"path");const t=e.length;if(0===t)return".";let r=-1,n=0;const i=e.charCodeAt(0);if(1===t)return B(i)?e:".";if(B(i)){if(r=n=1,B(e.charCodeAt(1))){let i=2,o=i;for(;i2&&B(e.charCodeAt(2))?3:2,n=r);let o=-1,s=!0;for(let r=t-1;r>=n;--r)if(B(e.charCodeAt(r))){if(!s){o=r;break}}else s=!1;if(-1===o){if(-1===r)return".";o=r}return e.slice(0,o)},basename(e,t){void 0!==t&&H(t,"ext"),H(e,"path");let r,n=0,i=-1,o=!0;if(e.length>=2&&V(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(r=e.length-1;r>=n;--r){const l=e.charCodeAt(r);if(B(l)){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=a))}return n===i?i=a:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=n;--r)if(B(e.charCodeAt(r))){if(!o){n=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname(e){H(e,"path");let t=0,r=-1,n=0,i=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&V(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(B(t)){if(!o){n=a+1;break}}else-1===i&&(o=!1,i=a+1),46===t?-1===r?r=a:1!==s&&(s=1):-1!==r&&(s=-1)}return-1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},format:Y.bind(null,"\\"),parse(e){H(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=e.length;let n=0,i=e.charCodeAt(0);if(1===r)return B(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(B(i)){if(n=1,B(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,u=e.length-1,c=0;for(;u>=n;--u)if(i=e.charCodeAt(u),B(i)){if(!l){s=u+1;break}}else-1===a&&(l=!1,a=u+1),46===i?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);return-1!==a&&(-1===o||0===c||1===c&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==n?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},W={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:U.a();H(i,"path"),0!==i.length&&(t=`${i}/${t}`,r=47===i.charCodeAt(0))}return t=G(t,!r,"/",q),r?"/"+t:t.length>0?t:"."},normalize(e){if(H(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0===(e=G(e,!t,"/",q)).length?t?"/":r?"./":".":(r&&(e+="/"),t?"/"+e:e)},isAbsolute:e=>(H(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){if(0===e.length)return".";let t;for(let r=0;r0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":W.normalize(t)},relative(e,t){if(H(e,"from"),H(t,"to"),e===t)return"";if((e=W.resolve(e))===(t=W.resolve(t)))return"";const r=e.length,n=r-1,i=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0));let l="";for(a=1+s+1;a<=r;++a)a!==r&&47!==e.charCodeAt(a)||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(H(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0);let r=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){r=t;break}}else n=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename(e,t){void 0!==t&&H(t,"ext"),H(e,"path");let r,n=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(47===l){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=a))}return n===i?i=a:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname(e){H(e,"path");let t=-1,r=0,n=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(47!==a)-1===n&&(i=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format:Y.bind(null,"/"),parse(e){H(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=47===e.charCodeAt(0);let n;r?(t.root="/",n=1):n=0;let i=-1,o=0,s=-1,a=!0,l=e.length-1,u=0;for(;l>=n;--l){const t=e.charCodeAt(l);if(47!==t)-1===s&&(a=!1,s=l+1),46===t?-1===i?i=l:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){o=l+1;break}}if(-1!==s){const n=0===o&&r?1:o;-1===i||0===u||1===u&&i===s-1&&i===o+1?t.base=t.name=e.slice(n,s):(t.name=e.slice(n,i),t.base=e.slice(n,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};W.win32=K.win32=K,W.posix=K.posix=W;"win32"===U.c?K.normalize:W.normalize,"win32"===U.c?K.resolve:W.resolve,"win32"===U.c?K.relative:W.relative,"win32"===U.c?K.dirname:W.dirname,"win32"===U.c?K.basename:W.basename,"win32"===U.c?K.extname:W.extname,"win32"===U.c?K.sep:W.sep;const $=/^\w[\w\d+.-]*$/,X=/^\//,Q=/^\/\//;const J="/",Z=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ee{constructor(e,t,r,n,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==J&&(t=J+t):t=J}return t}(this.scheme,r||""),this.query=n||"",this.fragment=i||"",function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!$.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!X.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Q.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}static isUri(e){return e instanceof ee||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return se(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===r?r=this.authority:null===r&&(r=""),void 0===n?n=this.path:null===n&&(n=""),void 0===i?i=this.query:null===i&&(i=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&o===this.fragment?this:new re(t,r,n,i,o)}static parse(e,t=!1){const r=Z.exec(e);return r?new re(r[2]||"",ue(r[4]||""),ue(r[5]||""),ue(r[7]||""),ue(r[9]||""),t):new re("","","","","")}static file(e){let t="";if(_.d&&(e=e.replace(/\\/g,J)),e[0]===J&&e[1]===J){const r=e.indexOf(J,2);-1===r?(t=e.substring(2),e=J):(t=e.substring(2,r),e=e.substring(r)||J)}return new re("file",t,e,"","")}static from(e){return new re(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return r=_.d&&"file"===e.scheme?ee.file(K.join(se(e,!0),...t)).path:W.join(e.path,...t),e.with({path:r})}toString(e=!1){return ae(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ee)return e;{const t=new re(e);return t._formatted=e.external,t._fsPath=e._sep===te?e.fsPath:null,t}}return e}}const te=_.d?1:void 0;class re extends ee{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=se(this,!1)),this._fsPath}toString(e=!1){return e?ae(this,!0):(this._formatted||(this._formatted=ae(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=te),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ne={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ie(e,t){let r=void 0,n=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=ne[o];void 0!==t?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=t):-1===n&&(n=i)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function oe(e){let t=void 0;for(let r=0;r1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,_.d&&(r=r.replace(/\//g,"\\")),r}function ae(e,t){const r=t?oe:ie;let n="",{scheme:i,authority:o,path:s,query:a,fragment:l}=e;if(i&&(n+=i,n+=":"),(o||"file"===i)&&(n+=J,n+=J),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?n+=r(t,!1):(n+=r(t.substr(0,e),!1),n+=":",n+=r(t.substr(e+1),!1)),n+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?n+=r(o,!1):(n+=r(o.substr(0,e),!1),n+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=r(s,!0)}return a&&(n+="?",n+=r(a,!1)),l&&(n+="#",n+=t?l:ie(l,!1)),n}const le=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ue(e){return e.match(le)?e.replace(le,e=>function e(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)):e}class ce{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ce(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ce.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ce.isBefore(this,e)}static isBefore(e,t){return e.lineNumberr||e===r&&t>n?(this.startLineNumber=r,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=n)}isEmpty(){return he.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return he.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}containsRange(e){return he.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))}strictContainsRange(e){return he.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return he.plusRange(this,e)}static plusRange(e,t){let r,n,i,o;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new he(r,n,i,o)}intersectRanges(e){return he.intersectRanges(this,e)}static intersectRanges(e,t){let r=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn;return rl?(i=l,o=u):i===l&&(o=Math.min(o,u)),r>i||r===i&&n>o?null:new he(r,n,i,o)}equalsRange(e){return he.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return he.getEndPosition(this)}static getEndPosition(e){return new ce(e.endLineNumber,e.endColumn)}getStartPosition(){return he.getStartPosition(this)}static getStartPosition(e){return new ce(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new he(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new he(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return he.collapseToStart(this)}static collapseToStart(e){return new he(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new he(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new he(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}function de(e,t,r,n){return new j(e,t,r).ComputeDiff(n)}class pe{constructor(e){const t=[],r=[];for(let n=0,i=e.length;n0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const o=r.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=de(o,a,i,!0).changes;s&&(l=function(e){if(e.length<=1)return e;const t=[e[0]];let r=t[0];for(let n=1,i=e.length;n1&&s>1;){if(e.charCodeAt(r-2)!==t.charCodeAt(s-2))break;r--,s--}(r>1||s>1)&&this._pushTrimWhitespaceCharChange(n,i+1,1,r,o+1,1,s)}{let r=Ne(e,1),s=Ne(t,1);const a=e.length+1,l=t.length+1;for(;r=0;r--){const t=e.charCodeAt(r);if(32!==t&&9!==t)return r}return-1}(e);return-1===r?t:r+2}function ve(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t255?255:0|e}function Ee(e){return e<0?0:e>4294967295?4294967295:0|e}class Se{constructor(e,t){this.index=e,this.remainder=t}}class Te{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ee(e);const r=this.values,n=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(r.length+i),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Ee(e),t=Ee(t),this.values[e]!==t&&(this.values[e]=t,e-1=r.length)return!1;let i=r.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=Ee(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let r=t;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,r=this.values.length-1,n=0,i=0,o=0;for(;t<=r;)if(n=t+(r-t)/2|0,i=this.prefixSum[n],o=i-this.values[n],e=i))break;t=n+1}return new Se(n,e-o)}}const Ce=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const r of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}();const be={maxLen:1e3,windowSize:15,timeBudget:150};function Oe(e,t,r,n){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=r&&e.lastIndex>=r)return i;if(n>0&&t>n)return null}return null}class Ae{constructor(e){let t=xe(e);this._defaultValue=t,this._asciiMap=Ae._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let r=0;r<256;r++)t[r]=e;return t}set(e,t){let r=xe(t);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Re{constructor(e,t,r){const n=new Uint8Array(e*t);for(let i=0,o=e*t;it&&(t=o),i>r&&(r=i),s>r&&(r=s)}t++,r++;let n=new Re(r,t,0);for(let t=0,r=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let Ie=null;let we=null;class Pe{static _createLink(e,t,r,n,i){let o=i-1;do{const r=t.charCodeAt(o);if(2!==e.get(r))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),r=t.charCodeAt(o);(40===e&&41===r||91===e&&93===r||123===e&&125===r)&&o--}return{range:{startLineNumber:r,startColumn:n+1,endLineNumber:r,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=function(){return null===Ie&&(Ie=new Le([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ie}()){const r=function(){if(null===we){we=new Ae(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t=0?(n+=r?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}ke.INSTANCE=new ke;class De{constructor(e){this.element=e,this.next=De.Undefined,this.prev=De.Undefined}}De.Undefined=new De(void 0);class Me{constructor(){this._first=De.Undefined,this._last=De.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===De.Undefined}clear(){this._first=De.Undefined,this._last=De.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const r=new De(e);if(this._first===De.Undefined)this._first=r,this._last=r;else if(t){const e=this._last;this._last=r,r.prev=e,e.next=r}else{const e=this._first;this._first=r,r.next=e,e.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==De.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==De.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==De.Undefined&&e.next!==De.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===De.Undefined&&e.next===De.Undefined?(this._first=De.Undefined,this._last=De.Undefined):e.next===De.Undefined?(this._last=this._last.prev,this._last.next=De.Undefined):e.prev===De.Undefined&&(this._first=this._first.next,this._first.prev=De.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==De.Undefined;)yield e.element,e=e.next}}const Fe=_.a.performance&&"function"==typeof _.a.performance.now;class je{constructor(e){this._highResolution=Fe&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new je(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?_.a.performance.now():Date.now()}}var Ue;!function(e){function t(e){return(t,r=null,n)=>{let i,o=!1;return i=e(e=>{if(!o)return i?i.dispose():o=!0,t.call(r,e)},null,n),o&&i.dispose(),i}}function r(e,t){return s((r,n=null,i)=>e(e=>r.call(n,t(e)),null,i))}function n(e,t){return s((r,n=null,i)=>e(e=>{t(e),r.call(n,e)},null,i))}function i(e,t){return s((r,n=null,i)=>e(e=>t(e)&&r.call(n,e),null,i))}function o(e,t,n){let i=n;return r(e,e=>(i=t(i,e),i))}function s(e){let t;const r=new He({onFirstListenerAdd(){t=e(r.fire,r)},onLastListenerRemove(){t.dispose()}});return r.event}function a(e,t,r=100,n=!1,i){let o,s=void 0,a=void 0,l=0;const u=new He({leakWarningThreshold:i,onFirstListenerAdd(){o=e(e=>{l++,s=t(s,e),n&&!a&&(u.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!n||l>1)&&u.fire(e),l=0},r)})},onLastListenerRemove(){o.dispose()}});return u.event}function l(e){let t,r=!0;return i(e,e=>{const n=r||e!==t;return r=!1,t=e,n})}e.None=()=>g.None,e.once=t,e.map=r,e.forEach=n,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,r=null,n)=>f(...e.map(e=>e(e=>t.call(r,e),null,n)))},e.reduce=o,e.snapshot=s,e.debounce=a,e.stopwatch=function(e){const n=(new Date).getTime();return r(t(e),e=>(new Date).getTime()-n)},e.latch=l,e.buffer=function(e,t=!1,r=[]){let n=r.slice(),i=e(e=>{n?n.push(e):s.fire(e)});const o=()=>{n&&n.forEach(e=>s.fire(e)),n=null},s=new He({onFirstListenerAdd(){i||(i=e(e=>s.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return s.event};class u{constructor(e){this.event=e}map(e){return new u(r(this.event,e))}forEach(e){return new u(n(this.event,e))}filter(e){return new u(i(this.event,e))}reduce(e,t){return new u(o(this.event,e,t))}latch(){return new u(l(this.event))}debounce(e,t=100,r=!1,n){return new u(a(this.event,e,t,r,n))}on(e,t,r){return this.event(e,t,r)}once(e,r,n){return t(this.event)(e,r,n)}}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,r=(e=>e)){const n=(...e)=>i.fire(r(...e)),i=new He({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return i.event},e.fromDOMEventEmitter=function(e,t,r=(e=>e)){const n=(...e)=>i.fire(r(...e)),i=new He({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return i.event},e.fromPromise=function(e){const t=new He;let r=!1;return e.then(void 0,()=>null).then(()=>{r?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),r=!0,t.event},e.toPromise=function(e){return new Promise(r=>t(e)(r))}}(Ue||(Ue={}));class ze{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${ze._idPool++}`}start(e){this._stopWatch=new je(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ze._idPool=0;class He{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new ze(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,r)=>{var n;this._listeners||(this._listeners=new Me);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const s=null===(n=this._leakageMon)||void 0===n?void 0:n.check(this._listeners.size);let a;return a={dispose:()=>{if(s&&s(),a.dispose=He._noop,!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},r instanceof m?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}fire(e){var t,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Me);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){o(e)}}null===(r=this._perfMon)||void 0===r||r.stop()}}dispose(){var e,t,r;null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(r=this._leakageMon)||void 0===r||r.dispose(),this._disposed=!0}}He._noop=function(){};const Be=Object.freeze((function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}));var qe,Ve;(Ve=qe||(qe={})).isCancellationToken=function(e){return e===Ve.None||e===Ve.Cancelled||e instanceof Ge||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},Ve.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ue.None}),Ve.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Be});class Ge{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Be:(this._emitter||(this._emitter=new He),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ye{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ge),this._token}cancel(){this._token?this._token instanceof Ge&&this._token.cancel():this._token=qe.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Ge&&this._token.dispose():this._token=qe.None}}class Ke{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const We=new Ke,$e=new Ke,Xe=new Ke;var Qe,Je,Ze,et,tt,rt,nt,it,ot,st,at,lt,ut,ct,ht,dt,pt,ft,mt,gt,_t,yt,Nt,vt,xt,Et,St,Tt,Ct,bt,Ot,At,Rt,Lt,It;!function(){function e(e,t,r=t,n=r){We.define(e,t),$e.define(e,r),Xe.define(e,n)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return We.keyCodeToStr(e)},e.fromString=function(e){return We.strToKeyCode(e)},e.toUserSettingsUS=function(e){return $e.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Xe.keyCodeToStr(e)},e.fromUserSettings=function(e){return $e.strToKeyCode(e)||Xe.strToKeyCode(e)}}(Qe||(Qe={}));class wt extends he{constructor(e,t,r,n){super(e,t,r,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=r,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return wt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new wt(this.startLineNumber,this.startColumn,e,t):new wt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ce(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new wt(e,t,this.endLineNumber,this.endColumn):new wt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new wt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new wt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let r=0,n=e.length;r>>0)>>>0}(e,t)}}kt.CtrlCmd=2048,kt.Shift=1024,kt.Alt=512,kt.WinCtrl=256;var Dt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Mt extends class{constructor(e,t,r,n){this._uri=e,this._lines=t,this._eol=r,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new ce(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,r=new Uint32Array(t);for(let n=0;no.maxLen){let s=t-o.maxLen/2;return s<0?s=0:i+=s,e(t,r,n=n.substring(s,t+o.maxLen/2),i,o)}const s=Date.now(),a=t-1-i;let l=-1,u=null;for(let e=1;!(Date.now()-s>=o.timeBudget);e++){const t=a-o.windowSize*e;r.lastIndex=Math.max(0,t);const i=Oe(r,n,a,l);if(!i&&u)break;if(u=i,t<=0)break;l=t}if(u){let e={word:u[0],startColumn:i+1+u.index,endColumn:i+1+u.index+u[0].length};return r.lastIndex=0,e}return null}(e.column,function(e){let t=Ce;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return r?new he(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn):null}words(e){const t=this._lines,r=this._wordenize.bind(this);let n=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(othis._lines.length)t=this._lines.length,r=this._lines[t-1].length+1,n=!0;else{let e=this._lines[t-1].length+1;r<1?(r=1,n=!0):r>e&&(r=e,n=!0)}return n?{lineNumber:t,column:r}:e}}class Ft{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Mt(ee.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,r,n){return Dt(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),l=new _e(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0,maxComputationTime:n}).computeDiff(),u=!(l.changes.length>0)&&this._modelsAreIdentical(i,o);return{quitEarly:l.quitEarly,identical:u,changes:l.changes}}))}_modelsAreIdentical(e,t){const r=e.getLineCount();if(r!==t.getLineCount())return!1;for(let n=1;n<=r;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0}computeMoreMinimalEdits(e,t){return Dt(this,void 0,void 0,(function*(){const r=this._getModel(e);if(!r)return t;const n=[];let i=void 0;t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return he.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:o,eol:s}of t){if("number"==typeof s&&(i=s),he.isEmpty(e)&&!o)continue;const t=r.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,r.eol),t===o)continue;if(Math.max(o.length,t.length)>Ft._diffLimit){n.push({range:e,text:o});continue}const a=k(t,o,!1),l=r.offsetAt(he.lift(e).getStartPosition());for(const e of a){const t=r.positionAt(l+e.originalStart),i=r.positionAt(l+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};r.getValueInRange(s.range)!==s.text&&n.push(s)}}return"number"==typeof i&&n.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n}))}computeLinks(e){return Dt(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Pe.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,r,n){return Dt(this,void 0,void 0,(function*(){const i=new je(!0),o=new RegExp(r,n),s=new Set;e:for(let r of e){const e=this._getModel(r);if(e)for(let r of e.words(o))if(r!==t&&isNaN(Number(r))&&(s.add(r),s.size>Ft._suggestionsLimit))break e}return{words:Array.from(s),duration:i.elapsed()}}))}computeWordRanges(e,t,r,n){return Dt(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(r,n),s=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve(y(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Ft._diffLimit=1e5,Ft._suggestionsLimit=1e4,"function"==typeof importScripts&&(_.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Ye,Emitter:He,KeyCode:pt,KeyMod:kt,Position:ce,Range:he,Selection:wt,SelectionDirection:Tt,MarkerSeverity:ft,MarkerTag:mt,Uri:ee,Token:Pt});let jt=!1;function Ut(e){if(jt)return;jt=!0;const t=new x(e=>{self.postMessage(e)},t=>new Ft(t,e));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{jt||Ut(null)};var zt=r(0),Ht=r.n(zt),Bt=r(50);let qt;!function(e){e.SourceIdentifier="SourceIdentifier",e.FieldIdentifier="FieldIdentifier"}(qt||(qt={}));var Vt=r(7),Gt=r(34),Yt=r(19),Kt=r(14),Wt=r(32),$t=r(2),Xt=r(33),Qt=r(3),Jt=r(4),Zt=r(16),er=r(11);class tr extends Wt.Parser{get vocabulary(){return tr.VOCABULARY}get grammarFileName(){return"esql_parser.g4"}get ruleNames(){return tr.ruleNames}get serializedATN(){return tr._serializedATN}constructor(e){super(e),this._interp=new Xt.ParserATNSimulator(tr._ATN,this)}singleStatement(){let e=new rr(this._ctx,this.state);this.enterRule(e,0,tr.RULE_singleStatement);try{this.enterOuterAlt(e,1),this.state=72,this.query(0),this.state=73,this.match(tr.EOF)}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}query(e){void 0===e&&(e=0);let t=this._ctx,r=this.state,n=new nr(this._ctx,r),i=n;this.enterRecursionRule(n,2,tr.RULE_query,e);try{let e;for(this.enterOuterAlt(n,1),n=new ir(n),this._ctx=n,i=n,this.state=76,this.sourceCommand(),this._ctx._stop=this._input.tryLT(-1),this.state=83,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,0,this._ctx);2!==e&&e!==Vt.ATN.INVALID_ALT_NUMBER;){if(1===e){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new or(new nr(t,r)),this.pushNewRecursionContext(n,2,tr.RULE_query),this.state=78,!this.precpred(this._ctx,1))throw new Yt.FailedPredicateException(this,"this.precpred(this._ctx, 1)");this.state=79,this.match(tr.PIPE),this.state=80,this.processingCommand()}this.state=85,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,0,this._ctx)}}catch(e){if(!(e instanceof Qt.RecognitionException))throw e;n.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.unrollRecursionContexts(t)}return n}sourceCommand(){let e=new sr(this._ctx,this.state);this.enterRule(e,4,tr.RULE_sourceCommand);try{switch(this.state=89,this._errHandler.sync(this),this._input.LA(1)){case tr.EXPLAIN:this.enterOuterAlt(e,1),this.state=86,this.explainCommand();break;case tr.FROM:this.enterOuterAlt(e,2),this.state=87,this.fromCommand();break;case tr.ROW:this.enterOuterAlt(e,3),this.state=88,this.rowCommand();break;default:throw new Kt.NoViableAltException(this)}}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}processingCommand(){let e=new ar(this._ctx,this.state);this.enterRule(e,6,tr.RULE_processingCommand);try{switch(this.state=97,this._errHandler.sync(this),this._input.LA(1)){case tr.EVAL:this.enterOuterAlt(e,1),this.state=91,this.evalCommand();break;case tr.LIMIT:this.enterOuterAlt(e,2),this.state=92,this.limitCommand();break;case tr.PROJECT:this.enterOuterAlt(e,3),this.state=93,this.projectCommand();break;case tr.SORT:this.enterOuterAlt(e,4),this.state=94,this.sortCommand();break;case tr.STATS:this.enterOuterAlt(e,5),this.state=95,this.statsCommand();break;case tr.WHERE:this.enterOuterAlt(e,6),this.state=96,this.whereCommand();break;default:throw new Kt.NoViableAltException(this)}}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}whereCommand(){let e=new lr(this._ctx,this.state);this.enterRule(e,8,tr.RULE_whereCommand);try{this.enterOuterAlt(e,1),this.state=99,this.match(tr.WHERE),this.state=100,this.booleanExpression(0)}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}booleanExpression(e){void 0===e&&(e=0);let t=this._ctx,r=this.state,n=new ur(this._ctx,r),i=n;this.enterRecursionRule(n,10,tr.RULE_booleanExpression,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=106,this._errHandler.sync(this),this._input.LA(1)){case tr.NOT:this.state=103,this.match(tr.NOT),this.state=104,this.booleanExpression(4);break;case tr.STRING:case tr.INTEGER_LITERAL:case tr.DECIMAL_LITERAL:case tr.LP:case tr.NULL:case tr.BOOLEAN_VALUE:case tr.PLUS:case tr.MINUS:case tr.UNARY_FUNCTION:case tr.UNQUOTED_IDENTIFIER:case tr.QUOTED_IDENTIFIER:this.state=105,this.valueExpression();break;default:throw new Kt.NoViableAltException(this)}for(this._ctx._stop=this._input.tryLT(-1),this.state=116,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,5,this._ctx);2!==e&&e!==Vt.ATN.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,this.state=114,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,4,this._ctx)){case 1:if(n=new ur(t,r),n._left=i,this.pushNewRecursionContext(n,10,tr.RULE_booleanExpression),this.state=108,!this.precpred(this._ctx,2))throw new Yt.FailedPredicateException(this,"this.precpred(this._ctx, 2)");this.state=109,n._operator=this.match(tr.AND),this.state=110,n._right=this.booleanExpression(3);break;case 2:if(n=new ur(t,r),n._left=i,this.pushNewRecursionContext(n,10,tr.RULE_booleanExpression),this.state=111,!this.precpred(this._ctx,1))throw new Yt.FailedPredicateException(this,"this.precpred(this._ctx, 1)");this.state=112,n._operator=this.match(tr.OR),this.state=113,n._right=this.booleanExpression(2)}this.state=118,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,5,this._ctx)}}catch(e){if(!(e instanceof Qt.RecognitionException))throw e;n.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.unrollRecursionContexts(t)}return n}valueExpression(){let e=new cr(this._ctx,this.state);this.enterRule(e,12,tr.RULE_valueExpression);try{switch(this.state=121,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,6,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=119,this.operatorExpression(0);break;case 2:this.enterOuterAlt(e,2),this.state=120,this.comparison()}}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}comparison(){let e=new hr(this._ctx,this.state);this.enterRule(e,14,tr.RULE_comparison);try{this.enterOuterAlt(e,1),this.state=123,e._left=this.operatorExpression(0),this.state=124,this.comparisonOperator(),this.state=125,e._right=this.operatorExpression(0)}catch(t){if(!(t instanceof Qt.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mathFn(){let e,t=new dr(this._ctx,this.state);this.enterRule(t,16,tr.RULE_mathFn);try{if(this.enterOuterAlt(t,1),this.state=127,this.functionIdentifier(),this.state=128,this.match(tr.LP),this.state=137,this._errHandler.sync(this),e=this._input.LA(1),0==(e-14&-32)&&0!=(1<@BDFH!"#%/0*+ĵJM[\bc\ne\fl{}”µ·ºÇÉ Ë"Ô$×&Ý(á*ã,ë.ó0õ2û4ý6Ā8ĉ:đ<ğ>ġ@ĥBħDĩFīHĮJKKLLMN\bNOOUPQ\fQRRT\bSPTWUSUVVWUX\\F$Y\\ Z\\\r[X[Y[Z\\]d"^d4_d:`d6ad$bd\nc]c^c_c`cacbd\tef\bfg\fg\vhi\bijjm\fkm\blhlkmvno\foppu\fqr\frssu\ftntquxvtvww\rxvy|\vz|\t{y{z|}~\v~D#€\v€‚0‚‹ƒˆ(„……‡(†„‡Šˆ†ˆ‰‰ŒŠˆ‹ƒ‹ŒŒŽŽ\b\v•\f‘•\n’“\t“•\v””‘”’•ž–—\f—˜\t˜\v™š\fš›\t›\vœ–œ™ žœžŸŸ ž¡¶2¢¶*£¤¤¥\f¥¦¦¶§¨.¨±©®\fª««­\f¬ª­°®¬®¯¯²°®±©±²²³³´´¶µ¡µ¢µ£µ§¶·¸¸¹¹º¿»¼¼¾½»¾Á¿½¿ÀÀÁ¿ÂÈ\fÃÄÄÅÅÆ\fÆÈÇÂÇÃÈÉÊ.ÊËÌÌÑ&ÍÎÎÐ&ÏÍÐÓÑÏÑÒÒ!ÓÑÔÕÕÖÖ#רØÛÙÚÚÜ,ÛÙÛÜÜ%ÝÞ\tÞ\'ßâ*àâB"áßáàâ)ãè.äååç.æäçêèæèéé+êèëð*ìííï*îìïòðîðññ-òðóô\tô/õö)ö1÷üøü@!ùü> úüB"û÷ûøûùûúü3ýþ\nþÿÿ5Āā\tāĆ8Ăăăą8ĄĂąĈĆĄĆćć7ĈĆĉċ\fĊČ&ċĊċČČďčĎ\'ĎĐ(ďčďĐĐ9đĒ\vĒė<ēĔĔĖ<ĕēĖęėĕėĘĘ;ęėĚĠ&ěĜ&ĜĝĝĞ&ĞĠğĚğěĠ=ġĢĢ?ģĦĤĦĥģĥĤĦAħĨĨCĩĪ ĪEīĬĬĭH%ĭGĮįįİİııIU[cltv{ˆ‹”œž®±µ¿ÇÑÛáèðûĆċďėğĥ'),Ht()(tr,"__ATN",void 0);class rr extends $t.ParserRuleContext{query(){return this.getRuleContext(0,nr)}EOF(){return this.getToken(tr.EOF,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_singleStatement}enterRule(e){e.enterSingleStatement&&e.enterSingleStatement(this)}exitRule(e){e.exitSingleStatement&&e.exitSingleStatement(this)}}class nr extends $t.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_query}copyFrom(e){super.copyFrom(e)}}class ir extends nr{sourceCommand(){return this.getRuleContext(0,sr)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterSingleCommandQuery&&e.enterSingleCommandQuery(this)}exitRule(e){e.exitSingleCommandQuery&&e.exitSingleCommandQuery(this)}}class or extends nr{query(){return this.getRuleContext(0,nr)}PIPE(){return this.getToken(tr.PIPE,0)}processingCommand(){return this.getRuleContext(0,ar)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterCompositeQuery&&e.enterCompositeQuery(this)}exitRule(e){e.exitCompositeQuery&&e.exitCompositeQuery(this)}}class sr extends $t.ParserRuleContext{explainCommand(){return this.tryGetRuleContext(0,Vr)}fromCommand(){return this.tryGetRuleContext(0,Nr)}rowCommand(){return this.tryGetRuleContext(0,mr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_sourceCommand}enterRule(e){e.enterSourceCommand&&e.enterSourceCommand(this)}exitRule(e){e.exitSourceCommand&&e.exitSourceCommand(this)}}class ar extends $t.ParserRuleContext{evalCommand(){return this.tryGetRuleContext(0,vr)}limitCommand(){return this.tryGetRuleContext(0,Pr)}projectCommand(){return this.tryGetRuleContext(0,Mr)}sortCommand(){return this.tryGetRuleContext(0,kr)}statsCommand(){return this.tryGetRuleContext(0,xr)}whereCommand(){return this.tryGetRuleContext(0,lr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_processingCommand}enterRule(e){e.enterProcessingCommand&&e.enterProcessingCommand(this)}exitRule(e){e.exitProcessingCommand&&e.exitProcessingCommand(this)}}class lr extends $t.ParserRuleContext{WHERE(){return this.getToken(tr.WHERE,0)}booleanExpression(){return this.getRuleContext(0,ur)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_whereCommand}enterRule(e){e.enterWhereCommand&&e.enterWhereCommand(this)}exitRule(e){e.exitWhereCommand&&e.exitWhereCommand(this)}}class ur extends $t.ParserRuleContext{NOT(){return this.tryGetToken(tr.NOT,0)}booleanExpression(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}valueExpression(){return this.tryGetRuleContext(0,cr)}AND(){return this.tryGetToken(tr.AND,0)}OR(){return this.tryGetToken(tr.OR,0)}constructor(e,t){super(e,t),Ht()(this,"_left",void 0),Ht()(this,"_operator",void 0),Ht()(this,"_right",void 0)}get ruleIndex(){return tr.RULE_booleanExpression}enterRule(e){e.enterBooleanExpression&&e.enterBooleanExpression(this)}exitRule(e){e.exitBooleanExpression&&e.exitBooleanExpression(this)}}class cr extends $t.ParserRuleContext{operatorExpression(){return this.tryGetRuleContext(0,pr)}comparison(){return this.tryGetRuleContext(0,hr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_valueExpression}enterRule(e){e.enterValueExpression&&e.enterValueExpression(this)}exitRule(e){e.exitValueExpression&&e.exitValueExpression(this)}}class hr extends $t.ParserRuleContext{comparisonOperator(){return this.getRuleContext(0,qr)}operatorExpression(e){return void 0===e?this.getRuleContexts(pr):this.getRuleContext(e,pr)}constructor(e,t){super(e,t),Ht()(this,"_left",void 0),Ht()(this,"_right",void 0)}get ruleIndex(){return tr.RULE_comparison}enterRule(e){e.enterComparison&&e.enterComparison(this)}exitRule(e){e.exitComparison&&e.exitComparison(this)}}class dr extends $t.ParserRuleContext{functionIdentifier(){return this.getRuleContext(0,Or)}LP(){return this.getToken(tr.LP,0)}RP(){return this.getToken(tr.RP,0)}functionExpressionArgument(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_mathFn}enterRule(e){e.enterMathFn&&e.enterMathFn(this)}exitRule(e){e.exitMathFn&&e.exitMathFn(this)}}class pr extends $t.ParserRuleContext{primaryExpression(){return this.tryGetRuleContext(0,fr)}mathFn(){return this.tryGetRuleContext(0,dr)}operatorExpression(e){return void 0===e?this.getRuleContexts(pr):this.getRuleContext(e,pr)}MINUS(){return this.tryGetToken(tr.MINUS,0)}PLUS(){return this.tryGetToken(tr.PLUS,0)}ASTERISK(){return this.tryGetToken(tr.ASTERISK,0)}SLASH(){return this.tryGetToken(tr.SLASH,0)}PERCENT(){return this.tryGetToken(tr.PERCENT,0)}constructor(e,t){super(e,t),Ht()(this,"_left",void 0),Ht()(this,"_operator",void 0),Ht()(this,"_right",void 0)}get ruleIndex(){return tr.RULE_operatorExpression}enterRule(e){e.enterOperatorExpression&&e.enterOperatorExpression(this)}exitRule(e){e.exitOperatorExpression&&e.exitOperatorExpression(this)}}class fr extends $t.ParserRuleContext{constant(){return this.tryGetRuleContext(0,Ar)}qualifiedName(){return this.tryGetRuleContext(0,Tr)}LP(){return this.tryGetToken(tr.LP,0)}booleanExpression(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}RP(){return this.tryGetToken(tr.RP,0)}identifier(){return this.tryGetRuleContext(0,br)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_primaryExpression}enterRule(e){e.enterPrimaryExpression&&e.enterPrimaryExpression(this)}exitRule(e){e.exitPrimaryExpression&&e.exitPrimaryExpression(this)}}class mr extends $t.ParserRuleContext{ROW(){return this.getToken(tr.ROW,0)}fields(){return this.getRuleContext(0,gr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_rowCommand}enterRule(e){e.enterRowCommand&&e.enterRowCommand(this)}exitRule(e){e.exitRowCommand&&e.exitRowCommand(this)}}class gr extends $t.ParserRuleContext{field(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_fields}enterRule(e){e.enterFields&&e.enterFields(this)}exitRule(e){e.exitFields&&e.exitFields(this)}}class _r extends $t.ParserRuleContext{booleanExpression(){return this.getRuleContext(0,ur)}userVariable(){return this.tryGetRuleContext(0,yr)}ASSIGN(){return this.tryGetToken(tr.ASSIGN,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_field}enterRule(e){e.enterField&&e.enterField(this)}exitRule(e){e.exitField&&e.exitField(this)}}class yr extends $t.ParserRuleContext{identifier(){return this.getRuleContext(0,br)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_userVariable}enterRule(e){e.enterUserVariable&&e.enterUserVariable(this)}exitRule(e){e.exitUserVariable&&e.exitUserVariable(this)}}class Nr extends $t.ParserRuleContext{FROM(){return this.getToken(tr.FROM,0)}sourceIdentifier(e){return void 0===e?this.getRuleContexts(Er):this.getRuleContext(e,Er)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_fromCommand}enterRule(e){e.enterFromCommand&&e.enterFromCommand(this)}exitRule(e){e.exitFromCommand&&e.exitFromCommand(this)}}class vr extends $t.ParserRuleContext{EVAL(){return this.getToken(tr.EVAL,0)}fields(){return this.getRuleContext(0,gr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_evalCommand}enterRule(e){e.enterEvalCommand&&e.enterEvalCommand(this)}exitRule(e){e.exitEvalCommand&&e.exitEvalCommand(this)}}class xr extends $t.ParserRuleContext{STATS(){return this.getToken(tr.STATS,0)}fields(){return this.getRuleContext(0,gr)}BY(){return this.tryGetToken(tr.BY,0)}qualifiedNames(){return this.tryGetRuleContext(0,Cr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_statsCommand}enterRule(e){e.enterStatsCommand&&e.enterStatsCommand(this)}exitRule(e){e.exitStatsCommand&&e.exitStatsCommand(this)}}class Er extends $t.ParserRuleContext{SRC_UNQUOTED_IDENTIFIER(){return this.tryGetToken(tr.SRC_UNQUOTED_IDENTIFIER,0)}SRC_QUOTED_IDENTIFIER(){return this.tryGetToken(tr.SRC_QUOTED_IDENTIFIER,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_sourceIdentifier}enterRule(e){e.enterSourceIdentifier&&e.enterSourceIdentifier(this)}exitRule(e){e.exitSourceIdentifier&&e.exitSourceIdentifier(this)}}class Sr extends $t.ParserRuleContext{qualifiedName(){return this.tryGetRuleContext(0,Tr)}string(){return this.tryGetRuleContext(0,Br)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_functionExpressionArgument}enterRule(e){e.enterFunctionExpressionArgument&&e.enterFunctionExpressionArgument(this)}exitRule(e){e.exitFunctionExpressionArgument&&e.exitFunctionExpressionArgument(this)}}class Tr extends $t.ParserRuleContext{identifier(e){return void 0===e?this.getRuleContexts(br):this.getRuleContext(e,br)}DOT(e){return void 0===e?this.getTokens(tr.DOT):this.getToken(tr.DOT,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_qualifiedName}enterRule(e){e.enterQualifiedName&&e.enterQualifiedName(this)}exitRule(e){e.exitQualifiedName&&e.exitQualifiedName(this)}}class Cr extends $t.ParserRuleContext{qualifiedName(e){return void 0===e?this.getRuleContexts(Tr):this.getRuleContext(e,Tr)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_qualifiedNames}enterRule(e){e.enterQualifiedNames&&e.enterQualifiedNames(this)}exitRule(e){e.exitQualifiedNames&&e.exitQualifiedNames(this)}}class br extends $t.ParserRuleContext{UNQUOTED_IDENTIFIER(){return this.tryGetToken(tr.UNQUOTED_IDENTIFIER,0)}QUOTED_IDENTIFIER(){return this.tryGetToken(tr.QUOTED_IDENTIFIER,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_identifier}enterRule(e){e.enterIdentifier&&e.enterIdentifier(this)}exitRule(e){e.exitIdentifier&&e.exitIdentifier(this)}}class Or extends $t.ParserRuleContext{UNARY_FUNCTION(){return this.getToken(tr.UNARY_FUNCTION,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_functionIdentifier}enterRule(e){e.enterFunctionIdentifier&&e.enterFunctionIdentifier(this)}exitRule(e){e.exitFunctionIdentifier&&e.exitFunctionIdentifier(this)}}class Ar extends $t.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_constant}copyFrom(e){super.copyFrom(e)}}class Rr extends Ar{NULL(){return this.getToken(tr.NULL,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNullLiteral&&e.enterNullLiteral(this)}exitRule(e){e.exitNullLiteral&&e.exitNullLiteral(this)}}class Lr extends Ar{number(){return this.getRuleContext(0,Ur)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNumericLiteral&&e.enterNumericLiteral(this)}exitRule(e){e.exitNumericLiteral&&e.exitNumericLiteral(this)}}class Ir extends Ar{booleanValue(){return this.getRuleContext(0,jr)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterBooleanLiteral&&e.enterBooleanLiteral(this)}exitRule(e){e.exitBooleanLiteral&&e.exitBooleanLiteral(this)}}class wr extends Ar{string(){return this.getRuleContext(0,Br)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterStringLiteral&&e.enterStringLiteral(this)}exitRule(e){e.exitStringLiteral&&e.exitStringLiteral(this)}}class Pr extends $t.ParserRuleContext{LIMIT(){return this.getToken(tr.LIMIT,0)}INTEGER_LITERAL(){return this.getToken(tr.INTEGER_LITERAL,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_limitCommand}enterRule(e){e.enterLimitCommand&&e.enterLimitCommand(this)}exitRule(e){e.exitLimitCommand&&e.exitLimitCommand(this)}}class kr extends $t.ParserRuleContext{SORT(){return this.getToken(tr.SORT,0)}orderExpression(e){return void 0===e?this.getRuleContexts(Dr):this.getRuleContext(e,Dr)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_sortCommand}enterRule(e){e.enterSortCommand&&e.enterSortCommand(this)}exitRule(e){e.exitSortCommand&&e.exitSortCommand(this)}}class Dr extends $t.ParserRuleContext{booleanExpression(){return this.getRuleContext(0,ur)}ORDERING(){return this.tryGetToken(tr.ORDERING,0)}NULLS_ORDERING(){return this.tryGetToken(tr.NULLS_ORDERING,0)}NULLS_ORDERING_DIRECTION(){return this.tryGetToken(tr.NULLS_ORDERING_DIRECTION,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_orderExpression}enterRule(e){e.enterOrderExpression&&e.enterOrderExpression(this)}exitRule(e){e.exitOrderExpression&&e.exitOrderExpression(this)}}class Mr extends $t.ParserRuleContext{PROJECT(){return this.getToken(tr.PROJECT,0)}projectClause(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}COMMA(e){return void 0===e?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_projectCommand}enterRule(e){e.enterProjectCommand&&e.enterProjectCommand(this)}exitRule(e){e.exitProjectCommand&&e.exitProjectCommand(this)}}class Fr extends $t.ParserRuleContext{sourceIdentifier(e){return void 0===e?this.getRuleContexts(Er):this.getRuleContext(e,Er)}ASSIGN(){return this.tryGetToken(tr.ASSIGN,0)}constructor(e,t){super(e,t),Ht()(this,"_newName",void 0),Ht()(this,"_oldName",void 0)}get ruleIndex(){return tr.RULE_projectClause}enterRule(e){e.enterProjectClause&&e.enterProjectClause(this)}exitRule(e){e.exitProjectClause&&e.exitProjectClause(this)}}class jr extends $t.ParserRuleContext{BOOLEAN_VALUE(){return this.getToken(tr.BOOLEAN_VALUE,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_booleanValue}enterRule(e){e.enterBooleanValue&&e.enterBooleanValue(this)}exitRule(e){e.exitBooleanValue&&e.exitBooleanValue(this)}}class Ur extends $t.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_number}copyFrom(e){super.copyFrom(e)}}class zr extends Ur{DECIMAL_LITERAL(){return this.getToken(tr.DECIMAL_LITERAL,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterDecimalLiteral&&e.enterDecimalLiteral(this)}exitRule(e){e.exitDecimalLiteral&&e.exitDecimalLiteral(this)}}class Hr extends Ur{INTEGER_LITERAL(){return this.getToken(tr.INTEGER_LITERAL,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterIntegerLiteral&&e.enterIntegerLiteral(this)}exitRule(e){e.exitIntegerLiteral&&e.exitIntegerLiteral(this)}}class Br extends $t.ParserRuleContext{STRING(){return this.getToken(tr.STRING,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_string}enterRule(e){e.enterString&&e.enterString(this)}exitRule(e){e.exitString&&e.exitString(this)}}class qr extends $t.ParserRuleContext{COMPARISON_OPERATOR(){return this.getToken(tr.COMPARISON_OPERATOR,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_comparisonOperator}enterRule(e){e.enterComparisonOperator&&e.enterComparisonOperator(this)}exitRule(e){e.exitComparisonOperator&&e.exitComparisonOperator(this)}}class Vr extends $t.ParserRuleContext{EXPLAIN(){return this.getToken(tr.EXPLAIN,0)}subqueryExpression(){return this.getRuleContext(0,Gr)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_explainCommand}enterRule(e){e.enterExplainCommand&&e.enterExplainCommand(this)}exitRule(e){e.exitExplainCommand&&e.exitExplainCommand(this)}}class Gr extends $t.ParserRuleContext{OPENING_BRACKET(){return this.getToken(tr.OPENING_BRACKET,0)}query(){return this.getRuleContext(0,nr)}CLOSING_BRACKET(){return this.getToken(tr.CLOSING_BRACKET,0)}constructor(e,t){super(e,t)}get ruleIndex(){return tr.RULE_subqueryExpression}enterRule(e){e.enterSubqueryExpression&&e.enterSubqueryExpression(this)}exitRule(e){e.exitSubqueryExpression&&e.exitSubqueryExpression(this)}}const Yr={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}},relative:{years:{units:"year"},months:{units:"month"},days:{units:"day"},hours:{units:"hour"},minutes:{units:"minute"},seconds:{units:"second"}}};var Kr=r(97),Wr=r.n(Kr),$r=r(27),Xr=r.n($r),Qr=r(42),Jr=r.n(Qr);const Zr=e=>"string"==typeof e,en=e=>"object"==typeof e&&null!==e,tn=(e,t)=>((e=[])=>[...new Set(e)])([...Object.keys(e),...Object.keys(t)]).reduce((r,n)=>en(e[n])&&en(t[n])&&!Array.isArray(e[n])&&!Array.isArray(t[n])?{...r,[n]:tn(e[n],t[n])}:{...r,[n]:void 0===t[n]?e[n]:t[n]},{}),rn=/[A-Za-z]|(\]\([\s\S]*?\))|(<([^"<>]|("[^"]*?"))*?>)|(@I18N@\w*?@I18N@)/g;function nn(e){return"en-xa"===e.toLowerCase()}function on(e){return e.replace(rn,function(){let e=0;return t=>{if(1!==t.length)return t;const r=sn[t]||t;return++e%3==0?r.repeat(2):r}}())}const sn={a:"à",b:"ƀ",c:"ç",d:"ð",e:"é",f:"ƒ",g:"ĝ",h:"ĥ",i:"î",l:"ļ",k:"ķ",j:"ĵ",m:"ɱ",n:"ñ",o:"ô",p:"þ",q:"ǫ",r:"ŕ",s:"š",t:"ţ",u:"û",v:"ṽ",w:"ŵ",x:"ẋ",y:"ý",z:"ž",A:"À",B:"Ɓ",C:"Ç",D:"Ð",E:"É",F:"Ƒ",G:"Ĝ",H:"Ĥ",I:"Î",L:"Ļ",K:"Ķ",J:"Ĵ",M:"Ṁ",N:"Ñ",O:"Ô",P:"Þ",Q:"Ǫ",R:"Ŕ",S:"Š",T:"Ţ",U:"Û",V:"Ṽ",W:"Ŵ",X:"Ẋ",Y:"Ý",Z:"Ž"};function an(e){Xr.a.__addLocaleData(e),Jr.a.__addLocaleData(e)}an({locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":3==o&&13!=s?"few":"other":1==e&&n?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}),an({locale:"en-US",parentLocale:"en"}),an({locale:"en-xa",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":3==o&&13!=s?"few":"other":1==e&&n?"one":"other"},fields:{year:{displayName:"ýéààŕ",relative:{0:"ţĥîîš ýééàŕ",1:"ñéẋẋţ ýééàŕ","-1":"ļàššţ ýééàŕ"},relativeTime:{future:{one:"îñ {0} ýýéàŕŕ",other:"îñ {0} ýýéàŕŕš"},past:{one:"{0} ýéààŕ àĝĝô",other:"{0} ýéààŕš ààĝô"}}},"year-short":{displayName:"ýŕ.",relative:{0:"ţĥîîš ýŕŕ.",1:"ñéẋẋţ ýŕŕ.","-1":"ļàššţ ýŕŕ."},relativeTime:{future:{one:"îñ {0} ýýŕ.",other:"îñ {0} ýýŕ."},past:{one:"{0} ýŕ. ààĝô",other:"{0} ýŕ. ààĝô"}}},month:{displayName:"ɱôññţĥ",relative:{0:"ţĥîîš ɱôôñţĥĥ",1:"ñéẋẋţ ɱôôñţĥĥ","-1":"ļàššţ ɱôôñţĥĥ"},relativeTime:{future:{one:"îñ {0} ɱɱôñţţĥ",other:"îñ {0} ɱɱôñţţĥš"},past:{one:"{0} ɱôññţĥ ààĝô",other:"{0} ɱôññţĥšš àĝôô"}}},"month-short":{displayName:"ɱô.",relative:{0:"ţĥîîš ɱôô.",1:"ñéẋẋţ ɱôô.","-1":"ļàššţ ɱôô."},relativeTime:{future:{one:"îñ {0} ɱɱô.",other:"îñ {0} ɱɱô."},past:{one:"{0} ɱô. ààĝô",other:"{0} ɱô. ààĝô"}}},day:{displayName:"ðàýý",relative:{0:"ţôððàý",1:"ţôɱɱôŕŕŕôŵ","-1":"ýéššţéŕŕðàýý"},relativeTime:{future:{one:"îñ {0} ððàý",other:"îñ {0} ððàýšš"},past:{one:"{0} ðàýý àĝôô",other:"{0} ðàýýš àĝĝô"}}},"day-short":{displayName:"ðàýý",relative:{0:"ţôððàý",1:"ţôɱɱôŕŕŕôŵ","-1":"ýéššţéŕŕðàýý"},relativeTime:{future:{one:"îñ {0} ððàý",other:"îñ {0} ððàýšš"},past:{one:"{0} ðàýý àĝôô",other:"{0} ðàýýš àĝĝô"}}},hour:{displayName:"ĥôûûŕ",relative:{0:"ţĥîîš ĥôôûŕ"},relativeTime:{future:{one:"îñ {0} ĥĥôûŕŕ",other:"îñ {0} ĥĥôûŕŕš"},past:{one:"{0} ĥôûûŕ àĝĝô",other:"{0} ĥôûûŕš ààĝô"}}},"hour-short":{displayName:"ĥŕ.",relative:{0:"ţĥîîš ĥôôûŕ"},relativeTime:{future:{one:"îñ {0} ĥĥŕ.",other:"îñ {0} ĥĥŕ."},past:{one:"{0} ĥŕ. ààĝô",other:"{0} ĥŕ. ààĝô"}}},minute:{displayName:"ɱîññûţéé",relative:{0:"ţĥîîš ɱîîñûţţé"},relativeTime:{future:{one:"îñ {0} ɱɱîñûûţé",other:"îñ {0} ɱɱîñûûţéšš"},past:{one:"{0} ɱîññûţéé àĝôô",other:"{0} ɱîññûţééš àĝĝô"}}},"minute-short":{displayName:"ɱîññ.",relative:{0:"ţĥîîš ɱîîñûţţé"},relativeTime:{future:{one:"îñ {0} ɱɱîñ.",other:"îñ {0} ɱɱîñ."},past:{one:"{0} ɱîññ. àĝôô",other:"{0} ɱîññ. àĝôô"}}},second:{displayName:"šéççôñðð",relative:{0:"ñôŵŵ"},relativeTime:{future:{one:"îñ {0} ššéçôôñð",other:"îñ {0} ššéçôôñðšš"},past:{one:"{0} šéççôñðð àĝôô",other:"{0} šéççôñððš àĝĝô"}}},"second-short":{displayName:"šéçç.",relative:{0:"ñôŵŵ"},relativeTime:{future:{one:"îñ {0} ššéç.",other:"îñ {0} ššéç."},past:{one:"{0} šéçç. àĝôô",other:"{0} šéçç. àĝôô"}}}}}),an({locale:"es",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"},fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}}),an({locale:"es-LA",parentLocale:"es"}),an({locale:"fr",pluralRuleFunction:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}}},"year-short":{displayName:"an",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},"month-short":{displayName:"m.",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},"day-short":{displayName:"j",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}}},hour:{displayName:"heure",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},"hour-short":{displayName:"h",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}}},minute:{displayName:"minute",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},"minute-short":{displayName:"min",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}},"second-short":{displayName:"s",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}}}}}),an({locale:"fr-FR",parentLocale:"fr"}),an({locale:"de",pluralRuleFunction:function(e,t){var r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"},fields:{year:{displayName:"Jahr",relative:{0:"dieses Jahr",1:"nächstes Jahr","-1":"letztes Jahr"},relativeTime:{future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},"year-short":{displayName:"Jahr",relative:{0:"dieses Jahr",1:"nächstes Jahr","-1":"letztes Jahr"},relativeTime:{future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},month:{displayName:"Monat",relative:{0:"diesen Monat",1:"nächsten Monat","-1":"letzten Monat"},relativeTime:{future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}}},"month-short":{displayName:"Monat",relative:{0:"diesen Monat",1:"nächsten Monat","-1":"letzten Monat"},relativeTime:{future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}}},day:{displayName:"Tag",relative:{0:"heute",1:"morgen",2:"übermorgen","-2":"vorgestern","-1":"gestern"},relativeTime:{future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}}},"day-short":{displayName:"Tag",relative:{0:"heute",1:"morgen",2:"übermorgen","-2":"vorgestern","-1":"gestern"},relativeTime:{future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}}},hour:{displayName:"Stunde",relative:{0:"in dieser Stunde"},relativeTime:{future:{one:"in {0} Stunde",other:"in {0} Stunden"},past:{one:"vor {0} Stunde",other:"vor {0} Stunden"}}},"hour-short":{displayName:"Std.",relative:{0:"in dieser Stunde"},relativeTime:{future:{one:"in {0} Std.",other:"in {0} Std."},past:{one:"vor {0} Std.",other:"vor {0} Std."}}},minute:{displayName:"Minute",relative:{0:"in dieser Minute"},relativeTime:{future:{one:"in {0} Minute",other:"in {0} Minuten"},past:{one:"vor {0} Minute",other:"vor {0} Minuten"}}},"minute-short":{displayName:"Min.",relative:{0:"in dieser Minute"},relativeTime:{future:{one:"in {0} Min.",other:"in {0} Min."},past:{one:"vor {0} Min.",other:"vor {0} Min."}}},second:{displayName:"Sekunde",relative:{0:"jetzt"},relativeTime:{future:{one:"in {0} Sekunde",other:"in {0} Sekunden"},past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"}}},"second-short":{displayName:"Sek.",relative:{0:"jetzt"},relativeTime:{future:{one:"in {0} Sek.",other:"in {0} Sek."},past:{one:"vor {0} Sek.",other:"vor {0} Sek."}}}}}),an({locale:"de-DE",parentLocale:"de"}),an({locale:"ja",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"翌年","-1":"昨年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},"year-short":{displayName:"年",relative:{0:"今年",1:"翌年","-1":"昨年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},month:{displayName:"月",relative:{0:"今月",1:"翌月","-1":"先月"},relativeTime:{future:{other:"{0} か月後"},past:{other:"{0} か月前"}}},"month-short":{displayName:"月",relative:{0:"今月",1:"翌月","-1":"先月"},relativeTime:{future:{other:"{0} か月後"},past:{other:"{0} か月前"}}},day:{displayName:"日",relative:{0:"今日",1:"明日",2:"明後日","-2":"一昨日","-1":"昨日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},"day-short":{displayName:"日",relative:{0:"今日",1:"明日",2:"明後日","-2":"一昨日","-1":"昨日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},hour:{displayName:"時",relative:{0:"1 時間以内"},relativeTime:{future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}}},"hour-short":{displayName:"時",relative:{0:"1 時間以内"},relativeTime:{future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}}},minute:{displayName:"分",relative:{0:"1 分以内"},relativeTime:{future:{other:"{0} 分後"},past:{other:"{0} 分前"}}},"minute-short":{displayName:"分",relative:{0:"1 分以内"},relativeTime:{future:{other:"{0} 分後"},past:{other:"{0} 分前"}}},second:{displayName:"秒",relative:{0:"今"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}},"second-short":{displayName:"秒",relative:{0:"今"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}}}}),an({locale:"ja-JP",parentLocale:"ja"}),an({locale:"ko",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"년",relative:{0:"올해",1:"내년","-1":"작년"},relativeTime:{future:{other:"{0}년 후"},past:{other:"{0}년 전"}}},"year-short":{displayName:"년",relative:{0:"올해",1:"내년","-1":"작년"},relativeTime:{future:{other:"{0}년 후"},past:{other:"{0}년 전"}}},month:{displayName:"월",relative:{0:"이번 달",1:"다음 달","-1":"지난달"},relativeTime:{future:{other:"{0}개월 후"},past:{other:"{0}개월 전"}}},"month-short":{displayName:"월",relative:{0:"이번 달",1:"다음 달","-1":"지난달"},relativeTime:{future:{other:"{0}개월 후"},past:{other:"{0}개월 전"}}},day:{displayName:"일",relative:{0:"오늘",1:"내일",2:"모레","-2":"그저께","-1":"어제"},relativeTime:{future:{other:"{0}일 후"},past:{other:"{0}일 전"}}},"day-short":{displayName:"일",relative:{0:"오늘",1:"내일",2:"모레","-2":"그저께","-1":"어제"},relativeTime:{future:{other:"{0}일 후"},past:{other:"{0}일 전"}}},hour:{displayName:"시",relative:{0:"현재 시간"},relativeTime:{future:{other:"{0}시간 후"},past:{other:"{0}시간 전"}}},"hour-short":{displayName:"시",relative:{0:"현재 시간"},relativeTime:{future:{other:"{0}시간 후"},past:{other:"{0}시간 전"}}},minute:{displayName:"분",relative:{0:"현재 분"},relativeTime:{future:{other:"{0}분 후"},past:{other:"{0}분 전"}}},"minute-short":{displayName:"분",relative:{0:"현재 분"},relativeTime:{future:{other:"{0}분 후"},past:{other:"{0}분 전"}}},second:{displayName:"초",relative:{0:"지금"},relativeTime:{future:{other:"{0}초 후"},past:{other:"{0}초 전"}}},"second-short":{displayName:"초",relative:{0:"지금"},relativeTime:{future:{other:"{0}초 후"},past:{other:"{0}초 전"}}}}}),an({locale:"ko-KR",parentLocale:"ko"}),an({locale:"pt",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"},fields:{year:{displayName:"ano",relative:{0:"este ano",1:"próximo ano","-1":"ano passado"},relativeTime:{future:{one:"em {0} ano",other:"em {0} anos"},past:{one:"há {0} ano",other:"há {0} anos"}}},"year-short":{displayName:"a",relative:{0:"este ano",1:"próximo ano","-1":"último ano"},relativeTime:{future:{one:"em {0} ano",other:"em {0} anos"},past:{one:"há {0} ano",other:"há {0} anos"}}},month:{displayName:"mês",relative:{0:"este mês",1:"próximo mês","-1":"mês passado"},relativeTime:{future:{one:"em {0} mês",other:"em {0} meses"},past:{one:"há {0} mês",other:"há {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mês",1:"próximo mês","-1":"último mês"},relativeTime:{future:{one:"em {0} mês",other:"em {0} meses"},past:{one:"há {0} mês",other:"há {0} meses"}}},day:{displayName:"dia",relative:{0:"hoje",1:"amanhã","-1":"ontem"},relativeTime:{future:{one:"em {0} dia",other:"em {0} dias"},past:{one:"há {0} dia",other:"há {0} dias"}}},"day-short":{displayName:"d",relative:{0:"hoje",1:"amanhã","-1":"ontem"},relativeTime:{future:{one:"em {0} dia",other:"em {0} dias"},past:{one:"há {0} dia",other:"há {0} dias"}}},hour:{displayName:"hora",relative:{0:"nesta hora"},relativeTime:{future:{one:"em {0} hora",other:"em {0} horas"},past:{one:"há {0} hora",other:"há {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"nesta hora"},relativeTime:{future:{one:"em {0} h",other:"em {0} h"},past:{one:"há {0} h",other:"há {0} h"}}},minute:{displayName:"minuto",relative:{0:"neste minuto"},relativeTime:{future:{one:"em {0} minuto",other:"em {0} minutos"},past:{one:"há {0} minuto",other:"há {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"neste minuto"},relativeTime:{future:{one:"em {0} min",other:"em {0} min"},past:{one:"há {0} min",other:"há {0} min"}}},second:{displayName:"segundo",relative:{0:"agora"},relativeTime:{future:{one:"em {0} segundo",other:"em {0} segundos"},past:{one:"há {0} segundo",other:"há {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"agora"},relativeTime:{future:{one:"em {0} s",other:"em {0} s"},past:{one:"há {0} s",other:"há {0} s"}}}}}),an({locale:"pt-BR",parentLocale:"pt"}),an({locale:"zh",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},"year-short":{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},"month-short":{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-2":"前天","-1":"昨天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},"day-short":{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-2":"前天","-1":"昨天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relative:{0:"这一时间 / 此时"},relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},"hour-short":{displayName:"小时",relative:{0:"这一时间 / 此时"},relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relative:{0:"此刻"},relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},"minute-short":{displayName:"分",relative:{0:"此刻"},relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒钟后"},past:{other:"{0}秒钟前"}}},"second-short":{displayName:"秒",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒后"},past:{other:"{0}秒前"}}}}}),an({locale:"zh-CN",parentLocale:"zh"});const ln={},un=Wr()(Xr.a);let cn="en",hn="en",dn=Yr;function pn(e){return e.toLowerCase()}function fn(e,t=e.locale){if(!t||!Zr(t))throw new Error("[I18n] A `locale` must be a non-empty string to add messages.");if(e.locale&&e.locale!==t)throw new Error("[I18n] A `locale` in the translation object is different from the one provided as a second argument.");const r=pn(t),n=ln[r]||{messages:{}};ln[r]={formats:e.formats||n.formats,locale:e.locale||n.locale,messages:{...n.messages,...e.messages}}}function mn(){return ln[hn]||{messages:{}}}function gn(e){if(!e||!Zr(e))throw new Error("[I18n] A `locale` must be a non-empty string.");hn=pn(e)}function _n(){return hn}function yn(e){if(!e||!Zr(e))throw new Error("[I18n] A `locale` must be a non-empty string.");cn=pn(e),Xr.a.defaultLocale=cn,Jr.a.defaultLocale=cn}function Nn(){return cn}function vn(e){if(!(en(e)&&(t=e,Object.keys(t).length>0)))throw new Error("[I18n] A `formats` must be a non-empty object.");var t;dn=((...e)=>e.filter(en).reduce((e,t)=>tn(e,t)))(dn,e)}function xn(){return dn}function En(){return Object.keys(ln)}function Sn(e,{values:t={},defaultMessage:r}){const n=nn(hn);if(!e||!Zr(e))throw new Error("[I18n] An `id` must be a non-empty string to translate a message.");const i=n?r:function(e){const t=mn();return t.messages?t.messages[e]:void 0}(e);if(!i&&!r)throw new Error(`[I18n] Cannot format message: "${e}". Default message must be provided.`);if(i)try{const e=un(i,_n(),xn()).format(t);return n?on(e):e}catch(t){throw new Error(`[I18n] Error formatting message: "${e}" for locale: "${_n()}".\n${t}`)}try{return un(r,Nn(),xn()).format(t)}catch(t){throw new Error(`[I18n] Error formatting the default message for: "${e}".\n${t}`)}}function Tn(e){e&&(fn(e),e.locale&&gn(e.locale),e.formats&&vn(e.formats))}async function Cn(e){const t=await fetch(e,{credentials:"same-origin"});if(t.status>=300)throw new Error("Translations request failed with status code: "+t.status);Tn(await t.json())}Xr.a.defaultLocale=cn,Jr.a.defaultLocale=cn;const bn=n,On=bn.translate("monaco.esql.autocomplete.declarationLabel",{defaultMessage:"Declaration:"}),An=bn.translate("monaco.esql.autocomplete.examplesLabel",{defaultMessage:"Examples:"}),Rn=(e,t)=>`\n---\n***${On}***\n - \`\`${e}\`\`\n---\n${t?`***${An}***\n${t.map(e=>`\n - \`\`${e}\`\`\n`)}`:""}`,Ln={label:"round",insertText:"round",kind:1,detail:bn.translate("monaco.esql.autocomplete.roundDoc",{defaultMessage:"Returns a number rounded to the decimal, specified by he closest integer value. The default is to round to an integer."}),documentation:{value:Rn("round(grouped[T]): aggregated[T]",['from index where field="value" | eval rounded = round(field)'])},sortText:"C"},In=[{label:"avg",insertText:"avg",kind:1,detail:bn.translate("monaco.esql.autocomplete.avgDoc",{defaultMessage:"Returns the average of the values in a field"}),documentation:{value:Rn("avg(grouped[T]): aggregated[T]",["from index | stats average = avg(field)"])},sortText:"C"},{label:"max",insertText:"max",kind:1,detail:bn.translate("monaco.esql.autocomplete.maxDoc",{defaultMessage:"Returns the maximum value in a field."}),documentation:{value:Rn("max(grouped[T]): aggregated[T]",["from index | stats max = max(field)"])},sortText:"C"},{label:"min",insertText:"min",kind:1,detail:bn.translate("monaco.esql.autocomplete.minDoc",{defaultMessage:"Returns the minimum value in a field."}),documentation:{value:Rn("min(grouped[T]): aggregated[T]",["from index | stats min = min(field)"])},sortText:"C"},{label:"sum",insertText:"sum",kind:1,detail:bn.translate("monaco.esql.autocomplete.sumDoc",{defaultMessage:"Returns the sum of the values in a field."}),documentation:{value:Rn("sum(grouped[T]): aggregated[T]",["from index | stats sum = sum(field)"])},sortText:"C"}],wn=[{label:"from",insertText:"from",kind:0,detail:bn.translate("monaco.esql.autocomplete.fromDoc",{defaultMessage:"Retrieves data from one or more datasets. A dataset is a collection of data that you want to search. The only supported dataset is an index. In a query or subquery, you must use the from command first and it does not need a leading pipe. For example, to retrieve data from an index:"}),documentation:{value:Rn("from` indexPatterns = wildcardIdentifier (`,` wildcardIdentifier)*",["from logs","from logs-*","from logs_*, events-*","from from remote*:logs*"])},sortText:"A"}],Pn={label:"|",insertText:"|",kind:1,detail:bn.translate("monaco.esql.autocomplete.pipeDoc",{defaultMessage:"Pipe (|)"}),sortText:"B"},kn=[{label:"stats",insertText:"stats",kind:1,detail:bn.translate("monaco.esql.autocomplete.statsDoc",{defaultMessage:"Calculates aggregate statistics, such as average, count, and sum, over the incoming search results set. Similar to SQL aggregation, if the stats command is used without a BY clause, only one row is returned, which is the aggregation over the entire incoming search results set. When you use a BY clause, one row is returned for each distinct value in the field specified in the BY clause. The stats command returns only the fields in the aggregation, and you can use a wide range of statistical functions with the stats command. When you perform more than one aggregation, separate each aggregation with a comma."}),documentation:{value:Rn("stats aggs = fieldSpecification ( `,` fieldSpecification )* ( `by` groups = identifier ( `,` identifier )* )?",["… | stats sum(b) by b)","… | stats avg = avg(a)"])},sortText:"B"},{label:"limit",insertText:"limit",kind:1,detail:bn.translate("monaco.esql.autocomplete.limitDoc",{defaultMessage:'Returns the first search results, in search order, based on the "limit" specified.'}),documentation:{value:Rn("limit size = integerLiteral",["… | limit 100","… | limit 0"])},sortText:"B"},{label:"eval",insertText:"eval",kind:1,detail:bn.translate("monaco.esql.autocomplete.evalDoc",{defaultMessage:"Calculates an expression and puts the resulting value into a search results field."}),documentation:{value:Rn("eval columns = fieldSpecification ( `,` fieldSpecification )*",["… | eval a = b * c"])},sortText:"B"},{label:"sort",insertText:"sort",kind:1,detail:bn.translate("monaco.esql.autocomplete.sortDoc",{defaultMessage:"Sorts all results by the specified fields. When in descending order, the results missing a field are considered the smallest possible value of the field, or the largest possible value of the field when in ascending order."}),documentation:{value:Rn("sort orders = orderExpression ( `,` orderExpression )*",["… | sort a desc, b nulls last, c asc nulls first","… | sort b nulls last`","… | sort c asc nulls first`"])},sortText:"B"},{label:"where",insertText:"where",kind:1,detail:bn.translate("monaco.esql.autocomplete.whereDoc",{defaultMessage:'Uses "predicate-expressions" to filter search results. A predicate expression, when evaluated, returns TRUE or FALSE. The where command only returns the results that evaluate to TRUE. For example, to filter results for a specific field value'}),documentation:{value:Rn("where condition = expression",["… | where status_code == 200"])},sortText:"B"}],Dn=[{label:"or",insertText:"or",kind:11,detail:bn.translate("monaco.esql.autocomplete.orDoc",{defaultMessage:"or"}),sortText:"D"},{label:"and",insertText:"and",kind:11,detail:bn.translate("monaco.esql.autocomplete.andDoc",{defaultMessage:"and"}),sortText:"D"}],Mn=[{label:"==",insertText:"==",kind:11,detail:bn.translate("monaco.esql.autocomplete.equalToDoc",{defaultMessage:"Equal to"}),sortText:"D"},{label:"!=",insertText:"!=",kind:11,detail:bn.translate("monaco.esql.autocomplete.notEqualToDoc",{defaultMessage:"Not equal to"}),sortText:"D"},{label:"<",insertText:"<",kind:11,detail:bn.translate("monaco.esql.autocomplete.lessThanDoc",{defaultMessage:"Less than"}),sortText:"D"},{label:">",insertText:">",kind:11,detail:bn.translate("monaco.esql.autocomplete.greaterThanDoc",{defaultMessage:"Greater than"}),sortText:"D"},{label:"<=",insertText:"<=",kind:11,detail:bn.translate("monaco.esql.autocomplete.lessThanOrEqualToDoc",{defaultMessage:"Less than or equal to"}),sortText:"D"},{label:">=",insertText:">=",kind:11,detail:bn.translate("monaco.esql.autocomplete.greaterThanOrEqualToDoc",{defaultMessage:"Greater than or equal to"}),sortText:"D"}],Fn={label:"by",insertText:"by ",kind:21,detail:bn.translate("monaco.esql.autocomplete.byDoc",{defaultMessage:"By"}),sortText:"D"},jn={label:"=",insertText:"=",kind:11,detail:bn.translate("monaco.esql.autocomplete.assignDoc",{defaultMessage:"Assign (=)"}),sortText:"D"},Un={label:"(",insertText:"(",kind:11,detail:bn.translate("monaco.esql.autocomplete.openBracketDoc",{defaultMessage:"Open Bracket ("}),sortText:"A"},zn={label:")",insertText:")",kind:11,detail:bn.translate("monaco.esql.autocomplete.closeBracketDoc",{defaultMessage:"Close Bracket )"}),sortText:"A"},Hn=[{label:"+",insertText:"+",kind:11,detail:bn.translate("monaco.esql.autocomplete.addDoc",{defaultMessage:"Add (+)"}),sortText:"D"},{label:"-",insertText:"-",kind:11,detail:bn.translate("monaco.esql.autocomplete.subtractDoc",{defaultMessage:"Subtract (-)"}),sortText:"D"},{label:"/",insertText:"/",kind:11,detail:bn.translate("monaco.esql.autocomplete.divideDoc",{defaultMessage:"Divide (/)"}),sortText:"D"},{label:"*",insertText:"*",kind:11,detail:bn.translate("monaco.esql.autocomplete.multiplyDoc",{defaultMessage:"Multiply (*)"}),sortText:"D"}],Bn=[{label:"asc",insertText:"asc",kind:17,detail:bn.translate("monaco.esql.autocomplete.ascDoc",{defaultMessage:"Ascending Order"}),sortText:"D"},{label:"desc",insertText:"desc",kind:17,detail:bn.translate("monaco.esql.autocomplete.descDoc",{defaultMessage:"Descending Order"}),sortText:"D"}],qn={label:"nulls",insertText:"nulls",kind:13,sortText:"D"},Vn=[{label:"first",insertText:"first",kind:13,sortText:"D"},{label:"last",insertText:"last",kind:13,sortText:"D"}],Gn=(e,t)=>e.map(e=>({label:e,insertText:e,kind:14,detail:null!=t?t:bn.translate("monaco.esql.autocomplete.constantDefinition",{defaultMessage:"User defined variable"}),sortText:"A"}));class Yn{constructor(){Ht()(this,"suggestions",[]),Ht()(this,"userDefinedVariables",{sourceIdentifiers:[]}),Ht()(this,"tables",[]),Ht()(this,"parentContext",void 0)}get fields(){return this.tables.length>1?Gn(this.tables.at(-2)):[qt.FieldIdentifier]}get hasSuggestions(){return Boolean(this.suggestions.length)}isTerminalNodeExists(e){var t;return e&&(null===(t=e.payload)||void 0===t?void 0:t.startIndex)>=0}getEndCommandSuggestions(e=[]){const t=[Pn];return e.find(e=>e===Fn)||this.parentContext!==tr.STATS||t.push(Fn),t}getNewVarName(){const e=this.tables.flat();let t=0;for(;;){const r="var"+t;if(!e.includes(r))return r;t++}}getAutocompleteSuggestions(){return{suggestions:this.suggestions,userDefinedVariables:this.userDefinedVariables}}enterSourceCommand(e){this.suggestions=[]}exitSourceCommand(e){e.exception?this.suggestions=wn:this.hasSuggestions||(this.suggestions=this.getEndCommandSuggestions())}exitSourceIdentifier(e){e.childCount?!e.exception&&e.text&&this.userDefinedVariables.sourceIdentifiers.push(e.text):this.suggestions=[qt.SourceIdentifier]}enterProcessingCommand(e){this.tables.push([]),this.suggestions=[],this.parentContext=void 0}exitProcessingCommand(e){e.exception&&(this.suggestions=kn),this.parentContext=void 0}enterStatsCommand(e){this.suggestions=[],this.parentContext=tr.STATS}enterEvalCommand(e){this.suggestions=[],this.parentContext=tr.EVAL}exitStatsCommand(e){const t=e.qualifiedNames();t&&t.text&&(this.suggestions=this.getEndCommandSuggestions([Fn]))}exitQualifiedName(e){e.identifier().some(e=>!(this.isTerminalNodeExists(e.QUOTED_IDENTIFIER())||this.isTerminalNodeExists(e.UNQUOTED_IDENTIFIER())))&&(this.suggestions=this.fields)}enterField(e){this.suggestions=[]}exitField(e){const t=this.isTerminalNodeExists(e.ASSIGN());if(e.exception){if(!t)return void(this.suggestions=[(r=this.getNewVarName(),{label:r,insertText:r,kind:21,detail:bn.translate("monaco.esql.autocomplete.newVarDoc",{defaultMessage:"Define a new variable"}),sortText:"D"})])}else t||(this.suggestions=[jn]);var r}exitUserVariable(e){var t;!e.exception&&e.text&&(null===(t=this.tables.at(-1))||void 0===t||t.push(e.text))}enterBooleanExpression(e){this.suggestions=[]}exitBooleanExpression(e){if(e.exception){if(!e.valueExpression()){if(this.parentContext===tr.STATS)return void(this.suggestions=[...In,...this.fields]);if(this.parentContext===tr.EVAL)return void(this.suggestions=[Ln,...this.fields])}}}exitValueExpression(e){const t=this.parentContext===tr.STATS,r=this.parentContext===tr.EVAL;if(this.parentContext&&(t||r)){const t=e.tryGetToken(tr.UNARY_FUNCTION,0),n=e.tryGetToken(tr.LP,0),i=e.tryGetToken(tr.RP,0);if(t){if(!n)return void(this.suggestions=[Un]);if(!i&&3===e.childCount)return void(this.suggestions=[zn,...this.fields])}else if(1===e.childCount)return void(this.suggestions=[...this.getEndCommandSuggestions(),...r?Hn:[]]);this.suggestions=this.fields}}enterWhereCommand(e){this.suggestions=[],this.parentContext=tr.WHERE}exitWhereCommand(e){const t=e.booleanExpression();if(t.exception)this.suggestions=this.fields;else{if(t.getRuleContexts(ur).some(e=>e.exception))return void(this.suggestions=this.fields);this.hasSuggestions||(this.suggestions=Mn)}}exitComparison(e){e.operatorExpression().some(e=>e.exception)?this.suggestions=this.fields:this.suggestions=[...Dn,...this.getEndCommandSuggestions()]}exitOrderExpression(e){e.booleanExpression().exception?this.suggestions=this.fields:this.isTerminalNodeExists(e.ORDERING())?this.isTerminalNodeExists(e.NULLS_ORDERING())?this.isTerminalNodeExists(e.NULLS_ORDERING_DIRECTION())||(this.suggestions=Vn):this.suggestions=[qn]:this.suggestions=Bn}exitLimitCommand(e){this.isTerminalNodeExists(e.INTEGER_LITERAL())?this.suggestions=this.getEndCommandSuggestions():this.suggestions=Gn([1e3.toString()],"")}}var Kn=r(18),Wn=r(41);class $n extends Kn.Lexer{get vocabulary(){return $n.VOCABULARY}constructor(e){super(e),this._interp=new Wn.LexerATNSimulator($n._ATN,this)}get grammarFileName(){return"esql_lexer.g4"}get ruleNames(){return $n.ruleNames}get serializedATN(){return $n._serializedATN}get channelNames(){return $n.channelNames}get modeNames(){return $n.modeNames}static get _ATN(){return $n.__ATN||($n.__ATN=(new Gt.ATNDeserializer).deserialize(er.toCharArray($n._serializedATN))),$n.__ATN}}Ht()($n,"EVAL",1),Ht()($n,"EXPLAIN",2),Ht()($n,"FROM",3),Ht()($n,"ROW",4),Ht()($n,"STATS",5),Ht()($n,"WHERE",6),Ht()($n,"SORT",7),Ht()($n,"LIMIT",8),Ht()($n,"PROJECT",9),Ht()($n,"LINE_COMMENT",10),Ht()($n,"MULTILINE_COMMENT",11),Ht()($n,"WS",12),Ht()($n,"PIPE",13),Ht()($n,"STRING",14),Ht()($n,"INTEGER_LITERAL",15),Ht()($n,"DECIMAL_LITERAL",16),Ht()($n,"BY",17),Ht()($n,"AND",18),Ht()($n,"ASSIGN",19),Ht()($n,"COMMA",20),Ht()($n,"DOT",21),Ht()($n,"LP",22),Ht()($n,"OPENING_BRACKET",23),Ht()($n,"CLOSING_BRACKET",24),Ht()($n,"NOT",25),Ht()($n,"NULL",26),Ht()($n,"OR",27),Ht()($n,"RP",28),Ht()($n,"BOOLEAN_VALUE",29),Ht()($n,"COMPARISON_OPERATOR",30),Ht()($n,"PLUS",31),Ht()($n,"MINUS",32),Ht()($n,"ASTERISK",33),Ht()($n,"SLASH",34),Ht()($n,"PERCENT",35),Ht()($n,"ORDERING",36),Ht()($n,"NULLS_ORDERING",37),Ht()($n,"NULLS_ORDERING_DIRECTION",38),Ht()($n,"UNARY_FUNCTION",39),Ht()($n,"UNQUOTED_IDENTIFIER",40),Ht()($n,"QUOTED_IDENTIFIER",41),Ht()($n,"EXPR_LINE_COMMENT",42),Ht()($n,"EXPR_MULTILINE_COMMENT",43),Ht()($n,"EXPR_WS",44),Ht()($n,"SRC_UNQUOTED_IDENTIFIER",45),Ht()($n,"SRC_QUOTED_IDENTIFIER",46),Ht()($n,"SRC_LINE_COMMENT",47),Ht()($n,"SRC_MULTILINE_COMMENT",48),Ht()($n,"SRC_WS",49),Ht()($n,"EXPRESSION",1),Ht()($n,"SOURCE_IDENTIFIERS",2),Ht()($n,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),Ht()($n,"modeNames",["DEFAULT_MODE","EXPRESSION","SOURCE_IDENTIFIERS"]),Ht()($n,"ruleNames",["EVAL","EXPLAIN","FROM","ROW","STATS","WHERE","SORT","LIMIT","PROJECT","LINE_COMMENT","MULTILINE_COMMENT","WS","PIPE","DIGIT","LETTER","ESCAPE_SEQUENCE","UNESCAPED_CHARS","EXPONENT","STRING","INTEGER_LITERAL","DECIMAL_LITERAL","BY","AND","ASSIGN","COMMA","DOT","LP","OPENING_BRACKET","CLOSING_BRACKET","NOT","NULL","OR","RP","BOOLEAN_VALUE","COMPARISON_OPERATOR","PLUS","MINUS","ASTERISK","SLASH","PERCENT","ORDERING","NULLS_ORDERING","NULLS_ORDERING_DIRECTION","UNARY_FUNCTION","UNQUOTED_IDENTIFIER","QUOTED_IDENTIFIER","EXPR_LINE_COMMENT","EXPR_MULTILINE_COMMENT","EXPR_WS","SRC_PIPE","SRC_CLOSING_BRACKET","SRC_COMMA","SRC_ASSIGN","SRC_UNQUOTED_IDENTIFIER","SRC_UNQUOTED_IDENTIFIER_PART","SRC_QUOTED_IDENTIFIER","SRC_LINE_COMMENT","SRC_MULTILINE_COMMENT","SRC_WS"]),Ht()($n,"_LITERAL_NAMES",[void 0,"'eval'","'explain'","'from'","'row'","'stats'","'where'","'sort'","'limit'","'project'",void 0,void 0,void 0,void 0,void 0,void 0,void 0,"'by'","'and'",void 0,void 0,"'.'","'('","'['","']'","'not'","'null'","'or'","')'",void 0,void 0,"'+'","'-'","'*'","'/'","'%'",void 0,"'nulls'"]),Ht()($n,"_SYMBOLIC_NAMES",[void 0,"EVAL","EXPLAIN","FROM","ROW","STATS","WHERE","SORT","LIMIT","PROJECT","LINE_COMMENT","MULTILINE_COMMENT","WS","PIPE","STRING","INTEGER_LITERAL","DECIMAL_LITERAL","BY","AND","ASSIGN","COMMA","DOT","LP","OPENING_BRACKET","CLOSING_BRACKET","NOT","NULL","OR","RP","BOOLEAN_VALUE","COMPARISON_OPERATOR","PLUS","MINUS","ASTERISK","SLASH","PERCENT","ORDERING","NULLS_ORDERING","NULLS_ORDERING_DIRECTION","UNARY_FUNCTION","UNQUOTED_IDENTIFIER","QUOTED_IDENTIFIER","EXPR_LINE_COMMENT","EXPR_MULTILINE_COMMENT","EXPR_WS","SRC_UNQUOTED_IDENTIFIER","SRC_QUOTED_IDENTIFIER","SRC_LINE_COMMENT","SRC_MULTILINE_COMMENT","SRC_WS"]),Ht()($n,"VOCABULARY",new Zt.VocabularyImpl($n._LITERAL_NAMES,$n._SYMBOLIC_NAMES,[])),Ht()($n,"_serializedATN","줝쪺֍꾺体؇쉁3ȕ\b\b\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<\b\b\b\b\b\b\b\t\t\t\t\t\t\t\t\n\n\n\n\n\n\n\n\n\n\v\v\v\v\vÇ\n\v\f\v\vÊ\v\v\v\vÍ\n\v\v\vÐ\n\v\v\v\f\f\f\f\f\fÙ\n\f\f\f\fÜ\v\f\f\f\f\f\f\r\rä\n\r\r\r\rå\r\rù\nü\n\rýă\n\fĆ\vĎ\n\fđ\vĘ\ně\nĝ\nĠ\n\rġĥ\n\rĦī\n\fĮ\vIJ\n\rijķ\n\rĸĽ\n\fŀ\vł\nň\n\rʼnŎ\n     !!!\"\"##########ſ\n#$$$$$$$$$$$Ƌ\n$%%&&''(())********ƞ\n*++++++,,,,,,,,,,Ư\n,------------------ǂ\n-...dž\n.....Nj\n.\f..ǎ\v./////ǔ\n/\f//Ǘ\v///000011112222333334444445555666677ǻ\n7\r77Ǽ88Ȁ\n8\r88ȁ888Ȇ\n899::::;;;;<<<<Úď=\t\v\r\b\t\n\v\f\r!#%')+-/13579;=?ACEGI K!M\"O#Q$S%U&W'Y([)]*_+a,c-e.gikmo/qs0u1w2y3\r\f\f\v\f\"\"2;C\\c|$$^^ppttvv\f\f$$^^GGgg--//bb\f\v\f\"\"..11??]]__bb~~,,11Ⱥ\t\v\r)+-/13579;=?ACEGIKMOQSUWY[]_acegikmosuwy{‚\tŒ\v“\r™¡©°¸ÂÓãéí!ï#ñ%ô'ö)Ĝ+ğ-ō/ŏ1Œ3Ŗ5Ř7Ś9Ŝ;Ş=Ţ?ŧAūCŰEųGžIƊKƌMƎOƐQƒSƔUƝWƟYƮ[ǁ]Dž_ǏaǚcǞeǢgǦiǫkDZmǵoǺqȅsȇuȉwȍyȑ{|g|}x}~c~n€€\b‚ƒgƒ„z„…r…†n†‡c‡ˆkˆ‰p‰ŠŠ‹\b‹\bŒhŽtŽqo‘‘’\b’\n“”t”•q•–y–——˜\b˜\f™šuš›v›œcœvžužŸŸ \b ¡¢y¢£j£¤g¤¥t¥¦g¦§§¨\b¨©ªuª«q«¬t¬­v­®®¯\b\b¯°±n±²k²³o³´k´µvµ¶¶·\b\t·¸¹r¹ºtº»q»¼l¼½g½¾e¾¿v¿ÀÀÁ\b\nÁÂÃ1ÃÄ1ÄÈÅÇ\nÆÅÇÊÈÆÈÉÉÌÊÈËÍÌËÌÍÍÏÎÐ\fÏÎÏÐÐÑÑÒ\b\vÒÓÔ1ÔÕ,ÕÚÖÙ\f×Ù\vØÖØ×ÙÜÚÛÚØÛÝÜÚÝÞ,Þß1ßààá\b\fáâä\tãâäååãåææççè\b\rèéê~êëëì\bìíî\tî ïð\tð\"ñò^òó\tó$ôõ\nõ&öø\t\b÷ù\t\tø÷øùùûúüûúüýýûýþþ(ÿĄ$Āă#āă%ĂĀĂāăĆĄĂĄąąćĆĄćĝ$Ĉĉ$ĉĊ$Ċċ$ċďČĎ\nčČĎđďĐďčĐĒđďĒē$ēĔ$Ĕĕ$ĕėĖĘ$ėĖėĘĘĚęě$ĚęĚěěĝĜÿĜĈĝ*ĞĠğĞĠġġğġĢĢ,ģĥĤģĥĦĦĤĦħħĨĨĬ7ĩīĪĩīĮĬĪĬĭĭŎĮĬįı7İIJıİIJijijıijĴĴŎĵķĶĵķĸĸĶĸĹĹŁĺľ7ĻĽļĻĽŀľļľĿĿłŀľŁĺŁłłŃŃń'ńŎŅŇ7ņňŇņňʼnʼnŇʼnŊŊŋŋŌ'ŌŎōĤōįōĶōŅŎ.ŏŐdŐő{ő0ŒœcœŔpŔŕfŕ2Ŗŗ?ŗ4Řř.ř6Śś0ś8Ŝŝ*ŝ:Şş]şŠŠš\bš<Ţţ_ţŤŤť\bťŦ\bŦ>ŧŨpŨũqũŪvŪ@ūŬpŬŭwŭŮnŮůnůBŰűqűŲtŲDųŴ+ŴFŵŶvŶŷtŷŸwŸſgŹźhźŻcŻżnżŽuŽſgžŵžŹſHƀƁ?ƁƋ?Ƃƃ#ƃƋ?ƄƋ>ƅƆ>ƆƋ?ƇƋ@ƈƉ@ƉƋ?ƊƀƊƂƊƄƊƅƊƇƊƈƋJƌƍ-ƍLƎƏ/ƏNƐƑ,ƑPƒƓ1ƓRƔƕ'ƕTƖƗcƗƘuƘƞeƙƚfƚƛgƛƜuƜƞeƝƖƝƙƞVƟƠpƠơwơƢnƢƣnƣƤuƤXƥƦhƦƧkƧƨtƨƩuƩƯvƪƫnƫƬcƬƭuƭƯvƮƥƮƪƯZưƱtƱƲqƲƳwƳƴpƴǂfƵƶcƶƷxƷǂiƸƹoƹƺkƺǂpƻƼoƼƽcƽǂzƾƿuƿǀwǀǂoǁưǁƵǁƸǁƻǁƾǂ\\ǃdž!DŽdžaDžǃDžDŽdžnjLJNj!LjNjljNjaNJLJNJLjNJljNjǎnjNJnjǍǍ^ǎnjǏǕbǐǔ\n\nǑǒbǒǔbǓǐǓǑǔǗǕǓǕǖǖǘǗǕǘǙbǙ`ǚǛ\vǛǜǜǝ\b0ǝbǞǟ\fǟǠǠǡ\b1ǡdǢǣ\rǣǤǤǥ\b2ǥfǦǧ~ǧǨǨǩ\b3ǩǪ\b3ǪhǫǬ_ǬǭǭǮ\b4Ǯǯ\b4ǯǰ\b4\bǰjDZDz.DzdzdzǴ\b5\tǴlǵǶ?ǶǷǷǸ\b6\nǸnǹǻq8ǺǹǻǼǼǺǼǽǽpǾȀ\n\vǿǾȀȁȁǿȁȂȂȆȃȄ1ȄȆ\n\fȅǿȅȃȆrȇȈ_/ȈtȉȊ\vȊȋȋȌ\b:ȌvȍȎ\fȎȏȏȐ\b;ȐxȑȒ\rȒȓȓȔ\b<Ȕz)ÈÌÏØÚåøýĂĄďėĚĜġĦĬijĸľŁʼnōžƊƝƮǁDžNJnjǓǕǼȁȅ\v\t\t\t\t"),Ht()($n,"__ATN",void 0);const Xn=(e,t,r)=>{const n=Qn(e,t),i=new Bt.CommonTokenStream(n),o=new tr(i);return o.removeErrorListeners(),o.addErrorListener(t),r&&o.addParseListener(r),o},Qn=(e,t)=>{const r=new $n(e);return r.removeErrorListeners(),r.addErrorListener(t),r};class Jn{constructor(){Ht()(this,"errors",[])}syntaxError(e,t,r,n,i){let o=n+1;null!=t&&t._text&&(o=n+t._text.length),this.errors.push({startLineNumber:r,endLineNumber:r,startColumn:n,endColumn:o,message:i})}getErrors(){return this.errors}}class Zn{constructor(e){Ht()(this,"_ctx",void 0),this._ctx=e}getModelCharStream(e){const t=this._ctx.getMirrorModels().find(t=>t.uri.toString()===e),r=null==t?void 0:t.getValue();if(r)return Bt.CharStreams.fromString(r)}async getSyntaxErrors(e){const t=this.getModelCharStream(e);if(t){const e=new Jn;return Xn(t,e).singleStatement(),e.getErrors()}return[]}async provideAutocompleteSuggestions(e,t){const r=this.getModelCharStream(e);if(r){const e=new Jn,t=new Yn;return Xn(r,e,t).singleStatement(),t.getAutocompleteSuggestions()}}}self.onmessage=()=>{Ut((e,t)=>new Zn(e))}}]);