@lithent/hmr-parser 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lithentHmrParser.cjs +155 -0
- package/dist/lithentHmrParser.cjs.map +1 -0
- package/dist/lithentHmrParser.mjs +19909 -21421
- package/dist/lithentHmrParser.mjs.map +1 -1
- package/dist/lithentHmrParser.umd.js +29 -43
- package/dist/lithentHmrParser.umd.js.map +1 -1
- package/package.json +14 -13
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),t=44,n=59,r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,i=new Uint8Array(64),a=new Uint8Array(128);for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);i[e]=t,a[t]=e}function o(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(i[t])}while(r>0);return t}var s=16384,c=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},l=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(s)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===s&&(this.out+=c.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+c.decode(e.subarray(0,n)):t}};function u(e){let r=new l,i=0,a=0,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(l>0&&r.write(n),u.length===0)continue;let d=0;for(let e=0;e<u.length;e++){let n=u[e];e>0&&r.write(t),d=o(r,n[0],d),n.length!==1&&(i=o(r,n[1],i),a=o(r,n[2],a),s=o(r,n[3],s),n.length!==4&&(c=o(r,n[4],c)))}}return r.flush()}var d=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},f=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function p(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer==`function`?e=>Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var m=p(),h=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=u(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+m(this.toString())}};function g(e){let t=e.split(`
|
|
2
|
+
`),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function _(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}var ee=Object.prototype.toString;function te(e){return ee.call(e)===`[object Object]`}function ne(e){let t=e.split(`
|
|
3
|
+
`),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}var re=/\w/,v=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
|
|
4
|
+
`,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=a,a=t.indexOf(`
|
|
5
|
+
`,a+1)}let s=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&s.push(r),this.rawSegments.push(s),this.advance(t.slice(o+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,r,i){let a=t.start,o=!0,s=!1;for(;a<t.end;){if(n[a]===`
|
|
6
|
+
`)r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0,s=!1;else{if(this.hires||o||i.has(a)){let t=[this.generatedCodeColumn,e,r.line,r.column];this.hires===`boundary`?re.test(n[a])?s||(this.rawSegments.push(t),s=!0):(this.rawSegments.push(t),s=!1):this.rawSegments.push(t)}r.column+=1,this.generatedCodeColumn+=1,o=!1}a+=1}this.pending=null}advance(e){if(!e)return;let t=e.split(`
|
|
7
|
+
`);if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}},y=`
|
|
8
|
+
`,b={insertLeft:!1,insertRight:!1,storeName:!1},x=class e{constructor(e,t={}){let n=new f(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:``},intro:{writable:!0,value:``},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new d},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.outro+=e,this}appendLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let e=n.next,i=e&&e.clone();i&&(r.next=i,i.previous=r,r=i),n=e}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new d(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(e){e=e||{};let t=Object.keys(this.storedNames),n=new v(e.hires),r=ne(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext(e=>{let i=r(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,i,e.storeName?t.indexOf(e.original):-1):n.addUneditedChunk(0,e,this.original,i,this.sourcemapLocations),e.outro.length&&n.advance(e.outro)}),this.outro&&n.advance(this.outro),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?_(e.file||``,e.source):e.file||``],sourcesContent:e.includeContent?[this.original]:void 0,names:t,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new h(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=g(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?` `:this.indentStr}indent(e,t){let n=/^[^\r\n]/gm;if(te(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||` `),e===``)return this;t=t||{};let r={};t.exclude&&(typeof t.exclude[0]==`number`?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)r[t]=!0});let i=t.indentStart!==!1,a=t=>i?`${e}${t}`:(i=!0,t);this.intro=this.intro.replace(n,a);let o=0,s=this.firstChunk;for(;s;){let t=s.end;if(s.edited)r[o]||(s.content=s.content.replace(n,a),s.content.length&&(i=s.content[s.content.length-1]===`
|
|
9
|
+
`));else for(o=s.start;o<t;){if(!r[o]){let t=this.original[o];t===`
|
|
10
|
+
`?i=!0:t!==`\r`&&i&&(i=!1,o===s.start||(this._splitChunk(s,o),s=s.next),s.prependRight(e))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(n,a),this}insert(){throw Error(`magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)`)}insertLeft(e,t){return b.insertLeft||(console.warn(`magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead`),b.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return b.insertRight||(console.warn(`magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead`),b.insertRight=!0),this.prependRight(e,t)}move(e,t,n){if(e+=this.offset,t+=this.offset,n+=this.offset,n>=e&&n<=t)throw Error(`Cannot move a selection inside itself`);this._split(e),this._split(t),this._split(n);let r=this.byStart[e],i=this.byEnd[t],a=r.previous,o=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;let c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=c,i.next=s||null,c||(this.firstChunk=r),s||(this.lastChunk=i),this}overwrite(e,t,n,r){return r=r||{},this.update(e,t,n,{...r,overwrite:!r.contentOnly})}update(e,t,n,r){if(e+=this.offset,t+=this.offset,typeof n!=`string`)throw TypeError(`replacement content must be a string`);if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw Error(`end is out of bounds`);if(e===t)throw Error(`Cannot overwrite a zero-length range – use appendLeft or prependRight instead`);this._split(e),this._split(t),r===!0&&(b.storeName||(console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`),b.storeName=!0),r={storeName:!0});let i=r!==void 0&&r.storeName,a=r!==void 0&&r.overwrite;if(i){let n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}let o=this.byStart[e],s=this.byEnd[t];if(o){let e=o;for(;e!==s;){if(e.next!==this.byStart[e.end])throw Error(`Cannot overwrite across a split point`);e=e.next,e.edit(``,!1)}o.edit(n,i,!a)}else{let r=new f(e,t,``).edit(n,i);s.next=r,r.previous=s}return this}prepend(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.intro=e+this.intro,this}prependLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro=``,n.outro=``,n.edit(``),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:``}lastLine(){let e=this.outro.lastIndexOf(y);if(e!==-1)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(y),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(y),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(y),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(y),e===-1?this.intro+t:this.intro.substr(e+1)+t}slice(e=0,t=this.original.length-this.offset){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n=``,r=this.firstChunk;for(;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw Error(`Cannot use replaced character ${e} as slice start anchor.`);let i=r;for(;r;){r.intro&&(i!==r||r.start===e)&&(n+=r.intro);let a=r.start<t&&r.end>=t;if(a&&r.edited&&r.end!==t)throw Error(`Cannot use replaced character ${t} as slice end anchor.`);let o=i===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,s),r.outro&&(!a||r.end===t)&&(n+=r.outro),a)break;r=r.next}return n}snip(e,t){let n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk,n=t,r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=r?this.byStart[t.end]:this.byEnd[t.start],t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let n=ne(this.original)(t);throw Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}let n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t}trimLines(){return this.trim(`[\\r\\n]`)}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=RegExp((e||`\\s`)+`+$`);if(this.outro=this.outro.replace(t,``),this.outro.length)return!0;let n=this.lastChunk;do{let e=n.end,r=n.trimEnd(t);if(n.end!==e&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=RegExp(`^`+(e||`\\s`)+`+`);if(this.intro=this.intro.replace(t,``),this.intro.length)return!0;let n=this.firstChunk;do{let e=n.end,r=n.trimStart(t);if(n.end!==e&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(e,n){return typeof t==`string`?t.replace(/\$(\$|&|\d+)/g,(t,n)=>n===`$`?`$`:n===`&`?e[0]:+n<e.length?e[+n]:`$${n}`):t(...e,e.index,n,e.groups)}function r(e,t){let n,r=[];for(;n=e.exec(t);)r.push(n);return r}if(e.global)r(e,this.original).forEach(e=>{if(e.index!=null){let t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}});else{let t=this.original.match(e);if(t&&t.index!=null){let e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}return this}_replaceString(e,t){let{original:n}=this,r=n.indexOf(e);return r!==-1&&(typeof t==`function`&&(t=t(e,r,n)),e!==t&&this.overwrite(r,r+e.length,t)),this}replace(e,t){return typeof e==`string`?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,r=e.length;for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+r)){let e=n.slice(i,i+r),a=t;typeof t==`function`&&(a=t(e,i,n)),e!==a&&this.overwrite(i,i+r,a)}return this}replaceAll(e,t){if(typeof e==`string`)return this._replaceAllString(e,t);if(!e.global)throw TypeError(`MagicString.prototype.replaceAll called with a non-global RegExp argument`);return this._replaceRegexp(e,t)}},S=(e,t)=>`
|
|
11
|
+
const __lithentModuleUrl = new URL(import.meta.url);
|
|
12
|
+
__lithentModuleUrl.searchParams.delete('t');
|
|
13
|
+
const __lithentModuleId = __lithentModuleUrl.pathname + __lithentModuleUrl.search;
|
|
14
|
+
const __lithentInvalidateCountKey = \`__lithent_hmr_invalidate_count__\${__lithentModuleId}\`;
|
|
15
|
+
const __lithentGlobalStore = globalThis;
|
|
16
|
+
const __lithentHotData = import.meta.hot?.data;
|
|
17
|
+
const __lithentModuleHotStore = __lithentHotData
|
|
18
|
+
? (__lithentHotData.components ??= Object.create(null))
|
|
19
|
+
: Object.create(null);
|
|
20
|
+
const __lithentCurrentComponents = Object.create(null);
|
|
21
|
+
if (__lithentHotData) __lithentHotData.currentComponents = __lithentCurrentComponents;
|
|
22
|
+
let __lithentExportSnapshot;
|
|
23
|
+
const __lithentRenderDisposers = __lithentHotData
|
|
24
|
+
? (__lithentHotData.renderDisposers ??= new Map()) : new Map();
|
|
25
|
+
const __lithentRenderOnce = (id, factory) => {
|
|
26
|
+
if (!import.meta.hot) return factory();
|
|
27
|
+
if (__lithentRenderDisposers.has(id)) return __lithentRenderDisposers.get(id);
|
|
28
|
+
const result = factory();
|
|
29
|
+
if (typeof result === 'function') {
|
|
30
|
+
__lithentRenderDisposers.set(id, result);
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
const __lithentResetInvalidateCount = (name = '') => {
|
|
35
|
+
__lithentGlobalStore[__lithentInvalidateCountKey + '#' + name] = 0;
|
|
36
|
+
};
|
|
37
|
+
const __lithentSafeInvalidate = (reason, name = '') => {
|
|
38
|
+
const key = __lithentInvalidateCountKey + '#' + name;
|
|
39
|
+
const count = (__lithentGlobalStore[key] || 0) + 1;
|
|
40
|
+
__lithentGlobalStore[key] = count;
|
|
41
|
+
if (count >= 3) {
|
|
42
|
+
console.warn('[Lithent HMR] boundary update repeatedly failed; reload manually:', reason);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
console.warn('[Lithent HMR] invalidating boundary:', reason);
|
|
46
|
+
import.meta.hot?.invalidate(reason);
|
|
47
|
+
};
|
|
48
|
+
const __lithentWrapComponent = (name, implementation) => {
|
|
49
|
+
// Production/SSR builds retain the original component and never register hooks.
|
|
50
|
+
if (!import.meta.hot) return implementation;
|
|
51
|
+
let entry = __lithentModuleHotStore[name];
|
|
52
|
+
if (!entry) {
|
|
53
|
+
entry = {
|
|
54
|
+
implementation,
|
|
55
|
+
registrations: new WeakMap(),
|
|
56
|
+
boundary: __lithentCreateBoundary(
|
|
57
|
+
__lithentModuleId + '#' + name,
|
|
58
|
+
reason => __lithentSafeInvalidate(reason, name),
|
|
59
|
+
() => __lithentResetInvalidateCount(name)
|
|
60
|
+
),
|
|
61
|
+
};
|
|
62
|
+
entry.component = (props, children) => {
|
|
63
|
+
const compKey = __lithentGetComponentKey();
|
|
64
|
+
const instance = compKey && __lithentComponentMap.get(compKey);
|
|
65
|
+
if (instance && entry.registrations.get(compKey) !== instance) {
|
|
66
|
+
entry.registrations.set(compKey, instance);
|
|
67
|
+
// Direct calls rerender the caller's existing closure; they have no
|
|
68
|
+
// independent VDOM that can be replaced with this component's tag.
|
|
69
|
+
const callerCtor = instance.ctor && instance.ctor !== entry.component
|
|
70
|
+
? instance.ctor : undefined;
|
|
71
|
+
const unregister = entry.boundary.register(compKey, callerCtor);
|
|
72
|
+
__lithentMountCallback(() => () => {
|
|
73
|
+
if (entry.registrations.get(compKey) === instance) {
|
|
74
|
+
entry.registrations.delete(compKey);
|
|
75
|
+
}
|
|
76
|
+
unregister();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
const implementation = entry.implementation;
|
|
80
|
+
return implementation(props, children);
|
|
81
|
+
};
|
|
82
|
+
__lithentModuleHotStore[name] = entry;
|
|
83
|
+
}
|
|
84
|
+
entry.implementation = implementation;
|
|
85
|
+
__lithentCurrentComponents[name] = entry;
|
|
86
|
+
return entry.component;
|
|
87
|
+
};
|
|
88
|
+
const __lithentSetupHmrHooks = () => {
|
|
89
|
+
if (!import.meta.hot) return;
|
|
90
|
+
// Entries without components must propagate to importers, not accept an update
|
|
91
|
+
// that cannot render anything (e.g. the render-only application entry).
|
|
92
|
+
if (${JSON.stringify(t)}.length) {
|
|
93
|
+
import.meta.hot.accept(mod => {
|
|
94
|
+
const current = __lithentHotData.currentComponents || {};
|
|
95
|
+
const missing = ${JSON.stringify(t)}.filter(name => !current[name]);
|
|
96
|
+
if (!mod || missing.length) {
|
|
97
|
+
import.meta.hot.invalidate('removed or unavailable components: ' + missing.join(', '));
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const previousExports = __lithentExportSnapshot;
|
|
101
|
+
if (!previousExports || Object.keys(previousExports).length !== Object.keys(mod).length
|
|
102
|
+
|| Object.keys(previousExports).some(name => !Object.prototype.hasOwnProperty.call(mod, name)
|
|
103
|
+
|| !Object.is(previousExports[name], mod[name]))) {
|
|
104
|
+
import.meta.hot.invalidate('module exports changed');
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
for (const name of Object.keys(current)) {
|
|
108
|
+
const entry = current[name];
|
|
109
|
+
// Existing imports and future parent redraws keep the stable proxy.
|
|
110
|
+
if (!entry.boundary.update(entry.component)) {
|
|
111
|
+
__lithentResetInvalidateCount(name);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
// An unmounted component is a valid update: its proxy is already refreshed.
|
|
115
|
+
__lithentResetInvalidateCount();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
import.meta.hot.dispose(data => {
|
|
119
|
+
data.components = __lithentModuleHotStore;
|
|
120
|
+
data.currentComponents = undefined;
|
|
121
|
+
data.renderDisposers = __lithentRenderDisposers;
|
|
122
|
+
// Keep the failure count across invalidation-driven module replacements.
|
|
123
|
+
});
|
|
124
|
+
import.meta.hot.prune(() => {
|
|
125
|
+
// App disposers need the live component map to locate the current root.
|
|
126
|
+
for (const dispose of __lithentRenderDisposers.values()) dispose();
|
|
127
|
+
__lithentRenderDisposers.clear();
|
|
128
|
+
for (const [name, entry] of Object.entries(__lithentModuleHotStore)) {
|
|
129
|
+
entry.boundary.dispose();
|
|
130
|
+
__lithentResetInvalidateCount(name);
|
|
131
|
+
}
|
|
132
|
+
__lithentResetInvalidateCount();
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
__lithentSetupHmrHooks();
|
|
136
|
+
`,C=e((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var n=class{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}var a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`,o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}},s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type],l={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncFunction:`'await' is only allowed within async functions.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]),f=Object.assign({PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`}),p=[`message`];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function h({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let a=r===`MissingPlugin`||r===`MissingOneOfPlugins`;{let e={AccessorCannotDeclareThisParameter:`AccesorCannotDeclareThisParameter`,AccessorCannotHaveTypeParameters:`AccesorCannotHaveTypeParameters`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference`,SetAccessorCannotHaveOptionalParameter:`SetAccesorCannotHaveOptionalParameter`,SetAccessorCannotHaveRestParameter:`SetAccesorCannotHaveRestParameter`,SetAccessorCannotHaveReturnType:`SetAccesorCannotHaveReturnType`};e[r]&&(r=e[r])}return function o(s,c){let l=SyntaxError();return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),m(l,`clone`,function(e={}){let{line:t,column:r,index:i}=e.loc??s;return o(new n(t,r,i),Object.assign({},c,e.details))}),m(l,`details`,c),Object.defineProperty(l,"message",{configurable:!0,get(){let t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),l}}function g(e,n){if(Array.isArray(e))return t=>g(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:()=>a}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,p);r[i]=h(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:typeof s==`string`?()=>s:s},n?{syntaxPlugin:n}:{},c))}return r}var _=Object.assign({},g(o),g(l),g(u),g`pipelineOperator`(f));function ee(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function te(e){let t=ee();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var{defineProperty:ne}=Object,re=(e,t)=>{e&&ne(e,t,{enumerable:!1,value:e[t]})};function v(e){return re(e.loc.start,`index`),re(e.loc.end,`index`),e}var y=e=>class extends e{parse(){let e=v(super.parse());return this.optionFlags&128&&(e.tokens=e.tokens.map(v)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type=`Literal`,t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=e;return n.type=`ExpressionStatement`,n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=t,e.type=`PrivateIdentifier`,e}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),s.type=`FunctionExpression`,delete s.kind,e.value=s;let{typeParameters:c}=e;return c&&(delete e.typeParameters,s.typeParameters=c,this.resetStartLocationFromNode(s,c)),a===`ClassPrivateMethod`&&(e.computed=!1),this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`,t.computed=!1),t}parseObjectMethod(e,t,n,r,i){let a=super.parseObjectMethod(e,t,n,r,i);return a&&(a.type=`Property`,a.kind===`method`&&(a.kind=`init`),a.shorthand=!1),a}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,i.type=`Property`),i}isValidLVal(e,t,n){return e===`Property`?`value`:super.isValidLVal(e,t,n)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(_.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(_.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`&&(n.type=`ImportExpression`,n.source=n.arguments[0],n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null,delete n.arguments,delete n.callee),n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(r.type=`ExportAllDeclaration`,r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{var i;let{declaration:e}=r;(e==null?void 0:e.type)===`ClassDeclaration`&&((i=e.decorators)==null?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){let i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if((i.type===`OptionalMemberExpression`||i.type===`OptionalCallExpression`)&&(i.type=i.type.substring(8)),r.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,`ChainExpression`)}}else(i.type===`MemberExpression`||i.type===`CallExpression`)&&(i.optional=!1);return i}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}finishNodeAt(e,t,n){return v(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),v(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),v(e)}},b=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},x={brace:new b(`{`),j_oTag:new b(`<tag`),j_cTag:new b(`</tag`),j_expr:new b(`<tag>...</tag>`,!0)};x.template=new b("`",!0);var S=!0,C=!0,ie=!0,w=!0,T=!0,ae=!0,oe=class{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop==null?null:t.binop,this.updateContext=null}},se=new Map;function E(e,t={}){t.keyword=e;let n=j(e,t);return se.set(e,n),n}function D(e,t){return j(e,{beforeExpr:S,binop:t})}var O=-1,k=[],ce=[],le=[],ue=[],A=[],de=[];function j(e,t={}){return++O,ce.push(e),le.push(t.binop??-1),ue.push(t.beforeExpr??!1),A.push(t.startsExpr??!1),de.push(t.prefix??!1),k.push(new oe(e,t)),O}function M(e,t={}){return++O,se.set(e,O),ce.push(e),le.push(t.binop??-1),ue.push(t.beforeExpr??!1),A.push(t.startsExpr??!1),de.push(t.prefix??!1),k.push(new oe(`name`,t)),O}var N={bracketL:j(`[`,{beforeExpr:S,startsExpr:C}),bracketHashL:j(`#[`,{beforeExpr:S,startsExpr:C}),bracketBarL:j(`[|`,{beforeExpr:S,startsExpr:C}),bracketR:j(`]`),bracketBarR:j(`|]`),braceL:j(`{`,{beforeExpr:S,startsExpr:C}),braceBarL:j(`{|`,{beforeExpr:S,startsExpr:C}),braceHashL:j(`#{`,{beforeExpr:S,startsExpr:C}),braceR:j(`}`),braceBarR:j(`|}`),parenL:j(`(`,{beforeExpr:S,startsExpr:C}),parenR:j(`)`),comma:j(`,`,{beforeExpr:S}),semi:j(`;`,{beforeExpr:S}),colon:j(`:`,{beforeExpr:S}),doubleColon:j(`::`,{beforeExpr:S}),dot:j(`.`),question:j(`?`,{beforeExpr:S}),questionDot:j(`?.`),arrow:j(`=>`,{beforeExpr:S}),template:j(`template`),ellipsis:j(`...`,{beforeExpr:S}),backQuote:j("`",{startsExpr:C}),dollarBraceL:j("${",{beforeExpr:S,startsExpr:C}),templateTail:j("...`",{startsExpr:C}),templateNonTail:j("...${",{beforeExpr:S,startsExpr:C}),at:j(`@`),hash:j(`#`,{startsExpr:C}),interpreterDirective:j(`#!...`),eq:j(`=`,{beforeExpr:S,isAssign:w}),assign:j(`_=`,{beforeExpr:S,isAssign:w}),slashAssign:j(`_=`,{beforeExpr:S,isAssign:w}),xorAssign:j(`_=`,{beforeExpr:S,isAssign:w}),moduloAssign:j(`_=`,{beforeExpr:S,isAssign:w}),incDec:j(`++/--`,{prefix:T,postfix:ae,startsExpr:C}),bang:j(`!`,{beforeExpr:S,prefix:T,startsExpr:C}),tilde:j(`~`,{beforeExpr:S,prefix:T,startsExpr:C}),doubleCaret:j(`^^`,{startsExpr:C}),doubleAt:j(`@@`,{startsExpr:C}),pipeline:D(`|>`,0),nullishCoalescing:D(`??`,1),logicalOR:D(`||`,1),logicalAND:D(`&&`,2),bitwiseOR:D(`|`,3),bitwiseXOR:D(`^`,4),bitwiseAND:D(`&`,5),equality:D(`==/!=/===/!==`,6),lt:D(`</>/<=/>=`,7),gt:D(`</>/<=/>=`,7),relational:D(`</>/<=/>=`,7),bitShift:D(`<</>>/>>>`,8),bitShiftL:D(`<</>>/>>>`,8),bitShiftR:D(`<</>>/>>>`,8),plusMin:j(`+/-`,{beforeExpr:S,binop:9,prefix:T,startsExpr:C}),modulo:j(`%`,{binop:10,startsExpr:C}),star:j(`*`,{binop:10}),slash:D(`/`,10),exponent:j(`**`,{beforeExpr:S,binop:11,rightAssociative:!0}),_in:E(`in`,{beforeExpr:S,binop:7}),_instanceof:E(`instanceof`,{beforeExpr:S,binop:7}),_break:E(`break`),_case:E(`case`,{beforeExpr:S}),_catch:E(`catch`),_continue:E(`continue`),_debugger:E(`debugger`),_default:E(`default`,{beforeExpr:S}),_else:E(`else`,{beforeExpr:S}),_finally:E(`finally`),_function:E(`function`,{startsExpr:C}),_if:E(`if`),_return:E(`return`,{beforeExpr:S}),_switch:E(`switch`),_throw:E(`throw`,{beforeExpr:S,prefix:T,startsExpr:C}),_try:E(`try`),_var:E(`var`),_const:E(`const`),_with:E(`with`),_new:E(`new`,{beforeExpr:S,startsExpr:C}),_this:E(`this`,{startsExpr:C}),_super:E(`super`,{startsExpr:C}),_class:E(`class`,{startsExpr:C}),_extends:E(`extends`,{beforeExpr:S}),_export:E(`export`),_import:E(`import`,{startsExpr:C}),_null:E(`null`,{startsExpr:C}),_true:E(`true`,{startsExpr:C}),_false:E(`false`,{startsExpr:C}),_typeof:E(`typeof`,{beforeExpr:S,prefix:T,startsExpr:C}),_void:E(`void`,{beforeExpr:S,prefix:T,startsExpr:C}),_delete:E(`delete`,{beforeExpr:S,prefix:T,startsExpr:C}),_do:E(`do`,{isLoop:ie,beforeExpr:S}),_for:E(`for`,{isLoop:ie}),_while:E(`while`,{isLoop:ie}),_as:M(`as`,{startsExpr:C}),_assert:M(`assert`,{startsExpr:C}),_async:M(`async`,{startsExpr:C}),_await:M(`await`,{startsExpr:C}),_defer:M(`defer`,{startsExpr:C}),_from:M(`from`,{startsExpr:C}),_get:M(`get`,{startsExpr:C}),_let:M(`let`,{startsExpr:C}),_meta:M(`meta`,{startsExpr:C}),_of:M(`of`,{startsExpr:C}),_sent:M(`sent`,{startsExpr:C}),_set:M(`set`,{startsExpr:C}),_source:M(`source`,{startsExpr:C}),_static:M(`static`,{startsExpr:C}),_using:M(`using`,{startsExpr:C}),_yield:M(`yield`,{startsExpr:C}),_asserts:M(`asserts`,{startsExpr:C}),_checks:M(`checks`,{startsExpr:C}),_exports:M(`exports`,{startsExpr:C}),_global:M(`global`,{startsExpr:C}),_implements:M(`implements`,{startsExpr:C}),_intrinsic:M(`intrinsic`,{startsExpr:C}),_infer:M(`infer`,{startsExpr:C}),_is:M(`is`,{startsExpr:C}),_mixins:M(`mixins`,{startsExpr:C}),_proto:M(`proto`,{startsExpr:C}),_require:M(`require`,{startsExpr:C}),_satisfies:M(`satisfies`,{startsExpr:C}),_keyof:M(`keyof`,{startsExpr:C}),_readonly:M(`readonly`,{startsExpr:C}),_unique:M(`unique`,{startsExpr:C}),_abstract:M(`abstract`,{startsExpr:C}),_declare:M(`declare`,{startsExpr:C}),_enum:M(`enum`,{startsExpr:C}),_module:M(`module`,{startsExpr:C}),_namespace:M(`namespace`,{startsExpr:C}),_interface:M(`interface`,{startsExpr:C}),_type:M(`type`,{startsExpr:C}),_opaque:M(`opaque`,{startsExpr:C}),name:j(`name`,{startsExpr:C}),placeholder:j(`%%`,{startsExpr:!0}),string:j(`string`,{startsExpr:C}),num:j(`num`,{startsExpr:C}),bigint:j(`bigint`,{startsExpr:C}),decimal:j(`decimal`,{startsExpr:C}),regexp:j(`regexp`,{startsExpr:C}),privateName:j(`#name`,{startsExpr:C}),eof:j(`eof`),jsxName:j(`jsxName`),jsxText:j(`jsxText`,{beforeExpr:!0}),jsxTagStart:j(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:j(`jsxTagEnd`)};function P(e){return e>=93&&e<=133}function fe(e){return e<=92}function F(e){return e>=58&&e<=133}function pe(e){return e>=58&&e<=137}function me(e){return ue[e]}function he(e){return A[e]}function ge(e){return e>=29&&e<=33}function I(e){return e>=129&&e<=131}function _e(e){return e>=90&&e<=92}function ve(e){return e>=58&&e<=92}function ye(e){return e>=39&&e<=59}function L(e){return e===34}function be(e){return de[e]}function xe(e){return e>=121&&e<=123}function Se(e){return e>=124&&e<=130}function R(e){return ce[e]}function Ce(e){return le[e]}function we(e){return e===57}function Te(e){return e>=24&&e<=25}function z(e){return k[e]}k[8].updateContext=e=>{e.pop()},k[5].updateContext=k[7].updateContext=k[23].updateContext=e=>{e.push(x.brace)},k[22].updateContext=e=>{e[e.length-1]===x.template?e.pop():e.push(x.template)},k[143].updateContext=e=>{e.push(x.j_expr,x.j_oTag)};var Ee=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,De=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Oe=RegExp(`[`+Ee+`]`),B=RegExp(`[`+Ee+De+`]`);Ee=De=null;var ke=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ae=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function je(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function V(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Oe.test(String.fromCharCode(e)):je(e,ke)}function H(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&B.test(String.fromCharCode(e)):je(e,ke)||je(e,Ae)}var Me={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Ne=new Set(Me.keyword),Pe=new Set(Me.strict),Fe=new Set(Me.strictBind);function Ie(e,t){return t&&e===`await`||e===`enum`}function Le(e,t){return Ie(e,t)||Pe.has(e)}function Re(e){return Fe.has(e)}function ze(e,t){return Le(e,t)||Re(e)}function Be(e){return Ne.has(e)}function Ve(e,t,n){return e===64&&t===64&&V(n)}var He=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function Ue(e){return He.has(e)}var We=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},Ge=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&!(e&2)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new We(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(_.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t);return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&387)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&451&&!(t&4))return t}}},Ke=class extends We{constructor(...e){super(...e),this.declareFunctions=new Set}},qe=class extends Ge{createScope(e){return new Ke(e)}declareName(e,t,n){let r=this.currentScope();t&2048?(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e)):super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Je=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if((r==null?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return(n=this.plugins.get(e))==null?void 0:n[t]}};function Ye(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function Xe(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Ze(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function U(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?Ze(e,n.comments):Ye(r,n.comments)}var Qe=class extends Je{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Ye(e.leadingNode,t),e.trailingNode!==null&&Xe(e.trailingNode,t);else{let{containingNode:n,start:r}=e;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:U(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:U(n,n.arguments,e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:U(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:U(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:U(n,n.specifiers,e);break;case`TSEnumDeclaration`:U(n,n.members,e);break;case`TSEnumBody`:U(n,n.members,e);break;default:Ze(n,t)}else Ze(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:n}=t;n!==0&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},$e=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function W(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function et(e,t,n){for(let r=t;r<n;r++)if(W(e.charCodeAt(r)))return!0;return!1}var tt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,nt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function rt(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var it=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[x.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0||t===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new n(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},at=function(e){return e>=48&&e<=57},ot={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},st={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function ct(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(lt(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=ut(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
|
|
137
|
+
`,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function lt(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function ut(e,t,n,r,i,a){let o=!i;t++;let s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s(`
|
|
138
|
+
`);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=dt(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=pt(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function dt(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=ft(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function ft(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?ot.hex:ot.decBinOct,f=i===16?st.hex:i===10?st.dec:i===8?st.oct:st.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(!s){if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}else if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}++t}else{if(u=a>=97?a-97+10:a>=65?a-65+10:at(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}function pt(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=dt(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111){if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}}else({code:s,pos:t}=dt(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}function G(e,t,r){return new n(r,e-t,e)}var mt=new Set([103,109,115,105,121,117,100,118]),K=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}},ht=class extends Qe{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>this.optionFlags&1024?(this.raise(_.InvalidDigit,G(e,t,n),{radix:r}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,G(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(_.UnterminatedString,G(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(_.UnterminatedTemplate,G(e,t,n))}}),this.state=new it,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&128&&this.pushToken(new K(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return tt.lastIndex=e,tt.test(this.input)?tt.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return nt.lastIndex=e,nt.test(this.input)?nt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,$e.lastIndex=n+2;$e.test(this.input)&&$e.lastIndex<=i;)++this.state.curLine,this.state.lineStart=$e.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new r(t,this.state.curPosition())};return this.optionFlags&128&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!W(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new r(n,this.state.curPosition())};return this.optionFlags&128&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=this.optionFlags&2048?[]:null;loop:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),t==null||t.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),t==null||t.push(e));break}default:break loop}break;default:if(rt(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&4096){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),t==null||t.push(e))}else break loop}else if(n===60&&!this.inModule&&this.optionFlags&4096){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),t==null||t.push(e))}else break loop}else break loop}}if((t==null?void 0:t.length)>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else V(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!W(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e)this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);else{if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}t===61?this.finishOp(30,2):this.finishOp(e===124?43:45,1)}}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?this.finishOp(34,2):t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2)}else t===61?this.finishOp(49,2):this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t)}else t===61?this.finishOp(49,2):this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);t===61?this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2):e===61&&t===62?(this.state.pos+=2,this.finishToken(19)):this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(V(e)){this.readWord(e);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(_.UnterminatedRegExp,i(e,1));let t=this.input.charCodeAt(a);if(W(t))throw this.raise(_.UnterminatedRegExp,i(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=()=>i(e,a+2-t);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(mt.has(e))e===118?s.includes(`u`)&&this.raise(_.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(_.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(_.DuplicateRegExpFlags,c());else if(H(e)||e===92)this.raise(_.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(138,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=ft(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let a=this.readInt(e);a??this.raise(_.InvalidDigit,i(n,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,r=!0;else if(o===109)throw this.raise(_.InvalidDecimal,n);if(V(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e)}else this.finishToken(135,a)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,a=!1,o=!1,s=!1;!e&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(_.ZeroDigitNumericSeparator,i(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!s&&(++this.state.pos,this.readInt(10),r=!0,l=this.input.charCodeAt(this.state.pos)),l!==69&&l!==101||s||(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,n),r=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((r||c)&&this.raise(_.InvalidBigIntLiteral,n),++this.state.pos,a=!0),l===109){this.expectPlugin(`decimal`,this.state.curPosition()),(o||c)&&this.raise(_.InvalidDecimal,n),++this.state.pos;var u=!0}if(V(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=s?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:n}=pt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=ct(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=ct(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new n(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(H(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?V:H;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(_.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=se.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,R(n))}checkKeywordEscapes(){let{type:e}=this.state;ve(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:R(e)})}raise(e,t,r={}){let i=e(t instanceof n?t:t.loc.start,r);if(!(this.optionFlags&1024))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,r={}){let i=t instanceof n?t:t.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(_.UnexpectedToken,e??this.state.startLoc,{expected:t?R(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(_.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,G(t,n,r))}}},gt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},_t=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new gt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(_.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(_.InvalidPrivateFieldResolution,t,{identifierName:e})}},vt=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},yt=class extends vt{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},bt=class{constructor(e){this.parser=void 0,this.stack=[new vt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(_.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function xt(){return new vt(3)}function St(){return new yt(1)}function Ct(){return new yt(2)}function wt(){return new vt}var Tt=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function q(e,t){return(e?2:0)|!!t}var Et=class extends ht{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let n=e+t.length;if(this.input.slice(e,n)===t){let e=this.input.charCodeAt(n);return!(H(e)||(e&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return et(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return et(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a}=e,o=!!n||!!r||!!a||!!i;if(!t)return o;n!=null&&this.raise(_.InvalidCoverInitializedName,n),r!=null&&this.raise(_.DuplicateProto,r),i!=null&&this.raise(_.UnexpectedPrivateField,i),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return pe(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new Tt;let s=this.classScope;this.classScope=new _t(this);let c=this.expressionScope;return this.expressionScope=new bt(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},J=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},Y=class{constructor(e,t,n){this.type=``,this.start=t,this.end=0,this.loc=new r(n),(e==null?void 0:e.optionFlags)&64&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},Dt=Y.prototype;Dt.__clone=function(){let e=new Y(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};function Ot(e){return X(e)}function X(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o,name:s}=e,c=Object.create(Dt);return c.type=t,c.start=n,c.end=r,c.loc=i,c.range=a,c.extra=o,c.name=s,t===`Placeholder`&&(c.expectedNode=e.expectedNode),c}function kt(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e;if(t===`Placeholder`)return Ot(e);let s=Object.create(Dt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,e.raw===void 0?s.extra=o:s.raw=e.raw,s.value=e.value,s}var At=class extends Et{startNode(){let e=this.state.startLoc;return new Y(this,e.index,e)}startNodeAt(e){return new Y(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.optionFlags&64&&(e.range[1]=n.index),this.optionFlags&2048&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&64&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&64&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},jt=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),Z=g`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Mt(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}function Nt(e){return e.importKind===`type`||e.importKind===`typeof`}var Pt={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function Ft(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}var It=/\*?\s*@((?:no)?flow)\b/,Lt=e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return qe}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=It.exec(e.value);if(t){if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(Z.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();n.typeParameters=this.match(47)?this.flowParseTypeParameterDeclaration():null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Z.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),e.id=this.match(134)?super.parseExprAtom():this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Z.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,Z.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Mt(e)?(r===`CommonJS`&&this.raise(Z.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(Z.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(Z.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(Z.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Pt[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`&&(e.type=`ExportDeclaration`,e.default=!1,delete e.exportKind),e.type=`Declare`+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type=`DeclareTypeAlias`,t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type=`DeclareOpaqueType`,t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),e.typeParameters=this.match(47)?this.flowParseTypeParameterDeclaration():null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),e.typeParameters=this.match(47)?this.flowParseTypeParameterInstantiation():null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(Z.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){jt.has(e)&&this.raise(n?Z.AssignReservedType:Z.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),e.typeParameters=this.match(47)?this.flowParseTypeParameterDeclaration():null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),e.typeParameters=this.match(47)?this.flowParseTypeParameterDeclaration():null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(Z.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowInTopLevelContext(e){if(this.curContext()!==x.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,!this.state.inType&&this.curContext()===x.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&pe(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(Z.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(Z.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Z.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(Z.InexactVariance,r),null):(a||this.raise(Z.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(Z.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(Z.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?Z.GetterMayNotHaveThisParam:Z.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(_.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(Z.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(Z.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21)){if(P(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0}if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(Z.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(ve(this.state.type)){let e=R(this.state.type);return this.next(),super.createIdentifier(t,e)}if(P(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(F(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||P(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(P(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||I(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||I(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(Z.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):Ft(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(Z.DeclareClassElement,r):t.value&&this.raise(Z.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;this.isIterator(e)&&this.state.inType||this.raise(_.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):Ve(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];(n==null?void 0:n.type)===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(Z.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return e===`TypeCastExpression`||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Z.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Z.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),e.typeParameters=this.match(47)?this.flowParseTypeParameterInstantiation():null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(Z.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Z.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(Z.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Z.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Z.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Z.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Z.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(Z.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Nt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!F(this.state.type)?(e.imported=t,e.importKind=o,e.local=X(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&F(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(_.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=X(e.imported))}let c=Nt(e);return n&&c&&this.raise(Z.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===x.j_oTag||a===x.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r=r||this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(Z.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(Z.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,`TypeAnnotation`):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Z.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);e===42&&t===47&&this.state.hasFlowComment?(this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken()):super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);e===124&&t===125?this.finishOp(9,2):super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Z.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Z.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}else return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58&&t}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(Z.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?Z.EnumInvalidMemberInitializerSymbolType:Z.EnumInvalidMemberInitializerPrimaryType:Z.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(Z.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(Z.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(Z.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(Z.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!P(this.state.type))throw this.raise(Z.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(Z.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`));e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}return this.raise(Z.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}},Rt={__proto__:null,quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`},zt=g`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function Q(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}function Bt(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return Bt(e.object)+`.`+Bt(e.property);throw Error(`Node had unexpected type: `+e.type)}var Vt=e=>class extends e{jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(zt.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:W(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
|
|
139
|
+
`:`\r
|
|
140
|
+
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):W(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=Rt[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(H(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:ve(this.state.type)?e.name=R(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(x.brace),this.next(),e=this.jsxParseExpressionContainer(e,x.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(zt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(zt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(x.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return e.expression=this.match(8)?this.jsxParseEmptyExpression():this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(x.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(x.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(x.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,x.j_expr));break}default:this.unexpected()}Q(r)&&!Q(i)&&i!==null?this.raise(zt.MissingClosingTagFragment,i):(!Q(r)&&Q(i)||!Q(r)&&!Q(i)&&Bt(i.name)!==Bt(r.name))&&this.raise(zt.MissingClosingTagElement,i,{openingTagName:Bt(r.name)})}if(Q(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(zt.UnwrappedAdjacentJSXElements,this.state.startLoc);return Q(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===x.j_expr)this.jsxReadToken();else{if(t===x.j_oTag||t===x.j_cTag){if(V(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===x.j_oTag){this.jsxReadString(e);return}}e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(e)}}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,x.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(x.j_oTag);else if(n===144){let n=t[t.length-1];n===x.j_oTag&&e===56||n===x.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===x.j_expr):(this.setContext(x.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=me(n)}},Ht=class extends We{constructor(...e){super(...e),this.tsNames=new Map}},Ut=class extends Ge{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Ht(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(_.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;t&1024?(this.maybeExportDefined(r,e),r.tsNames.set(e,i|16)):(super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i))}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},Wt=e=>e.type===`ParenthesizedExpression`?Wt(e.expression):e,Gt=class extends At{toAssignable(e,t=!1){var n,r;let i;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(i=Wt(e),t?i.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,e):i.type!==`MemberExpression`&&!this.isOptionalMemberExpression(i)&&this.raise(_.InvalidParenthesizedAssignment,e):this.raise(_.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`;for(let n=0,r=e.properties.length,i=r-1;n<r;n++){var a;let r=e.properties[n],o=n===i;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(_.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:e.type=`ArrayPattern`,this.toAssignableList(e.elements,(r=e.extra)==null?void 0:r.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(_.MissingEqInAssignment,e.left.loc.end),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?_.PatternHasAccessor:_.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){e.type=`RestElement`;let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(_.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];if(a){if(a.type===`SpreadElement`){a.type=`RestElement`;let e=a.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(a,n);a.type===`RestElement`&&(i<r?this.raise(_.RestTrailingComma,a):t&&this.raise(_.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)(t==null?void 0:t.type)===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin(`flow`)||n&2)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseAssignableListItem(e,t){let n=this.parseMaybeDefault();(this.hasPlugin(`flow`)||e&2)&&this.parseFunctionParamType(n);let r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1){var o;let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s===`MemberExpression`){c&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(_.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(_.InvalidPropertyBindingPattern,e);return}if(s===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(_.ParamDupe,e):r.add(t));return}let l=this.isValidLVal(s,!(a||(o=e.extra)!=null&&o.parenthesized)&&t.type===`AssignmentExpression`,n);if(l===!0)return;if(l===!1){let r=n===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let u,d;typeof l==`string`?(u=l,d=s===`ParenthesizedExpression`):[u,d]=l;let f=s===`ArrayPattern`||s===`ObjectPattern`?{type:s}:t,p=e[u];if(Array.isArray(p))for(let e of p)e&&this.checkLVal(e,f,n,r,i,d);else p&&this.checkLVal(p,f,n,r,i,d)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?ze(e.name,this.inModule):Re(e.name))&&(t===64?this.raise(_.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(_.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(_.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}};function Kt(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function qt(e){if(!e)throw Error(`Assert fail`)}var $=g`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifer:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function Jt(e){switch(e){case`any`:return`TSAnyKeyword`;case`boolean`:return`TSBooleanKeyword`;case`bigint`:return`TSBigIntKeyword`;case`never`:return`TSNeverKeyword`;case`number`:return`TSNumberKeyword`;case`object`:return`TSObjectKeyword`;case`string`:return`TSStringKeyword`;case`symbol`:return`TSSymbolKeyword`;case`undefined`:return`TSUndefinedKeyword`;case`unknown`:return`TSUnknownKeyword`;default:return}}function Yt(e){return e===`private`||e===`public`||e===`protected`}function Xt(e){return e===`in`||e===`out`}var Zt=e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:$.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:$.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:$.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ut}tsIsIdentifier(){return P(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t){if(!P(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(e.includes(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=$.InvalidModifierOnTypeMember},i){let a=(e,t,n,r)=>{t===n&&i[r]&&this.raise($.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise($.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n);if(!c)break;Yt(c)?i.accessibility?this.raise($.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):Xt(c)?(i[c]&&this.raise($.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise($.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return Kt(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12))a=this.state.lastTokStartLoc.index;else{if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise($.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)&&!this.match(11)?(e.options=super.parseMaybeAssignAllowIn(),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseEntityName(e){let t;if(e&1&&this.match(78)){if(e&2)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,`ThisExpression`)}}else t=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(e&1)),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),e.exprName=this.match(83)?this.tsParseImportType():this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise($.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise($.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),P(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let n=e;if(this.match(10)||this.match(47)){t&&this.raise($.ReadonlyForMethodSignature,e);let r=n;r.kind&&this.match(47)&&this.raise($.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let i=`parameters`,a=`typeAnnotation`;if(r.kind===`get`)r[i].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise($.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind===`set`){if(r[i].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let e=r[i][0];this.isThisParam(e)&&this.raise($.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise($.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise($.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise($.SetAccessorCannotHaveReturnType,r[a])}else r.kind=`method`;return this.finishNode(r,`TSMethodSignature`)}{let e=n;t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,`TSTypeParameter`)}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise($.OptionalTypeBeforeRequired,e),t||(t=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`)}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state,r,i,a,o,s=F(this.state.type)?this.lookaheadCharCode():null;if(s===58)r=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(s===63){a=!0;let e=this.state.value,t=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=a,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise($.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=a,this.raise($.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,`TSNamedTupleMember`)}else if(a){let e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,`TSRestType`)}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){{let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(P(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:Jt(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,`TSArrayType`)}else{let n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,`TSIndexedAccessType`)}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise($.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return xe(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(P(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!P(this.state.type)&&!this.match(78)?!1:(e&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){qt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise($.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise($.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),P(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise($.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInTopLevelContext(e){if(this.curContext()!==x.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumBody`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise($.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,n;return this.isContextual(100)&&(t=74,n=`let`),this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,n||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(P(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case`declare`:{let t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case`global`:if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=e;return n.kind=`global`,e.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,`TSModuleDeclaration`)}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case`abstract`:if(this.tsCheckLineTerminator(n)&&(this.match(80)||P(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case`module`:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(P(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case`namespace`:if(this.tsCheckLineTerminator(n)&&P(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case`type`:if(this.tsCheckLineTerminator(n)&&P(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise($.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===x.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return Se(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise($.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise($.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise($.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise($.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{(e==null?void 0:e.type)===`TSTypeCastExpression`&&this.raise($.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return i.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Te(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&he(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise($.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(Ce(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise($.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(P(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise($.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){let t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(let{id:e,init:n}of i.declarations)n&&(t!==`const`||e.typeAnnotation?this.raise($.InitializerNotAllowedInAmbientContext,n):$t(n,this.hasPlugin(`estree`))||this.raise($.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>Yt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:$.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise($.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);i?(e.body.push(i),t.abstract&&this.raise($.IndexSignatureHasAbstract,t),t.accessibility&&this.raise($.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise($.IndexSignatureHasDeclare,t),t.override&&this.raise($.IndexSignatureHasOverride,t)):(!this.state.inAbstractClass&&t.abstract&&this.raise($.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise($.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r))}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise($.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise($.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return(t.type===`Identifier`?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);let r=this.tryParse(()=>super.parseConditional(e,t));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise($.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=P(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&r.type!==`TSImportEqualsDeclaration`&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise($.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise($.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise($.PrivateElementHasAbstract,e),e.accessibility&&this.raise($.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise($.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise($.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise($.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type!==`MethodDefinition`||hasOwnProperty.call(e.value,`body`))&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,a,o;let s,c,l;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(s=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!c.error)return c.node;let{context:n}=this.state,r=n[n.length-1];(r===x.j_oTag||r===x.j_expr)&&n.pop()}if(!((n=c)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);s&&s!==this.state||(s=this.state.clone());let u,d=this.tryParse(n=>{var r,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);let a=super.parseMaybeAssign(e,t);return(a.type!==`ArrowFunctionExpression`||(r=a.extra)!=null&&r.parenthesized)&&n(),((i=u)==null?void 0:i.params.length)!==0&&this.resetStartLocationFromNode(a,u),a.typeParameters=u,a},s);if(!d.error&&!d.aborted)return u&&this.reportReservedArrowTypeParam(u),d.node;if(!c&&(qt(!this.hasPlugin(`jsx`)),l=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!l.error))return l.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,u&&this.reportReservedArrowTypeParam(u),d.node;if((i=l)!=null&&i.node)return this.state=l.failState,l.node;throw((a=c)==null?void 0:a.error)||d.error||((o=l)==null?void 0:o.error)}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise($.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError($.UnexpectedTypeCastInParameter,e):this.raise($.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:case`TSInstantiationExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(n!==64||!t)&&[`expression`,!0];default:return super.isValidLVal(e,t,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=n,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise($.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];(n==null?void 0:n.type)===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise($.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if(s.abstract&&(this.hasPlugin(`estree`)?s.value:s).body){let{key:e}=s;this.raise($.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();F(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else F(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else F(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?$.TypeModifierIsUsedInTypeImports:$.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=X(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}};function Qt(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:nn(e.object)}function $t(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(en(e,t)||tn(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||Qt(e))}function en(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}function tn(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&en(r,t))return!0}return!1}function nn(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:nn(e.object)}var rn=g`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),an=e=>class extends e{parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n){return e===`Placeholder`||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!(super.chStartsBindingIdentifier(e,t)||this.lookahead().type===133)}verifyBreakContinue(e,t){e.label&&e.label.type===`Placeholder`||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a){if(this.match(81)||this.match(133)||this.match(5))e.id=a;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);else throw this.raise(rn.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(R(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(rn.UnexpectedSpace,this.state.lastTokEndLoc)}},on=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),P(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type=`V8IntrinsicIdentifier`,this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},sn=[`minimal`,`fsharp`,`hack`,`smart`],cn=[`^^`,`@@`,`^`,`%`,`#`];function ln(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){var t;let n=e.get(`pipelineOperator`).proposal;if(!sn.includes(n)){let e=sn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=((t=e.get(`recordAndTuple`))==null?void 0:t.syntaxType)===`hash`;if(n===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!cn.includes(t)){let e=cn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&r)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}else if(n===`smart`&&r)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}if(e.has(`moduleAttributes`)){if(e.has(`deprecatedImportAssert`)||e.has(`importAssertions`))throw Error(`Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.`);if(e.get(`moduleAttributes`).version!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(e.has(`importAssertions`)&&e.has(`deprecatedImportAssert`))throw Error(`Cannot combine importAssertions and deprecatedImportAssert plugins.`);if(!e.has(`deprecatedImportAssert`)&&e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax&&e.set(`deprecatedImportAssert`,{}),e.has(`recordAndTuple`)){let t=e.get(`recordAndTuple`).syntaxType;if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`)}var un={estree:y,jsx:Vt,flow:Lt,typescript:Zt,v8intrinsic:on,placeholders:an},dn=Object.keys(un),fn=class extends Gt{checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if((i.type===`Identifier`?i.name:i.value)===`__proto__`){if(t){this.raise(_.RecordNoProto,i);return}n.used&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(_.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&128&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){e.optionalParametersLoc=(t==null?void 0:t.loc)??this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new J,r=!0);let{type:i}=this.state;(i===10||P(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),ge(this.state.type)){let t=this.startNodeAt(n);if(t.operator=this.state.value,this.match(29)){this.toAssignable(a,!0),t.left=a;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,`AssignmentExpression`)),t}return r&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=Ce(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(ye(r)&&(this.prodParam.hasIn||!this.match(58))){let i=Ce(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=Ce(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption(`pipelineOperator`,`proposal`)===`smart`)return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,we(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return d.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(be(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(_.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(_.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?he(e):he(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(_.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;L(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(Te(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return r.stop=!0,e;r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):(r.stop=!0,e)}}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(_.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(Ct()),a=new J),c&&(o.optional=r),o.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`){if(e.arguments.length===0||e.arguments.length>2)this.raise(_.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(_.ImportCallSpreadArgument,t)}return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n,r){let i=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,r,t))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,(n=t.extra)==null?void 0:n.trailingCommaLoc),t.innerComments&&Ze(e,t.innerComments),t.callee.trailingComments&&Ze(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.optionFlags&256?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(_.UnsupportedBind,e)}case 139:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());V(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected();break}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(P(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:e}=this.state;if(e===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(P(e))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(e===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return n===`hack`?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,`TopicReference`)):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,`PipelinePrimaryTopicReference`));throw this.raise(_.PipeTopicUnconfiguredToken,t,{token:R(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:R(n)}]);case`smart`:return n===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(q(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(_.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(_.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(_.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(_.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),`import`);if(this.next(),this.isContextual(101))this.inModule||this.raise(_.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);if(this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),!(this.optionFlags&256))throw this.raise(_.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}return this.parseMetaProperty(e,t,`meta`)}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(St());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new J,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(this.optionFlags&512))return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return this.scope.inNonArrowFunction||this.scope.inClass||this.optionFlags&4||this.raise(_.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(_.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:a}=this.state,o=t+1,s=this.startNodeAt(i(n,1));a===null&&(e||this.raise(_.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=r+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
|
|
141
|
+
`),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,i(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(_.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&((t=r[r.length-1])==null?void 0:t.type)===`RestElement`&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,`ObjectProperty`);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,X(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(_.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,X(e.key))}else e.value=X(e.key);return e.shorthand=!0,this.finishNode(e,`ObjectProperty`)}}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(F(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(_.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(q(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!n,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=q(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(wt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(_.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),r=null;else if(this.match(21)){let e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),n||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),r=this.finishNode(e,`ArgumentPlaceholder`)}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;F(r)?t=this.state.value:this.unexpected();let i=fe(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&Ue(e)){if(n&&Be(e))this.raise(_.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?ze:Le:Ie)(e,this.inModule))this.raise(_.UnexpectedReservedWord,t,{reservedWord:e});else if(e===`yield`){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Te(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(_.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,e)}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(_.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parsePropertyNamePrefixOperator(e){}},pn={kind:1},mn={kind:2},hn=/[\uD800-\uDFFF]/u,gn=/in(?:stanceof)?/y;function _n(e,t,n){for(let r=0;r<e.length;r++){let a=e[r],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=i(t.start,1);e.splice(r,1,new K({type:z(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new K({type:z(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),r++;continue}if(Te(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=i(s.start,1),p;p=t.charCodeAt(c-n)===96?new K({type:z(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new K({type:z(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=i(s.end,-1),m=l===null?null:l.slice(1,-1),_=new K({type:z(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=i(s.end,-2),m=l===null?null:l.slice(1,-2),_=new K({type:z(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(r,1,p,new K({type:z(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),r+=2;continue}a.type=z(o)}}return e}var vn=class extends fn{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.optionFlags&128&&(e.tokens=_n(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t=140,n=this.options.sourceType){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&32)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let r;return r=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,i(this.state.startLoc,-1)),r}stmtToDirective(e){let t=e;t.type=`Directive`,t.value=t.expression,delete t.expression;let n=t.value,r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),n.type=`DirectiveLiteral`,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,t){if(V(e)){if(gn.lastIndex=t,gn.test(this.input)){let e=this.codePointAtPos(gn.lastIndex);if(!H(e)&&e!==92)return!1}return!0}return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t)return!1;if(P(e)&&!this.hasFollowingLineBreak())return this.expectPlugin(`explicitResourceManagement`),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin(`explicitResourceManagement`),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?i||this.raise(_.UnexpectedLexicalDeclaration,r):this.raise(_.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin(`explicitResourceManagement`),!this.scope.inModule&&this.scope.inTopLevel?this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let e;return n===83?(e=this.parseImport(r),e.type!==`ImportDeclaration`||e.importKind&&e.importKind!==`value`||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),(e.type!==`ExportNamedDeclaration`||e.exportKind&&e.exportKind!==`value`)&&(e.type!==`ExportAllDeclaration`||e.exportKind&&e.exportKind!==`value`)&&e.type!==`ExportDefaultDeclaration`||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return P(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){if(e){var r;(r=t.decorators)!=null&&r.length?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(_.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(n.arguments),this.finishNode(n,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n=0;for(;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(_.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(pn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(pn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(_.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new J,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}return this.checkExpressionErrors(i,!0),t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return!this.prodParam.hasReturn&&!(this.optionFlags&2)&&this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(mn),this.scope.enter(0);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(pn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(_.LabelRedeclaration,n,{labelName:t});let i=_e(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i==null||i.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type!==`VariableDeclaration`||t.declarations[0].init==null||r&&this.options.annexB&&!this.state.strict&&t.kind===`var`&&t.declarations[0].id.type===`Identifier`||this.raise(_.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(_.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):n!==`const`&&n!==`using`&&n!==`await using`||this.match(58)||this.isContextual(102)||this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();t!==`using`&&t!==`await using`||n.type!==`ArrayPattern`&&n.type!==`ObjectPattern`||this.raise(_.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(q(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||P(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(xt()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(_.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&P(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(_.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(_.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(_.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(208);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(wt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(P(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){var d;let n=e;if(this.checkExport(n,!0,!1,!!n.source),((d=n.declaration)==null?void 0:d.type)===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,`ExportDefaultDeclaration`)}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t==null?void 0:t.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.declaration=null,this.hasPlugin(`importAssertions`)&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(P(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(P(e)&&e!==98||e===5)return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||P(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(_.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=kt(e.local):e.exported||(e.exported=X(e.local)),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=hn.exec(e.value);return t&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null&&e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;if(e.phase===`source`)n!==`ImportDefaultSpecifier`&&this.raise(_.SourcePhaseImportRequiresDefault,t[0].loc.start);else if(e.phase===`defer`)n!==`ImportNamespaceSpecifier`&&this.raise(_.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;n!==`ImportDefaultSpecifier`&&this.raise(_.ImportReflectionNotBinding,t[0].loc.start),((r=e.assertions)==null?void 0:r.length)>0&&this.raise(_.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!=="default":t.value!=="default"});e!==void 0&&this.raise(_.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.parseIdentifier(!0),{type:r}=this.state;return(F(r)?r!==98||this.lookaheadCharCode()===102:r!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return P(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),n.key=this.match(134)?this.parseStringLiteral(r):this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(_.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.hasPlugin(`moduleAttributes`)?this.parseModuleAttributes():this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}return F(this.state.type)?(this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0):!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(_.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=X(n))}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},yn=class extends vn{constructor(e,t,n){e=te(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=n,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let r=0;e.allowAwaitOutsideFunction&&(r|=1),e.allowReturnOutsideFunction&&(r|=2),e.allowImportExportEverywhere&&(r|=8),e.allowSuperOutsideMethod&&(r|=16),e.allowUndeclaredExports&&(r|=32),e.allowNewTargetOutsideFunction&&(r|=4),e.ranges&&(r|=64),e.tokens&&(r|=128),e.createImportExpressions&&(r|=256),e.createParenthesizedExpressions&&(r|=512),e.errorRecovery&&(r|=1024),e.attachComment&&(r|=2048),e.annexB&&(r|=4096),this.optionFlags=r}getScopeHandler(){return Ge}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function bn(e,t){var n;if(((n=t)==null?void 0:n.sourceType)===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=Sn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,Sn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,Sn(t,e).parse()}catch{}throw n}}return Sn(t,e).parse()}function xn(e){let t={};for(let n of Object.keys(e))t[n]=z(e[n]);return t}xn(N);function Sn(e,t){let n=yn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}ln(r),n=wn(r)}return new n(e,t,r)}var Cn=new Map;function wn(e){let t=[];for(let n of dn)e.has(n)&&t.push(n);let n=t.join(`|`),r=Cn.get(n);if(!r){r=yn;for(let e of t)r=un[e](r);Cn.set(n,r)}return r}e.parse=bn})),ie=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t){let n=Object.keys(t);for(let r of n)if(e[r]!==t[r])return!1;return!0}})),w=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=new Set;function n(e,n,i=``,a=e){if(t.has(a))return;t.add(a);let{internal:o,trace:s}=r(1,2);o||console.warn(`${i}\`${e}\` has been deprecated, please migrate to \`${n}\`\n${s}`)}function r(e,t){let{stackTraceLimit:n,prepareStackTrace:r}=Error,i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(e,t){i=t},Error().stack,Error.stackTraceLimit=n,Error.prepareStackTrace=r,!i)return{internal:!1,trace:``};let a=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(a[1].getFileName()),trace:a.map(e=>` at ${e}`).join(`
|
|
142
|
+
`)}}})),T=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAccessor=wi,e.isAnyTypeAnnotation=Ze,e.isArgumentPlaceholder=gn,e.isArrayExpression=r,e.isArrayPattern=L,e.isArrayTypeAnnotation=U,e.isArrowFunctionExpression=be,e.isAssignmentExpression=i,e.isAssignmentPattern=ye,e.isAwaitExpression=Re,e.isBigIntLiteral=Be,e.isBinary=Gr,e.isBinaryExpression=a,e.isBindExpression=_n,e.isBlock=Jr,e.isBlockParent=qr,e.isBlockStatement=l,e.isBooleanLiteral=oe,e.isBooleanLiteralTypeAnnotation=$e,e.isBooleanTypeAnnotation=Qe,e.isBreakStatement=u,e.isCallExpression=d,e.isCatchClause=f,e.isClass=bi,e.isClassAccessorProperty=Ge,e.isClassBody=xe,e.isClassDeclaration=R,e.isClassExpression=Se,e.isClassImplements=et,e.isClassMethod=V,e.isClassPrivateMethod=qe,e.isClassPrivateProperty=Ke,e.isClassProperty=We,e.isCompletionStatement=Zr,e.isConditional=Qr,e.isConditionalExpression=p,e.isContinueStatement=m,e.isDebuggerStatement=h,e.isDecimalLiteral=Cn,e.isDeclaration=si,e.isDeclareClass=tt,e.isDeclareExportAllDeclaration=ut,e.isDeclareExportDeclaration=lt,e.isDeclareFunction=nt,e.isDeclareInterface=rt,e.isDeclareModule=it,e.isDeclareModuleExports=at,e.isDeclareOpaqueType=st,e.isDeclareTypeAlias=ot,e.isDeclareVariable=ct,e.isDeclaredPredicate=dt,e.isDecorator=vn,e.isDirective=s,e.isDirectiveLiteral=c,e.isDoExpression=yn,e.isDoWhileStatement=g,e.isEmptyStatement=_,e.isEmptyTypeAnnotation=bt,e.isEnumBody=ji,e.isEnumBooleanBody=Ht,e.isEnumBooleanMember=Kt,e.isEnumDeclaration=Vt,e.isEnumDefaultedMember=Jt,e.isEnumMember=Mi,e.isEnumNumberBody=Ut,e.isEnumNumberMember=qt,e.isEnumStringBody=Wt,e.isEnumStringMember=$,e.isEnumSymbolBody=Gt,e.isExistsTypeAnnotation=ft,e.isExportAllDeclaration=Ce,e.isExportDeclaration=Si,e.isExportDefaultDeclaration=we,e.isExportDefaultSpecifier=bn,e.isExportNamedDeclaration=Te,e.isExportNamespaceSpecifier=Ve,e.isExportSpecifier=z,e.isExpression=Wr,e.isExpressionStatement=ee,e.isExpressionWrapper=ti,e.isFile=te,e.isFlow=Ei,e.isFlowBaseAnnotation=Oi,e.isFlowDeclaration=ki,e.isFlowPredicate=Ai,e.isFlowType=Di,e.isFor=ni,e.isForInStatement=ne,e.isForOfStatement=Ee,e.isForStatement=re,e.isForXStatement=ri,e.isFunction=ii,e.isFunctionDeclaration=v,e.isFunctionExpression=y,e.isFunctionParameter=ci,e.isFunctionParent=ai,e.isFunctionTypeAnnotation=pt,e.isFunctionTypeParam=G,e.isGenericTypeAnnotation=mt,e.isIdentifier=b,e.isIfStatement=x,e.isImmutable=pi,e.isImport=ze,e.isImportAttribute=Xe,e.isImportDeclaration=De,e.isImportDefaultSpecifier=Oe,e.isImportExpression=Ae,e.isImportNamespaceSpecifier=B,e.isImportOrExportDeclaration=xi,e.isImportSpecifier=ke,e.isIndexedAccessType=Yt,e.isInferredPredicate=K,e.isInterfaceDeclaration=gt,e.isInterfaceExtends=ht,e.isInterfaceTypeAnnotation=_t,e.isInterpreterDirective=o,e.isIntersectionTypeAnnotation=vt,e.isJSX=Ni,e.isJSXAttribute=Zt,e.isJSXClosingElement=Qt,e.isJSXClosingFragment=fn,e.isJSXElement=$t,e.isJSXEmptyExpression=en,e.isJSXExpressionContainer=tn,e.isJSXFragment=un,e.isJSXIdentifier=rn,e.isJSXMemberExpression=an,e.isJSXNamespacedName=on,e.isJSXOpeningElement=sn,e.isJSXOpeningFragment=dn,e.isJSXSpreadAttribute=cn,e.isJSXSpreadChild=nn,e.isJSXText=ln,e.isLVal=ui,e.isLabeledStatement=S,e.isLiteral=fi,e.isLogicalExpression=E,e.isLoop=$r,e.isMemberExpression=D,e.isMetaProperty=je,e.isMethod=hi,e.isMiscellaneous=Pi,e.isMixedTypeAnnotation=yt,e.isModuleDeclaration=Ui,e.isModuleExpression=wn,e.isModuleSpecifier=Ci,e.isNewExpression=O,e.isNoop=pn,e.isNullLiteral=ae,e.isNullLiteralTypeAnnotation=W,e.isNullableTypeAnnotation=xt,e.isNumberLiteral=zi,e.isNumberLiteralTypeAnnotation=St,e.isNumberTypeAnnotation=Ct,e.isNumericLiteral=T,e.isObjectExpression=ce,e.isObjectMember=gi,e.isObjectMethod=le,e.isObjectPattern=H,e.isObjectProperty=ue,e.isObjectTypeAnnotation=wt,e.isObjectTypeCallProperty=q,e.isObjectTypeIndexer=Et,e.isObjectTypeInternalSlot=Tt,e.isObjectTypeProperty=J,e.isObjectTypeSpreadProperty=Y,e.isOpaqueType=Dt,e.isOptionalCallExpression=Ue,e.isOptionalIndexedAccessType=Xt,e.isOptionalMemberExpression=He,e.isParenthesizedExpression=M,e.isPattern=yi,e.isPatternLike=li,e.isPipelineBareFunction=Dn,e.isPipelinePrimaryTopicReference=On,e.isPipelineTopicExpression=En,e.isPlaceholder=mn,e.isPrivate=Ti,e.isPrivateName=Je,e.isProgram=k,e.isProperty=_i,e.isPureish=oi,e.isQualifiedTypeIdentifier=Ot,e.isRecordExpression=xn,e.isRegExpLiteral=se,e.isRegexLiteral=Bi,e.isRestElement=A,e.isRestProperty=Vi,e.isReturnStatement=de,e.isScopable=Kr,e.isSequenceExpression=j,e.isSpreadElement=Me,e.isSpreadProperty=Hi,e.isStandardized=Ur,e.isStatement=Yr,e.isStaticBlock=Ye,e.isStringLiteral=C,e.isStringLiteralTypeAnnotation=X,e.isStringTypeAnnotation=kt,e.isSuper=Ne,e.isSwitchCase=N,e.isSwitchStatement=P,e.isSymbolTypeAnnotation=At,e.isTSAnyKeyword=zn,e.isTSArrayType=ar,e.isTSAsExpression=Tr,e.isTSBaseType=Ri,e.isTSBigIntKeyword=Vn,e.isTSBooleanKeyword=Bn,e.isTSCallSignatureDeclaration=Pn,e.isTSConditionalType=fr,e.isTSConstructSignatureDeclaration=Fn,e.isTSConstructorType=er,e.isTSDeclareFunction=jn,e.isTSDeclareMethod=Mn,e.isTSEntityName=di,e.isTSEnumBody=Or,e.isTSEnumDeclaration=kr,e.isTSEnumMember=Ar,e.isTSExportAssignment=Lr,e.isTSExpressionWithTypeArguments=br,e.isTSExternalModuleReference=Fr,e.isTSFunctionType=$n,e.isTSImportEqualsDeclaration=Pr,e.isTSImportType=Nr,e.isTSIndexSignature=Rn,e.isTSIndexedAccessType=gr,e.isTSInferType=pr,e.isTSInstantiationExpression=wr,e.isTSInterfaceBody=Sr,e.isTSInterfaceDeclaration=xr,e.isTSIntersectionType=dr,e.isTSIntrinsicKeyword=Hn,e.isTSLiteralType=yr,e.isTSMappedType=_r,e.isTSMethodSignature=Ln,e.isTSModuleBlock=Mr,e.isTSModuleDeclaration=jr,e.isTSNamedTupleMember=lr,e.isTSNamespaceExportDeclaration=Rr,e.isTSNeverKeyword=Un,e.isTSNonNullExpression=Ir,e.isTSNullKeyword=Wn,e.isTSNumberKeyword=Gn,e.isTSObjectKeyword=Kn,e.isTSOptionalType=sr,e.isTSParameterProperty=An,e.isTSParenthesizedType=mr,e.isTSPropertySignature=In,e.isTSQualifiedName=Nn,e.isTSRestType=cr,e.isTSSatisfiesExpression=Er,e.isTSStringKeyword=qn,e.isTSSymbolKeyword=Jn,e.isTSTemplateLiteralType=vr,e.isTSThisType=Qn,e.isTSTupleType=or,e.isTSType=Li,e.isTSTypeAliasDeclaration=Cr,e.isTSTypeAnnotation=zr,e.isTSTypeAssertion=Dr,e.isTSTypeElement=Ii,e.isTSTypeLiteral=ir,e.isTSTypeOperator=hr,e.isTSTypeParameter=Hr,e.isTSTypeParameterDeclaration=Vr,e.isTSTypeParameterInstantiation=Br,e.isTSTypePredicate=nr,e.isTSTypeQuery=rr,e.isTSTypeReference=tr,e.isTSUndefinedKeyword=Yn,e.isTSUnionType=ur,e.isTSUnknownKeyword=Xn,e.isTSVoidKeyword=Zn,e.isTaggedTemplateExpression=Pe,e.isTemplateElement=Fe,e.isTemplateLiteral=Ie,e.isTerminatorless=Xr,e.isThisExpression=fe,e.isThisTypeAnnotation=jt,e.isThrowStatement=F,e.isTopicReference=Tn,e.isTryStatement=pe,e.isTupleExpression=Sn,e.isTupleTypeAnnotation=Z,e.isTypeAlias=Nt,e.isTypeAnnotation=Pt,e.isTypeCastExpression=Ft,e.isTypeParameter=It,e.isTypeParameterDeclaration=Lt,e.isTypeParameterInstantiation=Rt,e.isTypeScript=Fi,e.isTypeofTypeAnnotation=Mt,e.isUnaryExpression=me,e.isUnaryLike=vi,e.isUnionTypeAnnotation=zt,e.isUpdateExpression=he,e.isUserWhitespacable=mi,e.isV8IntrinsicIdentifier=hn,e.isVariableDeclaration=ge,e.isVariableDeclarator=I,e.isVariance=Q,e.isVoidPattern=kn,e.isVoidTypeAnnotation=Bt,e.isWhile=ei,e.isWhileStatement=_e,e.isWithStatement=ve,e.isYieldExpression=Le;var t=ie(),n=w();function r(e,n){return!e||e.type!==`ArrayExpression`?!1:n==null||(0,t.default)(e,n)}function i(e,n){return!e||e.type!==`AssignmentExpression`?!1:n==null||(0,t.default)(e,n)}function a(e,n){return!e||e.type!==`BinaryExpression`?!1:n==null||(0,t.default)(e,n)}function o(e,n){return!e||e.type!==`InterpreterDirective`?!1:n==null||(0,t.default)(e,n)}function s(e,n){return!e||e.type!==`Directive`?!1:n==null||(0,t.default)(e,n)}function c(e,n){return!e||e.type!==`DirectiveLiteral`?!1:n==null||(0,t.default)(e,n)}function l(e,n){return!e||e.type!==`BlockStatement`?!1:n==null||(0,t.default)(e,n)}function u(e,n){return!e||e.type!==`BreakStatement`?!1:n==null||(0,t.default)(e,n)}function d(e,n){return!e||e.type!==`CallExpression`?!1:n==null||(0,t.default)(e,n)}function f(e,n){return!e||e.type!==`CatchClause`?!1:n==null||(0,t.default)(e,n)}function p(e,n){return!e||e.type!==`ConditionalExpression`?!1:n==null||(0,t.default)(e,n)}function m(e,n){return!e||e.type!==`ContinueStatement`?!1:n==null||(0,t.default)(e,n)}function h(e,n){return!e||e.type!==`DebuggerStatement`?!1:n==null||(0,t.default)(e,n)}function g(e,n){return!e||e.type!==`DoWhileStatement`?!1:n==null||(0,t.default)(e,n)}function _(e,n){return!e||e.type!==`EmptyStatement`?!1:n==null||(0,t.default)(e,n)}function ee(e,n){return!e||e.type!==`ExpressionStatement`?!1:n==null||(0,t.default)(e,n)}function te(e,n){return!e||e.type!==`File`?!1:n==null||(0,t.default)(e,n)}function ne(e,n){return!e||e.type!==`ForInStatement`?!1:n==null||(0,t.default)(e,n)}function re(e,n){return!e||e.type!==`ForStatement`?!1:n==null||(0,t.default)(e,n)}function v(e,n){return!e||e.type!==`FunctionDeclaration`?!1:n==null||(0,t.default)(e,n)}function y(e,n){return!e||e.type!==`FunctionExpression`?!1:n==null||(0,t.default)(e,n)}function b(e,n){return!e||e.type!==`Identifier`?!1:n==null||(0,t.default)(e,n)}function x(e,n){return!e||e.type!==`IfStatement`?!1:n==null||(0,t.default)(e,n)}function S(e,n){return!e||e.type!==`LabeledStatement`?!1:n==null||(0,t.default)(e,n)}function C(e,n){return!e||e.type!==`StringLiteral`?!1:n==null||(0,t.default)(e,n)}function T(e,n){return!e||e.type!==`NumericLiteral`?!1:n==null||(0,t.default)(e,n)}function ae(e,n){return!e||e.type!==`NullLiteral`?!1:n==null||(0,t.default)(e,n)}function oe(e,n){return!e||e.type!==`BooleanLiteral`?!1:n==null||(0,t.default)(e,n)}function se(e,n){return!e||e.type!==`RegExpLiteral`?!1:n==null||(0,t.default)(e,n)}function E(e,n){return!e||e.type!==`LogicalExpression`?!1:n==null||(0,t.default)(e,n)}function D(e,n){return!e||e.type!==`MemberExpression`?!1:n==null||(0,t.default)(e,n)}function O(e,n){return!e||e.type!==`NewExpression`?!1:n==null||(0,t.default)(e,n)}function k(e,n){return!e||e.type!==`Program`?!1:n==null||(0,t.default)(e,n)}function ce(e,n){return!e||e.type!==`ObjectExpression`?!1:n==null||(0,t.default)(e,n)}function le(e,n){return!e||e.type!==`ObjectMethod`?!1:n==null||(0,t.default)(e,n)}function ue(e,n){return!e||e.type!==`ObjectProperty`?!1:n==null||(0,t.default)(e,n)}function A(e,n){return!e||e.type!==`RestElement`?!1:n==null||(0,t.default)(e,n)}function de(e,n){return!e||e.type!==`ReturnStatement`?!1:n==null||(0,t.default)(e,n)}function j(e,n){return!e||e.type!==`SequenceExpression`?!1:n==null||(0,t.default)(e,n)}function M(e,n){return!e||e.type!==`ParenthesizedExpression`?!1:n==null||(0,t.default)(e,n)}function N(e,n){return!e||e.type!==`SwitchCase`?!1:n==null||(0,t.default)(e,n)}function P(e,n){return!e||e.type!==`SwitchStatement`?!1:n==null||(0,t.default)(e,n)}function fe(e,n){return!e||e.type!==`ThisExpression`?!1:n==null||(0,t.default)(e,n)}function F(e,n){return!e||e.type!==`ThrowStatement`?!1:n==null||(0,t.default)(e,n)}function pe(e,n){return!e||e.type!==`TryStatement`?!1:n==null||(0,t.default)(e,n)}function me(e,n){return!e||e.type!==`UnaryExpression`?!1:n==null||(0,t.default)(e,n)}function he(e,n){return!e||e.type!==`UpdateExpression`?!1:n==null||(0,t.default)(e,n)}function ge(e,n){return!e||e.type!==`VariableDeclaration`?!1:n==null||(0,t.default)(e,n)}function I(e,n){return!e||e.type!==`VariableDeclarator`?!1:n==null||(0,t.default)(e,n)}function _e(e,n){return!e||e.type!==`WhileStatement`?!1:n==null||(0,t.default)(e,n)}function ve(e,n){return!e||e.type!==`WithStatement`?!1:n==null||(0,t.default)(e,n)}function ye(e,n){return!e||e.type!==`AssignmentPattern`?!1:n==null||(0,t.default)(e,n)}function L(e,n){return!e||e.type!==`ArrayPattern`?!1:n==null||(0,t.default)(e,n)}function be(e,n){return!e||e.type!==`ArrowFunctionExpression`?!1:n==null||(0,t.default)(e,n)}function xe(e,n){return!e||e.type!==`ClassBody`?!1:n==null||(0,t.default)(e,n)}function Se(e,n){return!e||e.type!==`ClassExpression`?!1:n==null||(0,t.default)(e,n)}function R(e,n){return!e||e.type!==`ClassDeclaration`?!1:n==null||(0,t.default)(e,n)}function Ce(e,n){return!e||e.type!==`ExportAllDeclaration`?!1:n==null||(0,t.default)(e,n)}function we(e,n){return!e||e.type!==`ExportDefaultDeclaration`?!1:n==null||(0,t.default)(e,n)}function Te(e,n){return!e||e.type!==`ExportNamedDeclaration`?!1:n==null||(0,t.default)(e,n)}function z(e,n){return!e||e.type!==`ExportSpecifier`?!1:n==null||(0,t.default)(e,n)}function Ee(e,n){return!e||e.type!==`ForOfStatement`?!1:n==null||(0,t.default)(e,n)}function De(e,n){return!e||e.type!==`ImportDeclaration`?!1:n==null||(0,t.default)(e,n)}function Oe(e,n){return!e||e.type!==`ImportDefaultSpecifier`?!1:n==null||(0,t.default)(e,n)}function B(e,n){return!e||e.type!==`ImportNamespaceSpecifier`?!1:n==null||(0,t.default)(e,n)}function ke(e,n){return!e||e.type!==`ImportSpecifier`?!1:n==null||(0,t.default)(e,n)}function Ae(e,n){return!e||e.type!==`ImportExpression`?!1:n==null||(0,t.default)(e,n)}function je(e,n){return!e||e.type!==`MetaProperty`?!1:n==null||(0,t.default)(e,n)}function V(e,n){return!e||e.type!==`ClassMethod`?!1:n==null||(0,t.default)(e,n)}function H(e,n){return!e||e.type!==`ObjectPattern`?!1:n==null||(0,t.default)(e,n)}function Me(e,n){return!e||e.type!==`SpreadElement`?!1:n==null||(0,t.default)(e,n)}function Ne(e,n){return!e||e.type!==`Super`?!1:n==null||(0,t.default)(e,n)}function Pe(e,n){return!e||e.type!==`TaggedTemplateExpression`?!1:n==null||(0,t.default)(e,n)}function Fe(e,n){return!e||e.type!==`TemplateElement`?!1:n==null||(0,t.default)(e,n)}function Ie(e,n){return!e||e.type!==`TemplateLiteral`?!1:n==null||(0,t.default)(e,n)}function Le(e,n){return!e||e.type!==`YieldExpression`?!1:n==null||(0,t.default)(e,n)}function Re(e,n){return!e||e.type!==`AwaitExpression`?!1:n==null||(0,t.default)(e,n)}function ze(e,n){return!e||e.type!==`Import`?!1:n==null||(0,t.default)(e,n)}function Be(e,n){return!e||e.type!==`BigIntLiteral`?!1:n==null||(0,t.default)(e,n)}function Ve(e,n){return!e||e.type!==`ExportNamespaceSpecifier`?!1:n==null||(0,t.default)(e,n)}function He(e,n){return!e||e.type!==`OptionalMemberExpression`?!1:n==null||(0,t.default)(e,n)}function Ue(e,n){return!e||e.type!==`OptionalCallExpression`?!1:n==null||(0,t.default)(e,n)}function We(e,n){return!e||e.type!==`ClassProperty`?!1:n==null||(0,t.default)(e,n)}function Ge(e,n){return!e||e.type!==`ClassAccessorProperty`?!1:n==null||(0,t.default)(e,n)}function Ke(e,n){return!e||e.type!==`ClassPrivateProperty`?!1:n==null||(0,t.default)(e,n)}function qe(e,n){return!e||e.type!==`ClassPrivateMethod`?!1:n==null||(0,t.default)(e,n)}function Je(e,n){return!e||e.type!==`PrivateName`?!1:n==null||(0,t.default)(e,n)}function Ye(e,n){return!e||e.type!==`StaticBlock`?!1:n==null||(0,t.default)(e,n)}function Xe(e,n){return!e||e.type!==`ImportAttribute`?!1:n==null||(0,t.default)(e,n)}function Ze(e,n){return!e||e.type!==`AnyTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function U(e,n){return!e||e.type!==`ArrayTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Qe(e,n){return!e||e.type!==`BooleanTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function $e(e,n){return!e||e.type!==`BooleanLiteralTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function W(e,n){return!e||e.type!==`NullLiteralTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function et(e,n){return!e||e.type!==`ClassImplements`?!1:n==null||(0,t.default)(e,n)}function tt(e,n){return!e||e.type!==`DeclareClass`?!1:n==null||(0,t.default)(e,n)}function nt(e,n){return!e||e.type!==`DeclareFunction`?!1:n==null||(0,t.default)(e,n)}function rt(e,n){return!e||e.type!==`DeclareInterface`?!1:n==null||(0,t.default)(e,n)}function it(e,n){return!e||e.type!==`DeclareModule`?!1:n==null||(0,t.default)(e,n)}function at(e,n){return!e||e.type!==`DeclareModuleExports`?!1:n==null||(0,t.default)(e,n)}function ot(e,n){return!e||e.type!==`DeclareTypeAlias`?!1:n==null||(0,t.default)(e,n)}function st(e,n){return!e||e.type!==`DeclareOpaqueType`?!1:n==null||(0,t.default)(e,n)}function ct(e,n){return!e||e.type!==`DeclareVariable`?!1:n==null||(0,t.default)(e,n)}function lt(e,n){return!e||e.type!==`DeclareExportDeclaration`?!1:n==null||(0,t.default)(e,n)}function ut(e,n){return!e||e.type!==`DeclareExportAllDeclaration`?!1:n==null||(0,t.default)(e,n)}function dt(e,n){return!e||e.type!==`DeclaredPredicate`?!1:n==null||(0,t.default)(e,n)}function ft(e,n){return!e||e.type!==`ExistsTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function pt(e,n){return!e||e.type!==`FunctionTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function G(e,n){return!e||e.type!==`FunctionTypeParam`?!1:n==null||(0,t.default)(e,n)}function mt(e,n){return!e||e.type!==`GenericTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function K(e,n){return!e||e.type!==`InferredPredicate`?!1:n==null||(0,t.default)(e,n)}function ht(e,n){return!e||e.type!==`InterfaceExtends`?!1:n==null||(0,t.default)(e,n)}function gt(e,n){return!e||e.type!==`InterfaceDeclaration`?!1:n==null||(0,t.default)(e,n)}function _t(e,n){return!e||e.type!==`InterfaceTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function vt(e,n){return!e||e.type!==`IntersectionTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function yt(e,n){return!e||e.type!==`MixedTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function bt(e,n){return!e||e.type!==`EmptyTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function xt(e,n){return!e||e.type!==`NullableTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function St(e,n){return!e||e.type!==`NumberLiteralTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Ct(e,n){return!e||e.type!==`NumberTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function wt(e,n){return!e||e.type!==`ObjectTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Tt(e,n){return!e||e.type!==`ObjectTypeInternalSlot`?!1:n==null||(0,t.default)(e,n)}function q(e,n){return!e||e.type!==`ObjectTypeCallProperty`?!1:n==null||(0,t.default)(e,n)}function Et(e,n){return!e||e.type!==`ObjectTypeIndexer`?!1:n==null||(0,t.default)(e,n)}function J(e,n){return!e||e.type!==`ObjectTypeProperty`?!1:n==null||(0,t.default)(e,n)}function Y(e,n){return!e||e.type!==`ObjectTypeSpreadProperty`?!1:n==null||(0,t.default)(e,n)}function Dt(e,n){return!e||e.type!==`OpaqueType`?!1:n==null||(0,t.default)(e,n)}function Ot(e,n){return!e||e.type!==`QualifiedTypeIdentifier`?!1:n==null||(0,t.default)(e,n)}function X(e,n){return!e||e.type!==`StringLiteralTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function kt(e,n){return!e||e.type!==`StringTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function At(e,n){return!e||e.type!==`SymbolTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function jt(e,n){return!e||e.type!==`ThisTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Z(e,n){return!e||e.type!==`TupleTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Mt(e,n){return!e||e.type!==`TypeofTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Nt(e,n){return!e||e.type!==`TypeAlias`?!1:n==null||(0,t.default)(e,n)}function Pt(e,n){return!e||e.type!==`TypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Ft(e,n){return!e||e.type!==`TypeCastExpression`?!1:n==null||(0,t.default)(e,n)}function It(e,n){return!e||e.type!==`TypeParameter`?!1:n==null||(0,t.default)(e,n)}function Lt(e,n){return!e||e.type!==`TypeParameterDeclaration`?!1:n==null||(0,t.default)(e,n)}function Rt(e,n){return!e||e.type!==`TypeParameterInstantiation`?!1:n==null||(0,t.default)(e,n)}function zt(e,n){return!e||e.type!==`UnionTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Q(e,n){return!e||e.type!==`Variance`?!1:n==null||(0,t.default)(e,n)}function Bt(e,n){return!e||e.type!==`VoidTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Vt(e,n){return!e||e.type!==`EnumDeclaration`?!1:n==null||(0,t.default)(e,n)}function Ht(e,n){return!e||e.type!==`EnumBooleanBody`?!1:n==null||(0,t.default)(e,n)}function Ut(e,n){return!e||e.type!==`EnumNumberBody`?!1:n==null||(0,t.default)(e,n)}function Wt(e,n){return!e||e.type!==`EnumStringBody`?!1:n==null||(0,t.default)(e,n)}function Gt(e,n){return!e||e.type!==`EnumSymbolBody`?!1:n==null||(0,t.default)(e,n)}function Kt(e,n){return!e||e.type!==`EnumBooleanMember`?!1:n==null||(0,t.default)(e,n)}function qt(e,n){return!e||e.type!==`EnumNumberMember`?!1:n==null||(0,t.default)(e,n)}function $(e,n){return!e||e.type!==`EnumStringMember`?!1:n==null||(0,t.default)(e,n)}function Jt(e,n){return!e||e.type!==`EnumDefaultedMember`?!1:n==null||(0,t.default)(e,n)}function Yt(e,n){return!e||e.type!==`IndexedAccessType`?!1:n==null||(0,t.default)(e,n)}function Xt(e,n){return!e||e.type!==`OptionalIndexedAccessType`?!1:n==null||(0,t.default)(e,n)}function Zt(e,n){return!e||e.type!==`JSXAttribute`?!1:n==null||(0,t.default)(e,n)}function Qt(e,n){return!e||e.type!==`JSXClosingElement`?!1:n==null||(0,t.default)(e,n)}function $t(e,n){return!e||e.type!==`JSXElement`?!1:n==null||(0,t.default)(e,n)}function en(e,n){return!e||e.type!==`JSXEmptyExpression`?!1:n==null||(0,t.default)(e,n)}function tn(e,n){return!e||e.type!==`JSXExpressionContainer`?!1:n==null||(0,t.default)(e,n)}function nn(e,n){return!e||e.type!==`JSXSpreadChild`?!1:n==null||(0,t.default)(e,n)}function rn(e,n){return!e||e.type!==`JSXIdentifier`?!1:n==null||(0,t.default)(e,n)}function an(e,n){return!e||e.type!==`JSXMemberExpression`?!1:n==null||(0,t.default)(e,n)}function on(e,n){return!e||e.type!==`JSXNamespacedName`?!1:n==null||(0,t.default)(e,n)}function sn(e,n){return!e||e.type!==`JSXOpeningElement`?!1:n==null||(0,t.default)(e,n)}function cn(e,n){return!e||e.type!==`JSXSpreadAttribute`?!1:n==null||(0,t.default)(e,n)}function ln(e,n){return!e||e.type!==`JSXText`?!1:n==null||(0,t.default)(e,n)}function un(e,n){return!e||e.type!==`JSXFragment`?!1:n==null||(0,t.default)(e,n)}function dn(e,n){return!e||e.type!==`JSXOpeningFragment`?!1:n==null||(0,t.default)(e,n)}function fn(e,n){return!e||e.type!==`JSXClosingFragment`?!1:n==null||(0,t.default)(e,n)}function pn(e,n){return!e||e.type!==`Noop`?!1:n==null||(0,t.default)(e,n)}function mn(e,n){return!e||e.type!==`Placeholder`?!1:n==null||(0,t.default)(e,n)}function hn(e,n){return!e||e.type!==`V8IntrinsicIdentifier`?!1:n==null||(0,t.default)(e,n)}function gn(e,n){return!e||e.type!==`ArgumentPlaceholder`?!1:n==null||(0,t.default)(e,n)}function _n(e,n){return!e||e.type!==`BindExpression`?!1:n==null||(0,t.default)(e,n)}function vn(e,n){return!e||e.type!==`Decorator`?!1:n==null||(0,t.default)(e,n)}function yn(e,n){return!e||e.type!==`DoExpression`?!1:n==null||(0,t.default)(e,n)}function bn(e,n){return!e||e.type!==`ExportDefaultSpecifier`?!1:n==null||(0,t.default)(e,n)}function xn(e,n){return!e||e.type!==`RecordExpression`?!1:n==null||(0,t.default)(e,n)}function Sn(e,n){return!e||e.type!==`TupleExpression`?!1:n==null||(0,t.default)(e,n)}function Cn(e,n){return!e||e.type!==`DecimalLiteral`?!1:n==null||(0,t.default)(e,n)}function wn(e,n){return!e||e.type!==`ModuleExpression`?!1:n==null||(0,t.default)(e,n)}function Tn(e,n){return!e||e.type!==`TopicReference`?!1:n==null||(0,t.default)(e,n)}function En(e,n){return!e||e.type!==`PipelineTopicExpression`?!1:n==null||(0,t.default)(e,n)}function Dn(e,n){return!e||e.type!==`PipelineBareFunction`?!1:n==null||(0,t.default)(e,n)}function On(e,n){return!e||e.type!==`PipelinePrimaryTopicReference`?!1:n==null||(0,t.default)(e,n)}function kn(e,n){return!e||e.type!==`VoidPattern`?!1:n==null||(0,t.default)(e,n)}function An(e,n){return!e||e.type!==`TSParameterProperty`?!1:n==null||(0,t.default)(e,n)}function jn(e,n){return!e||e.type!==`TSDeclareFunction`?!1:n==null||(0,t.default)(e,n)}function Mn(e,n){return!e||e.type!==`TSDeclareMethod`?!1:n==null||(0,t.default)(e,n)}function Nn(e,n){return!e||e.type!==`TSQualifiedName`?!1:n==null||(0,t.default)(e,n)}function Pn(e,n){return!e||e.type!==`TSCallSignatureDeclaration`?!1:n==null||(0,t.default)(e,n)}function Fn(e,n){return!e||e.type!==`TSConstructSignatureDeclaration`?!1:n==null||(0,t.default)(e,n)}function In(e,n){return!e||e.type!==`TSPropertySignature`?!1:n==null||(0,t.default)(e,n)}function Ln(e,n){return!e||e.type!==`TSMethodSignature`?!1:n==null||(0,t.default)(e,n)}function Rn(e,n){return!e||e.type!==`TSIndexSignature`?!1:n==null||(0,t.default)(e,n)}function zn(e,n){return!e||e.type!==`TSAnyKeyword`?!1:n==null||(0,t.default)(e,n)}function Bn(e,n){return!e||e.type!==`TSBooleanKeyword`?!1:n==null||(0,t.default)(e,n)}function Vn(e,n){return!e||e.type!==`TSBigIntKeyword`?!1:n==null||(0,t.default)(e,n)}function Hn(e,n){return!e||e.type!==`TSIntrinsicKeyword`?!1:n==null||(0,t.default)(e,n)}function Un(e,n){return!e||e.type!==`TSNeverKeyword`?!1:n==null||(0,t.default)(e,n)}function Wn(e,n){return!e||e.type!==`TSNullKeyword`?!1:n==null||(0,t.default)(e,n)}function Gn(e,n){return!e||e.type!==`TSNumberKeyword`?!1:n==null||(0,t.default)(e,n)}function Kn(e,n){return!e||e.type!==`TSObjectKeyword`?!1:n==null||(0,t.default)(e,n)}function qn(e,n){return!e||e.type!==`TSStringKeyword`?!1:n==null||(0,t.default)(e,n)}function Jn(e,n){return!e||e.type!==`TSSymbolKeyword`?!1:n==null||(0,t.default)(e,n)}function Yn(e,n){return!e||e.type!==`TSUndefinedKeyword`?!1:n==null||(0,t.default)(e,n)}function Xn(e,n){return!e||e.type!==`TSUnknownKeyword`?!1:n==null||(0,t.default)(e,n)}function Zn(e,n){return!e||e.type!==`TSVoidKeyword`?!1:n==null||(0,t.default)(e,n)}function Qn(e,n){return!e||e.type!==`TSThisType`?!1:n==null||(0,t.default)(e,n)}function $n(e,n){return!e||e.type!==`TSFunctionType`?!1:n==null||(0,t.default)(e,n)}function er(e,n){return!e||e.type!==`TSConstructorType`?!1:n==null||(0,t.default)(e,n)}function tr(e,n){return!e||e.type!==`TSTypeReference`?!1:n==null||(0,t.default)(e,n)}function nr(e,n){return!e||e.type!==`TSTypePredicate`?!1:n==null||(0,t.default)(e,n)}function rr(e,n){return!e||e.type!==`TSTypeQuery`?!1:n==null||(0,t.default)(e,n)}function ir(e,n){return!e||e.type!==`TSTypeLiteral`?!1:n==null||(0,t.default)(e,n)}function ar(e,n){return!e||e.type!==`TSArrayType`?!1:n==null||(0,t.default)(e,n)}function or(e,n){return!e||e.type!==`TSTupleType`?!1:n==null||(0,t.default)(e,n)}function sr(e,n){return!e||e.type!==`TSOptionalType`?!1:n==null||(0,t.default)(e,n)}function cr(e,n){return!e||e.type!==`TSRestType`?!1:n==null||(0,t.default)(e,n)}function lr(e,n){return!e||e.type!==`TSNamedTupleMember`?!1:n==null||(0,t.default)(e,n)}function ur(e,n){return!e||e.type!==`TSUnionType`?!1:n==null||(0,t.default)(e,n)}function dr(e,n){return!e||e.type!==`TSIntersectionType`?!1:n==null||(0,t.default)(e,n)}function fr(e,n){return!e||e.type!==`TSConditionalType`?!1:n==null||(0,t.default)(e,n)}function pr(e,n){return!e||e.type!==`TSInferType`?!1:n==null||(0,t.default)(e,n)}function mr(e,n){return!e||e.type!==`TSParenthesizedType`?!1:n==null||(0,t.default)(e,n)}function hr(e,n){return!e||e.type!==`TSTypeOperator`?!1:n==null||(0,t.default)(e,n)}function gr(e,n){return!e||e.type!==`TSIndexedAccessType`?!1:n==null||(0,t.default)(e,n)}function _r(e,n){return!e||e.type!==`TSMappedType`?!1:n==null||(0,t.default)(e,n)}function vr(e,n){return!e||e.type!==`TSTemplateLiteralType`?!1:n==null||(0,t.default)(e,n)}function yr(e,n){return!e||e.type!==`TSLiteralType`?!1:n==null||(0,t.default)(e,n)}function br(e,n){return!e||e.type!==`TSExpressionWithTypeArguments`?!1:n==null||(0,t.default)(e,n)}function xr(e,n){return!e||e.type!==`TSInterfaceDeclaration`?!1:n==null||(0,t.default)(e,n)}function Sr(e,n){return!e||e.type!==`TSInterfaceBody`?!1:n==null||(0,t.default)(e,n)}function Cr(e,n){return!e||e.type!==`TSTypeAliasDeclaration`?!1:n==null||(0,t.default)(e,n)}function wr(e,n){return!e||e.type!==`TSInstantiationExpression`?!1:n==null||(0,t.default)(e,n)}function Tr(e,n){return!e||e.type!==`TSAsExpression`?!1:n==null||(0,t.default)(e,n)}function Er(e,n){return!e||e.type!==`TSSatisfiesExpression`?!1:n==null||(0,t.default)(e,n)}function Dr(e,n){return!e||e.type!==`TSTypeAssertion`?!1:n==null||(0,t.default)(e,n)}function Or(e,n){return!e||e.type!==`TSEnumBody`?!1:n==null||(0,t.default)(e,n)}function kr(e,n){return!e||e.type!==`TSEnumDeclaration`?!1:n==null||(0,t.default)(e,n)}function Ar(e,n){return!e||e.type!==`TSEnumMember`?!1:n==null||(0,t.default)(e,n)}function jr(e,n){return!e||e.type!==`TSModuleDeclaration`?!1:n==null||(0,t.default)(e,n)}function Mr(e,n){return!e||e.type!==`TSModuleBlock`?!1:n==null||(0,t.default)(e,n)}function Nr(e,n){return!e||e.type!==`TSImportType`?!1:n==null||(0,t.default)(e,n)}function Pr(e,n){return!e||e.type!==`TSImportEqualsDeclaration`?!1:n==null||(0,t.default)(e,n)}function Fr(e,n){return!e||e.type!==`TSExternalModuleReference`?!1:n==null||(0,t.default)(e,n)}function Ir(e,n){return!e||e.type!==`TSNonNullExpression`?!1:n==null||(0,t.default)(e,n)}function Lr(e,n){return!e||e.type!==`TSExportAssignment`?!1:n==null||(0,t.default)(e,n)}function Rr(e,n){return!e||e.type!==`TSNamespaceExportDeclaration`?!1:n==null||(0,t.default)(e,n)}function zr(e,n){return!e||e.type!==`TSTypeAnnotation`?!1:n==null||(0,t.default)(e,n)}function Br(e,n){return!e||e.type!==`TSTypeParameterInstantiation`?!1:n==null||(0,t.default)(e,n)}function Vr(e,n){return!e||e.type!==`TSTypeParameterDeclaration`?!1:n==null||(0,t.default)(e,n)}function Hr(e,n){return!e||e.type!==`TSTypeParameter`?!1:n==null||(0,t.default)(e,n)}function Ur(e,n){if(!e)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`InterpreterDirective`:case`Directive`:case`DirectiveLiteral`:case`BlockStatement`:case`BreakStatement`:case`CallExpression`:case`CatchClause`:case`ConditionalExpression`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`File`:case`ForInStatement`:case`ForStatement`:case`FunctionDeclaration`:case`FunctionExpression`:case`Identifier`:case`IfStatement`:case`LabeledStatement`:case`StringLiteral`:case`NumericLiteral`:case`NullLiteral`:case`BooleanLiteral`:case`RegExpLiteral`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`Program`:case`ObjectExpression`:case`ObjectMethod`:case`ObjectProperty`:case`RestElement`:case`ReturnStatement`:case`SequenceExpression`:case`ParenthesizedExpression`:case`SwitchCase`:case`SwitchStatement`:case`ThisExpression`:case`ThrowStatement`:case`TryStatement`:case`UnaryExpression`:case`UpdateExpression`:case`VariableDeclaration`:case`VariableDeclarator`:case`WhileStatement`:case`WithStatement`:case`AssignmentPattern`:case`ArrayPattern`:case`ArrowFunctionExpression`:case`ClassBody`:case`ClassExpression`:case`ClassDeclaration`:case`ExportAllDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ExportSpecifier`:case`ForOfStatement`:case`ImportDeclaration`:case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`ImportSpecifier`:case`ImportExpression`:case`MetaProperty`:case`ClassMethod`:case`ObjectPattern`:case`SpreadElement`:case`Super`:case`TaggedTemplateExpression`:case`TemplateElement`:case`TemplateLiteral`:case`YieldExpression`:case`AwaitExpression`:case`Import`:case`BigIntLiteral`:case`ExportNamespaceSpecifier`:case`OptionalMemberExpression`:case`OptionalCallExpression`:case`ClassProperty`:case`ClassAccessorProperty`:case`ClassPrivateProperty`:case`ClassPrivateMethod`:case`PrivateName`:case`StaticBlock`:case`ImportAttribute`:break;case`Placeholder`:switch(e.expectedNode){case`Identifier`:case`StringLiteral`:case`BlockStatement`:case`ClassBody`:break;default:return!1}break;default:return!1}return n==null||(0,t.default)(e,n)}function Wr(e,n){if(!e)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`CallExpression`:case`ConditionalExpression`:case`FunctionExpression`:case`Identifier`:case`StringLiteral`:case`NumericLiteral`:case`NullLiteral`:case`BooleanLiteral`:case`RegExpLiteral`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`ObjectExpression`:case`SequenceExpression`:case`ParenthesizedExpression`:case`ThisExpression`:case`UnaryExpression`:case`UpdateExpression`:case`ArrowFunctionExpression`:case`ClassExpression`:case`ImportExpression`:case`MetaProperty`:case`Super`:case`TaggedTemplateExpression`:case`TemplateLiteral`:case`YieldExpression`:case`AwaitExpression`:case`Import`:case`BigIntLiteral`:case`OptionalMemberExpression`:case`OptionalCallExpression`:case`TypeCastExpression`:case`JSXElement`:case`JSXFragment`:case`BindExpression`:case`DoExpression`:case`RecordExpression`:case`TupleExpression`:case`DecimalLiteral`:case`ModuleExpression`:case`TopicReference`:case`PipelineTopicExpression`:case`PipelineBareFunction`:case`PipelinePrimaryTopicReference`:case`TSInstantiationExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:break;case`Placeholder`:switch(e.expectedNode){case`Expression`:case`Identifier`:case`StringLiteral`:break;default:return!1}break;default:return!1}return n==null||(0,t.default)(e,n)}function Gr(e,n){if(!e)return!1;switch(e.type){case`BinaryExpression`:case`LogicalExpression`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Kr(e,n){if(!e)return!1;switch(e.type){case`BlockStatement`:case`CatchClause`:case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`FunctionDeclaration`:case`FunctionExpression`:case`Program`:case`ObjectMethod`:case`SwitchStatement`:case`WhileStatement`:case`ArrowFunctionExpression`:case`ClassExpression`:case`ClassDeclaration`:case`ForOfStatement`:case`ClassMethod`:case`ClassPrivateMethod`:case`StaticBlock`:case`TSModuleBlock`:break;case`Placeholder`:if(e.expectedNode===`BlockStatement`)break;default:return!1}return n==null||(0,t.default)(e,n)}function qr(e,n){if(!e)return!1;switch(e.type){case`BlockStatement`:case`CatchClause`:case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`FunctionDeclaration`:case`FunctionExpression`:case`Program`:case`ObjectMethod`:case`SwitchStatement`:case`WhileStatement`:case`ArrowFunctionExpression`:case`ForOfStatement`:case`ClassMethod`:case`ClassPrivateMethod`:case`StaticBlock`:case`TSModuleBlock`:break;case`Placeholder`:if(e.expectedNode===`BlockStatement`)break;default:return!1}return n==null||(0,t.default)(e,n)}function Jr(e,n){if(!e)return!1;switch(e.type){case`BlockStatement`:case`Program`:case`TSModuleBlock`:break;case`Placeholder`:if(e.expectedNode===`BlockStatement`)break;default:return!1}return n==null||(0,t.default)(e,n)}function Yr(e,n){if(!e)return!1;switch(e.type){case`BlockStatement`:case`BreakStatement`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`ForInStatement`:case`ForStatement`:case`FunctionDeclaration`:case`IfStatement`:case`LabeledStatement`:case`ReturnStatement`:case`SwitchStatement`:case`ThrowStatement`:case`TryStatement`:case`VariableDeclaration`:case`WhileStatement`:case`WithStatement`:case`ClassDeclaration`:case`ExportAllDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ForOfStatement`:case`ImportDeclaration`:case`DeclareClass`:case`DeclareFunction`:case`DeclareInterface`:case`DeclareModule`:case`DeclareModuleExports`:case`DeclareTypeAlias`:case`DeclareOpaqueType`:case`DeclareVariable`:case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:case`InterfaceDeclaration`:case`OpaqueType`:case`TypeAlias`:case`EnumDeclaration`:case`TSDeclareFunction`:case`TSInterfaceDeclaration`:case`TSTypeAliasDeclaration`:case`TSEnumDeclaration`:case`TSModuleDeclaration`:case`TSImportEqualsDeclaration`:case`TSExportAssignment`:case`TSNamespaceExportDeclaration`:break;case`Placeholder`:switch(e.expectedNode){case`Statement`:case`Declaration`:case`BlockStatement`:break;default:return!1}break;default:return!1}return n==null||(0,t.default)(e,n)}function Xr(e,n){if(!e)return!1;switch(e.type){case`BreakStatement`:case`ContinueStatement`:case`ReturnStatement`:case`ThrowStatement`:case`YieldExpression`:case`AwaitExpression`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Zr(e,n){if(!e)return!1;switch(e.type){case`BreakStatement`:case`ContinueStatement`:case`ReturnStatement`:case`ThrowStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Qr(e,n){if(!e)return!1;switch(e.type){case`ConditionalExpression`:case`IfStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function $r(e,n){if(!e)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:case`ForOfStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ei(e,n){if(!e)return!1;switch(e.type){case`DoWhileStatement`:case`WhileStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ti(e,n){if(!e)return!1;switch(e.type){case`ExpressionStatement`:case`ParenthesizedExpression`:case`TypeCastExpression`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ni(e,n){if(!e)return!1;switch(e.type){case`ForInStatement`:case`ForStatement`:case`ForOfStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ri(e,n){if(!e)return!1;switch(e.type){case`ForInStatement`:case`ForOfStatement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ii(e,n){if(!e)return!1;switch(e.type){case`FunctionDeclaration`:case`FunctionExpression`:case`ObjectMethod`:case`ArrowFunctionExpression`:case`ClassMethod`:case`ClassPrivateMethod`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ai(e,n){if(!e)return!1;switch(e.type){case`FunctionDeclaration`:case`FunctionExpression`:case`ObjectMethod`:case`ArrowFunctionExpression`:case`ClassMethod`:case`ClassPrivateMethod`:case`StaticBlock`:case`TSModuleBlock`:break;default:return!1}return n==null||(0,t.default)(e,n)}function oi(e,n){if(!e)return!1;switch(e.type){case`FunctionDeclaration`:case`FunctionExpression`:case`StringLiteral`:case`NumericLiteral`:case`NullLiteral`:case`BooleanLiteral`:case`RegExpLiteral`:case`ArrowFunctionExpression`:case`BigIntLiteral`:case`DecimalLiteral`:break;case`Placeholder`:if(e.expectedNode===`StringLiteral`)break;default:return!1}return n==null||(0,t.default)(e,n)}function si(e,n){if(!e)return!1;switch(e.type){case`FunctionDeclaration`:case`VariableDeclaration`:case`ClassDeclaration`:case`ExportAllDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ImportDeclaration`:case`DeclareClass`:case`DeclareFunction`:case`DeclareInterface`:case`DeclareModule`:case`DeclareModuleExports`:case`DeclareTypeAlias`:case`DeclareOpaqueType`:case`DeclareVariable`:case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:case`InterfaceDeclaration`:case`OpaqueType`:case`TypeAlias`:case`EnumDeclaration`:case`TSDeclareFunction`:case`TSInterfaceDeclaration`:case`TSTypeAliasDeclaration`:case`TSEnumDeclaration`:case`TSModuleDeclaration`:case`TSImportEqualsDeclaration`:break;case`Placeholder`:if(e.expectedNode===`Declaration`)break;default:return!1}return n==null||(0,t.default)(e,n)}function ci(e,n){if(!e)return!1;switch(e.type){case`Identifier`:case`RestElement`:case`AssignmentPattern`:case`ArrayPattern`:case`ObjectPattern`:case`VoidPattern`:break;case`Placeholder`:if(e.expectedNode===`Identifier`)break;default:return!1}return n==null||(0,t.default)(e,n)}function li(e,n){if(!e)return!1;switch(e.type){case`Identifier`:case`MemberExpression`:case`RestElement`:case`AssignmentPattern`:case`ArrayPattern`:case`ObjectPattern`:case`VoidPattern`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:break;case`Placeholder`:switch(e.expectedNode){case`Pattern`:case`Identifier`:break;default:return!1}break;default:return!1}return n==null||(0,t.default)(e,n)}function ui(e,n){if(!e)return!1;switch(e.type){case`Identifier`:case`MemberExpression`:case`RestElement`:case`AssignmentPattern`:case`ArrayPattern`:case`ObjectPattern`:case`TSParameterProperty`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:break;case`Placeholder`:switch(e.expectedNode){case`Pattern`:case`Identifier`:break;default:return!1}break;default:return!1}return n==null||(0,t.default)(e,n)}function di(e,n){if(!e)return!1;switch(e.type){case`Identifier`:case`TSQualifiedName`:break;case`Placeholder`:if(e.expectedNode===`Identifier`)break;default:return!1}return n==null||(0,t.default)(e,n)}function fi(e,n){if(!e)return!1;switch(e.type){case`StringLiteral`:case`NumericLiteral`:case`NullLiteral`:case`BooleanLiteral`:case`RegExpLiteral`:case`TemplateLiteral`:case`BigIntLiteral`:case`DecimalLiteral`:break;case`Placeholder`:if(e.expectedNode===`StringLiteral`)break;default:return!1}return n==null||(0,t.default)(e,n)}function pi(e,n){if(!e)return!1;switch(e.type){case`StringLiteral`:case`NumericLiteral`:case`NullLiteral`:case`BooleanLiteral`:case`BigIntLiteral`:case`JSXAttribute`:case`JSXClosingElement`:case`JSXElement`:case`JSXExpressionContainer`:case`JSXSpreadChild`:case`JSXOpeningElement`:case`JSXText`:case`JSXFragment`:case`JSXOpeningFragment`:case`JSXClosingFragment`:case`DecimalLiteral`:break;case`Placeholder`:if(e.expectedNode===`StringLiteral`)break;default:return!1}return n==null||(0,t.default)(e,n)}function mi(e,n){if(!e)return!1;switch(e.type){case`ObjectMethod`:case`ObjectProperty`:case`ObjectTypeInternalSlot`:case`ObjectTypeCallProperty`:case`ObjectTypeIndexer`:case`ObjectTypeProperty`:case`ObjectTypeSpreadProperty`:break;default:return!1}return n==null||(0,t.default)(e,n)}function hi(e,n){if(!e)return!1;switch(e.type){case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:break;default:return!1}return n==null||(0,t.default)(e,n)}function gi(e,n){if(!e)return!1;switch(e.type){case`ObjectMethod`:case`ObjectProperty`:break;default:return!1}return n==null||(0,t.default)(e,n)}function _i(e,n){if(!e)return!1;switch(e.type){case`ObjectProperty`:case`ClassProperty`:case`ClassAccessorProperty`:case`ClassPrivateProperty`:break;default:return!1}return n==null||(0,t.default)(e,n)}function vi(e,n){if(!e)return!1;switch(e.type){case`UnaryExpression`:case`SpreadElement`:break;default:return!1}return n==null||(0,t.default)(e,n)}function yi(e,n){if(!e)return!1;switch(e.type){case`AssignmentPattern`:case`ArrayPattern`:case`ObjectPattern`:case`VoidPattern`:break;case`Placeholder`:if(e.expectedNode===`Pattern`)break;default:return!1}return n==null||(0,t.default)(e,n)}function bi(e,n){if(!e)return!1;switch(e.type){case`ClassExpression`:case`ClassDeclaration`:break;default:return!1}return n==null||(0,t.default)(e,n)}function xi(e,n){if(!e)return!1;switch(e.type){case`ExportAllDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ImportDeclaration`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Si(e,n){if(!e)return!1;switch(e.type){case`ExportAllDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ci(e,n){if(!e)return!1;switch(e.type){case`ExportSpecifier`:case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`ImportSpecifier`:case`ExportNamespaceSpecifier`:case`ExportDefaultSpecifier`:break;default:return!1}return n==null||(0,t.default)(e,n)}function wi(e,n){if(!e)return!1;switch(e.type){case`ClassAccessorProperty`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ti(e,n){if(!e)return!1;switch(e.type){case`ClassPrivateProperty`:case`ClassPrivateMethod`:case`PrivateName`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ei(e,n){if(!e)return!1;switch(e.type){case`AnyTypeAnnotation`:case`ArrayTypeAnnotation`:case`BooleanTypeAnnotation`:case`BooleanLiteralTypeAnnotation`:case`NullLiteralTypeAnnotation`:case`ClassImplements`:case`DeclareClass`:case`DeclareFunction`:case`DeclareInterface`:case`DeclareModule`:case`DeclareModuleExports`:case`DeclareTypeAlias`:case`DeclareOpaqueType`:case`DeclareVariable`:case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:case`DeclaredPredicate`:case`ExistsTypeAnnotation`:case`FunctionTypeAnnotation`:case`FunctionTypeParam`:case`GenericTypeAnnotation`:case`InferredPredicate`:case`InterfaceExtends`:case`InterfaceDeclaration`:case`InterfaceTypeAnnotation`:case`IntersectionTypeAnnotation`:case`MixedTypeAnnotation`:case`EmptyTypeAnnotation`:case`NullableTypeAnnotation`:case`NumberLiteralTypeAnnotation`:case`NumberTypeAnnotation`:case`ObjectTypeAnnotation`:case`ObjectTypeInternalSlot`:case`ObjectTypeCallProperty`:case`ObjectTypeIndexer`:case`ObjectTypeProperty`:case`ObjectTypeSpreadProperty`:case`OpaqueType`:case`QualifiedTypeIdentifier`:case`StringLiteralTypeAnnotation`:case`StringTypeAnnotation`:case`SymbolTypeAnnotation`:case`ThisTypeAnnotation`:case`TupleTypeAnnotation`:case`TypeofTypeAnnotation`:case`TypeAlias`:case`TypeAnnotation`:case`TypeCastExpression`:case`TypeParameter`:case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:case`UnionTypeAnnotation`:case`Variance`:case`VoidTypeAnnotation`:case`EnumDeclaration`:case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumStringBody`:case`EnumSymbolBody`:case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumStringMember`:case`EnumDefaultedMember`:case`IndexedAccessType`:case`OptionalIndexedAccessType`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Di(e,n){if(!e)return!1;switch(e.type){case`AnyTypeAnnotation`:case`ArrayTypeAnnotation`:case`BooleanTypeAnnotation`:case`BooleanLiteralTypeAnnotation`:case`NullLiteralTypeAnnotation`:case`ExistsTypeAnnotation`:case`FunctionTypeAnnotation`:case`GenericTypeAnnotation`:case`InterfaceTypeAnnotation`:case`IntersectionTypeAnnotation`:case`MixedTypeAnnotation`:case`EmptyTypeAnnotation`:case`NullableTypeAnnotation`:case`NumberLiteralTypeAnnotation`:case`NumberTypeAnnotation`:case`ObjectTypeAnnotation`:case`StringLiteralTypeAnnotation`:case`StringTypeAnnotation`:case`SymbolTypeAnnotation`:case`ThisTypeAnnotation`:case`TupleTypeAnnotation`:case`TypeofTypeAnnotation`:case`UnionTypeAnnotation`:case`VoidTypeAnnotation`:case`IndexedAccessType`:case`OptionalIndexedAccessType`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Oi(e,n){if(!e)return!1;switch(e.type){case`AnyTypeAnnotation`:case`BooleanTypeAnnotation`:case`NullLiteralTypeAnnotation`:case`MixedTypeAnnotation`:case`EmptyTypeAnnotation`:case`NumberTypeAnnotation`:case`StringTypeAnnotation`:case`SymbolTypeAnnotation`:case`ThisTypeAnnotation`:case`VoidTypeAnnotation`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ki(e,n){if(!e)return!1;switch(e.type){case`DeclareClass`:case`DeclareFunction`:case`DeclareInterface`:case`DeclareModule`:case`DeclareModuleExports`:case`DeclareTypeAlias`:case`DeclareOpaqueType`:case`DeclareVariable`:case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:case`InterfaceDeclaration`:case`OpaqueType`:case`TypeAlias`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ai(e,n){if(!e)return!1;switch(e.type){case`DeclaredPredicate`:case`InferredPredicate`:break;default:return!1}return n==null||(0,t.default)(e,n)}function ji(e,n){if(!e)return!1;switch(e.type){case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumStringBody`:case`EnumSymbolBody`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Mi(e,n){if(!e)return!1;switch(e.type){case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumStringMember`:case`EnumDefaultedMember`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ni(e,n){if(!e)return!1;switch(e.type){case`JSXAttribute`:case`JSXClosingElement`:case`JSXElement`:case`JSXEmptyExpression`:case`JSXExpressionContainer`:case`JSXSpreadChild`:case`JSXIdentifier`:case`JSXMemberExpression`:case`JSXNamespacedName`:case`JSXOpeningElement`:case`JSXSpreadAttribute`:case`JSXText`:case`JSXFragment`:case`JSXOpeningFragment`:case`JSXClosingFragment`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Pi(e,n){if(!e)return!1;switch(e.type){case`Noop`:case`Placeholder`:case`V8IntrinsicIdentifier`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Fi(e,n){if(!e)return!1;switch(e.type){case`TSParameterProperty`:case`TSDeclareFunction`:case`TSDeclareMethod`:case`TSQualifiedName`:case`TSCallSignatureDeclaration`:case`TSConstructSignatureDeclaration`:case`TSPropertySignature`:case`TSMethodSignature`:case`TSIndexSignature`:case`TSAnyKeyword`:case`TSBooleanKeyword`:case`TSBigIntKeyword`:case`TSIntrinsicKeyword`:case`TSNeverKeyword`:case`TSNullKeyword`:case`TSNumberKeyword`:case`TSObjectKeyword`:case`TSStringKeyword`:case`TSSymbolKeyword`:case`TSUndefinedKeyword`:case`TSUnknownKeyword`:case`TSVoidKeyword`:case`TSThisType`:case`TSFunctionType`:case`TSConstructorType`:case`TSTypeReference`:case`TSTypePredicate`:case`TSTypeQuery`:case`TSTypeLiteral`:case`TSArrayType`:case`TSTupleType`:case`TSOptionalType`:case`TSRestType`:case`TSNamedTupleMember`:case`TSUnionType`:case`TSIntersectionType`:case`TSConditionalType`:case`TSInferType`:case`TSParenthesizedType`:case`TSTypeOperator`:case`TSIndexedAccessType`:case`TSMappedType`:case`TSTemplateLiteralType`:case`TSLiteralType`:case`TSExpressionWithTypeArguments`:case`TSInterfaceDeclaration`:case`TSInterfaceBody`:case`TSTypeAliasDeclaration`:case`TSInstantiationExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSEnumBody`:case`TSEnumDeclaration`:case`TSEnumMember`:case`TSModuleDeclaration`:case`TSModuleBlock`:case`TSImportType`:case`TSImportEqualsDeclaration`:case`TSExternalModuleReference`:case`TSNonNullExpression`:case`TSExportAssignment`:case`TSNamespaceExportDeclaration`:case`TSTypeAnnotation`:case`TSTypeParameterInstantiation`:case`TSTypeParameterDeclaration`:case`TSTypeParameter`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ii(e,n){if(!e)return!1;switch(e.type){case`TSCallSignatureDeclaration`:case`TSConstructSignatureDeclaration`:case`TSPropertySignature`:case`TSMethodSignature`:case`TSIndexSignature`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Li(e,n){if(!e)return!1;switch(e.type){case`TSAnyKeyword`:case`TSBooleanKeyword`:case`TSBigIntKeyword`:case`TSIntrinsicKeyword`:case`TSNeverKeyword`:case`TSNullKeyword`:case`TSNumberKeyword`:case`TSObjectKeyword`:case`TSStringKeyword`:case`TSSymbolKeyword`:case`TSUndefinedKeyword`:case`TSUnknownKeyword`:case`TSVoidKeyword`:case`TSThisType`:case`TSFunctionType`:case`TSConstructorType`:case`TSTypeReference`:case`TSTypePredicate`:case`TSTypeQuery`:case`TSTypeLiteral`:case`TSArrayType`:case`TSTupleType`:case`TSOptionalType`:case`TSRestType`:case`TSUnionType`:case`TSIntersectionType`:case`TSConditionalType`:case`TSInferType`:case`TSParenthesizedType`:case`TSTypeOperator`:case`TSIndexedAccessType`:case`TSMappedType`:case`TSTemplateLiteralType`:case`TSLiteralType`:case`TSExpressionWithTypeArguments`:case`TSImportType`:break;default:return!1}return n==null||(0,t.default)(e,n)}function Ri(e,n){if(!e)return!1;switch(e.type){case`TSAnyKeyword`:case`TSBooleanKeyword`:case`TSBigIntKeyword`:case`TSIntrinsicKeyword`:case`TSNeverKeyword`:case`TSNullKeyword`:case`TSNumberKeyword`:case`TSObjectKeyword`:case`TSStringKeyword`:case`TSSymbolKeyword`:case`TSUndefinedKeyword`:case`TSUnknownKeyword`:case`TSVoidKeyword`:case`TSThisType`:case`TSTemplateLiteralType`:case`TSLiteralType`:break;default:return!1}return n==null||(0,t.default)(e,n)}function zi(e,r){return(0,n.default)(`isNumberLiteral`,`isNumericLiteral`),!e||e.type!==`NumberLiteral`?!1:r==null||(0,t.default)(e,r)}function Bi(e,r){return(0,n.default)(`isRegexLiteral`,`isRegExpLiteral`),!e||e.type!==`RegexLiteral`?!1:r==null||(0,t.default)(e,r)}function Vi(e,r){return(0,n.default)(`isRestProperty`,`isRestElement`),!e||e.type!==`RestProperty`?!1:r==null||(0,t.default)(e,r)}function Hi(e,r){return(0,n.default)(`isSpreadProperty`,`isSpreadElement`),!e||e.type!==`SpreadProperty`?!1:r==null||(0,t.default)(e,r)}function Ui(e,t){return(0,n.default)(`isModuleDeclaration`,`isImportOrExportDeclaration`),xi(e,t)}})),ae=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T();function n(e){return(0,t.isMemberExpression)(e)||(0,t.isMetaProperty)(e)}function r(e,r,i){if(!n(e))return!1;let a=Array.isArray(r)?r:r.split(`.`),o=[],s;for(s=e;n(s);s=(c=s.object)??s.meta){var c;o.push(s.property)}if(o.push(s),o.length<a.length||!i&&o.length>a.length)return!1;for(let e=0,n=o.length-1;e<a.length;e++,n--){let r=o[n],i;if((0,t.isIdentifier)(r))i=r.name;else if((0,t.isStringLiteral)(r))i=r.value;else if((0,t.isThisExpression)(r))i=`this`;else if((0,t.isSuper)(r))i=`super`;else if((0,t.isPrivateName)(r))i=`#`+r.id.name;else return!1;if(a[e]!==i)return!1}return!0}})),oe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=ae();function n(e,n){let r=e.split(`.`);return e=>(0,t.default)(e,r,n)}})),se=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=(0,oe().default)(`React.Component`)})),E=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return!!e&&/^[a-z]/.test(e)}})),D=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=I();function n(e,n){if(e===n)return!0;if(e==null||t.ALIAS_KEYS[n])return!1;let r=t.FLIPPED_ALIAS_KEYS[n];return!!(r!=null&&r.includes(e))}})),O=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=I();function n(e,n){if(e===n)return!0;let r=t.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(n))}})),k=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=ie(),n=D(),r=O(),i=I();function a(e,a,o){return a?(0,n.default)(a.type,e)?o===void 0||(0,t.default)(a,o):!o&&a.type===`Placeholder`&&e in i.FLIPPED_ALIAS_KEYS&&(0,r.default)(a.expectedNode,e):!1}})),ce=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=l,e.isIdentifierName=u,e.isIdentifierStart=c;var t=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,n=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,r=RegExp(`[`+t+`]`),i=RegExp(`[`+t+n+`]`);t=n=null;var a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function s(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&r.test(String.fromCharCode(e)):s(e,a)}function l(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&i.test(String.fromCharCode(e)):s(e,a)||s(e,o)}function u(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if((r&64512)==55296&&n+1<e.length){let t=e.charCodeAt(++n);(t&64512)==56320&&(r=65536+((r&1023)<<10)+(t&1023))}if(t){if(t=!1,!c(r))return!1}else if(!l(r))return!1}return!t}})),le=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=l,e.isReservedWord=a,e.isStrictBindOnlyReservedWord=s,e.isStrictBindReservedWord=c,e.isStrictReservedWord=o;var t={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},n=new Set(t.keyword),r=new Set(t.strict),i=new Set(t.strictBind);function a(e,t){return t&&e===`await`||e===`enum`}function o(e,t){return a(e,t)||r.has(e)}function s(e){return i.has(e)}function c(e,t){return o(e,t)||s(e)}function l(e){return n.has(e)}})),ue=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=ce(),n=le()})),A=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=ue();function n(e,n=!0){return typeof e!=`string`||n&&((0,t.isKeyword)(e)||(0,t.isStrictReservedWord)(e,!0))?!1:(0,t.isIdentifierName)(e)}})),de=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readCodePoint=l,e.readInt=c,e.readStringContents=i;var t=function(e){return e>=48&&e<=57},n={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function i(e,t,n,r,i,s){let c=n,l=r,u=i,d=``,f=null,p=n,{length:m}=t;for(;;){if(n>=m){s.unterminated(c,l,u),d+=t.slice(p,n);break}let h=t.charCodeAt(n);if(a(e,h,t,n)){d+=t.slice(p,n);break}if(h===92){d+=t.slice(p,n);let a=o(t,n,r,i,e===`template`,s);a.ch===null&&!f?f={pos:n,lineStart:r,curLine:i}:d+=a.ch,{pos:n,lineStart:r,curLine:i}=a,p=n}else h===8232||h===8233?(++n,++i,r=n):h===10||h===13?e===`template`?(d+=t.slice(p,n)+`
|
|
143
|
+
`,++n,h===13&&t.charCodeAt(n)===10&&++n,++i,p=r=n):s.unterminated(c,l,u):++n}return{pos:n,str:d,firstInvalidLoc:f,lineStart:r,curLine:i,containsInvalid:!!f}}function a(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function o(e,t,n,r,i,a){let o=!i;t++;let c=e=>({pos:t,ch:e,lineStart:n,curLine:r}),u=e.charCodeAt(t++);switch(u){case 110:return c(`
|
|
144
|
+
`);case 114:return c(`\r`);case 120:{let i;return{code:i,pos:t}=s(e,t,n,r,2,!1,o,a),c(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=l(e,t,n,r,o,a),c(i===null?null:String.fromCodePoint(i))}case 116:return c(` `);case 98:return c(`\b`);case 118:return c(`\v`);case 102:return c(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return c(``);case 56:case 57:if(i)return c(null);a.strictNumericEscape(t-1,n,r);default:if(u>=48&&u<=55){let o=t-1,s=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(s,8);l>255&&(s=s.slice(0,-1),l=parseInt(s,8)),t+=s.length-1;let u=e.charCodeAt(t);if(s!==`0`||u===56||u===57){if(i)return c(null);a.strictNumericEscape(o,n,r)}return c(String.fromCharCode(l))}return c(String.fromCharCode(u))}}function s(e,t,n,r,i,a,o,s){let l=t,u;return{n:u,pos:t}=c(e,t,n,r,16,i,a,!1,s,!o),u===null&&(o?s.invalidEscapeSequence(l,n,r):t=l-1),{code:u,pos:t}}function c(e,i,a,o,s,c,l,u,d,f){let p=i,m=s===16?n.hex:n.decBinOct,h=s===16?r.hex:s===10?r.dec:s===8?r.oct:r.bin,g=!1,_=0;for(let n=0,r=c??1/0;n<r;++n){let n=e.charCodeAt(i),r;if(n===95&&u!==`bail`){let t=e.charCodeAt(i-1),n=e.charCodeAt(i+1);if(!u){if(f)return{n:null,pos:i};d.numericSeparatorInEscapeSequence(i,a,o)}else if(Number.isNaN(n)||!h(n)||m.has(t)||m.has(n)){if(f)return{n:null,pos:i};d.unexpectedNumericSeparator(i,a,o)}++i}else{if(r=n>=97?n-97+10:n>=65?n-65+10:t(n)?n-48:1/0,r>=s){if(r<=9&&f)return{n:null,pos:i};if(r<=9&&d.invalidDigit(i,a,o,s))r=0;else if(l)r=0,g=!0;else break}++i,_=_*s+r}}return i===p||c!=null&&i-p!==c||g?{n:null,pos:i}:{n:_,pos:i}}function l(e,t,n,r,i,a){let o=e.charCodeAt(t),c;if(o===123){if(++t,{code:c,pos:t}=s(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,c!==null&&c>1114111){if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}}else({code:c,pos:t}=s(e,t,n,r,4,!1,i,a));return{code:c,pos:t}}})),j=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UPDATE_OPERATORS=e.UNARY_OPERATORS=e.STRING_UNARY_OPERATORS=e.STATEMENT_OR_BLOCK_KEYS=e.NUMBER_UNARY_OPERATORS=e.NUMBER_BINARY_OPERATORS=e.LOGICAL_OPERATORS=e.INHERIT_KEYS=e.FOR_INIT_KEYS=e.FLATTENABLE_KEYS=e.EQUALITY_BINARY_OPERATORS=e.COMPARISON_BINARY_OPERATORS=e.COMMENT_KEYS=e.BOOLEAN_UNARY_OPERATORS=e.BOOLEAN_NUMBER_BINARY_OPERATORS=e.BOOLEAN_BINARY_OPERATORS=e.BINARY_OPERATORS=e.ASSIGNMENT_OPERATORS=void 0,e.STATEMENT_OR_BLOCK_KEYS=[`consequent`,`body`,`alternate`],e.FLATTENABLE_KEYS=[`body`,`expressions`],e.FOR_INIT_KEYS=[`left`,`init`],e.COMMENT_KEYS=[`leadingComments`,`trailingComments`,`innerComments`];var t=e.LOGICAL_OPERATORS=[`||`,`&&`,`??`];e.UPDATE_OPERATORS=[`++`,`--`];var n=e.BOOLEAN_NUMBER_BINARY_OPERATORS=[`>`,`<`,`>=`,`<=`],r=e.BOOLEAN_BINARY_OPERATORS=[...e.COMPARISON_BINARY_OPERATORS=[...e.EQUALITY_BINARY_OPERATORS=[`==`,`===`,`!=`,`!==`],`in`,`instanceof`],...n],i=e.NUMBER_BINARY_OPERATORS=[`-`,`/`,`%`,`*`,`**`,`&`,`|`,`>>`,`>>>`,`<<`,`^`];e.BINARY_OPERATORS=[`+`,...i,...r,`|>`],e.ASSIGNMENT_OPERATORS=[`=`,`+=`,...i.map(e=>e+`=`),...t.map(e=>e+`=`)];var a=e.BOOLEAN_UNARY_OPERATORS=[`delete`,`!`],o=e.NUMBER_UNARY_OPERATORS=[`+`,`-`,`~`],s=e.STRING_UNARY_OPERATORS=[`typeof`];e.UNARY_OPERATORS=[`void`,`throw`,...a,...o,...s],e.INHERIT_KEYS={optional:[`typeAnnotation`,`typeParameters`,`returnType`],force:[`start`,`loc`,`end`]},e.BLOCK_SCOPED_SYMBOL=Symbol.for(`var used to be block scoped`),e.NOT_LOCAL_BINDING=Symbol.for(`should not be considered a local binding`)})),M=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.allExpandedTypes=e.VISITOR_KEYS=e.NODE_UNION_SHAPES__PRIVATE=e.NODE_PARENT_VALIDATIONS=e.NODE_FIELDS=e.FLIPPED_ALIAS_KEYS=e.DEPRECATED_KEYS=e.BUILDER_KEYS=e.ALIAS_KEYS=void 0,e.arrayOf=g,e.arrayOfType=_,e.assertEach=te,e.assertNodeOrValueType=y,e.assertNodeType=v,e.assertOneOf=ne,e.assertOptionalChainStart=S,e.assertShape=x,e.assertValueType=b,e.chain=C,e.default=oe,e.defineAliasedType=ae,e.validate=f,e.validateArrayOfType=ee,e.validateOptional=m,e.validateOptionalType=h,e.validateType=p;var t=k(),n=_e(),r=e.VISITOR_KEYS={},i=e.ALIAS_KEYS={},a=e.FLIPPED_ALIAS_KEYS={},o=e.NODE_FIELDS={},s=e.BUILDER_KEYS={},c=e.DEPRECATED_KEYS={},l=e.NODE_PARENT_VALIDATIONS={},u=e.NODE_UNION_SHAPES__PRIVATE={};function d(e){return Array.isArray(e)?`array`:e===null?`null`:typeof e}function f(e){return{validate:e}}function p(...e){return f(v(...e))}function m(e){return{validate:e,optional:!0}}function h(...e){return{validate:v(...e),optional:!0}}function g(e){return C(b(`array`),te(e))}function _(...e){return g(v(...e))}function ee(...e){return f(_(...e))}function te(e){let t=process.env.BABEL_TYPES_8_BREAKING?n.validateChild:()=>{};function r(n,r,i){if(!Array.isArray(i))return;let a=0,o={toString(){return`${r}[${a}]`}};for(;a<i.length;a++){let r=i[a];e(n,o,r),t(n,o,r)}}return r.each=e,r}function ne(...e){function t(t,n,r){if(!e.includes(r))throw TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t}var re=e.allExpandedTypes=[];function v(...e){let r=new Set;re.push({types:e,set:r});function i(i,a,o){let s=o==null?void 0:o.type;if(s!=null){if(r.has(s)){(0,n.validateChild)(i,a,o);return}if(s===`Placeholder`){for(let r of e)if((0,t.default)(r,o)){(0,n.validateChild)(i,a,o);return}}}throw TypeError(`Property ${a} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s)}`)}return i.oneOfNodeTypes=e,i}function y(...e){function r(r,i,a){let o=d(a);for(let s of e)if(o===s||(0,t.default)(s,a)){(0,n.validateChild)(r,i,a);return}throw TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a==null?void 0:a.type)}`)}return r.oneOfNodeOrValueTypes=e,r}function b(e){function t(t,n,r){if(d(r)!==e)throw TypeError(`Property ${n} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function x(e){let t=Object.keys(e);function r(r,i,a){let o=[];for(let i of t)try{(0,n.validateField)(r,i,a[i],e[i])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw TypeError(`Property ${i} of ${r.type} expected to have the following:\n${o.join(`
|
|
145
|
+
`)}`)}return r.shapeOf=e,r}function S(){function e(e){var t;let n=e;for(;e;){let{type:e}=n;if(e===`OptionalCallExpression`){if(n.optional)return;n=n.callee}else if(e===`OptionalMemberExpression`){if(n.optional)return;n=n.object}else break}throw TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(t=n)==null?void 0:t.type}`)}return e}function C(...e){function t(...t){for(let n of e)n(...t)}if(t.chainOf=e,e.length>=2&&`type`in e[0]&&e[0].type===`array`&&!(`each`in e[1]))throw Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`);return t}var ie=new Set([`aliases`,`builder`,`deprecatedAlias`,`fields`,`inherits`,`visitor`,`validate`,`unionShape`]),w=new Set([`default`,`optional`,`deprecated`,`validate`]),T={};function ae(...e){return(t,n={})=>{let r=n.aliases;if(!r){var i;n.inherits&&(r=(i=T[n.inherits].aliases)==null?void 0:i.slice()),r??(r=[]),n.aliases=r}let a=e.filter(e=>!r.includes(e));r.unshift(...a),oe(t,n)}}function oe(e,t={}){let n=t.inherits&&T[t.inherits]||{},f=t.fields;if(!f&&(f={},n.fields)){let e=Object.getOwnPropertyNames(n.fields);for(let t of e){let e=n.fields[t],r=e.default;if(Array.isArray(r)?r.length>0:r&&typeof r==`object`)throw Error(`field defaults can only be primitives or empty arrays currently`);f[t]={default:Array.isArray(r)?[]:r,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}let p=t.visitor||n.visitor||[],m=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];for(let n of Object.keys(t))if(!ie.has(n))throw Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(c[t.deprecatedAlias]=e);for(let e of p.concat(h))f[e]=f[e]||{};for(let t of Object.keys(f)){let n=f[t];n.default!==void 0&&!h.includes(t)&&(n.optional=!0),n.default===void 0?n.default=null:!n.validate&&n.default!=null&&(n.validate=b(d(n.default)));for(let r of Object.keys(n))if(!w.has(r))throw Error(`Unknown field key "${r}" on ${e}.${t}`)}r[e]=t.visitor=p,s[e]=t.builder=h,o[e]=t.fields=f,i[e]=t.aliases=m,m.forEach(t=>{a[t]=a[t]||[],a[t].push(e)}),t.validate&&(l[e]=t.validate),t.unionShape&&(u[e]=t.unionShape),T[e]=t}})),N=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.patternLikeCommon=e.importAttributes=e.functionTypeAnnotationCommon=e.functionDeclarationCommon=e.functionCommon=e.classMethodOrPropertyUnionShapeCommon=e.classMethodOrPropertyCommon=e.classMethodOrDeclareMethodCommon=void 0;var t=k(),n=A(),r=ue(),i=de(),a=j(),o=M(),s=(e=!1)=>({unionShape:{discriminator:`computed`,shapes:[{name:`computed`,value:[!0],properties:{key:{validate:(0,o.assertNodeType)(`Expression`)}}},{name:`nonComputed`,value:[!1],properties:{key:{validate:e?(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`PrivateName`):(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`)}}}]}});e.classMethodOrPropertyUnionShapeCommon=s;var c=(0,o.defineAliasedType)(`Standardized`);c(`ArrayExpression`,{fields:{elements:{validate:(0,o.arrayOf)((0,o.assertNodeOrValueType)(`null`,`Expression`,`SpreadElement`)),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:[`elements`],aliases:[`Expression`]}),c(`AssignmentExpression`,{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let e=(0,o.assertOneOf)(...a.ASSIGNMENT_OPERATORS),n=(0,o.assertOneOf)(`=`);return function(r,i,a){((0,t.default)(`Pattern`,r.left)?n:e)(r,i,a)}}(),{oneOf:a.ASSIGNMENT_OPERATORS}):(0,o.assertValueType)(`string`)},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertNodeType)(`Identifier`,`MemberExpression`,`OptionalMemberExpression`,`ArrayPattern`,`ObjectPattern`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`):(0,o.assertNodeType)(`LVal`,`OptionalMemberExpression`)},right:{validate:(0,o.assertNodeType)(`Expression`)}},builder:[`operator`,`left`,`right`],visitor:[`left`,`right`],aliases:[`Expression`]}),c(`BinaryExpression`,{builder:[`operator`,`left`,`right`],fields:{operator:{validate:(0,o.assertOneOf)(...a.BINARY_OPERATORS)},left:{validate:function(){let e=(0,o.assertNodeType)(`Expression`),t=(0,o.assertNodeType)(`Expression`,`PrivateName`);return Object.assign(function(n,r,i){(n.operator===`in`?t:e)(n,r,i)},{oneOfNodeTypes:[`Expression`,`PrivateName`]})}()},right:{validate:(0,o.assertNodeType)(`Expression`)}},visitor:[`left`,`right`],aliases:[`Binary`,`Expression`]}),c(`InterpreterDirective`,{builder:[`value`],fields:{value:{validate:(0,o.assertValueType)(`string`)}}}),c(`Directive`,{visitor:[`value`],fields:{value:{validate:(0,o.assertNodeType)(`DirectiveLiteral`)}}}),c(`DirectiveLiteral`,{builder:[`value`],fields:{value:{validate:(0,o.assertValueType)(`string`)}}}),c(`BlockStatement`,{builder:[`body`,`directives`],visitor:[`directives`,`body`],fields:{directives:{validate:(0,o.arrayOfType)(`Directive`),default:[]},body:(0,o.validateArrayOfType)(`Statement`)},aliases:[`Scopable`,`BlockParent`,`Block`,`Statement`]}),c(`BreakStatement`,{visitor:[`label`],fields:{label:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0}},aliases:[`Statement`,`Terminatorless`,`CompletionStatement`]}),c(`CallExpression`,{visitor:[`callee`,`typeParameters`,`typeArguments`,`arguments`],builder:[`callee`,`arguments`],aliases:[`Expression`],fields:Object.assign({callee:{validate:(0,o.assertNodeType)(`Expression`,`Super`,`V8IntrinsicIdentifier`)},arguments:(0,o.validateArrayOfType)(`Expression`,`SpreadElement`,`ArgumentPlaceholder`),typeArguments:{validate:(0,o.assertNodeType)(`TypeParameterInstantiation`),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,o.assertValueType)(`boolean`),optional:!0},typeParameters:{validate:(0,o.assertNodeType)(`TSTypeParameterInstantiation`),optional:!0}})}),c(`CatchClause`,{visitor:[`param`,`body`],fields:{param:{validate:(0,o.assertNodeType)(`Identifier`,`ArrayPattern`,`ObjectPattern`),optional:!0},body:{validate:(0,o.assertNodeType)(`BlockStatement`)}},aliases:[`Scopable`,`BlockParent`]}),c(`ConditionalExpression`,{visitor:[`test`,`consequent`,`alternate`],fields:{test:{validate:(0,o.assertNodeType)(`Expression`)},consequent:{validate:(0,o.assertNodeType)(`Expression`)},alternate:{validate:(0,o.assertNodeType)(`Expression`)}},aliases:[`Expression`,`Conditional`]}),c(`ContinueStatement`,{visitor:[`label`],fields:{label:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0}},aliases:[`Statement`,`Terminatorless`,`CompletionStatement`]}),c(`DebuggerStatement`,{aliases:[`Statement`]}),c(`DoWhileStatement`,{builder:[`test`,`body`],visitor:[`body`,`test`],fields:{test:{validate:(0,o.assertNodeType)(`Expression`)},body:{validate:(0,o.assertNodeType)(`Statement`)}},aliases:[`Statement`,`BlockParent`,`Loop`,`While`,`Scopable`]}),c(`EmptyStatement`,{aliases:[`Statement`]}),c(`ExpressionStatement`,{visitor:[`expression`],fields:{expression:{validate:(0,o.assertNodeType)(`Expression`)}},aliases:[`Statement`,`ExpressionWrapper`]}),c(`File`,{builder:[`program`,`comments`,`tokens`],visitor:[`program`],fields:{program:{validate:(0,o.assertNodeType)(`Program`)},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertEach)((0,o.assertNodeType)(`CommentBlock`,`CommentLine`)):Object.assign(()=>{},{each:{oneOfNodeTypes:[`CommentBlock`,`CommentLine`]}}),optional:!0},tokens:{validate:(0,o.assertEach)(Object.assign(()=>{},{type:`any`})),optional:!0}}}),c(`ForInStatement`,{visitor:[`left`,`right`,`body`],aliases:[`Scopable`,`Statement`,`For`,`BlockParent`,`Loop`,`ForXStatement`],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertNodeType)(`VariableDeclaration`,`Identifier`,`MemberExpression`,`ArrayPattern`,`ObjectPattern`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`):(0,o.assertNodeType)(`VariableDeclaration`,`LVal`)},right:{validate:(0,o.assertNodeType)(`Expression`)},body:{validate:(0,o.assertNodeType)(`Statement`)}}}),c(`ForStatement`,{visitor:[`init`,`test`,`update`,`body`],aliases:[`Scopable`,`Statement`,`For`,`BlockParent`,`Loop`],fields:{init:{validate:(0,o.assertNodeType)(`VariableDeclaration`,`Expression`),optional:!0},test:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},update:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},body:{validate:(0,o.assertNodeType)(`Statement`)}}});var l=()=>({params:(0,o.validateArrayOfType)(`FunctionParameter`),generator:{default:!1},async:{default:!1}});e.functionCommon=l;var u=()=>({returnType:{validate:(0,o.assertNodeType)(`TypeAnnotation`,`TSTypeAnnotation`,`Noop`),optional:!0},typeParameters:{validate:(0,o.assertNodeType)(`TypeParameterDeclaration`,`TSTypeParameterDeclaration`,`Noop`),optional:!0}});e.functionTypeAnnotationCommon=u;var d=()=>Object.assign({},l(),{declare:{validate:(0,o.assertValueType)(`boolean`),optional:!0},id:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0}});e.functionDeclarationCommon=d,c(`FunctionDeclaration`,{builder:[`id`,`params`,`body`,`generator`,`async`],visitor:[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],fields:Object.assign({},d(),u(),{body:{validate:(0,o.assertNodeType)(`BlockStatement`)},predicate:{validate:(0,o.assertNodeType)(`DeclaredPredicate`,`InferredPredicate`),optional:!0}}),aliases:[`Scopable`,`Function`,`BlockParent`,`FunctionParent`,`Statement`,`Pureish`,`Declaration`],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,o.assertNodeType)(`Identifier`);return function(n,r,i){(0,t.default)(`ExportDefaultDeclaration`,n)||e(i,`id`,i.id)}}():void 0}),c(`FunctionExpression`,{inherits:`FunctionDeclaration`,aliases:[`Scopable`,`Function`,`BlockParent`,`FunctionParent`,`Expression`,`Pureish`],fields:Object.assign({},l(),u(),{id:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0},body:{validate:(0,o.assertNodeType)(`BlockStatement`)},predicate:{validate:(0,o.assertNodeType)(`DeclaredPredicate`,`InferredPredicate`),optional:!0}})});var f=()=>({typeAnnotation:{validate:(0,o.assertNodeType)(`TypeAnnotation`,`TSTypeAnnotation`,`Noop`),optional:!0},optional:{validate:(0,o.assertValueType)(`boolean`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0}});e.patternLikeCommon=f,c(`Identifier`,{builder:[`name`],visitor:[`typeAnnotation`,`decorators`],aliases:[`Expression`,`FunctionParameter`,`PatternLike`,`LVal`,`TSEntityName`],fields:Object.assign({},f(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`string`),Object.assign(function(e,t,r){if(!(0,n.default)(r,!1))throw TypeError(`"${r}" is not a valid identifier name`)},{type:`string`})):(0,o.assertValueType)(`string`)}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,n,i){let a=/\.(\w+)$/.exec(n.toString());if(!a)return;let[,o]=a,s={computed:!1};if(o===`property`){if((0,t.default)(`MemberExpression`,e,s)||(0,t.default)(`OptionalMemberExpression`,e,s))return}else if(o===`key`){if((0,t.default)(`Property`,e,s)||(0,t.default)(`Method`,e,s))return}else if(o===`exported`){if((0,t.default)(`ExportSpecifier`,e))return}else if(o===`imported`){if((0,t.default)(`ImportSpecifier`,e,{imported:i}))return}else if(o===`meta`&&(0,t.default)(`MetaProperty`,e,{meta:i}))return;if(((0,r.isKeyword)(i.name)||(0,r.isReservedWord)(i.name,!1))&&i.name!==`this`)throw TypeError(`"${i.name}" is not a valid identifier`)}:void 0}),c(`IfStatement`,{visitor:[`test`,`consequent`,`alternate`],aliases:[`Statement`,`Conditional`],fields:{test:{validate:(0,o.assertNodeType)(`Expression`)},consequent:{validate:(0,o.assertNodeType)(`Statement`)},alternate:{optional:!0,validate:(0,o.assertNodeType)(`Statement`)}}}),c(`LabeledStatement`,{visitor:[`label`,`body`],aliases:[`Statement`],fields:{label:{validate:(0,o.assertNodeType)(`Identifier`)},body:{validate:(0,o.assertNodeType)(`Statement`)}}}),c(`StringLiteral`,{builder:[`value`],fields:{value:{validate:(0,o.assertValueType)(`string`)}},aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),c(`NumericLiteral`,{builder:[`value`],deprecatedAlias:`NumberLiteral`,fields:{value:{validate:(0,o.chain)((0,o.assertValueType)(`number`),Object.assign(function(e,t,n){(1/n<0||!Number.isFinite(n))&&`${n}`},{type:`number`}))}},aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),c(`NullLiteral`,{aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),c(`BooleanLiteral`,{builder:[`value`],fields:{value:{validate:(0,o.assertValueType)(`boolean`)}},aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),c(`RegExpLiteral`,{builder:[`pattern`,`flags`],deprecatedAlias:`RegexLiteral`,aliases:[`Expression`,`Pureish`,`Literal`],fields:{pattern:{validate:(0,o.assertValueType)(`string`)},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`string`),Object.assign(function(e,t,n){let r=/[^dgimsuvy]/.exec(n);if(r)throw TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:`string`})):(0,o.assertValueType)(`string`),default:``}}}),c(`LogicalExpression`,{builder:[`operator`,`left`,`right`],visitor:[`left`,`right`],aliases:[`Binary`,`Expression`],fields:{operator:{validate:(0,o.assertOneOf)(...a.LOGICAL_OPERATORS)},left:{validate:(0,o.assertNodeType)(`Expression`)},right:{validate:(0,o.assertNodeType)(`Expression`)}}}),c(`MemberExpression`,{builder:[`object`,`property`,`computed`,...process.env.BABEL_TYPES_8_BREAKING?[]:[`optional`]],visitor:[`object`,`property`],aliases:[`Expression`,`LVal`,`PatternLike`],unionShape:{discriminator:`computed`,shapes:[{name:`computed`,value:[!0],properties:{property:{validate:(0,o.assertNodeType)(`Expression`)}}},{name:`nonComputed`,value:[!1],properties:{property:{validate:(0,o.assertNodeType)(`Identifier`,`PrivateName`)}}}]},fields:Object.assign({object:{validate:(0,o.assertNodeType)(`Expression`,`Super`)},property:{validate:function(){let e=(0,o.assertNodeType)(`Identifier`,`PrivateName`),t=(0,o.assertNodeType)(`Expression`),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=[`Expression`,`Identifier`,`PrivateName`],n}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,o.assertValueType)(`boolean`),optional:!0}})}),c(`NewExpression`,{inherits:`CallExpression`}),c(`Program`,{visitor:[`directives`,`body`],builder:[`body`,`directives`,`sourceType`,`interpreter`],fields:{sourceType:{validate:(0,o.assertOneOf)(`script`,`module`),default:`script`},interpreter:{validate:(0,o.assertNodeType)(`InterpreterDirective`),default:null,optional:!0},directives:{validate:(0,o.arrayOfType)(`Directive`),default:[]},body:(0,o.validateArrayOfType)(`Statement`)},aliases:[`Scopable`,`BlockParent`,`Block`]}),c(`ObjectExpression`,{visitor:[`properties`],aliases:[`Expression`],fields:{properties:(0,o.validateArrayOfType)(`ObjectMethod`,`ObjectProperty`,`SpreadElement`)}}),c(`ObjectMethod`,Object.assign({builder:[`kind`,`key`,`params`,`body`,`computed`,`generator`,`async`],visitor:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`]},s(),{fields:Object.assign({},l(),u(),{kind:Object.assign({validate:(0,o.assertOneOf)(`method`,`get`,`set`)},process.env.BABEL_TYPES_8_BREAKING?{}:{default:`method`}),computed:{default:!1},key:{validate:function(){let e=(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`),t=(0,o.assertNodeType)(`Expression`),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=[`Expression`,`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`],n}()},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},body:{validate:(0,o.assertNodeType)(`BlockStatement`)}}),aliases:[`UserWhitespacable`,`Function`,`Scopable`,`BlockParent`,`FunctionParent`,`Method`,`ObjectMember`]})),c(`ObjectProperty`,{builder:[`key`,`value`,`computed`,`shorthand`,...process.env.BABEL_TYPES_8_BREAKING?[]:[`decorators`]],unionShape:{discriminator:`computed`,shapes:[{name:`computed`,value:[!0],properties:{key:{validate:(0,o.assertNodeType)(`Expression`)}}},{name:`nonComputed`,value:[!1],properties:{key:{validate:(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`DecimalLiteral`,`PrivateName`)}}}]},fields:{computed:{default:!1},key:{validate:function(){let e=(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`DecimalLiteral`,`PrivateName`),t=(0,o.assertNodeType)(`Expression`);return Object.assign(function(n,r,i){(n.computed?t:e)(n,r,i)},{oneOfNodeTypes:[`Expression`,`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`DecimalLiteral`,`PrivateName`]})}()},value:{validate:(0,o.assertNodeType)(`Expression`,`PatternLike`)},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`boolean`),Object.assign(function(e,n,r){if(r){if(e.computed)throw TypeError(`Property shorthand of ObjectProperty cannot be true if computed is true`);if(!(0,t.default)(`Identifier`,e.key))throw TypeError(`Property shorthand of ObjectProperty cannot be true if key is not an Identifier`)}},{type:`boolean`})):(0,o.assertValueType)(`boolean`),default:!1},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0}},visitor:[`decorators`,`key`,`value`],aliases:[`UserWhitespacable`,`Property`,`ObjectMember`],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,o.assertNodeType)(`Identifier`,`Pattern`,`TSAsExpression`,`TSSatisfiesExpression`,`TSNonNullExpression`,`TSTypeAssertion`),n=(0,o.assertNodeType)(`Expression`);return function(r,i,a){((0,t.default)(`ObjectPattern`,r)?e:n)(a,`value`,a.value)}}():void 0}),c(`RestElement`,{visitor:[`argument`,`typeAnnotation`],builder:[`argument`],aliases:[`FunctionParameter`,`PatternLike`,`LVal`],deprecatedAlias:`RestProperty`,fields:Object.assign({},f(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertNodeType)(`Identifier`,`ArrayPattern`,`ObjectPattern`,`MemberExpression`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`):(0,o.assertNodeType)(`Identifier`,`ArrayPattern`,`ObjectPattern`,`MemberExpression`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`RestElement`,`AssignmentPattern`)}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let n=/(\w+)\[(\d+)\]/.exec(t.toString());if(!n)throw Error(`Internal Babel error: malformed key.`);let[,r,i]=n;if(e[r].length>+i+1)throw TypeError(`RestElement must be last element of ${r}`)}:void 0}),c(`ReturnStatement`,{visitor:[`argument`],aliases:[`Statement`,`Terminatorless`,`CompletionStatement`],fields:{argument:{validate:(0,o.assertNodeType)(`Expression`),optional:!0}}}),c(`SequenceExpression`,{visitor:[`expressions`],fields:{expressions:(0,o.validateArrayOfType)(`Expression`)},aliases:[`Expression`]}),c(`ParenthesizedExpression`,{visitor:[`expression`],aliases:[`Expression`,`ExpressionWrapper`],fields:{expression:{validate:(0,o.assertNodeType)(`Expression`)}}}),c(`SwitchCase`,{visitor:[`test`,`consequent`],fields:{test:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},consequent:(0,o.validateArrayOfType)(`Statement`)}}),c(`SwitchStatement`,{visitor:[`discriminant`,`cases`],aliases:[`Statement`,`BlockParent`,`Scopable`],fields:{discriminant:{validate:(0,o.assertNodeType)(`Expression`)},cases:(0,o.validateArrayOfType)(`SwitchCase`)}}),c(`ThisExpression`,{aliases:[`Expression`]}),c(`ThrowStatement`,{visitor:[`argument`],aliases:[`Statement`,`Terminatorless`,`CompletionStatement`],fields:{argument:{validate:(0,o.assertNodeType)(`Expression`)}}}),c(`TryStatement`,{visitor:[`block`,`handler`,`finalizer`],aliases:[`Statement`],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertNodeType)(`BlockStatement`),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw TypeError(`TryStatement expects either a handler or finalizer, or both`)},{oneOfNodeTypes:[`BlockStatement`]})):(0,o.assertNodeType)(`BlockStatement`)},handler:{optional:!0,validate:(0,o.assertNodeType)(`CatchClause`)},finalizer:{optional:!0,validate:(0,o.assertNodeType)(`BlockStatement`)}}}),c(`UnaryExpression`,{builder:[`operator`,`argument`,`prefix`],fields:{prefix:{default:!0},argument:{validate:(0,o.assertNodeType)(`Expression`)},operator:{validate:(0,o.assertOneOf)(...a.UNARY_OPERATORS)}},visitor:[`argument`],aliases:[`UnaryLike`,`Expression`]}),c(`UpdateExpression`,{builder:[`operator`,`argument`,`prefix`],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertNodeType)(`Identifier`,`MemberExpression`):(0,o.assertNodeType)(`Expression`)},operator:{validate:(0,o.assertOneOf)(...a.UPDATE_OPERATORS)}},visitor:[`argument`],aliases:[`Expression`]}),c(`VariableDeclaration`,{builder:[`kind`,`declarations`],visitor:[`declarations`],aliases:[`Statement`,`Declaration`],fields:{declare:{validate:(0,o.assertValueType)(`boolean`),optional:!0},kind:{validate:(0,o.assertOneOf)(`var`,`let`,`const`,`using`,`await using`)},declarations:(0,o.validateArrayOfType)(`VariableDeclarator`)},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,o.assertNodeType)(`Identifier`,`Placeholder`),n=(0,o.assertNodeType)(`Identifier`,`ArrayPattern`,`ObjectPattern`,`Placeholder`),r=(0,o.assertNodeType)(`Identifier`,`VoidPattern`,`Placeholder`);return function(i,a,o){let{kind:s,declarations:c}=o,l=(0,t.default)(`ForXStatement`,i,{left:o});if(l&&c.length!==1)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let t of c)s===`const`||s===`let`||s===`var`?!l&&!t.init?e(t,`id`,t.id):n(t,`id`,t.id):r(t,`id`,t.id)}})():void 0}),c(`VariableDeclarator`,{visitor:[`id`,`init`],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.assertNodeType)(`Identifier`,`ArrayPattern`,`ObjectPattern`,`VoidPattern`):(0,o.assertNodeType)(`LVal`,`VoidPattern`)},definite:{optional:!0,validate:(0,o.assertValueType)(`boolean`)},init:{optional:!0,validate:(0,o.assertNodeType)(`Expression`)}}}),c(`WhileStatement`,{visitor:[`test`,`body`],aliases:[`Statement`,`BlockParent`,`Loop`,`While`,`Scopable`],fields:{test:{validate:(0,o.assertNodeType)(`Expression`)},body:{validate:(0,o.assertNodeType)(`Statement`)}}}),c(`WithStatement`,{visitor:[`object`,`body`],aliases:[`Statement`],fields:{object:{validate:(0,o.assertNodeType)(`Expression`)},body:{validate:(0,o.assertNodeType)(`Statement`)}}}),c(`AssignmentPattern`,{visitor:[`left`,`right`,`decorators`],builder:[`left`,`right`],aliases:[`FunctionParameter`,`Pattern`,`PatternLike`,`LVal`],fields:Object.assign({},f(),{left:{validate:(0,o.assertNodeType)(`Identifier`,`ObjectPattern`,`ArrayPattern`,`MemberExpression`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`)},right:{validate:(0,o.assertNodeType)(`Expression`)},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0}})}),c(`ArrayPattern`,{visitor:[`elements`,`typeAnnotation`],builder:[`elements`],aliases:[`FunctionParameter`,`Pattern`,`PatternLike`,`LVal`],fields:Object.assign({},f(),{elements:{validate:(0,o.chain)((0,o.assertValueType)(`array`),(0,o.assertEach)((0,o.assertNodeOrValueType)(`null`,`PatternLike`)))}})}),c(`ArrowFunctionExpression`,{builder:[`params`,`body`,`async`],visitor:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],aliases:[`Scopable`,`Function`,`BlockParent`,`FunctionParent`,`Expression`,`Pureish`],fields:Object.assign({},l(),u(),{expression:{validate:(0,o.assertValueType)(`boolean`)},body:{validate:(0,o.assertNodeType)(`BlockStatement`,`Expression`)},predicate:{validate:(0,o.assertNodeType)(`DeclaredPredicate`,`InferredPredicate`),optional:!0}})}),c(`ClassBody`,{visitor:[`body`],fields:{body:(0,o.validateArrayOfType)(`ClassMethod`,`ClassPrivateMethod`,`ClassProperty`,`ClassPrivateProperty`,`ClassAccessorProperty`,`TSDeclareMethod`,`TSIndexSignature`,`StaticBlock`)}}),c(`ClassExpression`,{builder:[`id`,`superClass`,`body`,`decorators`],visitor:[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeParameters`,`mixins`,`implements`,`body`],aliases:[`Scopable`,`Class`,`Expression`],fields:{id:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0},typeParameters:{validate:(0,o.assertNodeType)(`TypeParameterDeclaration`,`TSTypeParameterDeclaration`,`Noop`),optional:!0},body:{validate:(0,o.assertNodeType)(`ClassBody`)},superClass:{optional:!0,validate:(0,o.assertNodeType)(`Expression`)},superTypeParameters:{validate:(0,o.assertNodeType)(`TypeParameterInstantiation`,`TSTypeParameterInstantiation`),optional:!0},implements:{validate:(0,o.arrayOfType)(`TSExpressionWithTypeArguments`,`ClassImplements`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},mixins:{validate:(0,o.assertNodeType)(`InterfaceExtends`),optional:!0}}}),c(`ClassDeclaration`,{inherits:`ClassExpression`,aliases:[`Scopable`,`Class`,`Statement`,`Declaration`],fields:{id:{validate:(0,o.assertNodeType)(`Identifier`),optional:!0},typeParameters:{validate:(0,o.assertNodeType)(`TypeParameterDeclaration`,`TSTypeParameterDeclaration`,`Noop`),optional:!0},body:{validate:(0,o.assertNodeType)(`ClassBody`)},superClass:{optional:!0,validate:(0,o.assertNodeType)(`Expression`)},superTypeParameters:{validate:(0,o.assertNodeType)(`TypeParameterInstantiation`,`TSTypeParameterInstantiation`),optional:!0},implements:{validate:(0,o.arrayOfType)(`TSExpressionWithTypeArguments`,`ClassImplements`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},mixins:{validate:(0,o.assertNodeType)(`InterfaceExtends`),optional:!0},declare:{validate:(0,o.assertValueType)(`boolean`),optional:!0},abstract:{validate:(0,o.assertValueType)(`boolean`),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,o.assertNodeType)(`Identifier`);return function(n,r,i){(0,t.default)(`ExportDefaultDeclaration`,n)||e(i,`id`,i.id)}}():void 0});var p=e.importAttributes={attributes:{optional:!0,validate:(0,o.arrayOfType)(`ImportAttribute`)},assertions:{deprecated:!0,optional:!0,validate:(0,o.arrayOfType)(`ImportAttribute`)}};c(`ExportAllDeclaration`,{builder:[`source`],visitor:[`source`,`attributes`,`assertions`],aliases:[`Statement`,`Declaration`,`ImportOrExportDeclaration`,`ExportDeclaration`],fields:Object.assign({source:{validate:(0,o.assertNodeType)(`StringLiteral`)},exportKind:(0,o.validateOptional)((0,o.assertOneOf)(`type`,`value`))},p)}),c(`ExportDefaultDeclaration`,{visitor:[`declaration`],aliases:[`Statement`,`Declaration`,`ImportOrExportDeclaration`,`ExportDeclaration`],fields:{declaration:(0,o.validateType)(`TSDeclareFunction`,`FunctionDeclaration`,`ClassDeclaration`,`Expression`),exportKind:(0,o.validateOptional)((0,o.assertOneOf)(`value`))}}),c(`ExportNamedDeclaration`,{builder:[`declaration`,`specifiers`,`source`],visitor:[`declaration`,`specifiers`,`source`,`attributes`,`assertions`],aliases:[`Statement`,`Declaration`,`ImportOrExportDeclaration`,`ExportDeclaration`],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertNodeType)(`Declaration`),Object.assign(function(e,t,n){if(n&&e.specifiers.length)throw TypeError(`Only declaration or specifiers is allowed on ExportNamedDeclaration`);if(n&&e.source)throw TypeError(`Cannot export a declaration from a source`)},{oneOfNodeTypes:[`Declaration`]})):(0,o.assertNodeType)(`Declaration`)}},p,{specifiers:{default:[],validate:(0,o.arrayOf)(function(){let e=(0,o.assertNodeType)(`ExportSpecifier`,`ExportDefaultSpecifier`,`ExportNamespaceSpecifier`),t=(0,o.assertNodeType)(`ExportSpecifier`);return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(n,r,i){(n.source?e:t)(n,r,i)},{oneOfNodeTypes:[`ExportSpecifier`,`ExportDefaultSpecifier`,`ExportNamespaceSpecifier`]}):e}())},source:{validate:(0,o.assertNodeType)(`StringLiteral`),optional:!0},exportKind:(0,o.validateOptional)((0,o.assertOneOf)(`type`,`value`))})}),c(`ExportSpecifier`,{visitor:[`local`,`exported`],aliases:[`ModuleSpecifier`],fields:{local:{validate:(0,o.assertNodeType)(`Identifier`)},exported:{validate:(0,o.assertNodeType)(`Identifier`,`StringLiteral`)},exportKind:{validate:(0,o.assertOneOf)(`type`,`value`),optional:!0}}}),c(`ForOfStatement`,{visitor:[`left`,`right`,`body`],builder:[`left`,`right`,`body`,`await`],aliases:[`Scopable`,`Statement`,`For`,`BlockParent`,`Loop`,`ForXStatement`],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,o.assertNodeType)(`VariableDeclaration`,`LVal`);let e=(0,o.assertNodeType)(`VariableDeclaration`),n=(0,o.assertNodeType)(`Identifier`,`MemberExpression`,`ArrayPattern`,`ObjectPattern`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`);return Object.assign(function(r,i,a){(0,t.default)(`VariableDeclaration`,a)?e(r,i,a):n(r,i,a)},{oneOfNodeTypes:[`VariableDeclaration`,`Identifier`,`MemberExpression`,`ArrayPattern`,`ObjectPattern`,`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAssertion`,`TSNonNullExpression`]})}()},right:{validate:(0,o.assertNodeType)(`Expression`)},body:{validate:(0,o.assertNodeType)(`Statement`)},await:{default:!1}}}),c(`ImportDeclaration`,{builder:[`specifiers`,`source`],visitor:[`specifiers`,`source`,`attributes`,`assertions`],aliases:[`Statement`,`Declaration`,`ImportOrExportDeclaration`],fields:Object.assign({},p,{module:{optional:!0,validate:(0,o.assertValueType)(`boolean`)},phase:{default:null,validate:(0,o.assertOneOf)(`source`,`defer`)},specifiers:(0,o.validateArrayOfType)(`ImportSpecifier`,`ImportDefaultSpecifier`,`ImportNamespaceSpecifier`),source:{validate:(0,o.assertNodeType)(`StringLiteral`)},importKind:{validate:(0,o.assertOneOf)(`type`,`typeof`,`value`),optional:!0}})}),c(`ImportDefaultSpecifier`,{visitor:[`local`],aliases:[`ModuleSpecifier`],fields:{local:{validate:(0,o.assertNodeType)(`Identifier`)}}}),c(`ImportNamespaceSpecifier`,{visitor:[`local`],aliases:[`ModuleSpecifier`],fields:{local:{validate:(0,o.assertNodeType)(`Identifier`)}}}),c(`ImportSpecifier`,{visitor:[`imported`,`local`],builder:[`local`,`imported`],aliases:[`ModuleSpecifier`],fields:{local:{validate:(0,o.assertNodeType)(`Identifier`)},imported:{validate:(0,o.assertNodeType)(`Identifier`,`StringLiteral`)},importKind:{validate:(0,o.assertOneOf)(`type`,`typeof`,`value`),optional:!0}}}),c(`ImportExpression`,{visitor:[`source`,`options`],aliases:[`Expression`],fields:{phase:{default:null,validate:(0,o.assertOneOf)(`source`,`defer`)},source:{validate:(0,o.assertNodeType)(`Expression`)},options:{validate:(0,o.assertNodeType)(`Expression`),optional:!0}}}),c(`MetaProperty`,{visitor:[`meta`,`property`],aliases:[`Expression`],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertNodeType)(`Identifier`),Object.assign(function(e,n,r){let i;switch(r.name){case`function`:i=`sent`;break;case`new`:i=`target`;break;case`import`:i=`meta`}if(!(0,t.default)(`Identifier`,e.property,{name:i}))throw TypeError(`Unrecognised MetaProperty`)},{oneOfNodeTypes:[`Identifier`]})):(0,o.assertNodeType)(`Identifier`)},property:{validate:(0,o.assertNodeType)(`Identifier`)}}});var m=()=>({abstract:{validate:(0,o.assertValueType)(`boolean`),optional:!0},accessibility:{validate:(0,o.assertOneOf)(`public`,`private`,`protected`),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,o.assertValueType)(`boolean`),optional:!0},key:{validate:(0,o.chain)(function(){let e=(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`),t=(0,o.assertNodeType)(`Expression`);return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`Expression`))}});e.classMethodOrPropertyCommon=m;var h=()=>Object.assign({},l(),m(),{params:(0,o.validateArrayOfType)(`FunctionParameter`,`TSParameterProperty`),kind:{validate:(0,o.assertOneOf)(`get`,`set`,`method`,`constructor`),default:`method`},access:{validate:(0,o.chain)((0,o.assertValueType)(`string`),(0,o.assertOneOf)(`public`,`private`,`protected`)),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0}});e.classMethodOrDeclareMethodCommon=h,c(`ClassMethod`,Object.assign({aliases:[`Function`,`Scopable`,`BlockParent`,`FunctionParent`,`Method`],builder:[`kind`,`key`,`params`,`body`,`computed`,`static`,`generator`,`async`],visitor:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`]},s(),{fields:Object.assign({},h(),u(),{body:{validate:(0,o.assertNodeType)(`BlockStatement`)}})})),c(`ObjectPattern`,{visitor:[`decorators`,`properties`,`typeAnnotation`],builder:[`properties`],aliases:[`FunctionParameter`,`Pattern`,`PatternLike`,`LVal`],fields:Object.assign({},f(),{properties:(0,o.validateArrayOfType)(`RestElement`,`ObjectProperty`)})}),c(`SpreadElement`,{visitor:[`argument`],aliases:[`UnaryLike`],deprecatedAlias:`SpreadProperty`,fields:{argument:{validate:(0,o.assertNodeType)(`Expression`)}}}),c(`Super`,{aliases:[`Expression`]}),c(`TaggedTemplateExpression`,{visitor:[`tag`,`typeParameters`,`quasi`],builder:[`tag`,`quasi`],aliases:[`Expression`],fields:{tag:{validate:(0,o.assertNodeType)(`Expression`)},quasi:{validate:(0,o.assertNodeType)(`TemplateLiteral`)},typeParameters:{validate:(0,o.assertNodeType)(`TypeParameterInstantiation`,`TSTypeParameterInstantiation`),optional:!0}}}),c(`TemplateElement`,{builder:[`value`,`tail`],fields:{value:{validate:(0,o.chain)((0,o.assertShape)({raw:{validate:(0,o.assertValueType)(`string`)},cooked:{validate:(0,o.assertValueType)(`string`),optional:!0}}),function(e){let t=e.value.raw,n=!1,r=()=>{throw Error(`Internal @babel/types error.`)},{str:a,firstInvalidLoc:o}=(0,i.readStringContents)(`template`,t,0,0,0,{unterminated(){n=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!n)throw Error(`Invalid raw`);e.value.cooked=o?null:a})},tail:{default:!1}}}),c(`TemplateLiteral`,{visitor:[`quasis`,`expressions`],aliases:[`Expression`,`Literal`],fields:{quasis:(0,o.validateArrayOfType)(`TemplateElement`),expressions:{validate:(0,o.chain)((0,o.assertValueType)(`array`),(0,o.assertEach)((0,o.assertNodeType)(`Expression`,`TSType`)),function(e,t,n){if(e.quasis.length!==n.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),c(`YieldExpression`,{builder:[`argument`,`delegate`],visitor:[`argument`],aliases:[`Expression`,`Terminatorless`],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`boolean`),Object.assign(function(e,t,n){if(n&&!e.argument)throw TypeError(`Property delegate of YieldExpression cannot be true if there is no argument`)},{type:`boolean`})):(0,o.assertValueType)(`boolean`),default:!1},argument:{optional:!0,validate:(0,o.assertNodeType)(`Expression`)}}}),c(`AwaitExpression`,{builder:[`argument`],visitor:[`argument`],aliases:[`Expression`,`Terminatorless`],fields:{argument:{validate:(0,o.assertNodeType)(`Expression`)}}}),c(`Import`,{aliases:[`Expression`]}),c(`BigIntLiteral`,{builder:[`value`],fields:{value:{validate:(0,o.assertValueType)(`string`)}},aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),c(`ExportNamespaceSpecifier`,{visitor:[`exported`],aliases:[`ModuleSpecifier`],fields:{exported:{validate:(0,o.assertNodeType)(`Identifier`)}}}),c(`OptionalMemberExpression`,{builder:[`object`,`property`,`computed`,`optional`],visitor:[`object`,`property`],aliases:[`Expression`],fields:{object:{validate:(0,o.assertNodeType)(`Expression`)},property:{validate:function(){let e=(0,o.assertNodeType)(`Identifier`),t=(0,o.assertNodeType)(`Expression`);return Object.assign(function(n,r,i){(n.computed?t:e)(n,r,i)},{oneOfNodeTypes:[`Expression`,`Identifier`]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`boolean`),(0,o.assertOptionalChainStart)()):(0,o.assertValueType)(`boolean`)}}}),c(`OptionalCallExpression`,{visitor:[`callee`,`typeParameters`,`typeArguments`,`arguments`],builder:[`callee`,`arguments`,`optional`],aliases:[`Expression`],fields:Object.assign({callee:{validate:(0,o.assertNodeType)(`Expression`)},arguments:(0,o.validateArrayOfType)(`Expression`,`SpreadElement`,`ArgumentPlaceholder`),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,o.chain)((0,o.assertValueType)(`boolean`),(0,o.assertOptionalChainStart)()):(0,o.assertValueType)(`boolean`)},typeArguments:{validate:(0,o.assertNodeType)(`TypeParameterInstantiation`),optional:!0}},{typeParameters:{validate:(0,o.assertNodeType)(`TSTypeParameterInstantiation`),optional:!0}})}),c(`ClassProperty`,Object.assign({visitor:[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],builder:[`key`,`value`,`typeAnnotation`,`decorators`,`computed`,`static`],aliases:[`Property`]},s(),{fields:Object.assign({},m(),{value:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},definite:{validate:(0,o.assertValueType)(`boolean`),optional:!0},typeAnnotation:{validate:(0,o.assertNodeType)(`TypeAnnotation`,`TSTypeAnnotation`,`Noop`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},readonly:{validate:(0,o.assertValueType)(`boolean`),optional:!0},declare:{validate:(0,o.assertValueType)(`boolean`),optional:!0},variance:{validate:(0,o.assertNodeType)(`Variance`),optional:!0}})})),c(`ClassAccessorProperty`,Object.assign({visitor:[`decorators`,`key`,`typeAnnotation`,`value`],builder:[`key`,`value`,`typeAnnotation`,`decorators`,`computed`,`static`],aliases:[`Property`,`Accessor`]},s(!0),{fields:Object.assign({},m(),{key:{validate:(0,o.chain)(function(){let e=(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`PrivateName`),t=(0,o.assertNodeType)(`Expression`);return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,o.assertNodeType)(`Identifier`,`StringLiteral`,`NumericLiteral`,`BigIntLiteral`,`Expression`,`PrivateName`))},value:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},definite:{validate:(0,o.assertValueType)(`boolean`),optional:!0},typeAnnotation:{validate:(0,o.assertNodeType)(`TypeAnnotation`,`TSTypeAnnotation`,`Noop`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},readonly:{validate:(0,o.assertValueType)(`boolean`),optional:!0},declare:{validate:(0,o.assertValueType)(`boolean`),optional:!0},variance:{validate:(0,o.assertNodeType)(`Variance`),optional:!0}})})),c(`ClassPrivateProperty`,{visitor:[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],builder:[`key`,`value`,`decorators`,`static`],aliases:[`Property`,`Private`],fields:{key:{validate:(0,o.assertNodeType)(`PrivateName`)},value:{validate:(0,o.assertNodeType)(`Expression`),optional:!0},typeAnnotation:{validate:(0,o.assertNodeType)(`TypeAnnotation`,`TSTypeAnnotation`,`Noop`),optional:!0},decorators:{validate:(0,o.arrayOfType)(`Decorator`),optional:!0},static:{validate:(0,o.assertValueType)(`boolean`),default:!1},readonly:{validate:(0,o.assertValueType)(`boolean`),optional:!0},optional:{validate:(0,o.assertValueType)(`boolean`),optional:!0},definite:{validate:(0,o.assertValueType)(`boolean`),optional:!0},variance:{validate:(0,o.assertNodeType)(`Variance`),optional:!0}}}),c(`ClassPrivateMethod`,{builder:[`kind`,`key`,`params`,`body`,`static`],visitor:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],aliases:[`Function`,`Scopable`,`BlockParent`,`FunctionParent`,`Method`,`Private`],fields:Object.assign({},h(),u(),{kind:{validate:(0,o.assertOneOf)(`get`,`set`,`method`),default:`method`},key:{validate:(0,o.assertNodeType)(`PrivateName`)},body:{validate:(0,o.assertNodeType)(`BlockStatement`)}})}),c(`PrivateName`,{visitor:[`id`],aliases:[`Private`],fields:{id:{validate:(0,o.assertNodeType)(`Identifier`)}}}),c(`StaticBlock`,{visitor:[`body`],fields:{body:(0,o.validateArrayOfType)(`Statement`)},aliases:[`Scopable`,`BlockParent`,`FunctionParent`]}),c(`ImportAttribute`,{visitor:[`key`,`value`],fields:{key:{validate:(0,o.assertNodeType)(`Identifier`,`StringLiteral`)},value:{validate:(0,o.assertNodeType)(`StringLiteral`)}}})})),P=e((()=>{var e=N(),t=M(),n=(0,t.defineAliasedType)(`Flow`),r=e=>{let r=e===`DeclareClass`;n(e,{builder:[`id`,`typeParameters`,`extends`,`body`],visitor:[`id`,`typeParameters`,`extends`,...r?[`mixins`,`implements`]:[],`body`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:Object.assign({id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),extends:(0,t.validateOptional)((0,t.arrayOfType)(`InterfaceExtends`))},r?{mixins:(0,t.validateOptional)((0,t.arrayOfType)(`InterfaceExtends`)),implements:(0,t.validateOptional)((0,t.arrayOfType)(`ClassImplements`))}:{},{body:(0,t.validateType)(`ObjectTypeAnnotation`)})})};n(`AnyTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`ArrayTypeAnnotation`,{visitor:[`elementType`],aliases:[`FlowType`],fields:{elementType:(0,t.validateType)(`FlowType`)}}),n(`BooleanTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`BooleanLiteralTypeAnnotation`,{builder:[`value`],aliases:[`FlowType`],fields:{value:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`NullLiteralTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`ClassImplements`,{visitor:[`id`,`typeParameters`],fields:{id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterInstantiation`)}}),r(`DeclareClass`),n(`DeclareFunction`,{builder:[`id`],visitor:[`id`,`predicate`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`),predicate:(0,t.validateOptionalType)(`DeclaredPredicate`)}}),r(`DeclareInterface`),n(`DeclareModule`,{builder:[`id`,`body`,`kind`],visitor:[`id`,`body`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`,`StringLiteral`),body:(0,t.validateType)(`BlockStatement`),kind:(0,t.validateOptional)((0,t.assertOneOf)(`CommonJS`,`ES`))}}),n(`DeclareModuleExports`,{visitor:[`typeAnnotation`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{typeAnnotation:(0,t.validateType)(`TypeAnnotation`)}}),n(`DeclareTypeAlias`,{visitor:[`id`,`typeParameters`,`right`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),right:(0,t.validateType)(`FlowType`)}}),n(`DeclareOpaqueType`,{visitor:[`id`,`typeParameters`,`supertype`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),supertype:(0,t.validateOptionalType)(`FlowType`),impltype:(0,t.validateOptionalType)(`FlowType`)}}),n(`DeclareVariable`,{visitor:[`id`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`)}}),n(`DeclareExportDeclaration`,{visitor:[`declaration`,`specifiers`,`source`,`attributes`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:Object.assign({declaration:(0,t.validateOptionalType)(`Flow`),specifiers:(0,t.validateOptional)((0,t.arrayOfType)(`ExportSpecifier`,`ExportNamespaceSpecifier`)),source:(0,t.validateOptionalType)(`StringLiteral`),default:(0,t.validateOptional)((0,t.assertValueType)(`boolean`))},e.importAttributes)}),n(`DeclareExportAllDeclaration`,{visitor:[`source`,`attributes`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:Object.assign({source:(0,t.validateType)(`StringLiteral`),exportKind:(0,t.validateOptional)((0,t.assertOneOf)(`type`,`value`))},e.importAttributes)}),n(`DeclaredPredicate`,{visitor:[`value`],aliases:[`FlowPredicate`],fields:{value:(0,t.validateType)(`Flow`)}}),n(`ExistsTypeAnnotation`,{aliases:[`FlowType`]}),n(`FunctionTypeAnnotation`,{builder:[`typeParameters`,`params`,`rest`,`returnType`],visitor:[`typeParameters`,`this`,`params`,`rest`,`returnType`],aliases:[`FlowType`],fields:{typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),params:(0,t.validateArrayOfType)(`FunctionTypeParam`),rest:(0,t.validateOptionalType)(`FunctionTypeParam`),this:(0,t.validateOptionalType)(`FunctionTypeParam`),returnType:(0,t.validateType)(`FlowType`)}}),n(`FunctionTypeParam`,{visitor:[`name`,`typeAnnotation`],fields:{name:(0,t.validateOptionalType)(`Identifier`),typeAnnotation:(0,t.validateType)(`FlowType`),optional:(0,t.validateOptional)((0,t.assertValueType)(`boolean`))}}),n(`GenericTypeAnnotation`,{visitor:[`id`,`typeParameters`],aliases:[`FlowType`],fields:{id:(0,t.validateType)(`Identifier`,`QualifiedTypeIdentifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterInstantiation`)}}),n(`InferredPredicate`,{aliases:[`FlowPredicate`]}),n(`InterfaceExtends`,{visitor:[`id`,`typeParameters`],fields:{id:(0,t.validateType)(`Identifier`,`QualifiedTypeIdentifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterInstantiation`)}}),r(`InterfaceDeclaration`),n(`InterfaceTypeAnnotation`,{visitor:[`extends`,`body`],aliases:[`FlowType`],fields:{extends:(0,t.validateOptional)((0,t.arrayOfType)(`InterfaceExtends`)),body:(0,t.validateType)(`ObjectTypeAnnotation`)}}),n(`IntersectionTypeAnnotation`,{visitor:[`types`],aliases:[`FlowType`],fields:{types:(0,t.validate)((0,t.arrayOfType)(`FlowType`))}}),n(`MixedTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`EmptyTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`NullableTypeAnnotation`,{visitor:[`typeAnnotation`],aliases:[`FlowType`],fields:{typeAnnotation:(0,t.validateType)(`FlowType`)}}),n(`NumberLiteralTypeAnnotation`,{builder:[`value`],aliases:[`FlowType`],fields:{value:(0,t.validate)((0,t.assertValueType)(`number`))}}),n(`NumberTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`ObjectTypeAnnotation`,{visitor:[`properties`,`indexers`,`callProperties`,`internalSlots`],aliases:[`FlowType`],builder:[`properties`,`indexers`,`callProperties`,`internalSlots`,`exact`],fields:{properties:(0,t.validate)((0,t.arrayOfType)(`ObjectTypeProperty`,`ObjectTypeSpreadProperty`)),indexers:{validate:(0,t.arrayOfType)(`ObjectTypeIndexer`),optional:!0,default:[]},callProperties:{validate:(0,t.arrayOfType)(`ObjectTypeCallProperty`),optional:!0,default:[]},internalSlots:{validate:(0,t.arrayOfType)(`ObjectTypeInternalSlot`),optional:!0,default:[]},exact:{validate:(0,t.assertValueType)(`boolean`),default:!1},inexact:(0,t.validateOptional)((0,t.assertValueType)(`boolean`))}}),n(`ObjectTypeInternalSlot`,{visitor:[`id`,`value`],builder:[`id`,`value`,`optional`,`static`,`method`],aliases:[`UserWhitespacable`],fields:{id:(0,t.validateType)(`Identifier`),value:(0,t.validateType)(`FlowType`),optional:(0,t.validate)((0,t.assertValueType)(`boolean`)),static:(0,t.validate)((0,t.assertValueType)(`boolean`)),method:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`ObjectTypeCallProperty`,{visitor:[`value`],aliases:[`UserWhitespacable`],fields:{value:(0,t.validateType)(`FlowType`),static:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`ObjectTypeIndexer`,{visitor:[`variance`,`id`,`key`,`value`],builder:[`id`,`key`,`value`,`variance`],aliases:[`UserWhitespacable`],fields:{id:(0,t.validateOptionalType)(`Identifier`),key:(0,t.validateType)(`FlowType`),value:(0,t.validateType)(`FlowType`),static:(0,t.validate)((0,t.assertValueType)(`boolean`)),variance:(0,t.validateOptionalType)(`Variance`)}}),n(`ObjectTypeProperty`,{visitor:[`key`,`value`,`variance`],aliases:[`UserWhitespacable`],fields:{key:(0,t.validateType)(`Identifier`,`StringLiteral`),value:(0,t.validateType)(`FlowType`),kind:(0,t.validate)((0,t.assertOneOf)(`init`,`get`,`set`)),static:(0,t.validate)((0,t.assertValueType)(`boolean`)),proto:(0,t.validate)((0,t.assertValueType)(`boolean`)),optional:(0,t.validate)((0,t.assertValueType)(`boolean`)),variance:(0,t.validateOptionalType)(`Variance`),method:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`ObjectTypeSpreadProperty`,{visitor:[`argument`],aliases:[`UserWhitespacable`],fields:{argument:(0,t.validateType)(`FlowType`)}}),n(`OpaqueType`,{visitor:[`id`,`typeParameters`,`supertype`,`impltype`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),supertype:(0,t.validateOptionalType)(`FlowType`),impltype:(0,t.validateType)(`FlowType`)}}),n(`QualifiedTypeIdentifier`,{visitor:[`qualification`,`id`],builder:[`id`,`qualification`],fields:{id:(0,t.validateType)(`Identifier`),qualification:(0,t.validateType)(`Identifier`,`QualifiedTypeIdentifier`)}}),n(`StringLiteralTypeAnnotation`,{builder:[`value`],aliases:[`FlowType`],fields:{value:(0,t.validate)((0,t.assertValueType)(`string`))}}),n(`StringTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`SymbolTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`ThisTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`TupleTypeAnnotation`,{visitor:[`types`],aliases:[`FlowType`],fields:{types:(0,t.validate)((0,t.arrayOfType)(`FlowType`))}}),n(`TypeofTypeAnnotation`,{visitor:[`argument`],aliases:[`FlowType`],fields:{argument:(0,t.validateType)(`FlowType`)}}),n(`TypeAlias`,{visitor:[`id`,`typeParameters`,`right`],aliases:[`FlowDeclaration`,`Statement`,`Declaration`],fields:{id:(0,t.validateType)(`Identifier`),typeParameters:(0,t.validateOptionalType)(`TypeParameterDeclaration`),right:(0,t.validateType)(`FlowType`)}}),n(`TypeAnnotation`,{visitor:[`typeAnnotation`],fields:{typeAnnotation:(0,t.validateType)(`FlowType`)}}),n(`TypeCastExpression`,{visitor:[`expression`,`typeAnnotation`],aliases:[`ExpressionWrapper`,`Expression`],fields:{expression:(0,t.validateType)(`Expression`),typeAnnotation:(0,t.validateType)(`TypeAnnotation`)}}),n(`TypeParameter`,{visitor:[`bound`,`default`,`variance`],fields:{name:(0,t.validate)((0,t.assertValueType)(`string`)),bound:(0,t.validateOptionalType)(`TypeAnnotation`),default:(0,t.validateOptionalType)(`FlowType`),variance:(0,t.validateOptionalType)(`Variance`)}}),n(`TypeParameterDeclaration`,{visitor:[`params`],fields:{params:(0,t.validate)((0,t.arrayOfType)(`TypeParameter`))}}),n(`TypeParameterInstantiation`,{visitor:[`params`],fields:{params:(0,t.validate)((0,t.arrayOfType)(`FlowType`))}}),n(`UnionTypeAnnotation`,{visitor:[`types`],aliases:[`FlowType`],fields:{types:(0,t.validate)((0,t.arrayOfType)(`FlowType`))}}),n(`Variance`,{builder:[`kind`],fields:{kind:(0,t.validate)((0,t.assertOneOf)(`minus`,`plus`))}}),n(`VoidTypeAnnotation`,{aliases:[`FlowType`,`FlowBaseAnnotation`]}),n(`EnumDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`body`],fields:{id:(0,t.validateType)(`Identifier`),body:(0,t.validateType)(`EnumBooleanBody`,`EnumNumberBody`,`EnumStringBody`,`EnumSymbolBody`)}}),n(`EnumBooleanBody`,{aliases:[`EnumBody`],visitor:[`members`],fields:{explicitType:(0,t.validate)((0,t.assertValueType)(`boolean`)),members:(0,t.validateArrayOfType)(`EnumBooleanMember`),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`EnumNumberBody`,{aliases:[`EnumBody`],visitor:[`members`],fields:{explicitType:(0,t.validate)((0,t.assertValueType)(`boolean`)),members:(0,t.validateArrayOfType)(`EnumNumberMember`),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`EnumStringBody`,{aliases:[`EnumBody`],visitor:[`members`],fields:{explicitType:(0,t.validate)((0,t.assertValueType)(`boolean`)),members:(0,t.validateArrayOfType)(`EnumStringMember`,`EnumDefaultedMember`),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`EnumSymbolBody`,{aliases:[`EnumBody`],visitor:[`members`],fields:{members:(0,t.validateArrayOfType)(`EnumDefaultedMember`),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)(`boolean`))}}),n(`EnumBooleanMember`,{aliases:[`EnumMember`],builder:[`id`],visitor:[`id`,`init`],fields:{id:(0,t.validateType)(`Identifier`),init:(0,t.validateType)(`BooleanLiteral`)}}),n(`EnumNumberMember`,{aliases:[`EnumMember`],visitor:[`id`,`init`],fields:{id:(0,t.validateType)(`Identifier`),init:(0,t.validateType)(`NumericLiteral`)}}),n(`EnumStringMember`,{aliases:[`EnumMember`],visitor:[`id`,`init`],fields:{id:(0,t.validateType)(`Identifier`),init:(0,t.validateType)(`StringLiteral`)}}),n(`EnumDefaultedMember`,{aliases:[`EnumMember`],visitor:[`id`],fields:{id:(0,t.validateType)(`Identifier`)}}),n(`IndexedAccessType`,{visitor:[`objectType`,`indexType`],aliases:[`FlowType`],fields:{objectType:(0,t.validateType)(`FlowType`),indexType:(0,t.validateType)(`FlowType`)}}),n(`OptionalIndexedAccessType`,{visitor:[`objectType`,`indexType`],aliases:[`FlowType`],fields:{objectType:(0,t.validateType)(`FlowType`),indexType:(0,t.validateType)(`FlowType`),optional:(0,t.validate)((0,t.assertValueType)(`boolean`))}})})),fe=e((()=>{var e=M(),t=(0,e.defineAliasedType)(`JSX`);t(`JSXAttribute`,{visitor:[`name`,`value`],aliases:[`Immutable`],fields:{name:{validate:(0,e.assertNodeType)(`JSXIdentifier`,`JSXNamespacedName`)},value:{optional:!0,validate:(0,e.assertNodeType)(`JSXElement`,`JSXFragment`,`StringLiteral`,`JSXExpressionContainer`)}}}),t(`JSXClosingElement`,{visitor:[`name`],aliases:[`Immutable`],fields:{name:{validate:(0,e.assertNodeType)(`JSXIdentifier`,`JSXMemberExpression`,`JSXNamespacedName`)}}}),t(`JSXElement`,{builder:[`openingElement`,`closingElement`,`children`,`selfClosing`],visitor:[`openingElement`,`children`,`closingElement`],aliases:[`Immutable`,`Expression`],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)(`JSXOpeningElement`)},closingElement:{optional:!0,validate:(0,e.assertNodeType)(`JSXClosingElement`)},children:(0,e.validateArrayOfType)(`JSXText`,`JSXExpressionContainer`,`JSXSpreadChild`,`JSXElement`,`JSXFragment`)},{selfClosing:{validate:(0,e.assertValueType)(`boolean`),optional:!0}})}),t(`JSXEmptyExpression`,{}),t(`JSXExpressionContainer`,{visitor:[`expression`],aliases:[`Immutable`],fields:{expression:{validate:(0,e.assertNodeType)(`Expression`,`JSXEmptyExpression`)}}}),t(`JSXSpreadChild`,{visitor:[`expression`],aliases:[`Immutable`],fields:{expression:{validate:(0,e.assertNodeType)(`Expression`)}}}),t(`JSXIdentifier`,{builder:[`name`],fields:{name:{validate:(0,e.assertValueType)(`string`)}}}),t(`JSXMemberExpression`,{visitor:[`object`,`property`],fields:{object:{validate:(0,e.assertNodeType)(`JSXMemberExpression`,`JSXIdentifier`)},property:{validate:(0,e.assertNodeType)(`JSXIdentifier`)}}}),t(`JSXNamespacedName`,{visitor:[`namespace`,`name`],fields:{namespace:{validate:(0,e.assertNodeType)(`JSXIdentifier`)},name:{validate:(0,e.assertNodeType)(`JSXIdentifier`)}}}),t(`JSXOpeningElement`,{builder:[`name`,`attributes`,`selfClosing`],visitor:[`name`,`typeParameters`,`typeArguments`,`attributes`],aliases:[`Immutable`],fields:Object.assign({name:{validate:(0,e.assertNodeType)(`JSXIdentifier`,`JSXMemberExpression`,`JSXNamespacedName`)},selfClosing:{default:!1},attributes:(0,e.validateArrayOfType)(`JSXAttribute`,`JSXSpreadAttribute`),typeArguments:{validate:(0,e.assertNodeType)(`TypeParameterInstantiation`),optional:!0}},{typeParameters:{validate:(0,e.assertNodeType)(`TSTypeParameterInstantiation`),optional:!0}})}),t(`JSXSpreadAttribute`,{visitor:[`argument`],fields:{argument:{validate:(0,e.assertNodeType)(`Expression`)}}}),t(`JSXText`,{aliases:[`Immutable`],builder:[`value`],fields:{value:{validate:(0,e.assertValueType)(`string`)}}}),t(`JSXFragment`,{builder:[`openingFragment`,`closingFragment`,`children`],visitor:[`openingFragment`,`children`,`closingFragment`],aliases:[`Immutable`,`Expression`],fields:{openingFragment:{validate:(0,e.assertNodeType)(`JSXOpeningFragment`)},closingFragment:{validate:(0,e.assertNodeType)(`JSXClosingFragment`)},children:(0,e.validateArrayOfType)(`JSXText`,`JSXExpressionContainer`,`JSXSpreadChild`,`JSXElement`,`JSXFragment`)}}),t(`JSXOpeningFragment`,{aliases:[`Immutable`]}),t(`JSXClosingFragment`,{aliases:[`Immutable`]})})),F=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PLACEHOLDERS_FLIPPED_ALIAS=e.PLACEHOLDERS_ALIAS=e.PLACEHOLDERS=void 0;var t=M(),n=e.PLACEHOLDERS=[`Identifier`,`StringLiteral`,`Expression`,`Statement`,`Declaration`,`BlockStatement`,`ClassBody`,`Pattern`],r=e.PLACEHOLDERS_ALIAS={Declaration:[`Statement`],Pattern:[`PatternLike`,`LVal`]};for(let e of n){let n=t.ALIAS_KEYS[e];n!=null&&n.length&&(r[e]=n)}var i=e.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(r).forEach(e=>{r[e].forEach(t=>{hasOwnProperty.call(i,t)||(i[t]=[]),i[t].push(e)})})})),pe=e((()=>{var e=M(),t=F(),n=N(),r=(0,e.defineAliasedType)(`Miscellaneous`);r(`Noop`,{visitor:[]}),r(`Placeholder`,{visitor:[],builder:[`expectedNode`,`name`],fields:Object.assign({name:{validate:(0,e.assertNodeType)(`Identifier`)},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}},(0,n.patternLikeCommon)())}),r(`V8IntrinsicIdentifier`,{builder:[`name`],fields:{name:{validate:(0,e.assertValueType)(`string`)}}})})),me=e((()=>{var e=M();(0,e.default)(`ArgumentPlaceholder`,{}),(0,e.default)(`BindExpression`,{visitor:[`object`,`callee`],aliases:[`Expression`],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)(`Expression`)},callee:{validate:(0,e.assertNodeType)(`Expression`)}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:[`Expression`]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:[`Expression`]})}}}),(0,e.default)(`Decorator`,{visitor:[`expression`],fields:{expression:{validate:(0,e.assertNodeType)(`Expression`)}}}),(0,e.default)(`DoExpression`,{visitor:[`body`],builder:[`body`,`async`],aliases:[`Expression`],fields:{body:{validate:(0,e.assertNodeType)(`BlockStatement`)},async:{validate:(0,e.assertValueType)(`boolean`),default:!1}}}),(0,e.default)(`ExportDefaultSpecifier`,{visitor:[`exported`],aliases:[`ModuleSpecifier`],fields:{exported:{validate:(0,e.assertNodeType)(`Identifier`)}}}),(0,e.default)(`RecordExpression`,{visitor:[`properties`],aliases:[`Expression`],fields:{properties:(0,e.validateArrayOfType)(`ObjectProperty`,`SpreadElement`)}}),(0,e.default)(`TupleExpression`,{fields:{elements:{validate:(0,e.arrayOfType)(`Expression`,`SpreadElement`),default:[]}},visitor:[`elements`],aliases:[`Expression`]}),(0,e.default)(`DecimalLiteral`,{builder:[`value`],fields:{value:{validate:(0,e.assertValueType)(`string`)}},aliases:[`Expression`,`Pureish`,`Literal`,`Immutable`]}),(0,e.default)(`ModuleExpression`,{visitor:[`body`],fields:{body:{validate:(0,e.assertNodeType)(`Program`)}},aliases:[`Expression`]}),(0,e.default)(`TopicReference`,{aliases:[`Expression`]}),(0,e.default)(`PipelineTopicExpression`,{builder:[`expression`],visitor:[`expression`],fields:{expression:{validate:(0,e.assertNodeType)(`Expression`)}},aliases:[`Expression`]}),(0,e.default)(`PipelineBareFunction`,{builder:[`callee`],visitor:[`callee`],fields:{callee:{validate:(0,e.assertNodeType)(`Expression`)}},aliases:[`Expression`]}),(0,e.default)(`PipelinePrimaryTopicReference`,{aliases:[`Expression`]}),(0,e.default)(`VoidPattern`,{aliases:[`Pattern`,`PatternLike`,`FunctionParameter`]})})),he=e((()=>{var e=M(),t=N(),n=k(),r=(0,e.defineAliasedType)(`TypeScript`),i=(0,e.assertValueType)(`boolean`),a=()=>({returnType:{validate:(0,e.assertNodeType)(`TSTypeAnnotation`,`Noop`),optional:!0},typeParameters:{validate:(0,e.assertNodeType)(`TSTypeParameterDeclaration`,`Noop`),optional:!0}});r(`TSParameterProperty`,{aliases:[`LVal`],visitor:[`parameter`],fields:{accessibility:{validate:(0,e.assertOneOf)(`public`,`private`,`protected`),optional:!0},readonly:{validate:(0,e.assertValueType)(`boolean`),optional:!0},parameter:{validate:(0,e.assertNodeType)(`Identifier`,`AssignmentPattern`)},override:{validate:(0,e.assertValueType)(`boolean`),optional:!0},decorators:{validate:(0,e.arrayOfType)(`Decorator`),optional:!0}}}),r(`TSDeclareFunction`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`typeParameters`,`params`,`returnType`],fields:Object.assign({},(0,t.functionDeclarationCommon)(),a())}),r(`TSDeclareMethod`,Object.assign({visitor:[`decorators`,`key`,`typeParameters`,`params`,`returnType`]},(0,t.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),a())})),r(`TSQualifiedName`,{aliases:[`TSEntityName`],visitor:[`left`,`right`],fields:{left:(0,e.validateType)(`TSEntityName`),right:(0,e.validateType)(`Identifier`)}});var o=()=>({typeParameters:(0,e.validateOptionalType)(`TSTypeParameterDeclaration`),parameters:(0,e.validateArrayOfType)(`ArrayPattern`,`Identifier`,`ObjectPattern`,`RestElement`),typeAnnotation:(0,e.validateOptionalType)(`TSTypeAnnotation`)}),s={aliases:[`TSTypeElement`],visitor:[`typeParameters`,`parameters`,`typeAnnotation`],fields:o()};r(`TSCallSignatureDeclaration`,s),r(`TSConstructSignatureDeclaration`,s);var c=()=>({key:(0,e.validateType)(`Expression`),computed:{default:!1},optional:(0,e.validateOptional)(i)});r(`TSPropertySignature`,{aliases:[`TSTypeElement`],visitor:[`key`,`typeAnnotation`],fields:Object.assign({},c(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)(`TSTypeAnnotation`),kind:{optional:!0,validate:(0,e.assertOneOf)(`get`,`set`)}})}),r(`TSMethodSignature`,{aliases:[`TSTypeElement`],visitor:[`key`,`typeParameters`,`parameters`,`typeAnnotation`],fields:Object.assign({},o(),c(),{kind:{validate:(0,e.assertOneOf)(`method`,`get`,`set`)}})}),r(`TSIndexSignature`,{aliases:[`TSTypeElement`],visitor:[`parameters`,`typeAnnotation`],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)(`Identifier`),typeAnnotation:(0,e.validateOptionalType)(`TSTypeAnnotation`)}});for(let e of[`TSAnyKeyword`,`TSBooleanKeyword`,`TSBigIntKeyword`,`TSIntrinsicKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`])r(e,{aliases:[`TSType`,`TSBaseType`],visitor:[],fields:{}});r(`TSThisType`,{aliases:[`TSType`,`TSBaseType`],visitor:[],fields:{}});var l={aliases:[`TSType`],visitor:[`typeParameters`,`parameters`,`typeAnnotation`]};r(`TSFunctionType`,Object.assign({},l,{fields:o()})),r(`TSConstructorType`,Object.assign({},l,{fields:Object.assign({},o(),{abstract:(0,e.validateOptional)(i)})})),r(`TSTypeReference`,{aliases:[`TSType`],visitor:[`typeName`,`typeParameters`],fields:{typeName:(0,e.validateType)(`TSEntityName`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterInstantiation`)}}),r(`TSTypePredicate`,{aliases:[`TSType`],visitor:[`parameterName`,`typeAnnotation`],builder:[`parameterName`,`typeAnnotation`,`asserts`],fields:{parameterName:(0,e.validateType)(`Identifier`,`TSThisType`),typeAnnotation:(0,e.validateOptionalType)(`TSTypeAnnotation`),asserts:(0,e.validateOptional)(i)}}),r(`TSTypeQuery`,{aliases:[`TSType`],visitor:[`exprName`,`typeParameters`],fields:{exprName:(0,e.validateType)(`TSEntityName`,`TSImportType`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterInstantiation`)}}),r(`TSTypeLiteral`,{aliases:[`TSType`],visitor:[`members`],fields:{members:(0,e.validateArrayOfType)(`TSTypeElement`)}}),r(`TSArrayType`,{aliases:[`TSType`],visitor:[`elementType`],fields:{elementType:(0,e.validateType)(`TSType`)}}),r(`TSTupleType`,{aliases:[`TSType`],visitor:[`elementTypes`],fields:{elementTypes:(0,e.validateArrayOfType)(`TSType`,`TSNamedTupleMember`)}}),r(`TSOptionalType`,{aliases:[`TSType`],visitor:[`typeAnnotation`],fields:{typeAnnotation:(0,e.validateType)(`TSType`)}}),r(`TSRestType`,{aliases:[`TSType`],visitor:[`typeAnnotation`],fields:{typeAnnotation:(0,e.validateType)(`TSType`)}}),r(`TSNamedTupleMember`,{visitor:[`label`,`elementType`],builder:[`label`,`elementType`,`optional`],fields:{label:(0,e.validateType)(`Identifier`),optional:{validate:i,default:!1},elementType:(0,e.validateType)(`TSType`)}});var u={aliases:[`TSType`],visitor:[`types`],fields:{types:(0,e.validateArrayOfType)(`TSType`)}};r(`TSUnionType`,u),r(`TSIntersectionType`,u),r(`TSConditionalType`,{aliases:[`TSType`],visitor:[`checkType`,`extendsType`,`trueType`,`falseType`],fields:{checkType:(0,e.validateType)(`TSType`),extendsType:(0,e.validateType)(`TSType`),trueType:(0,e.validateType)(`TSType`),falseType:(0,e.validateType)(`TSType`)}}),r(`TSInferType`,{aliases:[`TSType`],visitor:[`typeParameter`],fields:{typeParameter:(0,e.validateType)(`TSTypeParameter`)}}),r(`TSParenthesizedType`,{aliases:[`TSType`],visitor:[`typeAnnotation`],fields:{typeAnnotation:(0,e.validateType)(`TSType`)}}),r(`TSTypeOperator`,{aliases:[`TSType`],visitor:[`typeAnnotation`],builder:[`typeAnnotation`,`operator`],fields:{operator:{validate:(0,e.assertValueType)(`string`),default:`keyof`},typeAnnotation:(0,e.validateType)(`TSType`)}}),r(`TSIndexedAccessType`,{aliases:[`TSType`],visitor:[`objectType`,`indexType`],fields:{objectType:(0,e.validateType)(`TSType`),indexType:(0,e.validateType)(`TSType`)}}),r(`TSMappedType`,{aliases:[`TSType`],visitor:[`typeParameter`,`nameType`,`typeAnnotation`],builder:[`typeParameter`,`typeAnnotation`,`nameType`],fields:Object.assign({},{typeParameter:(0,e.validateType)(`TSTypeParameter`)},{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,`+`,`-`)),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,`+`,`-`)),typeAnnotation:(0,e.validateOptionalType)(`TSType`),nameType:(0,e.validateOptionalType)(`TSType`)})}),r(`TSTemplateLiteralType`,{aliases:[`TSType`,`TSBaseType`],visitor:[`quasis`,`types`],fields:{quasis:(0,e.validateArrayOfType)(`TemplateElement`),types:{validate:(0,e.chain)((0,e.assertValueType)(`array`),(0,e.assertEach)((0,e.assertNodeType)(`TSType`)),function(e,t,n){if(e.quasis.length!==n.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),r(`TSLiteralType`,{aliases:[`TSType`,`TSBaseType`],visitor:[`literal`],fields:{literal:{validate:function(){let t=(0,e.assertNodeType)(`NumericLiteral`,`BigIntLiteral`),r=(0,e.assertOneOf)(`-`),i=(0,e.assertNodeType)(`NumericLiteral`,`StringLiteral`,`BooleanLiteral`,`BigIntLiteral`,`TemplateLiteral`),a=function(e,a,o){(0,n.default)(`UnaryExpression`,o)?(r(o,`operator`,o.operator),t(o,`argument`,o.argument)):i(e,a,o)};return a.oneOfNodeTypes=[`NumericLiteral`,`StringLiteral`,`BooleanLiteral`,`BigIntLiteral`,`TemplateLiteral`,`UnaryExpression`],a}()}}}),r(`TSExpressionWithTypeArguments`,{aliases:[`TSType`],visitor:[`expression`,`typeParameters`],fields:{expression:(0,e.validateType)(`TSEntityName`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterInstantiation`)}}),r(`TSInterfaceDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`typeParameters`,`extends`,`body`],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)(`Identifier`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterDeclaration`),extends:(0,e.validateOptional)((0,e.arrayOfType)(`TSExpressionWithTypeArguments`)),body:(0,e.validateType)(`TSInterfaceBody`)}}),r(`TSInterfaceBody`,{visitor:[`body`],fields:{body:(0,e.validateArrayOfType)(`TSTypeElement`)}}),r(`TSTypeAliasDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`typeParameters`,`typeAnnotation`],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)(`Identifier`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterDeclaration`),typeAnnotation:(0,e.validateType)(`TSType`)}}),r(`TSInstantiationExpression`,{aliases:[`Expression`],visitor:[`expression`,`typeParameters`],fields:{expression:(0,e.validateType)(`Expression`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterInstantiation`)}});var d={aliases:[`Expression`,`LVal`,`PatternLike`],visitor:[`expression`,`typeAnnotation`],fields:{expression:(0,e.validateType)(`Expression`),typeAnnotation:(0,e.validateType)(`TSType`)}};r(`TSAsExpression`,d),r(`TSSatisfiesExpression`,d),r(`TSTypeAssertion`,{aliases:[`Expression`,`LVal`,`PatternLike`],visitor:[`typeAnnotation`,`expression`],fields:{typeAnnotation:(0,e.validateType)(`TSType`),expression:(0,e.validateType)(`Expression`)}}),r(`TSEnumBody`,{visitor:[`members`],fields:{members:(0,e.validateArrayOfType)(`TSEnumMember`)}}),r(`TSEnumDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`members`],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)(`Identifier`),members:(0,e.validateArrayOfType)(`TSEnumMember`),initializer:(0,e.validateOptionalType)(`Expression`),body:(0,e.validateOptionalType)(`TSEnumBody`)}}),r(`TSEnumMember`,{visitor:[`id`,`initializer`],fields:{id:(0,e.validateType)(`Identifier`,`StringLiteral`),initializer:(0,e.validateOptionalType)(`Expression`)}}),r(`TSModuleDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`body`],fields:Object.assign({kind:{validate:(0,e.assertOneOf)(`global`,`module`,`namespace`)},declare:(0,e.validateOptional)(i)},{global:(0,e.validateOptional)(i)},{id:(0,e.validateType)(`Identifier`,`StringLiteral`),body:(0,e.validateType)(`TSModuleBlock`,`TSModuleDeclaration`)})}),r(`TSModuleBlock`,{aliases:[`Scopable`,`Block`,`BlockParent`,`FunctionParent`],visitor:[`body`],fields:{body:(0,e.validateArrayOfType)(`Statement`)}}),r(`TSImportType`,{aliases:[`TSType`],builder:[`argument`,`qualifier`,`typeParameters`],visitor:[`argument`,`options`,`qualifier`,`typeParameters`],fields:{argument:(0,e.validateType)(`StringLiteral`),qualifier:(0,e.validateOptionalType)(`TSEntityName`),typeParameters:(0,e.validateOptionalType)(`TSTypeParameterInstantiation`),options:{validate:(0,e.assertNodeType)(`ObjectExpression`),optional:!0}}}),r(`TSImportEqualsDeclaration`,{aliases:[`Statement`,`Declaration`],visitor:[`id`,`moduleReference`],fields:Object.assign({},{isExport:(0,e.validate)(i)},{id:(0,e.validateType)(`Identifier`),moduleReference:(0,e.validateType)(`TSEntityName`,`TSExternalModuleReference`),importKind:{validate:(0,e.assertOneOf)(`type`,`value`),optional:!0}})}),r(`TSExternalModuleReference`,{visitor:[`expression`],fields:{expression:(0,e.validateType)(`StringLiteral`)}}),r(`TSNonNullExpression`,{aliases:[`Expression`,`LVal`,`PatternLike`],visitor:[`expression`],fields:{expression:(0,e.validateType)(`Expression`)}}),r(`TSExportAssignment`,{aliases:[`Statement`],visitor:[`expression`],fields:{expression:(0,e.validateType)(`Expression`)}}),r(`TSNamespaceExportDeclaration`,{aliases:[`Statement`],visitor:[`id`],fields:{id:(0,e.validateType)(`Identifier`)}}),r(`TSTypeAnnotation`,{visitor:[`typeAnnotation`],fields:{typeAnnotation:{validate:(0,e.assertNodeType)(`TSType`)}}}),r(`TSTypeParameterInstantiation`,{visitor:[`params`],fields:{params:(0,e.validateArrayOfType)(`TSType`)}}),r(`TSTypeParameterDeclaration`,{visitor:[`params`],fields:{params:(0,e.validateArrayOfType)(`TSTypeParameter`)}}),r(`TSTypeParameter`,{builder:[`constraint`,`default`,`name`],visitor:[`constraint`,`default`],fields:{name:{validate:(0,e.assertValueType)(`string`)},in:{validate:(0,e.assertValueType)(`boolean`),optional:!0},out:{validate:(0,e.assertValueType)(`boolean`),optional:!0},const:{validate:(0,e.assertValueType)(`boolean`),optional:!0},constraint:{validate:(0,e.assertNodeType)(`TSType`),optional:!0},default:{validate:(0,e.assertNodeType)(`TSType`),optional:!0}}})})),ge=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEPRECATED_ALIASES=void 0,e.DEPRECATED_ALIASES={ModuleDeclaration:`ImportOrExportDeclaration`}})),I=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return t.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return t.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return r.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return t.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return t.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return t.VISITOR_KEYS}}),N(),P(),fe(),pe(),me(),he();var t=M(),n=F(),r=ge();Object.keys(r.DEPRECATED_ALIASES).forEach(e=>{t.FLIPPED_ALIAS_KEYS[e]=t.FLIPPED_ALIAS_KEYS[r.DEPRECATED_ALIASES[e]]});for(let{types:e,set:n}of t.allExpandedTypes)for(let r of e){let e=t.FLIPPED_ALIAS_KEYS[r];e?e.forEach(n.add,n):n.add(r)}e.TYPES=[].concat(Object.keys(t.VISITOR_KEYS),Object.keys(t.FLIPPED_ALIAS_KEYS),Object.keys(t.DEPRECATED_KEYS))})),_e=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,e.validateChild=a,e.validateField=i,e.validateInternal=r;var t=I();function n(e,n,r){if(!e)return;let o=t.NODE_FIELDS[e.type];if(!o)return;let s=o[n];i(e,n,r,s),a(e,n,r)}function r(e,n,r,i,a){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(n,r,i),a)){var o;let e=i.type;if(e==null)return;(o=t.NODE_PARENT_VALIDATIONS[e])==null||o.call(t.NODE_PARENT_VALIDATIONS,n,r,i)}}function i(e,t,n,r){r!=null&&r.validate&&(r.optional&&n==null||r.validate(e,t,n))}function a(e,n,r){var i;let a=r==null?void 0:r.type;a!=null&&((i=t.NODE_PARENT_VALIDATIONS[a])==null||i.call(t.NODE_PARENT_VALIDATIONS,e,n,r))}})),ve=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.anyTypeAnnotation=W,e.argumentPlaceholder=bn,e.arrayExpression=s,e.arrayPattern=Ce,e.arrayTypeAnnotation=et,e.arrowFunctionExpression=we,e.assignmentExpression=c,e.assignmentPattern=R,e.awaitExpression=Ue,e.bigIntLiteral=o,e.binaryExpression=l,e.bindExpression=xn,e.blockStatement=p,e.booleanLiteral=D,e.booleanLiteralTypeAnnotation=nt,e.booleanTypeAnnotation=tt,e.breakStatement=m,e.callExpression=h,e.catchClause=g,e.classAccessorProperty=Ye,e.classBody=Te,e.classDeclaration=Ee,e.classExpression=z,e.classImplements=it,e.classMethod=Fe,e.classPrivateMethod=Ze,e.classPrivateProperty=Xe,e.classProperty=Je,e.conditionalExpression=_,e.continueStatement=ee,e.debuggerStatement=te,e.decimalLiteral=Dn,e.declareClass=at,e.declareExportAllDeclaration=G,e.declareExportDeclaration=pt,e.declareFunction=ot,e.declareInterface=st,e.declareModule=ct,e.declareModuleExports=lt,e.declareOpaqueType=dt,e.declareTypeAlias=ut,e.declareVariable=ft,e.declaredPredicate=mt,e.decorator=Sn,e.directive=d,e.directiveLiteral=f,e.doExpression=Cn,e.doWhileStatement=ne,e.emptyStatement=re,e.emptyTypeAnnotation=wt,e.enumBooleanBody=Kt,e.enumBooleanMember=Yt,e.enumDeclaration=Gt,e.enumDefaultedMember=Qt,e.enumNumberBody=qt,e.enumNumberMember=Xt,e.enumStringBody=$,e.enumStringMember=Zt,e.enumSymbolBody=Jt,e.existsTypeAnnotation=K,e.exportAllDeclaration=De,e.exportDefaultDeclaration=Oe,e.exportDefaultSpecifier=wn,e.exportNamedDeclaration=B,e.exportNamespaceSpecifier=Ge,e.exportSpecifier=ke,e.expressionStatement=v,e.file=y,e.forInStatement=b,e.forOfStatement=Ae,e.forStatement=x,e.functionDeclaration=S,e.functionExpression=C,e.functionTypeAnnotation=ht,e.functionTypeParam=gt,e.genericTypeAnnotation=_t,e.identifier=ie,e.ifStatement=T,e.import=We,e.importAttribute=$e,e.importDeclaration=je,e.importDefaultSpecifier=V,e.importExpression=Ne,e.importNamespaceSpecifier=H,e.importSpecifier=Me,e.indexedAccessType=$t,e.inferredPredicate=vt,e.interfaceDeclaration=bt,e.interfaceExtends=yt,e.interfaceTypeAnnotation=xt,e.interpreterDirective=u,e.intersectionTypeAnnotation=St,e.jSXAttribute=e.jsxAttribute=tn,e.jSXClosingElement=e.jsxClosingElement=nn,e.jSXClosingFragment=e.jsxClosingFragment=gn,e.jSXElement=e.jsxElement=rn,e.jSXEmptyExpression=e.jsxEmptyExpression=an,e.jSXExpressionContainer=e.jsxExpressionContainer=on,e.jSXFragment=e.jsxFragment=mn,e.jSXIdentifier=e.jsxIdentifier=cn,e.jSXMemberExpression=e.jsxMemberExpression=ln,e.jSXNamespacedName=e.jsxNamespacedName=un,e.jSXOpeningElement=e.jsxOpeningElement=dn,e.jSXOpeningFragment=e.jsxOpeningFragment=hn,e.jSXSpreadAttribute=e.jsxSpreadAttribute=fn,e.jSXSpreadChild=e.jsxSpreadChild=sn,e.jSXText=e.jsxText=pn,e.labeledStatement=ae,e.logicalExpression=k,e.memberExpression=ce,e.metaProperty=Pe,e.mixedTypeAnnotation=Ct,e.moduleExpression=On,e.newExpression=le,e.noop=_n,e.nullLiteral=E,e.nullLiteralTypeAnnotation=rt,e.nullableTypeAnnotation=Tt,e.numberLiteral=qr,e.numberLiteralTypeAnnotation=q,e.numberTypeAnnotation=Et,e.numericLiteral=se,e.objectExpression=A,e.objectMethod=de,e.objectPattern=Ie,e.objectProperty=j,e.objectTypeAnnotation=J,e.objectTypeCallProperty=Dt,e.objectTypeIndexer=Ot,e.objectTypeInternalSlot=Y,e.objectTypeProperty=X,e.objectTypeSpreadProperty=kt,e.opaqueType=At,e.optionalCallExpression=qe,e.optionalIndexedAccessType=en,e.optionalMemberExpression=Ke,e.parenthesizedExpression=F,e.pipelineBareFunction=jn,e.pipelinePrimaryTopicReference=Mn,e.pipelineTopicExpression=An,e.placeholder=vn,e.privateName=U,e.program=ue,e.qualifiedTypeIdentifier=jt,e.recordExpression=Tn,e.regExpLiteral=O,e.regexLiteral=Jr,e.restElement=N,e.restProperty=Yr,e.returnStatement=P,e.sequenceExpression=fe,e.spreadElement=Le,e.spreadProperty=Xr,e.staticBlock=Qe,e.stringLiteral=oe,e.stringLiteralTypeAnnotation=Z,e.stringTypeAnnotation=Mt,e.super=Re,e.switchCase=pe,e.switchStatement=me,e.symbolTypeAnnotation=Nt,e.taggedTemplateExpression=ze,e.templateElement=Be,e.templateLiteral=Ve,e.thisExpression=he,e.thisTypeAnnotation=Pt,e.throwStatement=ge,e.topicReference=kn,e.tryStatement=I,e.tSAnyKeyword=e.tsAnyKeyword=Un,e.tSArrayType=e.tsArrayType=lr,e.tSAsExpression=e.tsAsExpression=kr,e.tSBigIntKeyword=e.tsBigIntKeyword=Gn,e.tSBooleanKeyword=e.tsBooleanKeyword=Wn,e.tSCallSignatureDeclaration=e.tsCallSignatureDeclaration=Rn,e.tSConditionalType=e.tsConditionalType=gr,e.tSConstructSignatureDeclaration=e.tsConstructSignatureDeclaration=zn,e.tSConstructorType=e.tsConstructorType=ir,e.tSDeclareFunction=e.tsDeclareFunction=Fn,e.tSDeclareMethod=e.tsDeclareMethod=In,e.tSEnumBody=e.tsEnumBody=Mr,e.tSEnumDeclaration=e.tsEnumDeclaration=Nr,e.tSEnumMember=e.tsEnumMember=Pr,e.tSExportAssignment=e.tsExportAssignment=Vr,e.tSExpressionWithTypeArguments=e.tsExpressionWithTypeArguments=wr,e.tSExternalModuleReference=e.tsExternalModuleReference=zr,e.tSFunctionType=e.tsFunctionType=rr,e.tSImportEqualsDeclaration=e.tsImportEqualsDeclaration=Rr,e.tSImportType=e.tsImportType=Lr,e.tSIndexSignature=e.tsIndexSignature=Hn,e.tSIndexedAccessType=e.tsIndexedAccessType=br,e.tSInferType=e.tsInferType=_r,e.tSInstantiationExpression=e.tsInstantiationExpression=Or,e.tSInterfaceBody=e.tsInterfaceBody=Er,e.tSInterfaceDeclaration=e.tsInterfaceDeclaration=Tr,e.tSIntersectionType=e.tsIntersectionType=hr,e.tSIntrinsicKeyword=e.tsIntrinsicKeyword=Kn,e.tSLiteralType=e.tsLiteralType=Cr,e.tSMappedType=e.tsMappedType=xr,e.tSMethodSignature=e.tsMethodSignature=Vn,e.tSModuleBlock=e.tsModuleBlock=Ir,e.tSModuleDeclaration=e.tsModuleDeclaration=Fr,e.tSNamedTupleMember=e.tsNamedTupleMember=pr,e.tSNamespaceExportDeclaration=e.tsNamespaceExportDeclaration=Hr,e.tSNeverKeyword=e.tsNeverKeyword=qn,e.tSNonNullExpression=e.tsNonNullExpression=Br,e.tSNullKeyword=e.tsNullKeyword=Jn,e.tSNumberKeyword=e.tsNumberKeyword=Yn,e.tSObjectKeyword=e.tsObjectKeyword=Xn,e.tSOptionalType=e.tsOptionalType=dr,e.tSParameterProperty=e.tsParameterProperty=Pn,e.tSParenthesizedType=e.tsParenthesizedType=vr,e.tSPropertySignature=e.tsPropertySignature=Bn,e.tSQualifiedName=e.tsQualifiedName=Ln,e.tSRestType=e.tsRestType=fr,e.tSSatisfiesExpression=e.tsSatisfiesExpression=Ar,e.tSStringKeyword=e.tsStringKeyword=Zn,e.tSSymbolKeyword=e.tsSymbolKeyword=Qn,e.tSTemplateLiteralType=e.tsTemplateLiteralType=Sr,e.tSThisType=e.tsThisType=nr,e.tSTupleType=e.tsTupleType=ur,e.tSTypeAliasDeclaration=e.tsTypeAliasDeclaration=Dr,e.tSTypeAnnotation=e.tsTypeAnnotation=Ur,e.tSTypeAssertion=e.tsTypeAssertion=jr,e.tSTypeLiteral=e.tsTypeLiteral=cr,e.tSTypeOperator=e.tsTypeOperator=yr,e.tSTypeParameter=e.tsTypeParameter=Kr,e.tSTypeParameterDeclaration=e.tsTypeParameterDeclaration=Gr,e.tSTypeParameterInstantiation=e.tsTypeParameterInstantiation=Wr,e.tSTypePredicate=e.tsTypePredicate=or,e.tSTypeQuery=e.tsTypeQuery=sr,e.tSTypeReference=e.tsTypeReference=ar,e.tSUndefinedKeyword=e.tsUndefinedKeyword=$n,e.tSUnionType=e.tsUnionType=mr,e.tSUnknownKeyword=e.tsUnknownKeyword=er,e.tSVoidKeyword=e.tsVoidKeyword=tr,e.tupleExpression=En,e.tupleTypeAnnotation=Ft,e.typeAlias=Lt,e.typeAnnotation=Rt,e.typeCastExpression=zt,e.typeParameter=Q,e.typeParameterDeclaration=Bt,e.typeParameterInstantiation=Vt,e.typeofTypeAnnotation=It,e.unaryExpression=ve,e.unionTypeAnnotation=Ht,e.updateExpression=ye,e.v8IntrinsicIdentifier=yn,e.variableDeclaration=L,e.variableDeclarator=be,e.variance=Ut,e.voidPattern=Nn,e.voidTypeAnnotation=Wt,e.whileStatement=xe,e.withStatement=Se,e.yieldExpression=He;var t=_e(),n=w(),r=M(),{validateInternal:i}=t,{NODE_FIELDS:a}=r;function o(e){typeof e==`bigint`&&(e=e.toString());let t={type:`BigIntLiteral`,value:e},n=a.BigIntLiteral;return i(n.value,t,`value`,e),t}function s(e=[]){let t={type:`ArrayExpression`,elements:e},n=a.ArrayExpression;return i(n.elements,t,`elements`,e,1),t}function c(e,t,n){let r={type:`AssignmentExpression`,operator:e,left:t,right:n},o=a.AssignmentExpression;return i(o.operator,r,`operator`,e),i(o.left,r,`left`,t,1),i(o.right,r,`right`,n,1),r}function l(e,t,n){let r={type:`BinaryExpression`,operator:e,left:t,right:n},o=a.BinaryExpression;return i(o.operator,r,`operator`,e),i(o.left,r,`left`,t,1),i(o.right,r,`right`,n,1),r}function u(e){let t={type:`InterpreterDirective`,value:e},n=a.InterpreterDirective;return i(n.value,t,`value`,e),t}function d(e){let t={type:`Directive`,value:e},n=a.Directive;return i(n.value,t,`value`,e,1),t}function f(e){let t={type:`DirectiveLiteral`,value:e},n=a.DirectiveLiteral;return i(n.value,t,`value`,e),t}function p(e,t=[]){let n={type:`BlockStatement`,body:e,directives:t},r=a.BlockStatement;return i(r.body,n,`body`,e,1),i(r.directives,n,`directives`,t,1),n}function m(e=null){let t={type:`BreakStatement`,label:e},n=a.BreakStatement;return i(n.label,t,`label`,e,1),t}function h(e,t){let n={type:`CallExpression`,callee:e,arguments:t},r=a.CallExpression;return i(r.callee,n,`callee`,e,1),i(r.arguments,n,`arguments`,t,1),n}function g(e=null,t){let n={type:`CatchClause`,param:e,body:t},r=a.CatchClause;return i(r.param,n,`param`,e,1),i(r.body,n,`body`,t,1),n}function _(e,t,n){let r={type:`ConditionalExpression`,test:e,consequent:t,alternate:n},o=a.ConditionalExpression;return i(o.test,r,`test`,e,1),i(o.consequent,r,`consequent`,t,1),i(o.alternate,r,`alternate`,n,1),r}function ee(e=null){let t={type:`ContinueStatement`,label:e},n=a.ContinueStatement;return i(n.label,t,`label`,e,1),t}function te(){return{type:`DebuggerStatement`}}function ne(e,t){let n={type:`DoWhileStatement`,test:e,body:t},r=a.DoWhileStatement;return i(r.test,n,`test`,e,1),i(r.body,n,`body`,t,1),n}function re(){return{type:`EmptyStatement`}}function v(e){let t={type:`ExpressionStatement`,expression:e},n=a.ExpressionStatement;return i(n.expression,t,`expression`,e,1),t}function y(e,t=null,n=null){let r={type:`File`,program:e,comments:t,tokens:n},o=a.File;return i(o.program,r,`program`,e,1),i(o.comments,r,`comments`,t,1),i(o.tokens,r,`tokens`,n),r}function b(e,t,n){let r={type:`ForInStatement`,left:e,right:t,body:n},o=a.ForInStatement;return i(o.left,r,`left`,e,1),i(o.right,r,`right`,t,1),i(o.body,r,`body`,n,1),r}function x(e=null,t=null,n=null,r){let o={type:`ForStatement`,init:e,test:t,update:n,body:r},s=a.ForStatement;return i(s.init,o,`init`,e,1),i(s.test,o,`test`,t,1),i(s.update,o,`update`,n,1),i(s.body,o,`body`,r,1),o}function S(e=null,t,n,r=!1,o=!1){let s={type:`FunctionDeclaration`,id:e,params:t,body:n,generator:r,async:o},c=a.FunctionDeclaration;return i(c.id,s,`id`,e,1),i(c.params,s,`params`,t,1),i(c.body,s,`body`,n,1),i(c.generator,s,`generator`,r),i(c.async,s,`async`,o),s}function C(e=null,t,n,r=!1,o=!1){let s={type:`FunctionExpression`,id:e,params:t,body:n,generator:r,async:o},c=a.FunctionExpression;return i(c.id,s,`id`,e,1),i(c.params,s,`params`,t,1),i(c.body,s,`body`,n,1),i(c.generator,s,`generator`,r),i(c.async,s,`async`,o),s}function ie(e){let t={type:`Identifier`,name:e},n=a.Identifier;return i(n.name,t,`name`,e),t}function T(e,t,n=null){let r={type:`IfStatement`,test:e,consequent:t,alternate:n},o=a.IfStatement;return i(o.test,r,`test`,e,1),i(o.consequent,r,`consequent`,t,1),i(o.alternate,r,`alternate`,n,1),r}function ae(e,t){let n={type:`LabeledStatement`,label:e,body:t},r=a.LabeledStatement;return i(r.label,n,`label`,e,1),i(r.body,n,`body`,t,1),n}function oe(e){let t={type:`StringLiteral`,value:e},n=a.StringLiteral;return i(n.value,t,`value`,e),t}function se(e){let t={type:`NumericLiteral`,value:e},n=a.NumericLiteral;return i(n.value,t,`value`,e),t}function E(){return{type:`NullLiteral`}}function D(e){let t={type:`BooleanLiteral`,value:e},n=a.BooleanLiteral;return i(n.value,t,`value`,e),t}function O(e,t=``){let n={type:`RegExpLiteral`,pattern:e,flags:t},r=a.RegExpLiteral;return i(r.pattern,n,`pattern`,e),i(r.flags,n,`flags`,t),n}function k(e,t,n){let r={type:`LogicalExpression`,operator:e,left:t,right:n},o=a.LogicalExpression;return i(o.operator,r,`operator`,e),i(o.left,r,`left`,t,1),i(o.right,r,`right`,n,1),r}function ce(e,t,n=!1,r=null){let o={type:`MemberExpression`,object:e,property:t,computed:n,optional:r},s=a.MemberExpression;return i(s.object,o,`object`,e,1),i(s.property,o,`property`,t,1),i(s.computed,o,`computed`,n),i(s.optional,o,`optional`,r),o}function le(e,t){let n={type:`NewExpression`,callee:e,arguments:t},r=a.NewExpression;return i(r.callee,n,`callee`,e,1),i(r.arguments,n,`arguments`,t,1),n}function ue(e,t=[],n=`script`,r=null){let o={type:`Program`,body:e,directives:t,sourceType:n,interpreter:r},s=a.Program;return i(s.body,o,`body`,e,1),i(s.directives,o,`directives`,t,1),i(s.sourceType,o,`sourceType`,n),i(s.interpreter,o,`interpreter`,r,1),o}function A(e){let t={type:`ObjectExpression`,properties:e},n=a.ObjectExpression;return i(n.properties,t,`properties`,e,1),t}function de(e=`method`,t,n,r,o=!1,s=!1,c=!1){let l={type:`ObjectMethod`,kind:e,key:t,params:n,body:r,computed:o,generator:s,async:c},u=a.ObjectMethod;return i(u.kind,l,`kind`,e),i(u.key,l,`key`,t,1),i(u.params,l,`params`,n,1),i(u.body,l,`body`,r,1),i(u.computed,l,`computed`,o),i(u.generator,l,`generator`,s),i(u.async,l,`async`,c),l}function j(e,t,n=!1,r=!1,o=null){let s={type:`ObjectProperty`,key:e,value:t,computed:n,shorthand:r,decorators:o},c=a.ObjectProperty;return i(c.key,s,`key`,e,1),i(c.value,s,`value`,t,1),i(c.computed,s,`computed`,n),i(c.shorthand,s,`shorthand`,r),i(c.decorators,s,`decorators`,o,1),s}function N(e){let t={type:`RestElement`,argument:e},n=a.RestElement;return i(n.argument,t,`argument`,e,1),t}function P(e=null){let t={type:`ReturnStatement`,argument:e},n=a.ReturnStatement;return i(n.argument,t,`argument`,e,1),t}function fe(e){let t={type:`SequenceExpression`,expressions:e},n=a.SequenceExpression;return i(n.expressions,t,`expressions`,e,1),t}function F(e){let t={type:`ParenthesizedExpression`,expression:e},n=a.ParenthesizedExpression;return i(n.expression,t,`expression`,e,1),t}function pe(e=null,t){let n={type:`SwitchCase`,test:e,consequent:t},r=a.SwitchCase;return i(r.test,n,`test`,e,1),i(r.consequent,n,`consequent`,t,1),n}function me(e,t){let n={type:`SwitchStatement`,discriminant:e,cases:t},r=a.SwitchStatement;return i(r.discriminant,n,`discriminant`,e,1),i(r.cases,n,`cases`,t,1),n}function he(){return{type:`ThisExpression`}}function ge(e){let t={type:`ThrowStatement`,argument:e},n=a.ThrowStatement;return i(n.argument,t,`argument`,e,1),t}function I(e,t=null,n=null){let r={type:`TryStatement`,block:e,handler:t,finalizer:n},o=a.TryStatement;return i(o.block,r,`block`,e,1),i(o.handler,r,`handler`,t,1),i(o.finalizer,r,`finalizer`,n,1),r}function ve(e,t,n=!0){let r={type:`UnaryExpression`,operator:e,argument:t,prefix:n},o=a.UnaryExpression;return i(o.operator,r,`operator`,e),i(o.argument,r,`argument`,t,1),i(o.prefix,r,`prefix`,n),r}function ye(e,t,n=!1){let r={type:`UpdateExpression`,operator:e,argument:t,prefix:n},o=a.UpdateExpression;return i(o.operator,r,`operator`,e),i(o.argument,r,`argument`,t,1),i(o.prefix,r,`prefix`,n),r}function L(e,t){let n={type:`VariableDeclaration`,kind:e,declarations:t},r=a.VariableDeclaration;return i(r.kind,n,`kind`,e),i(r.declarations,n,`declarations`,t,1),n}function be(e,t=null){let n={type:`VariableDeclarator`,id:e,init:t},r=a.VariableDeclarator;return i(r.id,n,`id`,e,1),i(r.init,n,`init`,t,1),n}function xe(e,t){let n={type:`WhileStatement`,test:e,body:t},r=a.WhileStatement;return i(r.test,n,`test`,e,1),i(r.body,n,`body`,t,1),n}function Se(e,t){let n={type:`WithStatement`,object:e,body:t},r=a.WithStatement;return i(r.object,n,`object`,e,1),i(r.body,n,`body`,t,1),n}function R(e,t){let n={type:`AssignmentPattern`,left:e,right:t},r=a.AssignmentPattern;return i(r.left,n,`left`,e,1),i(r.right,n,`right`,t,1),n}function Ce(e){let t={type:`ArrayPattern`,elements:e},n=a.ArrayPattern;return i(n.elements,t,`elements`,e,1),t}function we(e,t,n=!1){let r={type:`ArrowFunctionExpression`,params:e,body:t,async:n,expression:null},o=a.ArrowFunctionExpression;return i(o.params,r,`params`,e,1),i(o.body,r,`body`,t,1),i(o.async,r,`async`,n),r}function Te(e){let t={type:`ClassBody`,body:e},n=a.ClassBody;return i(n.body,t,`body`,e,1),t}function z(e=null,t=null,n,r=null){let o={type:`ClassExpression`,id:e,superClass:t,body:n,decorators:r},s=a.ClassExpression;return i(s.id,o,`id`,e,1),i(s.superClass,o,`superClass`,t,1),i(s.body,o,`body`,n,1),i(s.decorators,o,`decorators`,r,1),o}function Ee(e=null,t=null,n,r=null){let o={type:`ClassDeclaration`,id:e,superClass:t,body:n,decorators:r},s=a.ClassDeclaration;return i(s.id,o,`id`,e,1),i(s.superClass,o,`superClass`,t,1),i(s.body,o,`body`,n,1),i(s.decorators,o,`decorators`,r,1),o}function De(e){let t={type:`ExportAllDeclaration`,source:e},n=a.ExportAllDeclaration;return i(n.source,t,`source`,e,1),t}function Oe(e){let t={type:`ExportDefaultDeclaration`,declaration:e},n=a.ExportDefaultDeclaration;return i(n.declaration,t,`declaration`,e,1),t}function B(e=null,t=[],n=null){let r={type:`ExportNamedDeclaration`,declaration:e,specifiers:t,source:n},o=a.ExportNamedDeclaration;return i(o.declaration,r,`declaration`,e,1),i(o.specifiers,r,`specifiers`,t,1),i(o.source,r,`source`,n,1),r}function ke(e,t){let n={type:`ExportSpecifier`,local:e,exported:t},r=a.ExportSpecifier;return i(r.local,n,`local`,e,1),i(r.exported,n,`exported`,t,1),n}function Ae(e,t,n,r=!1){let o={type:`ForOfStatement`,left:e,right:t,body:n,await:r},s=a.ForOfStatement;return i(s.left,o,`left`,e,1),i(s.right,o,`right`,t,1),i(s.body,o,`body`,n,1),i(s.await,o,`await`,r),o}function je(e,t){let n={type:`ImportDeclaration`,specifiers:e,source:t},r=a.ImportDeclaration;return i(r.specifiers,n,`specifiers`,e,1),i(r.source,n,`source`,t,1),n}function V(e){let t={type:`ImportDefaultSpecifier`,local:e},n=a.ImportDefaultSpecifier;return i(n.local,t,`local`,e,1),t}function H(e){let t={type:`ImportNamespaceSpecifier`,local:e},n=a.ImportNamespaceSpecifier;return i(n.local,t,`local`,e,1),t}function Me(e,t){let n={type:`ImportSpecifier`,local:e,imported:t},r=a.ImportSpecifier;return i(r.local,n,`local`,e,1),i(r.imported,n,`imported`,t,1),n}function Ne(e,t=null){let n={type:`ImportExpression`,source:e,options:t},r=a.ImportExpression;return i(r.source,n,`source`,e,1),i(r.options,n,`options`,t,1),n}function Pe(e,t){let n={type:`MetaProperty`,meta:e,property:t},r=a.MetaProperty;return i(r.meta,n,`meta`,e,1),i(r.property,n,`property`,t,1),n}function Fe(e=`method`,t,n,r,o=!1,s=!1,c=!1,l=!1){let u={type:`ClassMethod`,kind:e,key:t,params:n,body:r,computed:o,static:s,generator:c,async:l},d=a.ClassMethod;return i(d.kind,u,`kind`,e),i(d.key,u,`key`,t,1),i(d.params,u,`params`,n,1),i(d.body,u,`body`,r,1),i(d.computed,u,`computed`,o),i(d.static,u,`static`,s),i(d.generator,u,`generator`,c),i(d.async,u,`async`,l),u}function Ie(e){let t={type:`ObjectPattern`,properties:e},n=a.ObjectPattern;return i(n.properties,t,`properties`,e,1),t}function Le(e){let t={type:`SpreadElement`,argument:e},n=a.SpreadElement;return i(n.argument,t,`argument`,e,1),t}function Re(){return{type:`Super`}}function ze(e,t){let n={type:`TaggedTemplateExpression`,tag:e,quasi:t},r=a.TaggedTemplateExpression;return i(r.tag,n,`tag`,e,1),i(r.quasi,n,`quasi`,t,1),n}function Be(e,t=!1){let n={type:`TemplateElement`,value:e,tail:t},r=a.TemplateElement;return i(r.value,n,`value`,e),i(r.tail,n,`tail`,t),n}function Ve(e,t){let n={type:`TemplateLiteral`,quasis:e,expressions:t},r=a.TemplateLiteral;return i(r.quasis,n,`quasis`,e,1),i(r.expressions,n,`expressions`,t,1),n}function He(e=null,t=!1){let n={type:`YieldExpression`,argument:e,delegate:t},r=a.YieldExpression;return i(r.argument,n,`argument`,e,1),i(r.delegate,n,`delegate`,t),n}function Ue(e){let t={type:`AwaitExpression`,argument:e},n=a.AwaitExpression;return i(n.argument,t,`argument`,e,1),t}function We(){return{type:`Import`}}function Ge(e){let t={type:`ExportNamespaceSpecifier`,exported:e},n=a.ExportNamespaceSpecifier;return i(n.exported,t,`exported`,e,1),t}function Ke(e,t,n=!1,r){let o={type:`OptionalMemberExpression`,object:e,property:t,computed:n,optional:r},s=a.OptionalMemberExpression;return i(s.object,o,`object`,e,1),i(s.property,o,`property`,t,1),i(s.computed,o,`computed`,n),i(s.optional,o,`optional`,r),o}function qe(e,t,n){let r={type:`OptionalCallExpression`,callee:e,arguments:t,optional:n},o=a.OptionalCallExpression;return i(o.callee,r,`callee`,e,1),i(o.arguments,r,`arguments`,t,1),i(o.optional,r,`optional`,n),r}function Je(e,t=null,n=null,r=null,o=!1,s=!1){let c={type:`ClassProperty`,key:e,value:t,typeAnnotation:n,decorators:r,computed:o,static:s},l=a.ClassProperty;return i(l.key,c,`key`,e,1),i(l.value,c,`value`,t,1),i(l.typeAnnotation,c,`typeAnnotation`,n,1),i(l.decorators,c,`decorators`,r,1),i(l.computed,c,`computed`,o),i(l.static,c,`static`,s),c}function Ye(e,t=null,n=null,r=null,o=!1,s=!1){let c={type:`ClassAccessorProperty`,key:e,value:t,typeAnnotation:n,decorators:r,computed:o,static:s},l=a.ClassAccessorProperty;return i(l.key,c,`key`,e,1),i(l.value,c,`value`,t,1),i(l.typeAnnotation,c,`typeAnnotation`,n,1),i(l.decorators,c,`decorators`,r,1),i(l.computed,c,`computed`,o),i(l.static,c,`static`,s),c}function Xe(e,t=null,n=null,r=!1){let o={type:`ClassPrivateProperty`,key:e,value:t,decorators:n,static:r},s=a.ClassPrivateProperty;return i(s.key,o,`key`,e,1),i(s.value,o,`value`,t,1),i(s.decorators,o,`decorators`,n,1),i(s.static,o,`static`,r),o}function Ze(e=`method`,t,n,r,o=!1){let s={type:`ClassPrivateMethod`,kind:e,key:t,params:n,body:r,static:o},c=a.ClassPrivateMethod;return i(c.kind,s,`kind`,e),i(c.key,s,`key`,t,1),i(c.params,s,`params`,n,1),i(c.body,s,`body`,r,1),i(c.static,s,`static`,o),s}function U(e){let t={type:`PrivateName`,id:e},n=a.PrivateName;return i(n.id,t,`id`,e,1),t}function Qe(e){let t={type:`StaticBlock`,body:e},n=a.StaticBlock;return i(n.body,t,`body`,e,1),t}function $e(e,t){let n={type:`ImportAttribute`,key:e,value:t},r=a.ImportAttribute;return i(r.key,n,`key`,e,1),i(r.value,n,`value`,t,1),n}function W(){return{type:`AnyTypeAnnotation`}}function et(e){let t={type:`ArrayTypeAnnotation`,elementType:e},n=a.ArrayTypeAnnotation;return i(n.elementType,t,`elementType`,e,1),t}function tt(){return{type:`BooleanTypeAnnotation`}}function nt(e){let t={type:`BooleanLiteralTypeAnnotation`,value:e},n=a.BooleanLiteralTypeAnnotation;return i(n.value,t,`value`,e),t}function rt(){return{type:`NullLiteralTypeAnnotation`}}function it(e,t=null){let n={type:`ClassImplements`,id:e,typeParameters:t},r=a.ClassImplements;return i(r.id,n,`id`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function at(e,t=null,n=null,r){let o={type:`DeclareClass`,id:e,typeParameters:t,extends:n,body:r},s=a.DeclareClass;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.extends,o,`extends`,n,1),i(s.body,o,`body`,r,1),o}function ot(e){let t={type:`DeclareFunction`,id:e},n=a.DeclareFunction;return i(n.id,t,`id`,e,1),t}function st(e,t=null,n=null,r){let o={type:`DeclareInterface`,id:e,typeParameters:t,extends:n,body:r},s=a.DeclareInterface;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.extends,o,`extends`,n,1),i(s.body,o,`body`,r,1),o}function ct(e,t,n=null){let r={type:`DeclareModule`,id:e,body:t,kind:n},o=a.DeclareModule;return i(o.id,r,`id`,e,1),i(o.body,r,`body`,t,1),i(o.kind,r,`kind`,n),r}function lt(e){let t={type:`DeclareModuleExports`,typeAnnotation:e},n=a.DeclareModuleExports;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function ut(e,t=null,n){let r={type:`DeclareTypeAlias`,id:e,typeParameters:t,right:n},o=a.DeclareTypeAlias;return i(o.id,r,`id`,e,1),i(o.typeParameters,r,`typeParameters`,t,1),i(o.right,r,`right`,n,1),r}function dt(e,t=null,n=null){let r={type:`DeclareOpaqueType`,id:e,typeParameters:t,supertype:n},o=a.DeclareOpaqueType;return i(o.id,r,`id`,e,1),i(o.typeParameters,r,`typeParameters`,t,1),i(o.supertype,r,`supertype`,n,1),r}function ft(e){let t={type:`DeclareVariable`,id:e},n=a.DeclareVariable;return i(n.id,t,`id`,e,1),t}function pt(e=null,t=null,n=null,r=null){let o={type:`DeclareExportDeclaration`,declaration:e,specifiers:t,source:n,attributes:r},s=a.DeclareExportDeclaration;return i(s.declaration,o,`declaration`,e,1),i(s.specifiers,o,`specifiers`,t,1),i(s.source,o,`source`,n,1),i(s.attributes,o,`attributes`,r,1),o}function G(e,t=null){let n={type:`DeclareExportAllDeclaration`,source:e,attributes:t},r=a.DeclareExportAllDeclaration;return i(r.source,n,`source`,e,1),i(r.attributes,n,`attributes`,t,1),n}function mt(e){let t={type:`DeclaredPredicate`,value:e},n=a.DeclaredPredicate;return i(n.value,t,`value`,e,1),t}function K(){return{type:`ExistsTypeAnnotation`}}function ht(e=null,t,n=null,r){let o={type:`FunctionTypeAnnotation`,typeParameters:e,params:t,rest:n,returnType:r},s=a.FunctionTypeAnnotation;return i(s.typeParameters,o,`typeParameters`,e,1),i(s.params,o,`params`,t,1),i(s.rest,o,`rest`,n,1),i(s.returnType,o,`returnType`,r,1),o}function gt(e=null,t){let n={type:`FunctionTypeParam`,name:e,typeAnnotation:t},r=a.FunctionTypeParam;return i(r.name,n,`name`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function _t(e,t=null){let n={type:`GenericTypeAnnotation`,id:e,typeParameters:t},r=a.GenericTypeAnnotation;return i(r.id,n,`id`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function vt(){return{type:`InferredPredicate`}}function yt(e,t=null){let n={type:`InterfaceExtends`,id:e,typeParameters:t},r=a.InterfaceExtends;return i(r.id,n,`id`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function bt(e,t=null,n=null,r){let o={type:`InterfaceDeclaration`,id:e,typeParameters:t,extends:n,body:r},s=a.InterfaceDeclaration;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.extends,o,`extends`,n,1),i(s.body,o,`body`,r,1),o}function xt(e=null,t){let n={type:`InterfaceTypeAnnotation`,extends:e,body:t},r=a.InterfaceTypeAnnotation;return i(r.extends,n,`extends`,e,1),i(r.body,n,`body`,t,1),n}function St(e){let t={type:`IntersectionTypeAnnotation`,types:e},n=a.IntersectionTypeAnnotation;return i(n.types,t,`types`,e,1),t}function Ct(){return{type:`MixedTypeAnnotation`}}function wt(){return{type:`EmptyTypeAnnotation`}}function Tt(e){let t={type:`NullableTypeAnnotation`,typeAnnotation:e},n=a.NullableTypeAnnotation;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function q(e){let t={type:`NumberLiteralTypeAnnotation`,value:e},n=a.NumberLiteralTypeAnnotation;return i(n.value,t,`value`,e),t}function Et(){return{type:`NumberTypeAnnotation`}}function J(e,t=[],n=[],r=[],o=!1){let s={type:`ObjectTypeAnnotation`,properties:e,indexers:t,callProperties:n,internalSlots:r,exact:o},c=a.ObjectTypeAnnotation;return i(c.properties,s,`properties`,e,1),i(c.indexers,s,`indexers`,t,1),i(c.callProperties,s,`callProperties`,n,1),i(c.internalSlots,s,`internalSlots`,r,1),i(c.exact,s,`exact`,o),s}function Y(e,t,n,r,o){let s={type:`ObjectTypeInternalSlot`,id:e,value:t,optional:n,static:r,method:o},c=a.ObjectTypeInternalSlot;return i(c.id,s,`id`,e,1),i(c.value,s,`value`,t,1),i(c.optional,s,`optional`,n),i(c.static,s,`static`,r),i(c.method,s,`method`,o),s}function Dt(e){let t={type:`ObjectTypeCallProperty`,value:e,static:null},n=a.ObjectTypeCallProperty;return i(n.value,t,`value`,e,1),t}function Ot(e=null,t,n,r=null){let o={type:`ObjectTypeIndexer`,id:e,key:t,value:n,variance:r,static:null},s=a.ObjectTypeIndexer;return i(s.id,o,`id`,e,1),i(s.key,o,`key`,t,1),i(s.value,o,`value`,n,1),i(s.variance,o,`variance`,r,1),o}function X(e,t,n=null){let r={type:`ObjectTypeProperty`,key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null},o=a.ObjectTypeProperty;return i(o.key,r,`key`,e,1),i(o.value,r,`value`,t,1),i(o.variance,r,`variance`,n,1),r}function kt(e){let t={type:`ObjectTypeSpreadProperty`,argument:e},n=a.ObjectTypeSpreadProperty;return i(n.argument,t,`argument`,e,1),t}function At(e,t=null,n=null,r){let o={type:`OpaqueType`,id:e,typeParameters:t,supertype:n,impltype:r},s=a.OpaqueType;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.supertype,o,`supertype`,n,1),i(s.impltype,o,`impltype`,r,1),o}function jt(e,t){let n={type:`QualifiedTypeIdentifier`,id:e,qualification:t},r=a.QualifiedTypeIdentifier;return i(r.id,n,`id`,e,1),i(r.qualification,n,`qualification`,t,1),n}function Z(e){let t={type:`StringLiteralTypeAnnotation`,value:e},n=a.StringLiteralTypeAnnotation;return i(n.value,t,`value`,e),t}function Mt(){return{type:`StringTypeAnnotation`}}function Nt(){return{type:`SymbolTypeAnnotation`}}function Pt(){return{type:`ThisTypeAnnotation`}}function Ft(e){let t={type:`TupleTypeAnnotation`,types:e},n=a.TupleTypeAnnotation;return i(n.types,t,`types`,e,1),t}function It(e){let t={type:`TypeofTypeAnnotation`,argument:e},n=a.TypeofTypeAnnotation;return i(n.argument,t,`argument`,e,1),t}function Lt(e,t=null,n){let r={type:`TypeAlias`,id:e,typeParameters:t,right:n},o=a.TypeAlias;return i(o.id,r,`id`,e,1),i(o.typeParameters,r,`typeParameters`,t,1),i(o.right,r,`right`,n,1),r}function Rt(e){let t={type:`TypeAnnotation`,typeAnnotation:e},n=a.TypeAnnotation;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function zt(e,t){let n={type:`TypeCastExpression`,expression:e,typeAnnotation:t},r=a.TypeCastExpression;return i(r.expression,n,`expression`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function Q(e=null,t=null,n=null){let r={type:`TypeParameter`,bound:e,default:t,variance:n,name:null},o=a.TypeParameter;return i(o.bound,r,`bound`,e,1),i(o.default,r,`default`,t,1),i(o.variance,r,`variance`,n,1),r}function Bt(e){let t={type:`TypeParameterDeclaration`,params:e},n=a.TypeParameterDeclaration;return i(n.params,t,`params`,e,1),t}function Vt(e){let t={type:`TypeParameterInstantiation`,params:e},n=a.TypeParameterInstantiation;return i(n.params,t,`params`,e,1),t}function Ht(e){let t={type:`UnionTypeAnnotation`,types:e},n=a.UnionTypeAnnotation;return i(n.types,t,`types`,e,1),t}function Ut(e){let t={type:`Variance`,kind:e},n=a.Variance;return i(n.kind,t,`kind`,e),t}function Wt(){return{type:`VoidTypeAnnotation`}}function Gt(e,t){let n={type:`EnumDeclaration`,id:e,body:t},r=a.EnumDeclaration;return i(r.id,n,`id`,e,1),i(r.body,n,`body`,t,1),n}function Kt(e){let t={type:`EnumBooleanBody`,members:e,explicitType:null,hasUnknownMembers:null},n=a.EnumBooleanBody;return i(n.members,t,`members`,e,1),t}function qt(e){let t={type:`EnumNumberBody`,members:e,explicitType:null,hasUnknownMembers:null},n=a.EnumNumberBody;return i(n.members,t,`members`,e,1),t}function $(e){let t={type:`EnumStringBody`,members:e,explicitType:null,hasUnknownMembers:null},n=a.EnumStringBody;return i(n.members,t,`members`,e,1),t}function Jt(e){let t={type:`EnumSymbolBody`,members:e,hasUnknownMembers:null},n=a.EnumSymbolBody;return i(n.members,t,`members`,e,1),t}function Yt(e){let t={type:`EnumBooleanMember`,id:e,init:null},n=a.EnumBooleanMember;return i(n.id,t,`id`,e,1),t}function Xt(e,t){let n={type:`EnumNumberMember`,id:e,init:t},r=a.EnumNumberMember;return i(r.id,n,`id`,e,1),i(r.init,n,`init`,t,1),n}function Zt(e,t){let n={type:`EnumStringMember`,id:e,init:t},r=a.EnumStringMember;return i(r.id,n,`id`,e,1),i(r.init,n,`init`,t,1),n}function Qt(e){let t={type:`EnumDefaultedMember`,id:e},n=a.EnumDefaultedMember;return i(n.id,t,`id`,e,1),t}function $t(e,t){let n={type:`IndexedAccessType`,objectType:e,indexType:t},r=a.IndexedAccessType;return i(r.objectType,n,`objectType`,e,1),i(r.indexType,n,`indexType`,t,1),n}function en(e,t){let n={type:`OptionalIndexedAccessType`,objectType:e,indexType:t,optional:null},r=a.OptionalIndexedAccessType;return i(r.objectType,n,`objectType`,e,1),i(r.indexType,n,`indexType`,t,1),n}function tn(e,t=null){let n={type:`JSXAttribute`,name:e,value:t},r=a.JSXAttribute;return i(r.name,n,`name`,e,1),i(r.value,n,`value`,t,1),n}function nn(e){let t={type:`JSXClosingElement`,name:e},n=a.JSXClosingElement;return i(n.name,t,`name`,e,1),t}function rn(e,t=null,n,r=null){let o={type:`JSXElement`,openingElement:e,closingElement:t,children:n,selfClosing:r},s=a.JSXElement;return i(s.openingElement,o,`openingElement`,e,1),i(s.closingElement,o,`closingElement`,t,1),i(s.children,o,`children`,n,1),i(s.selfClosing,o,`selfClosing`,r),o}function an(){return{type:`JSXEmptyExpression`}}function on(e){let t={type:`JSXExpressionContainer`,expression:e},n=a.JSXExpressionContainer;return i(n.expression,t,`expression`,e,1),t}function sn(e){let t={type:`JSXSpreadChild`,expression:e},n=a.JSXSpreadChild;return i(n.expression,t,`expression`,e,1),t}function cn(e){let t={type:`JSXIdentifier`,name:e},n=a.JSXIdentifier;return i(n.name,t,`name`,e),t}function ln(e,t){let n={type:`JSXMemberExpression`,object:e,property:t},r=a.JSXMemberExpression;return i(r.object,n,`object`,e,1),i(r.property,n,`property`,t,1),n}function un(e,t){let n={type:`JSXNamespacedName`,namespace:e,name:t},r=a.JSXNamespacedName;return i(r.namespace,n,`namespace`,e,1),i(r.name,n,`name`,t,1),n}function dn(e,t,n=!1){let r={type:`JSXOpeningElement`,name:e,attributes:t,selfClosing:n},o=a.JSXOpeningElement;return i(o.name,r,`name`,e,1),i(o.attributes,r,`attributes`,t,1),i(o.selfClosing,r,`selfClosing`,n),r}function fn(e){let t={type:`JSXSpreadAttribute`,argument:e},n=a.JSXSpreadAttribute;return i(n.argument,t,`argument`,e,1),t}function pn(e){let t={type:`JSXText`,value:e},n=a.JSXText;return i(n.value,t,`value`,e),t}function mn(e,t,n){let r={type:`JSXFragment`,openingFragment:e,closingFragment:t,children:n},o=a.JSXFragment;return i(o.openingFragment,r,`openingFragment`,e,1),i(o.closingFragment,r,`closingFragment`,t,1),i(o.children,r,`children`,n,1),r}function hn(){return{type:`JSXOpeningFragment`}}function gn(){return{type:`JSXClosingFragment`}}function _n(){return{type:`Noop`}}function vn(e,t){let n={type:`Placeholder`,expectedNode:e,name:t},r=a.Placeholder;return i(r.expectedNode,n,`expectedNode`,e),i(r.name,n,`name`,t,1),n}function yn(e){let t={type:`V8IntrinsicIdentifier`,name:e},n=a.V8IntrinsicIdentifier;return i(n.name,t,`name`,e),t}function bn(){return{type:`ArgumentPlaceholder`}}function xn(e,t){let n={type:`BindExpression`,object:e,callee:t},r=a.BindExpression;return i(r.object,n,`object`,e,1),i(r.callee,n,`callee`,t,1),n}function Sn(e){let t={type:`Decorator`,expression:e},n=a.Decorator;return i(n.expression,t,`expression`,e,1),t}function Cn(e,t=!1){let n={type:`DoExpression`,body:e,async:t},r=a.DoExpression;return i(r.body,n,`body`,e,1),i(r.async,n,`async`,t),n}function wn(e){let t={type:`ExportDefaultSpecifier`,exported:e},n=a.ExportDefaultSpecifier;return i(n.exported,t,`exported`,e,1),t}function Tn(e){let t={type:`RecordExpression`,properties:e},n=a.RecordExpression;return i(n.properties,t,`properties`,e,1),t}function En(e=[]){let t={type:`TupleExpression`,elements:e},n=a.TupleExpression;return i(n.elements,t,`elements`,e,1),t}function Dn(e){let t={type:`DecimalLiteral`,value:e},n=a.DecimalLiteral;return i(n.value,t,`value`,e),t}function On(e){let t={type:`ModuleExpression`,body:e},n=a.ModuleExpression;return i(n.body,t,`body`,e,1),t}function kn(){return{type:`TopicReference`}}function An(e){let t={type:`PipelineTopicExpression`,expression:e},n=a.PipelineTopicExpression;return i(n.expression,t,`expression`,e,1),t}function jn(e){let t={type:`PipelineBareFunction`,callee:e},n=a.PipelineBareFunction;return i(n.callee,t,`callee`,e,1),t}function Mn(){return{type:`PipelinePrimaryTopicReference`}}function Nn(){return{type:`VoidPattern`}}function Pn(e){let t={type:`TSParameterProperty`,parameter:e},n=a.TSParameterProperty;return i(n.parameter,t,`parameter`,e,1),t}function Fn(e=null,t=null,n,r=null){let o={type:`TSDeclareFunction`,id:e,typeParameters:t,params:n,returnType:r},s=a.TSDeclareFunction;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.params,o,`params`,n,1),i(s.returnType,o,`returnType`,r,1),o}function In(e=null,t,n=null,r,o=null){let s={type:`TSDeclareMethod`,decorators:e,key:t,typeParameters:n,params:r,returnType:o},c=a.TSDeclareMethod;return i(c.decorators,s,`decorators`,e,1),i(c.key,s,`key`,t,1),i(c.typeParameters,s,`typeParameters`,n,1),i(c.params,s,`params`,r,1),i(c.returnType,s,`returnType`,o,1),s}function Ln(e,t){let n={type:`TSQualifiedName`,left:e,right:t},r=a.TSQualifiedName;return i(r.left,n,`left`,e,1),i(r.right,n,`right`,t,1),n}function Rn(e=null,t,n=null){let r={type:`TSCallSignatureDeclaration`,typeParameters:e,parameters:t,typeAnnotation:n},o=a.TSCallSignatureDeclaration;return i(o.typeParameters,r,`typeParameters`,e,1),i(o.parameters,r,`parameters`,t,1),i(o.typeAnnotation,r,`typeAnnotation`,n,1),r}function zn(e=null,t,n=null){let r={type:`TSConstructSignatureDeclaration`,typeParameters:e,parameters:t,typeAnnotation:n},o=a.TSConstructSignatureDeclaration;return i(o.typeParameters,r,`typeParameters`,e,1),i(o.parameters,r,`parameters`,t,1),i(o.typeAnnotation,r,`typeAnnotation`,n,1),r}function Bn(e,t=null){let n={type:`TSPropertySignature`,key:e,typeAnnotation:t},r=a.TSPropertySignature;return i(r.key,n,`key`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function Vn(e,t=null,n,r=null){let o={type:`TSMethodSignature`,key:e,typeParameters:t,parameters:n,typeAnnotation:r,kind:null},s=a.TSMethodSignature;return i(s.key,o,`key`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.parameters,o,`parameters`,n,1),i(s.typeAnnotation,o,`typeAnnotation`,r,1),o}function Hn(e,t=null){let n={type:`TSIndexSignature`,parameters:e,typeAnnotation:t},r=a.TSIndexSignature;return i(r.parameters,n,`parameters`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function Un(){return{type:`TSAnyKeyword`}}function Wn(){return{type:`TSBooleanKeyword`}}function Gn(){return{type:`TSBigIntKeyword`}}function Kn(){return{type:`TSIntrinsicKeyword`}}function qn(){return{type:`TSNeverKeyword`}}function Jn(){return{type:`TSNullKeyword`}}function Yn(){return{type:`TSNumberKeyword`}}function Xn(){return{type:`TSObjectKeyword`}}function Zn(){return{type:`TSStringKeyword`}}function Qn(){return{type:`TSSymbolKeyword`}}function $n(){return{type:`TSUndefinedKeyword`}}function er(){return{type:`TSUnknownKeyword`}}function tr(){return{type:`TSVoidKeyword`}}function nr(){return{type:`TSThisType`}}function rr(e=null,t,n=null){let r={type:`TSFunctionType`,typeParameters:e,parameters:t,typeAnnotation:n},o=a.TSFunctionType;return i(o.typeParameters,r,`typeParameters`,e,1),i(o.parameters,r,`parameters`,t,1),i(o.typeAnnotation,r,`typeAnnotation`,n,1),r}function ir(e=null,t,n=null){let r={type:`TSConstructorType`,typeParameters:e,parameters:t,typeAnnotation:n},o=a.TSConstructorType;return i(o.typeParameters,r,`typeParameters`,e,1),i(o.parameters,r,`parameters`,t,1),i(o.typeAnnotation,r,`typeAnnotation`,n,1),r}function ar(e,t=null){let n={type:`TSTypeReference`,typeName:e,typeParameters:t},r=a.TSTypeReference;return i(r.typeName,n,`typeName`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function or(e,t=null,n=null){let r={type:`TSTypePredicate`,parameterName:e,typeAnnotation:t,asserts:n},o=a.TSTypePredicate;return i(o.parameterName,r,`parameterName`,e,1),i(o.typeAnnotation,r,`typeAnnotation`,t,1),i(o.asserts,r,`asserts`,n),r}function sr(e,t=null){let n={type:`TSTypeQuery`,exprName:e,typeParameters:t},r=a.TSTypeQuery;return i(r.exprName,n,`exprName`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function cr(e){let t={type:`TSTypeLiteral`,members:e},n=a.TSTypeLiteral;return i(n.members,t,`members`,e,1),t}function lr(e){let t={type:`TSArrayType`,elementType:e},n=a.TSArrayType;return i(n.elementType,t,`elementType`,e,1),t}function ur(e){let t={type:`TSTupleType`,elementTypes:e},n=a.TSTupleType;return i(n.elementTypes,t,`elementTypes`,e,1),t}function dr(e){let t={type:`TSOptionalType`,typeAnnotation:e},n=a.TSOptionalType;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function fr(e){let t={type:`TSRestType`,typeAnnotation:e},n=a.TSRestType;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function pr(e,t,n=!1){let r={type:`TSNamedTupleMember`,label:e,elementType:t,optional:n},o=a.TSNamedTupleMember;return i(o.label,r,`label`,e,1),i(o.elementType,r,`elementType`,t,1),i(o.optional,r,`optional`,n),r}function mr(e){let t={type:`TSUnionType`,types:e},n=a.TSUnionType;return i(n.types,t,`types`,e,1),t}function hr(e){let t={type:`TSIntersectionType`,types:e},n=a.TSIntersectionType;return i(n.types,t,`types`,e,1),t}function gr(e,t,n,r){let o={type:`TSConditionalType`,checkType:e,extendsType:t,trueType:n,falseType:r},s=a.TSConditionalType;return i(s.checkType,o,`checkType`,e,1),i(s.extendsType,o,`extendsType`,t,1),i(s.trueType,o,`trueType`,n,1),i(s.falseType,o,`falseType`,r,1),o}function _r(e){let t={type:`TSInferType`,typeParameter:e},n=a.TSInferType;return i(n.typeParameter,t,`typeParameter`,e,1),t}function vr(e){let t={type:`TSParenthesizedType`,typeAnnotation:e},n=a.TSParenthesizedType;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function yr(e,t=`keyof`){let n={type:`TSTypeOperator`,typeAnnotation:e,operator:t},r=a.TSTypeOperator;return i(r.typeAnnotation,n,`typeAnnotation`,e,1),i(r.operator,n,`operator`,t),n}function br(e,t){let n={type:`TSIndexedAccessType`,objectType:e,indexType:t},r=a.TSIndexedAccessType;return i(r.objectType,n,`objectType`,e,1),i(r.indexType,n,`indexType`,t,1),n}function xr(e,t=null,n=null){let r={type:`TSMappedType`,typeParameter:e,typeAnnotation:t,nameType:n},o=a.TSMappedType;return i(o.typeParameter,r,`typeParameter`,e,1),i(o.typeAnnotation,r,`typeAnnotation`,t,1),i(o.nameType,r,`nameType`,n,1),r}function Sr(e,t){let n={type:`TSTemplateLiteralType`,quasis:e,types:t},r=a.TSTemplateLiteralType;return i(r.quasis,n,`quasis`,e,1),i(r.types,n,`types`,t,1),n}function Cr(e){let t={type:`TSLiteralType`,literal:e},n=a.TSLiteralType;return i(n.literal,t,`literal`,e,1),t}function wr(e,t=null){let n={type:`TSExpressionWithTypeArguments`,expression:e,typeParameters:t},r=a.TSExpressionWithTypeArguments;return i(r.expression,n,`expression`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function Tr(e,t=null,n=null,r){let o={type:`TSInterfaceDeclaration`,id:e,typeParameters:t,extends:n,body:r},s=a.TSInterfaceDeclaration;return i(s.id,o,`id`,e,1),i(s.typeParameters,o,`typeParameters`,t,1),i(s.extends,o,`extends`,n,1),i(s.body,o,`body`,r,1),o}function Er(e){let t={type:`TSInterfaceBody`,body:e},n=a.TSInterfaceBody;return i(n.body,t,`body`,e,1),t}function Dr(e,t=null,n){let r={type:`TSTypeAliasDeclaration`,id:e,typeParameters:t,typeAnnotation:n},o=a.TSTypeAliasDeclaration;return i(o.id,r,`id`,e,1),i(o.typeParameters,r,`typeParameters`,t,1),i(o.typeAnnotation,r,`typeAnnotation`,n,1),r}function Or(e,t=null){let n={type:`TSInstantiationExpression`,expression:e,typeParameters:t},r=a.TSInstantiationExpression;return i(r.expression,n,`expression`,e,1),i(r.typeParameters,n,`typeParameters`,t,1),n}function kr(e,t){let n={type:`TSAsExpression`,expression:e,typeAnnotation:t},r=a.TSAsExpression;return i(r.expression,n,`expression`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function Ar(e,t){let n={type:`TSSatisfiesExpression`,expression:e,typeAnnotation:t},r=a.TSSatisfiesExpression;return i(r.expression,n,`expression`,e,1),i(r.typeAnnotation,n,`typeAnnotation`,t,1),n}function jr(e,t){let n={type:`TSTypeAssertion`,typeAnnotation:e,expression:t},r=a.TSTypeAssertion;return i(r.typeAnnotation,n,`typeAnnotation`,e,1),i(r.expression,n,`expression`,t,1),n}function Mr(e){let t={type:`TSEnumBody`,members:e},n=a.TSEnumBody;return i(n.members,t,`members`,e,1),t}function Nr(e,t){let n={type:`TSEnumDeclaration`,id:e,members:t},r=a.TSEnumDeclaration;return i(r.id,n,`id`,e,1),i(r.members,n,`members`,t,1),n}function Pr(e,t=null){let n={type:`TSEnumMember`,id:e,initializer:t},r=a.TSEnumMember;return i(r.id,n,`id`,e,1),i(r.initializer,n,`initializer`,t,1),n}function Fr(e,t){let n={type:`TSModuleDeclaration`,id:e,body:t,kind:null},r=a.TSModuleDeclaration;return i(r.id,n,`id`,e,1),i(r.body,n,`body`,t,1),n}function Ir(e){let t={type:`TSModuleBlock`,body:e},n=a.TSModuleBlock;return i(n.body,t,`body`,e,1),t}function Lr(e,t=null,n=null){let r={type:`TSImportType`,argument:e,qualifier:t,typeParameters:n},o=a.TSImportType;return i(o.argument,r,`argument`,e,1),i(o.qualifier,r,`qualifier`,t,1),i(o.typeParameters,r,`typeParameters`,n,1),r}function Rr(e,t){let n={type:`TSImportEqualsDeclaration`,id:e,moduleReference:t,isExport:null},r=a.TSImportEqualsDeclaration;return i(r.id,n,`id`,e,1),i(r.moduleReference,n,`moduleReference`,t,1),n}function zr(e){let t={type:`TSExternalModuleReference`,expression:e},n=a.TSExternalModuleReference;return i(n.expression,t,`expression`,e,1),t}function Br(e){let t={type:`TSNonNullExpression`,expression:e},n=a.TSNonNullExpression;return i(n.expression,t,`expression`,e,1),t}function Vr(e){let t={type:`TSExportAssignment`,expression:e},n=a.TSExportAssignment;return i(n.expression,t,`expression`,e,1),t}function Hr(e){let t={type:`TSNamespaceExportDeclaration`,id:e},n=a.TSNamespaceExportDeclaration;return i(n.id,t,`id`,e,1),t}function Ur(e){let t={type:`TSTypeAnnotation`,typeAnnotation:e},n=a.TSTypeAnnotation;return i(n.typeAnnotation,t,`typeAnnotation`,e,1),t}function Wr(e){let t={type:`TSTypeParameterInstantiation`,params:e},n=a.TSTypeParameterInstantiation;return i(n.params,t,`params`,e,1),t}function Gr(e){let t={type:`TSTypeParameterDeclaration`,params:e},n=a.TSTypeParameterDeclaration;return i(n.params,t,`params`,e,1),t}function Kr(e=null,t=null,n){let r={type:`TSTypeParameter`,constraint:e,default:t,name:n},o=a.TSTypeParameter;return i(o.constraint,r,`constraint`,e,1),i(o.default,r,`default`,t,1),i(o.name,r,`name`,n),r}function qr(e){return(0,n.default)(`NumberLiteral`,`NumericLiteral`,`The node type `),se(e)}function Jr(e,t=``){return(0,n.default)(`RegexLiteral`,`RegExpLiteral`,`The node type `),O(e,t)}function Yr(e){return(0,n.default)(`RestProperty`,`RestElement`,`The node type `),N(e)}function Xr(e){return(0,n.default)(`SpreadProperty`,`SpreadElement`,`The node type `),Le(e)}})),ye=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JSXIdentifier=e.JSXFragment=e.JSXExpressionContainer=e.JSXEmptyExpression=e.JSXElement=e.JSXClosingFragment=e.JSXClosingElement=e.JSXAttribute=e.IntersectionTypeAnnotation=e.InterpreterDirective=e.InterfaceTypeAnnotation=e.InterfaceExtends=e.InterfaceDeclaration=e.InferredPredicate=e.IndexedAccessType=e.ImportSpecifier=e.ImportNamespaceSpecifier=e.ImportExpression=e.ImportDefaultSpecifier=e.ImportDeclaration=e.ImportAttribute=e.Import=e.IfStatement=e.Identifier=e.GenericTypeAnnotation=e.FunctionTypeParam=e.FunctionTypeAnnotation=e.FunctionExpression=e.FunctionDeclaration=e.ForStatement=e.ForOfStatement=e.ForInStatement=e.File=e.ExpressionStatement=e.ExportSpecifier=e.ExportNamespaceSpecifier=e.ExportNamedDeclaration=e.ExportDefaultSpecifier=e.ExportDefaultDeclaration=e.ExportAllDeclaration=e.ExistsTypeAnnotation=e.EnumSymbolBody=e.EnumStringMember=e.EnumStringBody=e.EnumNumberMember=e.EnumNumberBody=e.EnumDefaultedMember=e.EnumDeclaration=e.EnumBooleanMember=e.EnumBooleanBody=e.EmptyTypeAnnotation=e.EmptyStatement=e.DoWhileStatement=e.DoExpression=e.DirectiveLiteral=e.Directive=e.Decorator=e.DeclaredPredicate=e.DeclareVariable=e.DeclareTypeAlias=e.DeclareOpaqueType=e.DeclareModuleExports=e.DeclareModule=e.DeclareInterface=e.DeclareFunction=e.DeclareExportDeclaration=e.DeclareExportAllDeclaration=e.DeclareClass=e.DecimalLiteral=e.DebuggerStatement=e.ContinueStatement=e.ConditionalExpression=e.ClassProperty=e.ClassPrivateProperty=e.ClassPrivateMethod=e.ClassMethod=e.ClassImplements=e.ClassExpression=e.ClassDeclaration=e.ClassBody=e.ClassAccessorProperty=e.CatchClause=e.CallExpression=e.BreakStatement=e.BooleanTypeAnnotation=e.BooleanLiteralTypeAnnotation=e.BooleanLiteral=e.BlockStatement=e.BindExpression=e.BinaryExpression=e.BigIntLiteral=e.AwaitExpression=e.AssignmentPattern=e.AssignmentExpression=e.ArrowFunctionExpression=e.ArrayTypeAnnotation=e.ArrayPattern=e.ArrayExpression=e.ArgumentPlaceholder=e.AnyTypeAnnotation=void 0,e.TSNumberKeyword=e.TSNullKeyword=e.TSNonNullExpression=e.TSNeverKeyword=e.TSNamespaceExportDeclaration=e.TSNamedTupleMember=e.TSModuleDeclaration=e.TSModuleBlock=e.TSMethodSignature=e.TSMappedType=e.TSLiteralType=e.TSIntrinsicKeyword=e.TSIntersectionType=e.TSInterfaceDeclaration=e.TSInterfaceBody=e.TSInstantiationExpression=e.TSInferType=e.TSIndexedAccessType=e.TSIndexSignature=e.TSImportType=e.TSImportEqualsDeclaration=e.TSFunctionType=e.TSExternalModuleReference=e.TSExpressionWithTypeArguments=e.TSExportAssignment=e.TSEnumMember=e.TSEnumDeclaration=e.TSEnumBody=e.TSDeclareMethod=e.TSDeclareFunction=e.TSConstructorType=e.TSConstructSignatureDeclaration=e.TSConditionalType=e.TSCallSignatureDeclaration=e.TSBooleanKeyword=e.TSBigIntKeyword=e.TSAsExpression=e.TSArrayType=e.TSAnyKeyword=e.SymbolTypeAnnotation=e.SwitchStatement=e.SwitchCase=e.Super=e.StringTypeAnnotation=e.StringLiteralTypeAnnotation=e.StringLiteral=e.StaticBlock=e.SpreadProperty=e.SpreadElement=e.SequenceExpression=e.ReturnStatement=e.RestProperty=e.RestElement=e.RegexLiteral=e.RegExpLiteral=e.RecordExpression=e.QualifiedTypeIdentifier=e.Program=e.PrivateName=e.Placeholder=e.PipelineTopicExpression=e.PipelinePrimaryTopicReference=e.PipelineBareFunction=e.ParenthesizedExpression=e.OptionalMemberExpression=e.OptionalIndexedAccessType=e.OptionalCallExpression=e.OpaqueType=e.ObjectTypeSpreadProperty=e.ObjectTypeProperty=e.ObjectTypeInternalSlot=e.ObjectTypeIndexer=e.ObjectTypeCallProperty=e.ObjectTypeAnnotation=e.ObjectProperty=e.ObjectPattern=e.ObjectMethod=e.ObjectExpression=e.NumericLiteral=e.NumberTypeAnnotation=e.NumberLiteralTypeAnnotation=e.NumberLiteral=e.NullableTypeAnnotation=e.NullLiteralTypeAnnotation=e.NullLiteral=e.Noop=e.NewExpression=e.ModuleExpression=e.MixedTypeAnnotation=e.MetaProperty=e.MemberExpression=e.LogicalExpression=e.LabeledStatement=e.JSXText=e.JSXSpreadChild=e.JSXSpreadAttribute=e.JSXOpeningFragment=e.JSXOpeningElement=e.JSXNamespacedName=e.JSXMemberExpression=void 0,e.YieldExpression=e.WithStatement=e.WhileStatement=e.VoidTypeAnnotation=e.VoidPattern=e.Variance=e.VariableDeclarator=e.VariableDeclaration=e.V8IntrinsicIdentifier=e.UpdateExpression=e.UnionTypeAnnotation=e.UnaryExpression=e.TypeofTypeAnnotation=e.TypeParameterInstantiation=e.TypeParameterDeclaration=e.TypeParameter=e.TypeCastExpression=e.TypeAnnotation=e.TypeAlias=e.TupleTypeAnnotation=e.TupleExpression=e.TryStatement=e.TopicReference=e.ThrowStatement=e.ThisTypeAnnotation=e.ThisExpression=e.TemplateLiteral=e.TemplateElement=e.TaggedTemplateExpression=e.TSVoidKeyword=e.TSUnknownKeyword=e.TSUnionType=e.TSUndefinedKeyword=e.TSTypeReference=e.TSTypeQuery=e.TSTypePredicate=e.TSTypeParameterInstantiation=e.TSTypeParameterDeclaration=e.TSTypeParameter=e.TSTypeOperator=e.TSTypeLiteral=e.TSTypeAssertion=e.TSTypeAnnotation=e.TSTypeAliasDeclaration=e.TSTupleType=e.TSThisType=e.TSTemplateLiteralType=e.TSSymbolKeyword=e.TSStringKeyword=e.TSSatisfiesExpression=e.TSRestType=e.TSQualifiedName=e.TSPropertySignature=e.TSParenthesizedType=e.TSParameterProperty=e.TSOptionalType=e.TSObjectKeyword=void 0;var t=ve();w();function n(e){return t[e]}e.ArrayExpression=n(`arrayExpression`),e.AssignmentExpression=n(`assignmentExpression`),e.BinaryExpression=n(`binaryExpression`),e.InterpreterDirective=n(`interpreterDirective`),e.Directive=n(`directive`),e.DirectiveLiteral=n(`directiveLiteral`),e.BlockStatement=n(`blockStatement`),e.BreakStatement=n(`breakStatement`),e.CallExpression=n(`callExpression`),e.CatchClause=n(`catchClause`),e.ConditionalExpression=n(`conditionalExpression`),e.ContinueStatement=n(`continueStatement`),e.DebuggerStatement=n(`debuggerStatement`),e.DoWhileStatement=n(`doWhileStatement`),e.EmptyStatement=n(`emptyStatement`),e.ExpressionStatement=n(`expressionStatement`),e.File=n(`file`),e.ForInStatement=n(`forInStatement`),e.ForStatement=n(`forStatement`),e.FunctionDeclaration=n(`functionDeclaration`),e.FunctionExpression=n(`functionExpression`),e.Identifier=n(`identifier`),e.IfStatement=n(`ifStatement`),e.LabeledStatement=n(`labeledStatement`),e.StringLiteral=n(`stringLiteral`),e.NumericLiteral=n(`numericLiteral`),e.NullLiteral=n(`nullLiteral`),e.BooleanLiteral=n(`booleanLiteral`),e.RegExpLiteral=n(`regExpLiteral`),e.LogicalExpression=n(`logicalExpression`),e.MemberExpression=n(`memberExpression`),e.NewExpression=n(`newExpression`),e.Program=n(`program`),e.ObjectExpression=n(`objectExpression`),e.ObjectMethod=n(`objectMethod`),e.ObjectProperty=n(`objectProperty`),e.RestElement=n(`restElement`),e.ReturnStatement=n(`returnStatement`),e.SequenceExpression=n(`sequenceExpression`),e.ParenthesizedExpression=n(`parenthesizedExpression`),e.SwitchCase=n(`switchCase`),e.SwitchStatement=n(`switchStatement`),e.ThisExpression=n(`thisExpression`),e.ThrowStatement=n(`throwStatement`),e.TryStatement=n(`tryStatement`),e.UnaryExpression=n(`unaryExpression`),e.UpdateExpression=n(`updateExpression`),e.VariableDeclaration=n(`variableDeclaration`),e.VariableDeclarator=n(`variableDeclarator`),e.WhileStatement=n(`whileStatement`),e.WithStatement=n(`withStatement`),e.AssignmentPattern=n(`assignmentPattern`),e.ArrayPattern=n(`arrayPattern`),e.ArrowFunctionExpression=n(`arrowFunctionExpression`),e.ClassBody=n(`classBody`),e.ClassExpression=n(`classExpression`),e.ClassDeclaration=n(`classDeclaration`),e.ExportAllDeclaration=n(`exportAllDeclaration`),e.ExportDefaultDeclaration=n(`exportDefaultDeclaration`),e.ExportNamedDeclaration=n(`exportNamedDeclaration`),e.ExportSpecifier=n(`exportSpecifier`),e.ForOfStatement=n(`forOfStatement`),e.ImportDeclaration=n(`importDeclaration`),e.ImportDefaultSpecifier=n(`importDefaultSpecifier`),e.ImportNamespaceSpecifier=n(`importNamespaceSpecifier`),e.ImportSpecifier=n(`importSpecifier`),e.ImportExpression=n(`importExpression`),e.MetaProperty=n(`metaProperty`),e.ClassMethod=n(`classMethod`),e.ObjectPattern=n(`objectPattern`),e.SpreadElement=n(`spreadElement`),e.Super=n(`super`),e.TaggedTemplateExpression=n(`taggedTemplateExpression`),e.TemplateElement=n(`templateElement`),e.TemplateLiteral=n(`templateLiteral`),e.YieldExpression=n(`yieldExpression`),e.AwaitExpression=n(`awaitExpression`),e.Import=n(`import`),e.BigIntLiteral=n(`bigIntLiteral`),e.ExportNamespaceSpecifier=n(`exportNamespaceSpecifier`),e.OptionalMemberExpression=n(`optionalMemberExpression`),e.OptionalCallExpression=n(`optionalCallExpression`),e.ClassProperty=n(`classProperty`),e.ClassAccessorProperty=n(`classAccessorProperty`),e.ClassPrivateProperty=n(`classPrivateProperty`),e.ClassPrivateMethod=n(`classPrivateMethod`),e.PrivateName=n(`privateName`),e.StaticBlock=n(`staticBlock`),e.ImportAttribute=n(`importAttribute`),e.AnyTypeAnnotation=n(`anyTypeAnnotation`),e.ArrayTypeAnnotation=n(`arrayTypeAnnotation`),e.BooleanTypeAnnotation=n(`booleanTypeAnnotation`),e.BooleanLiteralTypeAnnotation=n(`booleanLiteralTypeAnnotation`),e.NullLiteralTypeAnnotation=n(`nullLiteralTypeAnnotation`),e.ClassImplements=n(`classImplements`),e.DeclareClass=n(`declareClass`),e.DeclareFunction=n(`declareFunction`),e.DeclareInterface=n(`declareInterface`),e.DeclareModule=n(`declareModule`),e.DeclareModuleExports=n(`declareModuleExports`),e.DeclareTypeAlias=n(`declareTypeAlias`),e.DeclareOpaqueType=n(`declareOpaqueType`),e.DeclareVariable=n(`declareVariable`),e.DeclareExportDeclaration=n(`declareExportDeclaration`),e.DeclareExportAllDeclaration=n(`declareExportAllDeclaration`),e.DeclaredPredicate=n(`declaredPredicate`),e.ExistsTypeAnnotation=n(`existsTypeAnnotation`),e.FunctionTypeAnnotation=n(`functionTypeAnnotation`),e.FunctionTypeParam=n(`functionTypeParam`),e.GenericTypeAnnotation=n(`genericTypeAnnotation`),e.InferredPredicate=n(`inferredPredicate`),e.InterfaceExtends=n(`interfaceExtends`),e.InterfaceDeclaration=n(`interfaceDeclaration`),e.InterfaceTypeAnnotation=n(`interfaceTypeAnnotation`),e.IntersectionTypeAnnotation=n(`intersectionTypeAnnotation`),e.MixedTypeAnnotation=n(`mixedTypeAnnotation`),e.EmptyTypeAnnotation=n(`emptyTypeAnnotation`),e.NullableTypeAnnotation=n(`nullableTypeAnnotation`),e.NumberLiteralTypeAnnotation=n(`numberLiteralTypeAnnotation`),e.NumberTypeAnnotation=n(`numberTypeAnnotation`),e.ObjectTypeAnnotation=n(`objectTypeAnnotation`),e.ObjectTypeInternalSlot=n(`objectTypeInternalSlot`),e.ObjectTypeCallProperty=n(`objectTypeCallProperty`),e.ObjectTypeIndexer=n(`objectTypeIndexer`),e.ObjectTypeProperty=n(`objectTypeProperty`),e.ObjectTypeSpreadProperty=n(`objectTypeSpreadProperty`),e.OpaqueType=n(`opaqueType`),e.QualifiedTypeIdentifier=n(`qualifiedTypeIdentifier`),e.StringLiteralTypeAnnotation=n(`stringLiteralTypeAnnotation`),e.StringTypeAnnotation=n(`stringTypeAnnotation`),e.SymbolTypeAnnotation=n(`symbolTypeAnnotation`),e.ThisTypeAnnotation=n(`thisTypeAnnotation`),e.TupleTypeAnnotation=n(`tupleTypeAnnotation`),e.TypeofTypeAnnotation=n(`typeofTypeAnnotation`),e.TypeAlias=n(`typeAlias`),e.TypeAnnotation=n(`typeAnnotation`),e.TypeCastExpression=n(`typeCastExpression`),e.TypeParameter=n(`typeParameter`),e.TypeParameterDeclaration=n(`typeParameterDeclaration`),e.TypeParameterInstantiation=n(`typeParameterInstantiation`),e.UnionTypeAnnotation=n(`unionTypeAnnotation`),e.Variance=n(`variance`),e.VoidTypeAnnotation=n(`voidTypeAnnotation`),e.EnumDeclaration=n(`enumDeclaration`),e.EnumBooleanBody=n(`enumBooleanBody`),e.EnumNumberBody=n(`enumNumberBody`),e.EnumStringBody=n(`enumStringBody`),e.EnumSymbolBody=n(`enumSymbolBody`),e.EnumBooleanMember=n(`enumBooleanMember`),e.EnumNumberMember=n(`enumNumberMember`),e.EnumStringMember=n(`enumStringMember`),e.EnumDefaultedMember=n(`enumDefaultedMember`),e.IndexedAccessType=n(`indexedAccessType`),e.OptionalIndexedAccessType=n(`optionalIndexedAccessType`),e.JSXAttribute=n(`jsxAttribute`),e.JSXClosingElement=n(`jsxClosingElement`),e.JSXElement=n(`jsxElement`),e.JSXEmptyExpression=n(`jsxEmptyExpression`),e.JSXExpressionContainer=n(`jsxExpressionContainer`),e.JSXSpreadChild=n(`jsxSpreadChild`),e.JSXIdentifier=n(`jsxIdentifier`),e.JSXMemberExpression=n(`jsxMemberExpression`),e.JSXNamespacedName=n(`jsxNamespacedName`),e.JSXOpeningElement=n(`jsxOpeningElement`),e.JSXSpreadAttribute=n(`jsxSpreadAttribute`),e.JSXText=n(`jsxText`),e.JSXFragment=n(`jsxFragment`),e.JSXOpeningFragment=n(`jsxOpeningFragment`),e.JSXClosingFragment=n(`jsxClosingFragment`),e.Noop=n(`noop`),e.Placeholder=n(`placeholder`),e.V8IntrinsicIdentifier=n(`v8IntrinsicIdentifier`),e.ArgumentPlaceholder=n(`argumentPlaceholder`),e.BindExpression=n(`bindExpression`),e.Decorator=n(`decorator`),e.DoExpression=n(`doExpression`),e.ExportDefaultSpecifier=n(`exportDefaultSpecifier`),e.RecordExpression=n(`recordExpression`),e.TupleExpression=n(`tupleExpression`),e.DecimalLiteral=n(`decimalLiteral`),e.ModuleExpression=n(`moduleExpression`),e.TopicReference=n(`topicReference`),e.PipelineTopicExpression=n(`pipelineTopicExpression`),e.PipelineBareFunction=n(`pipelineBareFunction`),e.PipelinePrimaryTopicReference=n(`pipelinePrimaryTopicReference`),e.VoidPattern=n(`voidPattern`),e.TSParameterProperty=n(`tsParameterProperty`),e.TSDeclareFunction=n(`tsDeclareFunction`),e.TSDeclareMethod=n(`tsDeclareMethod`),e.TSQualifiedName=n(`tsQualifiedName`),e.TSCallSignatureDeclaration=n(`tsCallSignatureDeclaration`),e.TSConstructSignatureDeclaration=n(`tsConstructSignatureDeclaration`),e.TSPropertySignature=n(`tsPropertySignature`),e.TSMethodSignature=n(`tsMethodSignature`),e.TSIndexSignature=n(`tsIndexSignature`),e.TSAnyKeyword=n(`tsAnyKeyword`),e.TSBooleanKeyword=n(`tsBooleanKeyword`),e.TSBigIntKeyword=n(`tsBigIntKeyword`),e.TSIntrinsicKeyword=n(`tsIntrinsicKeyword`),e.TSNeverKeyword=n(`tsNeverKeyword`),e.TSNullKeyword=n(`tsNullKeyword`),e.TSNumberKeyword=n(`tsNumberKeyword`),e.TSObjectKeyword=n(`tsObjectKeyword`),e.TSStringKeyword=n(`tsStringKeyword`),e.TSSymbolKeyword=n(`tsSymbolKeyword`),e.TSUndefinedKeyword=n(`tsUndefinedKeyword`),e.TSUnknownKeyword=n(`tsUnknownKeyword`),e.TSVoidKeyword=n(`tsVoidKeyword`),e.TSThisType=n(`tsThisType`),e.TSFunctionType=n(`tsFunctionType`),e.TSConstructorType=n(`tsConstructorType`),e.TSTypeReference=n(`tsTypeReference`),e.TSTypePredicate=n(`tsTypePredicate`),e.TSTypeQuery=n(`tsTypeQuery`),e.TSTypeLiteral=n(`tsTypeLiteral`),e.TSArrayType=n(`tsArrayType`),e.TSTupleType=n(`tsTupleType`),e.TSOptionalType=n(`tsOptionalType`),e.TSRestType=n(`tsRestType`),e.TSNamedTupleMember=n(`tsNamedTupleMember`),e.TSUnionType=n(`tsUnionType`),e.TSIntersectionType=n(`tsIntersectionType`),e.TSConditionalType=n(`tsConditionalType`),e.TSInferType=n(`tsInferType`),e.TSParenthesizedType=n(`tsParenthesizedType`),e.TSTypeOperator=n(`tsTypeOperator`),e.TSIndexedAccessType=n(`tsIndexedAccessType`),e.TSMappedType=n(`tsMappedType`),e.TSTemplateLiteralType=n(`tsTemplateLiteralType`),e.TSLiteralType=n(`tsLiteralType`),e.TSExpressionWithTypeArguments=n(`tsExpressionWithTypeArguments`),e.TSInterfaceDeclaration=n(`tsInterfaceDeclaration`),e.TSInterfaceBody=n(`tsInterfaceBody`),e.TSTypeAliasDeclaration=n(`tsTypeAliasDeclaration`),e.TSInstantiationExpression=n(`tsInstantiationExpression`),e.TSAsExpression=n(`tsAsExpression`),e.TSSatisfiesExpression=n(`tsSatisfiesExpression`),e.TSTypeAssertion=n(`tsTypeAssertion`),e.TSEnumBody=n(`tsEnumBody`),e.TSEnumDeclaration=n(`tsEnumDeclaration`),e.TSEnumMember=n(`tsEnumMember`),e.TSModuleDeclaration=n(`tsModuleDeclaration`),e.TSModuleBlock=n(`tsModuleBlock`),e.TSImportType=n(`tsImportType`),e.TSImportEqualsDeclaration=n(`tsImportEqualsDeclaration`),e.TSExternalModuleReference=n(`tsExternalModuleReference`),e.TSNonNullExpression=n(`tsNonNullExpression`),e.TSExportAssignment=n(`tsExportAssignment`),e.TSNamespaceExportDeclaration=n(`tsNamespaceExportDeclaration`),e.TSTypeAnnotation=n(`tsTypeAnnotation`),e.TSTypeParameterInstantiation=n(`tsTypeParameterInstantiation`),e.TSTypeParameterDeclaration=n(`tsTypeParameterDeclaration`),e.TSTypeParameter=n(`tsTypeParameter`),e.NumberLiteral=t.numberLiteral,e.RegexLiteral=t.regexLiteral,e.RestProperty=t.restProperty,e.SpreadProperty=t.spreadProperty})),L=e((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=ve();Object.keys(t).forEach(function(n){n!=="default"&&n!=="__esModule"&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))});var n=ye();Object.keys(n).forEach(function(t){t!=="default"&&t!=="__esModule"&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})})),be=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=L(),n=K();function r(e,r){let i=e.value.split(/\r\n|\n|\r/),a=0;for(let e=0;e<i.length;e++)/[^ \t]/.exec(i[e])&&(a=e);let o=``;for(let e=0;e<i.length;e++){let t=i[e],n=e===0,r=e===i.length-1,s=e===a,c=t.replace(/\t/g,` `);n||(c=c.replace(/^ +/,``)),r||(c=c.replace(/ +$/,``)),c&&(s||(c+=` `),o+=c)}o&&r.push((0,n.inherits)((0,t.stringLiteral)(o),e))}})),xe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=be();function r(e){let r=[];for(let i=0;i<e.children.length;i++){let a=e.children[i];(0,t.isJSXText)(a)?(0,n.default)(a,r):((0,t.isJSXExpressionContainer)(a)&&(a=a.expression),(0,t.isJSXEmptyExpression)(a)||r.push(a))}return r}})),Se=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=I();function n(e){return!!(e&&t.VISITOR_KEYS[e.type])}})),R=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=Se();function n(e){if(!(0,t.default)(e)){let t=(e==null?void 0:e.type)??JSON.stringify(e);throw TypeError(`Not a valid node of type "${t}"`)}}})),Ce=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertAccessor=Ti,e.assertAnyTypeAnnotation=U,e.assertArgumentPlaceholder=_n,e.assertArrayExpression=i,e.assertArrayPattern=be,e.assertArrayTypeAnnotation=Qe,e.assertArrowFunctionExpression=xe,e.assertAssignmentExpression=a,e.assertAssignmentPattern=L,e.assertAwaitExpression=ze,e.assertBigIntLiteral=Ve,e.assertBinary=Kr,e.assertBinaryExpression=o,e.assertBindExpression=vn,e.assertBlock=Yr,e.assertBlockParent=Jr,e.assertBlockStatement=u,e.assertBooleanLiteral=oe,e.assertBooleanLiteralTypeAnnotation=W,e.assertBooleanTypeAnnotation=$e,e.assertBreakStatement=d,e.assertCallExpression=f,e.assertCatchClause=p,e.assertClass=xi,e.assertClassAccessorProperty=Ke,e.assertClassBody=Se,e.assertClassDeclaration=Ce,e.assertClassExpression=R,e.assertClassImplements=tt,e.assertClassMethod=H,e.assertClassPrivateMethod=Je,e.assertClassPrivateProperty=qe,e.assertClassProperty=Ge,e.assertCompletionStatement=Qr,e.assertConditional=$r,e.assertConditionalExpression=m,e.assertContinueStatement=h,e.assertDebuggerStatement=g,e.assertDecimalLiteral=wn,e.assertDeclaration=ci,e.assertDeclareClass=nt,e.assertDeclareExportAllDeclaration=dt,e.assertDeclareExportDeclaration=ut,e.assertDeclareFunction=rt,e.assertDeclareInterface=it,e.assertDeclareModule=at,e.assertDeclareModuleExports=ot,e.assertDeclareOpaqueType=ct,e.assertDeclareTypeAlias=st,e.assertDeclareVariable=lt,e.assertDeclaredPredicate=ft,e.assertDecorator=yn,e.assertDirective=c,e.assertDirectiveLiteral=l,e.assertDoExpression=bn,e.assertDoWhileStatement=_,e.assertEmptyStatement=ee,e.assertEmptyTypeAnnotation=xt,e.assertEnumBody=Mi,e.assertEnumBooleanBody=Ut,e.assertEnumBooleanMember=qt,e.assertEnumDeclaration=Ht,e.assertEnumDefaultedMember=Yt,e.assertEnumMember=Ni,e.assertEnumNumberBody=Wt,e.assertEnumNumberMember=$,e.assertEnumStringBody=Gt,e.assertEnumStringMember=Jt,e.assertEnumSymbolBody=Kt,e.assertExistsTypeAnnotation=pt,e.assertExportAllDeclaration=we,e.assertExportDeclaration=Ci,e.assertExportDefaultDeclaration=Te,e.assertExportDefaultSpecifier=xn,e.assertExportNamedDeclaration=z,e.assertExportNamespaceSpecifier=He,e.assertExportSpecifier=Ee,e.assertExpression=Gr,e.assertExpressionStatement=te,e.assertExpressionWrapper=ni,e.assertFile=ne,e.assertFlow=Di,e.assertFlowBaseAnnotation=ki,e.assertFlowDeclaration=Ai,e.assertFlowPredicate=ji,e.assertFlowType=Oi,e.assertFor=ri,e.assertForInStatement=re,e.assertForOfStatement=De,e.assertForStatement=v,e.assertForXStatement=ii,e.assertFunction=ai,e.assertFunctionDeclaration=y,e.assertFunctionExpression=b,e.assertFunctionParameter=li,e.assertFunctionParent=oi,e.assertFunctionTypeAnnotation=G,e.assertFunctionTypeParam=mt,e.assertGenericTypeAnnotation=K,e.assertIdentifier=x,e.assertIfStatement=S,e.assertImmutable=mi,e.assertImport=Be,e.assertImportAttribute=Ze,e.assertImportDeclaration=Oe,e.assertImportDefaultSpecifier=B,e.assertImportExpression=je,e.assertImportNamespaceSpecifier=ke,e.assertImportOrExportDeclaration=Si,e.assertImportSpecifier=Ae,e.assertIndexedAccessType=Xt,e.assertInferredPredicate=ht,e.assertInterfaceDeclaration=_t,e.assertInterfaceExtends=gt,e.assertInterfaceTypeAnnotation=vt,e.assertInterpreterDirective=s,e.assertIntersectionTypeAnnotation=yt,e.assertJSX=Pi,e.assertJSXAttribute=Qt,e.assertJSXClosingElement=$t,e.assertJSXClosingFragment=pn,e.assertJSXElement=en,e.assertJSXEmptyExpression=tn,e.assertJSXExpressionContainer=nn,e.assertJSXFragment=dn,e.assertJSXIdentifier=an,e.assertJSXMemberExpression=on,e.assertJSXNamespacedName=sn,e.assertJSXOpeningElement=cn,e.assertJSXOpeningFragment=fn,e.assertJSXSpreadAttribute=ln,e.assertJSXSpreadChild=rn,e.assertJSXText=un,e.assertLVal=di,e.assertLabeledStatement=C,e.assertLiteral=pi,e.assertLogicalExpression=E,e.assertLoop=ei,e.assertMemberExpression=D,e.assertMetaProperty=V,e.assertMethod=gi,e.assertMiscellaneous=Fi,e.assertMixedTypeAnnotation=bt,e.assertModuleDeclaration=Wi,e.assertModuleExpression=Tn,e.assertModuleSpecifier=wi,e.assertNewExpression=O,e.assertNoop=mn,e.assertNullLiteral=ae,e.assertNullLiteralTypeAnnotation=et,e.assertNullableTypeAnnotation=St,e.assertNumberLiteral=Bi,e.assertNumberLiteralTypeAnnotation=Ct,e.assertNumberTypeAnnotation=wt,e.assertNumericLiteral=T,e.assertObjectExpression=le,e.assertObjectMember=_i,e.assertObjectMethod=ue,e.assertObjectPattern=Me,e.assertObjectProperty=A,e.assertObjectTypeAnnotation=Tt,e.assertObjectTypeCallProperty=Et,e.assertObjectTypeIndexer=J,e.assertObjectTypeInternalSlot=q,e.assertObjectTypeProperty=Y,e.assertObjectTypeSpreadProperty=Dt,e.assertOpaqueType=Ot,e.assertOptionalCallExpression=We,e.assertOptionalIndexedAccessType=Zt,e.assertOptionalMemberExpression=Ue,e.assertParenthesizedExpression=N,e.assertPattern=bi,e.assertPatternLike=ui,e.assertPipelineBareFunction=On,e.assertPipelinePrimaryTopicReference=kn,e.assertPipelineTopicExpression=Dn,e.assertPlaceholder=hn,e.assertPrivate=Ei,e.assertPrivateName=Ye,e.assertProgram=ce,e.assertProperty=vi,e.assertPureish=si,e.assertQualifiedTypeIdentifier=X,e.assertRecordExpression=Sn,e.assertRegExpLiteral=se,e.assertRegexLiteral=Vi,e.assertRestElement=de,e.assertRestProperty=Hi,e.assertReturnStatement=j,e.assertScopable=qr,e.assertSequenceExpression=M,e.assertSpreadElement=Ne,e.assertSpreadProperty=Ui,e.assertStandardized=Wr,e.assertStatement=Xr,e.assertStaticBlock=Xe,e.assertStringLiteral=ie,e.assertStringLiteralTypeAnnotation=kt,e.assertStringTypeAnnotation=At,e.assertSuper=Pe,e.assertSwitchCase=P,e.assertSwitchStatement=fe,e.assertSymbolTypeAnnotation=jt,e.assertTSAnyKeyword=Bn,e.assertTSArrayType=or,e.assertTSAsExpression=Er,e.assertTSBaseType=zi,e.assertTSBigIntKeyword=Hn,e.assertTSBooleanKeyword=Vn,e.assertTSCallSignatureDeclaration=Fn,e.assertTSConditionalType=pr,e.assertTSConstructSignatureDeclaration=In,e.assertTSConstructorType=tr,e.assertTSDeclareFunction=Mn,e.assertTSDeclareMethod=Nn,e.assertTSEntityName=fi,e.assertTSEnumBody=kr,e.assertTSEnumDeclaration=Ar,e.assertTSEnumMember=jr,e.assertTSExportAssignment=Rr,e.assertTSExpressionWithTypeArguments=xr,e.assertTSExternalModuleReference=Ir,e.assertTSFunctionType=er,e.assertTSImportEqualsDeclaration=Fr,e.assertTSImportType=Pr,e.assertTSIndexSignature=zn,e.assertTSIndexedAccessType=_r,e.assertTSInferType=mr,e.assertTSInstantiationExpression=Tr,e.assertTSInterfaceBody=Cr,e.assertTSInterfaceDeclaration=Sr,e.assertTSIntersectionType=fr,e.assertTSIntrinsicKeyword=Un,e.assertTSLiteralType=br,e.assertTSMappedType=vr,e.assertTSMethodSignature=Rn,e.assertTSModuleBlock=Nr,e.assertTSModuleDeclaration=Mr,e.assertTSNamedTupleMember=ur,e.assertTSNamespaceExportDeclaration=zr,e.assertTSNeverKeyword=Wn,e.assertTSNonNullExpression=Lr,e.assertTSNullKeyword=Gn,e.assertTSNumberKeyword=Kn,e.assertTSObjectKeyword=qn,e.assertTSOptionalType=cr,e.assertTSParameterProperty=jn,e.assertTSParenthesizedType=hr,e.assertTSPropertySignature=Ln,e.assertTSQualifiedName=Pn,e.assertTSRestType=lr,e.assertTSSatisfiesExpression=Dr,e.assertTSStringKeyword=Jn,e.assertTSSymbolKeyword=Yn,e.assertTSTemplateLiteralType=yr,e.assertTSThisType=$n,e.assertTSTupleType=sr,e.assertTSType=Ri,e.assertTSTypeAliasDeclaration=wr,e.assertTSTypeAnnotation=Br,e.assertTSTypeAssertion=Or,e.assertTSTypeElement=Li,e.assertTSTypeLiteral=ar,e.assertTSTypeOperator=gr,e.assertTSTypeParameter=Ur,e.assertTSTypeParameterDeclaration=Hr,e.assertTSTypeParameterInstantiation=Vr,e.assertTSTypePredicate=rr,e.assertTSTypeQuery=ir,e.assertTSTypeReference=nr,e.assertTSUndefinedKeyword=Xn,e.assertTSUnionType=dr,e.assertTSUnknownKeyword=Zn,e.assertTSVoidKeyword=Qn,e.assertTaggedTemplateExpression=Fe,e.assertTemplateElement=Ie,e.assertTemplateLiteral=Le,e.assertTerminatorless=Zr,e.assertThisExpression=F,e.assertThisTypeAnnotation=Z,e.assertThrowStatement=pe,e.assertTopicReference=En,e.assertTryStatement=me,e.assertTupleExpression=Cn,e.assertTupleTypeAnnotation=Mt,e.assertTypeAlias=Pt,e.assertTypeAnnotation=Ft,e.assertTypeCastExpression=It,e.assertTypeParameter=Lt,e.assertTypeParameterDeclaration=Rt,e.assertTypeParameterInstantiation=zt,e.assertTypeScript=Ii,e.assertTypeofTypeAnnotation=Nt,e.assertUnaryExpression=he,e.assertUnaryLike=yi,e.assertUnionTypeAnnotation=Q,e.assertUpdateExpression=ge,e.assertUserWhitespacable=hi,e.assertV8IntrinsicIdentifier=gn,e.assertVariableDeclaration=I,e.assertVariableDeclarator=_e,e.assertVariance=Bt,e.assertVoidPattern=An,e.assertVoidTypeAnnotation=Vt,e.assertWhile=ti,e.assertWhileStatement=ve,e.assertWithStatement=ye,e.assertYieldExpression=Re;var t=k(),n=w();function r(e,n,r){if(!(0,t.default)(e,n,r))throw Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${n.type}".`)}function i(e,t){r(`ArrayExpression`,e,t)}function a(e,t){r(`AssignmentExpression`,e,t)}function o(e,t){r(`BinaryExpression`,e,t)}function s(e,t){r(`InterpreterDirective`,e,t)}function c(e,t){r(`Directive`,e,t)}function l(e,t){r(`DirectiveLiteral`,e,t)}function u(e,t){r(`BlockStatement`,e,t)}function d(e,t){r(`BreakStatement`,e,t)}function f(e,t){r(`CallExpression`,e,t)}function p(e,t){r(`CatchClause`,e,t)}function m(e,t){r(`ConditionalExpression`,e,t)}function h(e,t){r(`ContinueStatement`,e,t)}function g(e,t){r(`DebuggerStatement`,e,t)}function _(e,t){r(`DoWhileStatement`,e,t)}function ee(e,t){r(`EmptyStatement`,e,t)}function te(e,t){r(`ExpressionStatement`,e,t)}function ne(e,t){r(`File`,e,t)}function re(e,t){r(`ForInStatement`,e,t)}function v(e,t){r(`ForStatement`,e,t)}function y(e,t){r(`FunctionDeclaration`,e,t)}function b(e,t){r(`FunctionExpression`,e,t)}function x(e,t){r(`Identifier`,e,t)}function S(e,t){r(`IfStatement`,e,t)}function C(e,t){r(`LabeledStatement`,e,t)}function ie(e,t){r(`StringLiteral`,e,t)}function T(e,t){r(`NumericLiteral`,e,t)}function ae(e,t){r(`NullLiteral`,e,t)}function oe(e,t){r(`BooleanLiteral`,e,t)}function se(e,t){r(`RegExpLiteral`,e,t)}function E(e,t){r(`LogicalExpression`,e,t)}function D(e,t){r(`MemberExpression`,e,t)}function O(e,t){r(`NewExpression`,e,t)}function ce(e,t){r(`Program`,e,t)}function le(e,t){r(`ObjectExpression`,e,t)}function ue(e,t){r(`ObjectMethod`,e,t)}function A(e,t){r(`ObjectProperty`,e,t)}function de(e,t){r(`RestElement`,e,t)}function j(e,t){r(`ReturnStatement`,e,t)}function M(e,t){r(`SequenceExpression`,e,t)}function N(e,t){r(`ParenthesizedExpression`,e,t)}function P(e,t){r(`SwitchCase`,e,t)}function fe(e,t){r(`SwitchStatement`,e,t)}function F(e,t){r(`ThisExpression`,e,t)}function pe(e,t){r(`ThrowStatement`,e,t)}function me(e,t){r(`TryStatement`,e,t)}function he(e,t){r(`UnaryExpression`,e,t)}function ge(e,t){r(`UpdateExpression`,e,t)}function I(e,t){r(`VariableDeclaration`,e,t)}function _e(e,t){r(`VariableDeclarator`,e,t)}function ve(e,t){r(`WhileStatement`,e,t)}function ye(e,t){r(`WithStatement`,e,t)}function L(e,t){r(`AssignmentPattern`,e,t)}function be(e,t){r(`ArrayPattern`,e,t)}function xe(e,t){r(`ArrowFunctionExpression`,e,t)}function Se(e,t){r(`ClassBody`,e,t)}function R(e,t){r(`ClassExpression`,e,t)}function Ce(e,t){r(`ClassDeclaration`,e,t)}function we(e,t){r(`ExportAllDeclaration`,e,t)}function Te(e,t){r(`ExportDefaultDeclaration`,e,t)}function z(e,t){r(`ExportNamedDeclaration`,e,t)}function Ee(e,t){r(`ExportSpecifier`,e,t)}function De(e,t){r(`ForOfStatement`,e,t)}function Oe(e,t){r(`ImportDeclaration`,e,t)}function B(e,t){r(`ImportDefaultSpecifier`,e,t)}function ke(e,t){r(`ImportNamespaceSpecifier`,e,t)}function Ae(e,t){r(`ImportSpecifier`,e,t)}function je(e,t){r(`ImportExpression`,e,t)}function V(e,t){r(`MetaProperty`,e,t)}function H(e,t){r(`ClassMethod`,e,t)}function Me(e,t){r(`ObjectPattern`,e,t)}function Ne(e,t){r(`SpreadElement`,e,t)}function Pe(e,t){r(`Super`,e,t)}function Fe(e,t){r(`TaggedTemplateExpression`,e,t)}function Ie(e,t){r(`TemplateElement`,e,t)}function Le(e,t){r(`TemplateLiteral`,e,t)}function Re(e,t){r(`YieldExpression`,e,t)}function ze(e,t){r(`AwaitExpression`,e,t)}function Be(e,t){r(`Import`,e,t)}function Ve(e,t){r(`BigIntLiteral`,e,t)}function He(e,t){r(`ExportNamespaceSpecifier`,e,t)}function Ue(e,t){r(`OptionalMemberExpression`,e,t)}function We(e,t){r(`OptionalCallExpression`,e,t)}function Ge(e,t){r(`ClassProperty`,e,t)}function Ke(e,t){r(`ClassAccessorProperty`,e,t)}function qe(e,t){r(`ClassPrivateProperty`,e,t)}function Je(e,t){r(`ClassPrivateMethod`,e,t)}function Ye(e,t){r(`PrivateName`,e,t)}function Xe(e,t){r(`StaticBlock`,e,t)}function Ze(e,t){r(`ImportAttribute`,e,t)}function U(e,t){r(`AnyTypeAnnotation`,e,t)}function Qe(e,t){r(`ArrayTypeAnnotation`,e,t)}function $e(e,t){r(`BooleanTypeAnnotation`,e,t)}function W(e,t){r(`BooleanLiteralTypeAnnotation`,e,t)}function et(e,t){r(`NullLiteralTypeAnnotation`,e,t)}function tt(e,t){r(`ClassImplements`,e,t)}function nt(e,t){r(`DeclareClass`,e,t)}function rt(e,t){r(`DeclareFunction`,e,t)}function it(e,t){r(`DeclareInterface`,e,t)}function at(e,t){r(`DeclareModule`,e,t)}function ot(e,t){r(`DeclareModuleExports`,e,t)}function st(e,t){r(`DeclareTypeAlias`,e,t)}function ct(e,t){r(`DeclareOpaqueType`,e,t)}function lt(e,t){r(`DeclareVariable`,e,t)}function ut(e,t){r(`DeclareExportDeclaration`,e,t)}function dt(e,t){r(`DeclareExportAllDeclaration`,e,t)}function ft(e,t){r(`DeclaredPredicate`,e,t)}function pt(e,t){r(`ExistsTypeAnnotation`,e,t)}function G(e,t){r(`FunctionTypeAnnotation`,e,t)}function mt(e,t){r(`FunctionTypeParam`,e,t)}function K(e,t){r(`GenericTypeAnnotation`,e,t)}function ht(e,t){r(`InferredPredicate`,e,t)}function gt(e,t){r(`InterfaceExtends`,e,t)}function _t(e,t){r(`InterfaceDeclaration`,e,t)}function vt(e,t){r(`InterfaceTypeAnnotation`,e,t)}function yt(e,t){r(`IntersectionTypeAnnotation`,e,t)}function bt(e,t){r(`MixedTypeAnnotation`,e,t)}function xt(e,t){r(`EmptyTypeAnnotation`,e,t)}function St(e,t){r(`NullableTypeAnnotation`,e,t)}function Ct(e,t){r(`NumberLiteralTypeAnnotation`,e,t)}function wt(e,t){r(`NumberTypeAnnotation`,e,t)}function Tt(e,t){r(`ObjectTypeAnnotation`,e,t)}function q(e,t){r(`ObjectTypeInternalSlot`,e,t)}function Et(e,t){r(`ObjectTypeCallProperty`,e,t)}function J(e,t){r(`ObjectTypeIndexer`,e,t)}function Y(e,t){r(`ObjectTypeProperty`,e,t)}function Dt(e,t){r(`ObjectTypeSpreadProperty`,e,t)}function Ot(e,t){r(`OpaqueType`,e,t)}function X(e,t){r(`QualifiedTypeIdentifier`,e,t)}function kt(e,t){r(`StringLiteralTypeAnnotation`,e,t)}function At(e,t){r(`StringTypeAnnotation`,e,t)}function jt(e,t){r(`SymbolTypeAnnotation`,e,t)}function Z(e,t){r(`ThisTypeAnnotation`,e,t)}function Mt(e,t){r(`TupleTypeAnnotation`,e,t)}function Nt(e,t){r(`TypeofTypeAnnotation`,e,t)}function Pt(e,t){r(`TypeAlias`,e,t)}function Ft(e,t){r(`TypeAnnotation`,e,t)}function It(e,t){r(`TypeCastExpression`,e,t)}function Lt(e,t){r(`TypeParameter`,e,t)}function Rt(e,t){r(`TypeParameterDeclaration`,e,t)}function zt(e,t){r(`TypeParameterInstantiation`,e,t)}function Q(e,t){r(`UnionTypeAnnotation`,e,t)}function Bt(e,t){r(`Variance`,e,t)}function Vt(e,t){r(`VoidTypeAnnotation`,e,t)}function Ht(e,t){r(`EnumDeclaration`,e,t)}function Ut(e,t){r(`EnumBooleanBody`,e,t)}function Wt(e,t){r(`EnumNumberBody`,e,t)}function Gt(e,t){r(`EnumStringBody`,e,t)}function Kt(e,t){r(`EnumSymbolBody`,e,t)}function qt(e,t){r(`EnumBooleanMember`,e,t)}function $(e,t){r(`EnumNumberMember`,e,t)}function Jt(e,t){r(`EnumStringMember`,e,t)}function Yt(e,t){r(`EnumDefaultedMember`,e,t)}function Xt(e,t){r(`IndexedAccessType`,e,t)}function Zt(e,t){r(`OptionalIndexedAccessType`,e,t)}function Qt(e,t){r(`JSXAttribute`,e,t)}function $t(e,t){r(`JSXClosingElement`,e,t)}function en(e,t){r(`JSXElement`,e,t)}function tn(e,t){r(`JSXEmptyExpression`,e,t)}function nn(e,t){r(`JSXExpressionContainer`,e,t)}function rn(e,t){r(`JSXSpreadChild`,e,t)}function an(e,t){r(`JSXIdentifier`,e,t)}function on(e,t){r(`JSXMemberExpression`,e,t)}function sn(e,t){r(`JSXNamespacedName`,e,t)}function cn(e,t){r(`JSXOpeningElement`,e,t)}function ln(e,t){r(`JSXSpreadAttribute`,e,t)}function un(e,t){r(`JSXText`,e,t)}function dn(e,t){r(`JSXFragment`,e,t)}function fn(e,t){r(`JSXOpeningFragment`,e,t)}function pn(e,t){r(`JSXClosingFragment`,e,t)}function mn(e,t){r(`Noop`,e,t)}function hn(e,t){r(`Placeholder`,e,t)}function gn(e,t){r(`V8IntrinsicIdentifier`,e,t)}function _n(e,t){r(`ArgumentPlaceholder`,e,t)}function vn(e,t){r(`BindExpression`,e,t)}function yn(e,t){r(`Decorator`,e,t)}function bn(e,t){r(`DoExpression`,e,t)}function xn(e,t){r(`ExportDefaultSpecifier`,e,t)}function Sn(e,t){r(`RecordExpression`,e,t)}function Cn(e,t){r(`TupleExpression`,e,t)}function wn(e,t){r(`DecimalLiteral`,e,t)}function Tn(e,t){r(`ModuleExpression`,e,t)}function En(e,t){r(`TopicReference`,e,t)}function Dn(e,t){r(`PipelineTopicExpression`,e,t)}function On(e,t){r(`PipelineBareFunction`,e,t)}function kn(e,t){r(`PipelinePrimaryTopicReference`,e,t)}function An(e,t){r(`VoidPattern`,e,t)}function jn(e,t){r(`TSParameterProperty`,e,t)}function Mn(e,t){r(`TSDeclareFunction`,e,t)}function Nn(e,t){r(`TSDeclareMethod`,e,t)}function Pn(e,t){r(`TSQualifiedName`,e,t)}function Fn(e,t){r(`TSCallSignatureDeclaration`,e,t)}function In(e,t){r(`TSConstructSignatureDeclaration`,e,t)}function Ln(e,t){r(`TSPropertySignature`,e,t)}function Rn(e,t){r(`TSMethodSignature`,e,t)}function zn(e,t){r(`TSIndexSignature`,e,t)}function Bn(e,t){r(`TSAnyKeyword`,e,t)}function Vn(e,t){r(`TSBooleanKeyword`,e,t)}function Hn(e,t){r(`TSBigIntKeyword`,e,t)}function Un(e,t){r(`TSIntrinsicKeyword`,e,t)}function Wn(e,t){r(`TSNeverKeyword`,e,t)}function Gn(e,t){r(`TSNullKeyword`,e,t)}function Kn(e,t){r(`TSNumberKeyword`,e,t)}function qn(e,t){r(`TSObjectKeyword`,e,t)}function Jn(e,t){r(`TSStringKeyword`,e,t)}function Yn(e,t){r(`TSSymbolKeyword`,e,t)}function Xn(e,t){r(`TSUndefinedKeyword`,e,t)}function Zn(e,t){r(`TSUnknownKeyword`,e,t)}function Qn(e,t){r(`TSVoidKeyword`,e,t)}function $n(e,t){r(`TSThisType`,e,t)}function er(e,t){r(`TSFunctionType`,e,t)}function tr(e,t){r(`TSConstructorType`,e,t)}function nr(e,t){r(`TSTypeReference`,e,t)}function rr(e,t){r(`TSTypePredicate`,e,t)}function ir(e,t){r(`TSTypeQuery`,e,t)}function ar(e,t){r(`TSTypeLiteral`,e,t)}function or(e,t){r(`TSArrayType`,e,t)}function sr(e,t){r(`TSTupleType`,e,t)}function cr(e,t){r(`TSOptionalType`,e,t)}function lr(e,t){r(`TSRestType`,e,t)}function ur(e,t){r(`TSNamedTupleMember`,e,t)}function dr(e,t){r(`TSUnionType`,e,t)}function fr(e,t){r(`TSIntersectionType`,e,t)}function pr(e,t){r(`TSConditionalType`,e,t)}function mr(e,t){r(`TSInferType`,e,t)}function hr(e,t){r(`TSParenthesizedType`,e,t)}function gr(e,t){r(`TSTypeOperator`,e,t)}function _r(e,t){r(`TSIndexedAccessType`,e,t)}function vr(e,t){r(`TSMappedType`,e,t)}function yr(e,t){r(`TSTemplateLiteralType`,e,t)}function br(e,t){r(`TSLiteralType`,e,t)}function xr(e,t){r(`TSExpressionWithTypeArguments`,e,t)}function Sr(e,t){r(`TSInterfaceDeclaration`,e,t)}function Cr(e,t){r(`TSInterfaceBody`,e,t)}function wr(e,t){r(`TSTypeAliasDeclaration`,e,t)}function Tr(e,t){r(`TSInstantiationExpression`,e,t)}function Er(e,t){r(`TSAsExpression`,e,t)}function Dr(e,t){r(`TSSatisfiesExpression`,e,t)}function Or(e,t){r(`TSTypeAssertion`,e,t)}function kr(e,t){r(`TSEnumBody`,e,t)}function Ar(e,t){r(`TSEnumDeclaration`,e,t)}function jr(e,t){r(`TSEnumMember`,e,t)}function Mr(e,t){r(`TSModuleDeclaration`,e,t)}function Nr(e,t){r(`TSModuleBlock`,e,t)}function Pr(e,t){r(`TSImportType`,e,t)}function Fr(e,t){r(`TSImportEqualsDeclaration`,e,t)}function Ir(e,t){r(`TSExternalModuleReference`,e,t)}function Lr(e,t){r(`TSNonNullExpression`,e,t)}function Rr(e,t){r(`TSExportAssignment`,e,t)}function zr(e,t){r(`TSNamespaceExportDeclaration`,e,t)}function Br(e,t){r(`TSTypeAnnotation`,e,t)}function Vr(e,t){r(`TSTypeParameterInstantiation`,e,t)}function Hr(e,t){r(`TSTypeParameterDeclaration`,e,t)}function Ur(e,t){r(`TSTypeParameter`,e,t)}function Wr(e,t){r(`Standardized`,e,t)}function Gr(e,t){r(`Expression`,e,t)}function Kr(e,t){r(`Binary`,e,t)}function qr(e,t){r(`Scopable`,e,t)}function Jr(e,t){r(`BlockParent`,e,t)}function Yr(e,t){r(`Block`,e,t)}function Xr(e,t){r(`Statement`,e,t)}function Zr(e,t){r(`Terminatorless`,e,t)}function Qr(e,t){r(`CompletionStatement`,e,t)}function $r(e,t){r(`Conditional`,e,t)}function ei(e,t){r(`Loop`,e,t)}function ti(e,t){r(`While`,e,t)}function ni(e,t){r(`ExpressionWrapper`,e,t)}function ri(e,t){r(`For`,e,t)}function ii(e,t){r(`ForXStatement`,e,t)}function ai(e,t){r(`Function`,e,t)}function oi(e,t){r(`FunctionParent`,e,t)}function si(e,t){r(`Pureish`,e,t)}function ci(e,t){r(`Declaration`,e,t)}function li(e,t){r(`FunctionParameter`,e,t)}function ui(e,t){r(`PatternLike`,e,t)}function di(e,t){r(`LVal`,e,t)}function fi(e,t){r(`TSEntityName`,e,t)}function pi(e,t){r(`Literal`,e,t)}function mi(e,t){r(`Immutable`,e,t)}function hi(e,t){r(`UserWhitespacable`,e,t)}function gi(e,t){r(`Method`,e,t)}function _i(e,t){r(`ObjectMember`,e,t)}function vi(e,t){r(`Property`,e,t)}function yi(e,t){r(`UnaryLike`,e,t)}function bi(e,t){r(`Pattern`,e,t)}function xi(e,t){r(`Class`,e,t)}function Si(e,t){r(`ImportOrExportDeclaration`,e,t)}function Ci(e,t){r(`ExportDeclaration`,e,t)}function wi(e,t){r(`ModuleSpecifier`,e,t)}function Ti(e,t){r(`Accessor`,e,t)}function Ei(e,t){r(`Private`,e,t)}function Di(e,t){r(`Flow`,e,t)}function Oi(e,t){r(`FlowType`,e,t)}function ki(e,t){r(`FlowBaseAnnotation`,e,t)}function Ai(e,t){r(`FlowDeclaration`,e,t)}function ji(e,t){r(`FlowPredicate`,e,t)}function Mi(e,t){r(`EnumBody`,e,t)}function Ni(e,t){r(`EnumMember`,e,t)}function Pi(e,t){r(`JSX`,e,t)}function Fi(e,t){r(`Miscellaneous`,e,t)}function Ii(e,t){r(`TypeScript`,e,t)}function Li(e,t){r(`TSTypeElement`,e,t)}function Ri(e,t){r(`TSType`,e,t)}function zi(e,t){r(`TSBaseType`,e,t)}function Bi(e,t){(0,n.default)(`assertNumberLiteral`,`assertNumericLiteral`),r(`NumberLiteral`,e,t)}function Vi(e,t){(0,n.default)(`assertRegexLiteral`,`assertRegExpLiteral`),r(`RegexLiteral`,e,t)}function Hi(e,t){(0,n.default)(`assertRestProperty`,`assertRestElement`),r(`RestProperty`,e,t)}function Ui(e,t){(0,n.default)(`assertSpreadProperty`,`assertSpreadElement`),r(`SpreadProperty`,e,t)}function Wi(e,t){(0,n.default)(`assertModuleDeclaration`,`assertImportOrExportDeclaration`),r(`ModuleDeclaration`,e,t)}})),we=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=L();e.default=n;function n(e){switch(e){case`string`:return(0,t.stringTypeAnnotation)();case`number`:return(0,t.numberTypeAnnotation)();case`undefined`:return(0,t.voidTypeAnnotation)();case`boolean`:return(0,t.booleanTypeAnnotation)();case`function`:return(0,t.genericTypeAnnotation)((0,t.identifier)(`Function`));case`object`:return(0,t.genericTypeAnnotation)((0,t.identifier)(`Object`));case`symbol`:return(0,t.genericTypeAnnotation)((0,t.identifier)(`Symbol`));case`bigint`:return(0,t.anyTypeAnnotation)()}throw Error(`Invalid typeof value: `+e)}})),Te=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T();function n(e){return(0,t.isIdentifier)(e)?e.name:`${e.id.name}.${n(e.qualification)}`}function r(e){let i=Array.from(e),a=new Map,o=new Map,s=new Set,c=[];for(let e=0;e<i.length;e++){let l=i[e];if(l&&!c.includes(l)){if((0,t.isAnyTypeAnnotation)(l))return[l];if((0,t.isFlowBaseAnnotation)(l))o.set(l.type,l);else if((0,t.isUnionTypeAnnotation)(l))s.has(l.types)||(i.push(...l.types),s.add(l.types));else if((0,t.isGenericTypeAnnotation)(l)){let e=n(l.id);if(a.has(e)){let t=a.get(e);t.typeParameters?l.typeParameters&&(t.typeParameters.params.push(...l.typeParameters.params),t.typeParameters.params=r(t.typeParameters.params)):t=l.typeParameters}else a.set(e,l)}else c.push(l)}}for(let[,e]of o)c.push(e);for(let[,e]of a)c.push(e);return c}})),z=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=L(),n=Te();function r(e){let r=(0,n.default)(e);return r.length===1?r[0]:(0,t.unionTypeAnnotation)(r)}})),Ee=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T();function n(e){return(0,t.isIdentifier)(e)?e.name:(0,t.isThisExpression)(e)?`this`:`${e.right.name}.${n(e.left)}`}function r(e){let i=Array.from(e),a=new Map,o=new Map,s=new Set,c=[];for(let e=0;e<i.length;e++){let l=i[e];if(!l||c.includes(l))continue;if((0,t.isTSAnyKeyword)(l))return[l];if((0,t.isTSBaseType)(l)){o.set(l.type,l);continue}if((0,t.isTSUnionType)(l)){s.has(l.types)||(i.push(...l.types),s.add(l.types));continue}let u=`typeParameters`;if((0,t.isTSTypeReference)(l)&&l[u]){let e=l[u],t=n(l.typeName);if(a.has(t)){let n=a.get(t),i=n[u];i?(i.params.push(...e.params),i.params=r(i.params)):n=e}else a.set(t,l)}else c.push(l)}for(let[,e]of o)c.push(e);for(let[,e]of a)c.push(e);return c}})),De=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=L(),n=Ee(),r=T();function i(e){let i=e.map(e=>(0,r.isTSTypeAnnotation)(e)?e.typeAnnotation:e),a=(0,n.default)(i);return a.length===1?a[0]:(0,t.tsUnionType)(a)}})),Oe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildUndefinedNode=n;var t=L();function n(){return(0,t.unaryExpression)(`void`,(0,t.numericLiteral)(0),!0)}})),B=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=I(),n=T(),{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function i(e,t,n,r){return e&&typeof e.type==`string`?s(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map(e=>i(e,t,n,r)):i(e,t,n,r)}function o(e,t=!0,n=!1){return s(e,t,n,new Map)}function s(e,i=!0,o=!1,s){if(!e)return e;let{type:l}=e,u={type:e.type};if((0,n.isIdentifier)(e))u.name=e.name,r(e,`optional`)&&typeof e.optional==`boolean`&&(u.optional=e.optional),r(e,`typeAnnotation`)&&(u.typeAnnotation=i?a(e.typeAnnotation,!0,o,s):e.typeAnnotation),r(e,`decorators`)&&(u.decorators=i?a(e.decorators,!0,o,s):e.decorators);else if(r(t.NODE_FIELDS,l))for(let d of Object.keys(t.NODE_FIELDS[l]))r(e,d)&&(u[d]=i?(0,n.isFile)(e)&&d===`comments`?c(e.comments,i,o,s):a(e[d],!0,o,s):e[d]);else throw Error(`Unknown node type: "${l}"`);return r(e,`loc`)&&(u.loc=o?null:e.loc),r(e,`leadingComments`)&&(u.leadingComments=c(e.leadingComments,i,o,s)),r(e,`innerComments`)&&(u.innerComments=c(e.innerComments,i,o,s)),r(e,`trailingComments`)&&(u.trailingComments=c(e.trailingComments,i,o,s)),r(e,`extra`)&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,n,r){return!e||!t?e:e.map(e=>{let t=r.get(e);if(t)return t;let{type:i,value:a,loc:o}=e,s={type:i,value:a,loc:o};return n&&(s.loc=null),r.set(e,s),s})}})),ke=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=B();function n(e){return(0,t.default)(e,!1)}})),Ae=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=B();function n(e){return(0,t.default)(e)}})),je=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=B();function n(e){return(0,t.default)(e,!0,!0)}})),V=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=B();function n(e){return(0,t.default)(e,!1,!0)}})),H=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t,n){if(!n||!e)return e;let r=`${t}Comments`;return e[r]?t===`leading`?e[r]=n.concat(e[r]):e[r].push(...n):e[r]=n,e}})),Me=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=H();function n(e,n,r,i){return(0,t.default)(e,n,[{type:i?`CommentLine`:`CommentBlock`,value:r}])}})),Ne=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t,n){t&&n&&(t[e]=Array.from(new Set([].concat(t[e],n[e]).filter(Boolean))))}})),Pe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=Ne();function n(e,n){(0,t.default)(`innerComments`,e,n)}})),Fe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=Ne();function n(e,n){(0,t.default)(`leadingComments`,e,n)}})),Ie=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=Ne();function n(e,n){(0,t.default)(`trailingComments`,e,n)}})),Le=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=Ie(),n=Fe(),r=Pe();function i(e,i){return(0,t.default)(e,i),(0,n.default)(e,i),(0,r.default)(e,i),e}})),Re=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=j();function n(e){return t.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}})),ze=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WHILE_TYPES=e.USERWHITESPACABLE_TYPES=e.UNARYLIKE_TYPES=e.TYPESCRIPT_TYPES=e.TSTYPE_TYPES=e.TSTYPEELEMENT_TYPES=e.TSENTITYNAME_TYPES=e.TSBASETYPE_TYPES=e.TERMINATORLESS_TYPES=e.STATEMENT_TYPES=e.STANDARDIZED_TYPES=e.SCOPABLE_TYPES=e.PUREISH_TYPES=e.PROPERTY_TYPES=e.PRIVATE_TYPES=e.PATTERN_TYPES=e.PATTERNLIKE_TYPES=e.OBJECTMEMBER_TYPES=e.MODULESPECIFIER_TYPES=e.MODULEDECLARATION_TYPES=e.MISCELLANEOUS_TYPES=e.METHOD_TYPES=e.LVAL_TYPES=e.LOOP_TYPES=e.LITERAL_TYPES=e.JSX_TYPES=e.IMPORTOREXPORTDECLARATION_TYPES=e.IMMUTABLE_TYPES=e.FUNCTION_TYPES=e.FUNCTIONPARENT_TYPES=e.FUNCTIONPARAMETER_TYPES=e.FOR_TYPES=e.FORXSTATEMENT_TYPES=e.FLOW_TYPES=e.FLOWTYPE_TYPES=e.FLOWPREDICATE_TYPES=e.FLOWDECLARATION_TYPES=e.FLOWBASEANNOTATION_TYPES=e.EXPRESSION_TYPES=e.EXPRESSIONWRAPPER_TYPES=e.EXPORTDECLARATION_TYPES=e.ENUMMEMBER_TYPES=e.ENUMBODY_TYPES=e.DECLARATION_TYPES=e.CONDITIONAL_TYPES=e.COMPLETIONSTATEMENT_TYPES=e.CLASS_TYPES=e.BLOCK_TYPES=e.BLOCKPARENT_TYPES=e.BINARY_TYPES=e.ACCESSOR_TYPES=void 0;var t=I();e.STANDARDIZED_TYPES=t.FLIPPED_ALIAS_KEYS.Standardized,e.EXPRESSION_TYPES=t.FLIPPED_ALIAS_KEYS.Expression,e.BINARY_TYPES=t.FLIPPED_ALIAS_KEYS.Binary,e.SCOPABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Scopable,e.BLOCKPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.BlockParent,e.BLOCK_TYPES=t.FLIPPED_ALIAS_KEYS.Block,e.STATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.Statement,e.TERMINATORLESS_TYPES=t.FLIPPED_ALIAS_KEYS.Terminatorless,e.COMPLETIONSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.CompletionStatement,e.CONDITIONAL_TYPES=t.FLIPPED_ALIAS_KEYS.Conditional,e.LOOP_TYPES=t.FLIPPED_ALIAS_KEYS.Loop,e.WHILE_TYPES=t.FLIPPED_ALIAS_KEYS.While,e.EXPRESSIONWRAPPER_TYPES=t.FLIPPED_ALIAS_KEYS.ExpressionWrapper,e.FOR_TYPES=t.FLIPPED_ALIAS_KEYS.For,e.FORXSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.ForXStatement,e.FUNCTION_TYPES=t.FLIPPED_ALIAS_KEYS.Function,e.FUNCTIONPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParent,e.PUREISH_TYPES=t.FLIPPED_ALIAS_KEYS.Pureish,e.DECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.Declaration,e.FUNCTIONPARAMETER_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParameter,e.PATTERNLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.PatternLike,e.LVAL_TYPES=t.FLIPPED_ALIAS_KEYS.LVal,e.TSENTITYNAME_TYPES=t.FLIPPED_ALIAS_KEYS.TSEntityName,e.LITERAL_TYPES=t.FLIPPED_ALIAS_KEYS.Literal,e.IMMUTABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Immutable,e.USERWHITESPACABLE_TYPES=t.FLIPPED_ALIAS_KEYS.UserWhitespacable,e.METHOD_TYPES=t.FLIPPED_ALIAS_KEYS.Method,e.OBJECTMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.ObjectMember,e.PROPERTY_TYPES=t.FLIPPED_ALIAS_KEYS.Property,e.UNARYLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.UnaryLike,e.PATTERN_TYPES=t.FLIPPED_ALIAS_KEYS.Pattern,e.CLASS_TYPES=t.FLIPPED_ALIAS_KEYS.Class;var n=e.IMPORTOREXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;e.EXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ExportDeclaration,e.MODULESPECIFIER_TYPES=t.FLIPPED_ALIAS_KEYS.ModuleSpecifier,e.ACCESSOR_TYPES=t.FLIPPED_ALIAS_KEYS.Accessor,e.PRIVATE_TYPES=t.FLIPPED_ALIAS_KEYS.Private,e.FLOW_TYPES=t.FLIPPED_ALIAS_KEYS.Flow,e.FLOWTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowType,e.FLOWBASEANNOTATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,e.FLOWDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowDeclaration,e.FLOWPREDICATE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowPredicate,e.ENUMBODY_TYPES=t.FLIPPED_ALIAS_KEYS.EnumBody,e.ENUMMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.EnumMember,e.JSX_TYPES=t.FLIPPED_ALIAS_KEYS.JSX,e.MISCELLANEOUS_TYPES=t.FLIPPED_ALIAS_KEYS.Miscellaneous,e.TYPESCRIPT_TYPES=t.FLIPPED_ALIAS_KEYS.TypeScript,e.TSTYPEELEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.TSTypeElement,e.TSTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSType,e.TSBASETYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSBaseType,e.MODULEDECLARATION_TYPES=n})),Be=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=L();function r(e,r){if((0,t.isBlockStatement)(e))return e;let i=[];return(0,t.isEmptyStatement)(e)?i=[]:((0,t.isStatement)(e)||(e=(0,t.isFunction)(r)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),i=[e]),(0,n.blockStatement)(i)}})),Ve=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=Be();function n(e,n=`body`){let r=(0,t.default)(e[n],e);return e[n]=r,r}})),He=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=A(),n=ue();function r(e){e+=``;let r=``;for(let t of e)r+=(0,n.isIdentifierChar)(t.codePointAt(0))?t:`-`;return r=r.replace(/^[-0-9]+/,``),r=r.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():``}),(0,t.default)(r)||(r=`_${r}`),r||`_`}})),Ue=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=He();function n(e){return e=(0,t.default)(e),(e===`eval`||e===`arguments`)&&(e=`_`+e),e}})),We=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=L();function r(e,r=e.key||e.property){return!e.computed&&(0,t.isIdentifier)(r)&&(r=(0,n.stringLiteral)(r.name)),r}})),Ge=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=T();e.default=n;function n(e){if((0,t.isExpressionStatement)(e)&&(e=e.expression),(0,t.isExpression)(e))return e;if((0,t.isClass)(e)?(e.type=`ClassExpression`,e.abstract=!1):(0,t.isFunction)(e)&&(e.type=`FunctionExpression`),!(0,t.isExpression)(e))throw Error(`cannot turn ${e.type} to an expression`);return e}})),Ke=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=I(),n=Symbol(),r=Symbol();function i(e,a,o){if(!e)return!1;let s=t.VISITOR_KEYS[e.type];if(!s)return!1;o=o||{};let c=a(e,o);if(c!==void 0)switch(c){case n:return!1;case r:return!0}for(let t of s){let n=e[t];if(n){if(Array.isArray(n)){for(let e of n)if(i(e,a,o))return!0}else if(i(n,a,o))return!0}}return!1}i.skip=n,i.stop=r})),qe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=j(),n=[`tokens`,`start`,`end`,`loc`,`raw`,`rawValue`],r=[...t.COMMENT_KEYS,`comments`,...n];function i(e,t={}){let i=t.preserveComments?n:r;for(let t of i)e[t]!=null&&(e[t]=void 0);for(let t of Object.keys(e))t[0]===`_`&&e[t]!=null&&(e[t]=void 0);let a=Object.getOwnPropertySymbols(e);for(let t of a)e[t]=null}})),Je=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=Ke(),n=qe();function r(e,r){return(0,t.default)(e,n.default,r),e}})),Ye=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=T(),n=B(),r=Je();function i(e,a=e.key){let o;return e.kind===`method`?i.increment()+``:(o=(0,t.isIdentifier)(a)?a.name:(0,t.isStringLiteral)(a)?JSON.stringify(a.value):JSON.stringify((0,r.default)((0,n.default)(a))),e.computed&&(o=`[${o}]`),e.static&&(o=`static:${o}`),o)}i.uid=0,i.increment=function(){return i.uid>=2**53-1?i.uid=0:i.uid++}})),Xe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=T(),n=L();e.default=r;function r(e,r){if((0,t.isStatement)(e))return e;let i=!1,a;if((0,t.isClass)(e))i=!0,a=`ClassDeclaration`;else if((0,t.isFunction)(e))i=!0,a=`FunctionDeclaration`;else if((0,t.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);if(i&&!e.id&&(a=!1),!a){if(r)return!1;throw Error(`cannot turn ${e.type} to a statement`)}return e.type=a,e}})),Ze=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=A(),n=L();e.default=o;var r=Function.call.bind(Object.prototype.toString);function i(e){return r(e)===`[object RegExp]`}function a(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function o(e){if(e===void 0)return(0,n.identifier)(`undefined`);if(e===!0||e===!1)return(0,n.booleanLiteral)(e);if(e===null)return(0,n.nullLiteral)();if(typeof e==`string`)return(0,n.stringLiteral)(e);if(typeof e==`number`){let t;if(Number.isFinite(e))t=(0,n.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,n.numericLiteral)(0):(0,n.numericLiteral)(1),t=(0,n.binaryExpression)(`/`,r,(0,n.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,n.unaryExpression)(`-`,t)),t}if(typeof e==`bigint`)return e<0?(0,n.unaryExpression)(`-`,(0,n.bigIntLiteral)(-e)):(0,n.bigIntLiteral)(e);if(i(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,n.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,n.arrayExpression)(e.map(o));if(a(e)){let r=[];for(let i of Object.keys(e)){let a,s=!1;(0,t.default)(i)?i===`__proto__`?(s=!0,a=(0,n.stringLiteral)(i)):a=(0,n.identifier)(i):a=(0,n.stringLiteral)(i),r.push((0,n.objectProperty)(a,o(e[i]),s))}return(0,n.objectExpression)(r)}throw Error(`don't know how to turn this value into a node`)}})),U=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=L();function n(e,n,r=!1){return e.object=(0,t.memberExpression)(e.object,e.property,e.computed),e.property=n,e.computed=!!r,e}})),Qe=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=j(),n=Le();function r(e,r){if(!e||!r)return e;for(let n of t.INHERIT_KEYS.optional)e[n]??(e[n]=r[n]);for(let t of Object.keys(r))t[0]===`_`&&t!==`__clone`&&(e[t]=r[t]);for(let n of t.INHERIT_KEYS.force)e[n]=r[n];return(0,n.default)(e,r),e}})),$e=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=L(),n=K();function r(e,r){if((0,n.isSuper)(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,t.memberExpression)(r,e.object),e}})),W=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){let t=[].concat(e),n=Object.create(null);for(;t.length;){let e=t.pop();if(e)switch(e.type){case`ArrayPattern`:t.push(...e.elements);break;case`AssignmentExpression`:case`AssignmentPattern`:case`ForInStatement`:case`ForOfStatement`:t.push(e.left);break;case`ObjectPattern`:t.push(...e.properties);break;case`ObjectProperty`:t.push(e.value);break;case`RestElement`:case`UpdateExpression`:t.push(e.argument);break;case`UnaryExpression`:e.operator===`delete`&&t.push(e.argument);break;case`Identifier`:n[e.name]=e}}return n}})),et=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=T();function n(e,r,i,a){let o=[].concat(e),s=Object.create(null);for(;o.length;){let e=o.shift();if(!e||a&&((0,t.isAssignmentExpression)(e)||(0,t.isUnaryExpression)(e)||(0,t.isUpdateExpression)(e)))continue;if((0,t.isIdentifier)(e)){r?(s[e.name]=s[e.name]||[]).push(e):s[e.name]=e;continue}if((0,t.isExportDeclaration)(e)&&!(0,t.isExportAllDeclaration)(e)){(0,t.isDeclaration)(e.declaration)&&o.push(e.declaration);continue}if(i){if((0,t.isFunctionDeclaration)(e)){o.push(e.id);continue}if((0,t.isFunctionExpression)(e))continue}let c=n.keys[e.type];if(c)for(let t=0;t<c.length;t++){let n=e[c[t]];n&&(Array.isArray(n)?o.push(...n):o.push(n))}}return s}n.keys={DeclareClass:[`id`],DeclareFunction:[`id`],DeclareModule:[`id`],DeclareVariable:[`id`],DeclareInterface:[`id`],DeclareTypeAlias:[`id`],DeclareOpaqueType:[`id`],InterfaceDeclaration:[`id`],TypeAlias:[`id`],OpaqueType:[`id`],CatchClause:[`param`],LabeledStatement:[`label`],UnaryExpression:[`argument`],AssignmentExpression:[`left`],ImportSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportDefaultSpecifier:[`local`],ImportDeclaration:[`specifiers`],TSImportEqualsDeclaration:[`id`],ExportSpecifier:[`exported`],ExportNamespaceSpecifier:[`exported`],ExportDefaultSpecifier:[`exported`],FunctionDeclaration:[`id`,`params`],FunctionExpression:[`id`,`params`],ArrowFunctionExpression:[`params`],ObjectMethod:[`params`],ClassMethod:[`params`],ClassPrivateMethod:[`params`],ForInStatement:[`left`],ForOfStatement:[`left`],ClassDeclaration:[`id`],ClassExpression:[`id`],RestElement:[`argument`],UpdateExpression:[`argument`],ObjectProperty:[`value`],AssignmentPattern:[`left`],ArrayPattern:[`elements`],ObjectPattern:[`properties`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`]}})),tt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=et();e.default=n;function n(e,n){return(0,t.default)(e,n,!0)}})),nt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=T();function n(e){return(0,t.isNullLiteral)(e)?`null`:(0,t.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,t.isTemplateLiteral)(e)?e.quasis.map(e=>e.value.raw).join(``):e.value===void 0?null:String(e.value)}function r(e){if(!e.computed||(0,t.isLiteral)(e.key))return e.key}function i(e,i){if(`id`in e&&e.id)return{name:e.id.name,originalNode:e.id};let a=``,o;if((0,t.isObjectProperty)(i,{value:e})?o=r(i):(0,t.isObjectMethod)(e)||(0,t.isClassMethod)(e)?(o=r(e),e.kind===`get`?a=`get `:e.kind===`set`&&(a=`set `)):(0,t.isVariableDeclarator)(i,{init:e})?o=i.id:(0,t.isAssignmentExpression)(i,{operator:`=`,right:e})&&(o=i.left),!o)return null;let s=(0,t.isLiteral)(o)?n(o):(0,t.isIdentifier)(o)?o.name:(0,t.isPrivateName)(o)?o.id.name:null;return s==null?null:{name:a+s,originalNode:o}}})),rt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=I();function n(e,t,n){typeof t==`function`&&(t={enter:t});let{enter:i,exit:a}=t;r(e,i,a,n,[])}function r(e,n,i,a,o){let s=t.VISITOR_KEYS[e.type];if(s){n&&n(e,o,a);for(let t of s){let s=e[t];if(Array.isArray(s))for(let c=0;c<s.length;c++){let l=s[c];l&&(o.push({node:e,key:t,index:c}),r(l,n,i,a,o),o.pop())}else s&&(o.push({node:e,key:t}),r(s,n,i,a,o),o.pop())}i&&i(e,o,a)}}})),it=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=et();function n(e,n,r){if(r&&e.type===`Identifier`&&n.type===`ObjectProperty`&&r.type===`ObjectExpression`)return!1;let i=t.default.keys[n.type];if(i)for(let t=0;t<i.length;t++){let r=n[i[t]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1}})),at=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=Symbol.for(`var used to be block scoped`);function r(e){return(0,t.isVariableDeclaration)(e)&&(e.kind!==`var`||e[n])}})),ot=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=at();function r(e){return(0,t.isFunctionDeclaration)(e)||(0,t.isClassDeclaration)(e)||(0,n.default)(e)}})),st=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=D(),n=T();function r(e){return(0,t.default)(e.type,`Immutable`)?!0:(0,n.isIdentifier)(e)?e.name===`undefined`:!1}})),ct=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=I();function n(e,r){if(typeof e!=`object`||typeof r!=`object`||e==null||r==null)return e===r;if(e.type!==r.type)return!1;let i=Object.keys(t.NODE_FIELDS[e.type]||e.type),a=t.VISITOR_KEYS[e.type];for(let t of i){let i=e[t],o=r[t];if(typeof i!=typeof o)return!1;if(i!=null||o!=null){if(i==null||o==null)return!1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(let e=0;e<i.length;e++)if(!n(i[e],o[e]))return!1}else if(typeof i==`object`&&!(a!=null&&a.includes(t))){for(let e of Object.keys(i))if(i[e]!==o[e])return!1}else if(!n(i,o))return!1}}return!0}})),lt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t,n){switch(t.type){case`MemberExpression`:case`OptionalMemberExpression`:return t.property===e?!!t.computed:t.object===e;case`JSXMemberExpression`:return t.object===e;case`VariableDeclarator`:return t.init===e;case`ArrowFunctionExpression`:return t.body===e;case`PrivateName`:return!1;case`ClassMethod`:case`ClassPrivateMethod`:case`ObjectMethod`:return t.key===e&&!!t.computed;case`ObjectProperty`:return t.key===e?!!t.computed:!n||n.type!==`ObjectPattern`;case`ClassProperty`:case`ClassAccessorProperty`:return t.key!==e||!!t.computed;case`ClassPrivateProperty`:return t.key!==e;case`ClassDeclaration`:case`ClassExpression`:return t.superClass===e;case`AssignmentExpression`:return t.right===e;case`AssignmentPattern`:return t.right===e;case`LabeledStatement`:return!1;case`CatchClause`:return!1;case`RestElement`:return!1;case`BreakStatement`:case`ContinueStatement`:return!1;case`FunctionDeclaration`:case`FunctionExpression`:return!1;case`ExportNamespaceSpecifier`:case`ExportDefaultSpecifier`:return!1;case`ExportSpecifier`:return n!=null&&n.source?!1:t.local===e;case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`ImportSpecifier`:return!1;case`ImportAttribute`:return!1;case`JSXAttribute`:return!1;case`ObjectPattern`:case`ArrayPattern`:return!1;case`MetaProperty`:return!1;case`ObjectTypeProperty`:return t.key!==e;case`TSEnumMember`:return t.id!==e;case`TSPropertySignature`:return t.key!==e||!!t.computed}return!0}})),ut=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=T();function n(e,n){return(0,t.isBlockStatement)(e)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!1:(0,t.isPattern)(e)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!0:(0,t.isScopable)(e)}})),dt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=T();function n(e){return(0,t.isImportDefaultSpecifier)(e)||(0,t.isIdentifier)(e.imported||e.exported,{name:`default`})}})),ft=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=A(),n=new Set([`abstract`,`boolean`,`byte`,`char`,`double`,`enum`,`final`,`float`,`goto`,`implements`,`int`,`interface`,`long`,`native`,`package`,`private`,`protected`,`public`,`short`,`static`,`synchronized`,`throws`,`transient`,`volatile`]);function r(e){return(0,t.default)(e)&&!n.has(e)}})),pt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=T(),n=Symbol.for(`var used to be block scoped`);function r(e){return(0,t.isVariableDeclaration)(e,{kind:`var`})&&!e[n]}})),G=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=et(),n=T(),r=L(),i=Oe(),a=B();function o(e,s){let c=[],l=!0;for(let u of e)if((0,n.isEmptyStatement)(u)||(l=!1),(0,n.isExpression)(u))c.push(u);else if((0,n.isExpressionStatement)(u))c.push(u.expression);else if((0,n.isVariableDeclaration)(u)){if(u.kind!==`var`)return;for(let e of u.declarations){let n=(0,t.default)(e);for(let e of Object.keys(n))s.push({kind:u.kind,id:(0,a.default)(n[e])});e.init&&c.push((0,r.assignmentExpression)(`=`,e.id,e.init))}l=!0}else if((0,n.isIfStatement)(u)){let e=u.consequent?o([u.consequent],s):(0,i.buildUndefinedNode)(),t=u.alternate?o([u.alternate],s):(0,i.buildUndefinedNode)();if(!e||!t)return;c.push((0,r.conditionalExpression)(u.test,e,t))}else if((0,n.isBlockStatement)(u)){let e=o(u.body,s);if(!e)return;c.push(e)}else if((0,n.isEmptyStatement)(u))e.indexOf(u)===0&&(l=!0);else return;return l&&c.push((0,i.buildUndefinedNode)()),c.length===1?c[0]:(0,r.sequenceExpression)(c)}})),mt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=G();function n(e,n){if(!(e!=null&&e.length))return;let r=[],i=(0,t.default)(e,r);if(i){for(let e of r)n.push(e);return i}}})),K=e((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return jt.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return vt.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return yt.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return bt.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return St.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return Ct.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return wt.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return Tt.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return Et.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return Dt.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return Ot.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return me.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return P.default}});var n=se(),r=E(),i=xe(),a=R(),o=Ce();Object.keys(o).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===o[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return o[n]}}))});var s=we(),c=z(),l=De(),u=Oe();Object.keys(u).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===u[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return u[n]}}))});var d=L();Object.keys(d).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===d[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return d[n]}}))});var f=B(),p=ke(),m=Ae(),h=je(),g=V(),_=Me(),ee=H(),te=Pe(),ne=Fe(),re=Le(),v=Ie(),y=Re(),b=ze();Object.keys(b).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===b[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return b[n]}}))});var x=j();Object.keys(x).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===x[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return x[n]}}))});var S=Ve(),C=Ue(),ce=Be(),le=We(),ue=Ge(),de=He(),M=Ye(),N=Xe(),P=Ze(),fe=I();Object.keys(fe).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===fe[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return fe[n]}}))});var F=U(),pe=Qe(),me=$e(),he=qe(),ge=Je(),ve=Te(),ye=W(),be=et(),Ee=tt(),Ne=nt(),G=rt();Object.keys(G).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===G[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return G[n]}}))});var K=Ke(),ht=ie(),gt=k(),_t=it(),vt=ot(),yt=st(),bt=at(),xt=Se(),St=ct(),Ct=O(),wt=lt(),Tt=ut(),q=dt(),Et=D(),J=ft(),Y=A(),Dt=pt(),Ot=ae(),X=_e(),kt=oe(),At=T();Object.keys(At).forEach(function(n){n!=="default"&&n!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===At[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return At[n]}}))});var jt=w(),Z=mt();e.react={isReactComponent:n.default,isCompatTag:r.default,buildChildren:i.default},e.toSequenceExpression=Z.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn(`BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!`)})),ht=C(),gt=K(),_t=(e,t,n=`lithent`)=>{let r=new Set,i=new Set,a=new Map,o=new Set;for(let t of e.program.body){if(t.type===`ExportDefaultDeclaration`){let e=t.declaration;e.type===`Identifier`&&o.add(e.name),e.type===`FunctionDeclaration`&&e.id&&o.add(e.id.name)}if(t.type===`ImportDeclaration`&&t.importKind!==`type`)for(let e of t.specifiers){if(e.type===`ImportNamespaceSpecifier`){a.set(e.local.name,t.source.value);continue}if(e.type!==`ImportSpecifier`||e.importKind===`type`)continue;let o=e.imported.type===`Identifier`?e.imported.name:e.imported.value;t.source.value===n&&((o===`mount`||o===`lmount`)&&r.add(e.local.name),o===`h`&&i.add(e.local.name)),[`${n}/jsx-runtime`,`${n}/jsx-dev-runtime`].includes(t.source.value)&&[`jsx`,`jsxs`,`jsxDEV`].includes(o)&&i.add(e.local.name)}}let s=e=>e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`||e.type===`TSNonNullExpression`?s(e.expression):e,c=(e,t)=>{if(e.type!==`CallExpression`)return!1;let o=e.callee;if(o.type===`Identifier`)return(t?r:i).has(o.name);if(o.type!==`MemberExpression`||o.object.type!==`Identifier`)return!1;let s=a.get(o.object.name),c=!o.computed&&o.property.type===`Identifier`?o.property.name:o.property.type===`StringLiteral`?o.property.value:``;return t?s===n&&[`mount`,`lmount`].includes(c):s===n&&c===`h`||[`${n}/jsx-runtime`,`${n}/jsx-dev-runtime`].includes(s||``)&&[`jsx`,`jsxs`,`jsxDEV`].includes(c)},l=(e,t)=>(gt.VISITOR_KEYS[e.type]??[]).some(n=>{let r=e[n];return Array.isArray(r)?r.some(e=>(e==null?void 0:e.type)&&t(e)):(r==null?void 0:r.type)&&t(r)}),u=e=>e.type===`ArrowFunctionExpression`||e.type===`FunctionExpression`||e.type===`FunctionDeclaration`,d=e=>{if(!u(e))return!1;let t=e;if(t.async||t.generator)return!1;let n=new Map,r=[],i=e=>(u(e)||(e.type===`VariableDeclarator`&&e.id.type===`Identifier`&&e.init&&n.set(e.id.name,e.init),e.type===`ReturnStatement`&&e.argument&&r.push(e.argument),l(e,i)),!1);t.body.type===`BlockStatement`?i(t.body):r.push(t.body);let a=new Set,o=e=>{let r=s(e);if(r.type===`JSXElement`||r.type===`JSXFragment`||r.type===`NullLiteral`||r.type===`BooleanLiteral`&&!r.value||c(r,!1))return!0;if(r.type===`Identifier`){var i;if(r.name===`undefined`||((i=t.params[1])==null?void 0:i.type)===`Identifier`&&r.name===t.params[1].name)return!0;let e=n.get(r.name);if(!e||a.has(r.name))return!1;a.add(r.name);let s=o(e);return a.delete(r.name),s}return u(r)?!1:r.type===`CallExpression`?r.arguments.some(e=>u(e)&&d(e)):r.type===`ConditionalExpression`?o(r.consequent)||o(r.alternate):r.type===`LogicalExpression`?o(r.left)||o(r.right):r.type===`ArrayExpression`?!r.elements.length||r.elements.some(e=>e&&o(e)):!1};return r.some(o)},f=(e,t)=>{let n=s(e);return c(n,!0)?!0:!/^[A-Z]/.test(t)&&t!=="default"&&!o.has(t)?!1:d(n)},p=[],m=(e,t,n,r=!1)=>{f(e,t)&&p.push({componentName:t,declarationEnd:n,start:e.start,end:e.end,declaration:r})};for(let t of e.program.body){let e=t.type===`ExportNamedDeclaration`||t.type===`ExportDefaultDeclaration`?t.declaration:t;if(e){if(e.type===`VariableDeclaration`)for(let n of e.declarations)n.id.type===`Identifier`&&n.init&&m(n.init,n.id.name,t.end);else e.type===`FunctionDeclaration`&&e.id?m(e,e.id.name,t.end,!0):t.type===`ExportDefaultDeclaration`&&m(e,`default`,t.end)}}return p},vt=e=>{let t=new Set;for(let n of e.program.body)if(n.type===`ExportDefaultDeclaration`&&t.add(`default`),n.type===`ExportNamedDeclaration`){let{declaration:e,specifiers:r}=n;if(e){if(e.type===`FunctionDeclaration`&&e.id)t.add(e.id.name);else if(e.type===`VariableDeclaration`&&e.declarations.length)for(let n of e.declarations)n.id.type===`Identifier`&&t.add(n.id.name);else e.type===`ClassDeclaration`&&e.id&&t.add(e.id.name)}r!=null&&r.length&&r.forEach(e=>{e.type===`ExportSpecifier`&&e.exported.type===`Identifier`&&t.add(e.exported.name)})}return Array.from(t)},yt=e=>{let t=new Set([`render`,`mount`,`lmount`,`createApp`,`createRoot`]);for(let n of e.program.body){if(n.type!==`ImportDeclaration`)continue;let e=n.source.value;if(typeof e==`string`){if(e===`lithent`&&n.specifiers.some(e=>{if(e.type===`ImportSpecifier`&&e.imported.type===`Identifier`){let n=e.imported.name;return t.has(n)}return!1}))return!0;if(e.startsWith(`lithent/`)){if(n.importKind===`type`)continue;return!0}}}return!1},bt=(e,t,n,r)=>{var i,a;let o=[`import { getComponentKey as __lithentGetComponentKey, mountCallback as __lithentMountCallback, componentMap as __lithentComponentMap } from '${r}';`],s=!1,c=0,l=((i=e.program.directives.at(-1))==null?void 0:i.end)??((a=e.program.interpreter)==null?void 0:a.end)??0,u=null;for(let t of e.program.body)if(t.type===`ImportDeclaration`)c=t.end??c,u??(u=t.start??null),t.source.value===n&&t.importKind!==`type`&&(s=t.specifiers.some(e=>e.type===`ImportSpecifier`&&e.importKind!==`type`&&e.imported.type===`Identifier`&&e.imported.name===`createBoundary`&&e.local.name===`__lithentCreateBoundary`)||s);else{if(t.type===`ExpressionStatement`&&t.expression.type===`StringLiteral`){let e=t;if(typeof e.directive==`string`){l=e.end??l;continue}}break}s||o.push(`import { createBoundary as __lithentCreateBoundary } from '${n}';`);let d=u??l??0,f=c||l||0,p=``;if(o.length){let e=d>0?t[d-1]:void 0;p+=d>0&&e!==`
|
|
146
|
+
`?`
|
|
147
|
+
`:``,p+=o.join(`
|
|
148
|
+
`),p+=`
|
|
149
|
+
`}return{importInsertionPos:d,blockInsertionPos:f,headerSnippet:p}},xt=(e,t,n)=>{let r=(0,ht.parse)(e,{sourceType:`module`,plugins:[`typescript`,`jsx`],ranges:!0}),i=vt(r),a=i.length>0?i:[`default`],{importInsertionPos:o,blockInsertionPos:s,headerSnippet:c}=bt(r,e,t,n);return{ast:r,targetExports:a,importInsertionPos:o,blockInsertionPos:s,headerSnippet:c}},St=e=>{let{code:t,markerRegex:n,boundaryImportSpecifier:r,tagFunctionImportSpecifier:i}=e,{ast:a,targetExports:o,importInsertionPos:s,blockInsertionPos:c,headerSnippet:l}=xt(t,r,i),u=n.exec(t),d=u!=null&&u[1]?u[1].split(`,`).map(e=>e.trim()).filter(Boolean):[];return{targetExports:d.length?d:o,shouldTransform:!!u||yt(a)||_t(a,t,i).length>0,importInsertionPos:s,blockInsertionPos:c,headerSnippet:l,ast:a,match:u??null}},Ct=e=>{let{code:t,boundaryImportSpecifier:n,tagFunctionImportSpecifier:r}=e,{ast:i,targetExports:a,importInsertionPos:o,blockInsertionPos:s,headerSnippet:c}=xt(t,n,r);return{targetExports:a,shouldTransform:yt(i)||_t(i,t,r).length>0,importInsertionPos:o,blockInsertionPos:s,headerSnippet:c,ast:i}},wt=e=>e.includes(`__lithentModuleId`),Tt=(e,t,n,r)=>{let i=[];for(let n of t){let t=JSON.stringify(n.componentName);n.declaration?i.push(`${n.componentName} = __lithentWrapComponent(${t}, ${n.componentName});`):(e.appendLeft(n.start,`__lithentWrapComponent(${t}, `),e.appendRight(n.end,`)`))}return i.join(`
|
|
150
|
+
`)},q=(e,t,n,r=`lithent`)=>{let i=new Set,a=new Set;for(let e of t.program.body)if(e.type===`ImportDeclaration`&&e.importKind!==`type`&&e.source.value===r)for(let t of e.specifiers)t.type===`ImportNamespaceSpecifier`&&a.add(t.local.name),t.type===`ImportSpecifier`&&t.importKind!==`type`&&t.imported.type===`Identifier`&&t.imported.name===`render`&&i.add(t.local.name);let o=[],s=e=>{if(!(0,gt.isFunction)(e)){if(e.type===`CallExpression`){let t=e.callee;if(t.type===`Identifier`&&i.has(t.name)||t.type===`MemberExpression`&&!t.computed&&t.object.type===`Identifier`&&a.has(t.object.name)&&t.property.type===`Identifier`&&t.property.name===`render`){o.push(e);return}}for(let t of gt.VISITOR_KEYS[e.type]??[]){let n=e[t];Array.isArray(n)?n.forEach(e=>{e!=null&&e.type&&s(e)}):n!=null&&n.type&&s(n)}}};return s(t),o.sort((e,t)=>e.start-t.start).forEach((t,n)=>{e.appendLeft(t.start,`__lithentRenderOnce(${n}, () => `),e.appendRight(t.end,`)`)}),!!o.length},Et=(e,t)=>{let n=new Map,r=!0;for(let i of e.program.body){if(i.type===`ExportAllDeclaration`&&i.exportKind!==`type`&&(r=!1),i.type===`ExportDefaultDeclaration`){let e=i.declaration;e.type===`Identifier`?n.set(`default`,e.name):(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)&&e.id?n.set(`default`,e.id.name):t.some(e=>e.componentName==="default")?n.set(`default`,`__lithentCurrentComponents.default?.component`):r=!1}if(i.type!==`ExportNamedDeclaration`||i.exportKind===`type`)continue;if(i.source){r=!1;continue}let e=i.declaration;if((e==null?void 0:e.type)===`VariableDeclaration`)for(let t of e.declarations)for(let e of Object.keys((0,gt.getBindingIdentifiers)(t.id)))n.set(e,e);else((e==null?void 0:e.type)===`FunctionDeclaration`||(e==null?void 0:e.type)===`ClassDeclaration`)&&e.id?n.set(e.id.name,e.id.name):e&&e.type!==`TSInterfaceDeclaration`&&e.type!==`TSTypeAliasDeclaration`&&(r=!1);for(let e of i.specifiers)if(e.type===`ExportSpecifier`&&e.exportKind!==`type`){let t=e.exported.type===`Identifier`?e.exported.name:e.exported.value;n.set(t,e.local.name)}}return`\n__lithentExportSnapshot = ${r?`{${Array.from(n,([e,t])=>`[${JSON.stringify(e)}]: ${t}`).join(`, `)}}`:`null`};\n`},J=e=>{let t=St(e),{match:n,targetExports:r,shouldTransform:i,importInsertionPos:a,blockInsertionPos:o,headerSnippet:s}=t;if(!i||!n)return{transformed:!1,code:e.code,map:null};let c=_t(t.ast,e.code,e.tagFunctionImportSpecifier),l=Array.from(new Set(c.map(e=>e.componentName).filter(e=>!!e))),u=new x(e.code);c.length&&q(u,t.ast,e.code,e.tagFunctionImportSpecifier);let d=Tt(u,c,e.code,a),f=S(r,l).trimStart(),p=o>0?e.code[o-1]:void 0,m=`${o>0&&p!==`
|
|
151
|
+
`?`
|
|
152
|
+
`:``}${f}\n${d}\n\n`;return o===a?u.appendLeft(a,`${s}${m}`):(u.appendLeft(a,s),u.appendLeft(o,m)),u.overwrite(n.index,n.index+n[0].length,``),u.append(Et(t.ast,c)),{transformed:!0,code:u.toString(),map:u.generateMap({hires:!0})}},Y=e=>{let{targetExports:t,shouldTransform:n,importInsertionPos:r,blockInsertionPos:i,headerSnippet:a,ast:o}=Ct(e);if(!n)return{transformed:!1,code:e.code,map:null};let s=_t(o,e.code,e.tagFunctionImportSpecifier),c=Array.from(new Set(s.map(e=>e.componentName).filter(e=>!!e))),l=new x(e.code);s.length&&q(l,o,e.code,e.tagFunctionImportSpecifier);let u=Tt(l,s,e.code,r),d=S(t,c).trimStart(),f=i>0?e.code[i-1]:void 0,p=`${i>0&&f!==`
|
|
153
|
+
`?`
|
|
154
|
+
`:``}${d}\n${u}\n\n`;return!a&&!p.trim().length?{transformed:!1,code:e.code,map:null}:(a?i===r?l.appendLeft(r,`${a}${p}`):(l.appendLeft(r,a),l.appendLeft(i,p)):l.appendLeft(i,p),l.append(Et(o,s)),{transformed:!0,code:l.toString(),map:l.generateMap({hires:!0})})},Dt=e=>{let t=J(e);return t.transformed?t:Y({code:e.code,boundaryImportSpecifier:e.boundaryImportSpecifier,tagFunctionImportSpecifier:e.tagFunctionImportSpecifier})};exports.analyzeMarker=St,exports.analyzeNoMarker=Ct,exports.shouldSkipTransform=wt,exports.transformWithHmr=Dt,exports.transformWithMarker=J,exports.transformWithoutMarker=Y;
|
|
155
|
+
//# sourceMappingURL=lithentHmrParser.cjs.map
|