@fugood/bricks-cli 2.25.0-beta.62 → 2.25.0-beta.64

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.
Files changed (85) hide show
  1. package/lib/1010.js +1 -0
  2. package/lib/1178.js +1 -0
  3. package/lib/1215.js +1 -0
  4. package/lib/1708.js +9 -0
  5. package/lib/1759.js +1 -0
  6. package/lib/1936.js +1 -0
  7. package/lib/2151.js +1 -0
  8. package/lib/{209.js → 2209.js} +3 -3
  9. package/lib/2247.js +1 -0
  10. package/lib/2486.js +1 -0
  11. package/lib/2557.js +1 -0
  12. package/lib/{223.js → 3223.js} +1 -1
  13. package/lib/3332.js +13 -0
  14. package/lib/3690.js +1 -0
  15. package/lib/3774.js +44 -0
  16. package/lib/3976.js +14 -0
  17. package/lib/4305.js +1 -0
  18. package/lib/4456.js +3 -0
  19. package/lib/{192.js → 4479.js} +4 -4
  20. package/lib/4530.js +22 -0
  21. package/lib/4642.js +9 -0
  22. package/lib/4685.js +1202 -0
  23. package/lib/5212.js +1 -0
  24. package/lib/{658.js → 5658.js} +1 -1
  25. package/lib/5785.js +1 -0
  26. package/lib/6194.js +3 -0
  27. package/lib/6370.js +1 -0
  28. package/lib/6645.js +1 -0
  29. package/lib/6818.js +1 -0
  30. package/lib/7111.js +2 -0
  31. package/lib/7456.js +1 -0
  32. package/lib/7511.js +1 -0
  33. package/lib/7574.js +1 -0
  34. package/lib/7648.js +1 -0
  35. package/lib/8026.js +1 -0
  36. package/lib/{117.js → 8117.js} +2 -2
  37. package/lib/8166.js +1 -0
  38. package/lib/853.js +1 -0
  39. package/lib/915.js +4 -4
  40. package/lib/9320.js +3 -0
  41. package/lib/{387.js → 9387.js} +1 -1
  42. package/lib/9405.js +1 -0
  43. package/lib/9430.js +1 -0
  44. package/lib/{583.js → 9583.js} +1 -1
  45. package/lib/9663.js +1 -0
  46. package/lib/{866.js → 9866.js} +1 -1
  47. package/lib/9940.js +19 -0
  48. package/lib/index.js +17 -17
  49. package/lib/simulator-host-bridge.cjs +1 -0
  50. package/lib/simulator-main.mjs +3 -3
  51. package/package.json +5 -5
  52. package/lib/10.js +0 -1
  53. package/lib/111.js +0 -2
  54. package/lib/166.js +0 -1
  55. package/lib/178.js +0 -1
  56. package/lib/212.js +0 -1
  57. package/lib/215.js +0 -1
  58. package/lib/247.js +0 -1
  59. package/lib/274.js +0 -16
  60. package/lib/305.js +0 -1
  61. package/lib/306.js +0 -1
  62. package/lib/320.js +0 -3
  63. package/lib/332.js +0 -13
  64. package/lib/358.js +0 -1
  65. package/lib/370.js +0 -1
  66. package/lib/405.js +0 -1
  67. package/lib/430.js +0 -1
  68. package/lib/456.js +0 -3
  69. package/lib/479.js +0 -1231
  70. package/lib/486.js +0 -1
  71. package/lib/511.js +0 -1
  72. package/lib/557.js +0 -1
  73. package/lib/574.js +0 -1
  74. package/lib/645.js +0 -1
  75. package/lib/648.js +0 -1
  76. package/lib/663.js +0 -1
  77. package/lib/690.js +0 -1
  78. package/lib/708.js +0 -9
  79. package/lib/75.js +0 -1
  80. package/lib/759.js +0 -1
  81. package/lib/785.js +0 -1
  82. package/lib/818.js +0 -1
  83. package/lib/917.js +0 -1
  84. package/lib/936.js +0 -1
  85. package/lib/940.js +0 -19
package/lib/4642.js ADDED
@@ -0,0 +1,9 @@
1
+ export const __rspack_esm_id=4642;export const __rspack_esm_ids=[4642];export const __webpack_modules__={75267(e,t,i){var r;(function(e,t,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===i||s(e,o,{get:()=>t[o],enumerable:!(r=n(t,o))||r.enumerable});return e},u=(e,t,i)=>(i=null!=e?r(o(e)):{},c(!t&&e&&e.__esModule?i:s(i,"default",{value:e,enumerable:!0}),e)),h=p({"umd:@jridgewell/sourcemap-codec"(e,i){i.exports=t}}),d=p({"umd:@jridgewell/trace-mapping"(e,t){t.exports=i}}),f={},m={GenMapping:()=>E,addMapping:()=>g,addSegment:()=>b,allMappings:()=>k,fromMap:()=>O,maybeAddMapping:()=>v,maybeAddSegment:()=>A,setIgnore:()=>C,setSourceContent:()=>I,toDecodedMap:()=>w,toEncodedMap:()=>N};for(var y in m)s(f,y,{get:m[y],enumerable:!0});e.exports=c(s({},"__esModule",{value:!0}),f);var T=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function S(e,t){var i,r;let s=(i=e,r=t,i._indexes[r]);if(void 0!==s)return s;let{array:n,_indexes:a}=e,o=n.push(t);return a[t]=o-1}var x=u(h()),P=u(d()),E=class{constructor({file:e,sourceRoot:t}={}){this._names=new T,this._sources=new T,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new T}};function b(e,t,i,r,s,n,a,o){return D(!1,e,t,i,r,s,n,a,o)}function g(e,t){return M(!1,e,t)}var A=(e,t,i,r,s,n,a,o)=>D(!0,e,t,i,r,s,n,a,o),v=(e,t)=>M(!0,e,t);function I(e,t,i){let{_sources:r,_sourcesContent:s}=e;s[S(r,t)]=i}function C(e,t,i=!0){let{_sources:r,_sourcesContent:s,_ignoreList:n}=e,a=S(r,t);a===s.length&&(s[a]=null),i?S(n,a):function(e,t){var i,r;let s=(i=e,r=t,i._indexes[r]);if(void 0===s)return;let{array:n,_indexes:a}=e;for(let e=s+1;e<n.length;e++){let t=n[e];n[e-1]=t,a[t]--}a[t]=void 0,n.pop()}(n,a)}function w(e){let{_mappings:t,_sources:i,_sourcesContent:r,_names:s,_ignoreList:n}=e;return function(e){let{length:t}=e,i=t;for(let t=i-1;t>=0&&!(e[t].length>0);i=t,t--);i<t&&(e.length=i)}(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:i.array,sourcesContent:r,mappings:t,ignoreList:n.array}}function N(e){let t=w(e);return Object.assign({},t,{mappings:(0,x.encode)(t.mappings)})}function O(e){let t=new P.TraceMap(e),i=new E({file:t.file,sourceRoot:t.sourceRoot});return _(i._names,t.names),_(i._sources,t.sources),i._sourcesContent=t.sourcesContent||t.sources.map(()=>null),i._mappings=(0,P.decodedMappings)(t),t.ignoreList&&_(i._ignoreList,t.ignoreList),i}function k(e){let t=[],{_mappings:i,_sources:r,_names:s}=e;for(let e=0;e<i.length;e++){let n=i[e];for(let i=0;i<n.length;i++){let a,o,l,p=n[i],c={line:e+1,column:p[0]};1!==p.length&&(a=r.array[p[1]],o={line:p[2]+1,column:p[3]},5===p.length&&(l=s.array[p[4]])),t.push({generated:c,source:a,original:o,name:l})}}return t}function D(e,t,i,r,s,n,a,o,l){let{_mappings:p,_sources:c,_sourcesContent:u,_names:h}=t,d=function(e,t){for(let i=e.length;i<=t;i++)e[i]=[];return e[t]}(p,i),f=function(e,t){let i=e.length;for(let r=i-1;r>=0&&!(t>=e[r][0]);i=r--);return i}(d,r);if(!s){var m,y;if(e&&(m=d,0===(y=f)||1===m[y-1].length))return;return L(d,f,[r])}let T=S(c,s),x=o?S(h,o):-1;if(T===u.length&&(u[T]=null!=l?l:null),!(e&&function(e,t,i,r,s,n){if(0===t)return!1;let a=e[t-1];return 1!==a.length&&i===a[1]&&r===a[2]&&s===a[3]&&n===(5===a.length?a[4]:-1)}(d,f,T,n,a,x)))return L(d,f,o?[r,T,n,a,x]:[r,T,n,a])}function L(e,t,i){for(let i=e.length;i>t;i--)e[i]=e[i-1];e[t]=i}function _(e,t){for(let i=0;i<t.length;i++)S(e,t[i])}function M(e,t,i){let{generated:r,source:s,original:n,name:a,content:o}=i;return s?D(e,t,r.line-1,r.column,s,n.line-1,n.column,a,o):D(e,t,r.line-1,r.column,null,null,null,null,null)}})(e=i.nmd(e),i(14017),i(41969)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},98079(e){e.exports=function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function s(e){return/^[.?#]/.test(e)}function n(e){let i=t.exec(e);return a(i[1],i[2]||"",i[3],i[4]||"",i[5]||"/",i[6]||"",i[7]||"")}function a(e,t,i,r,s,n,a){return{scheme:e,user:t,host:i,port:r,path:s,query:n,hash:a,type:7}}function o(t){if(t.startsWith("//")){let e=n("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){let e=n("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(t.startsWith("file:")){let e,s;return s=(e=i.exec(t))[2],a("file:","",e[1]||"","",r(s)?s:"/"+s,e[3]||"",e[4]||"")}if(e.test(t))return n(t);let s=n("http://foo.com/"+t);return s.scheme="",s.host="",s.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,s}function l(e,t){let i=t<=4,r=e.path.split("/"),s=1,n=0,a=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){a=!0;continue}if(a=!1,"."!==t){if(".."===t){n?(a=!0,n--,s--):i&&(r[s++]=t);continue}r[s++]=t,n++}}let o="";for(let e=1;e<s;e++)o+="/"+r[e];o&&(!a||o.endsWith("/.."))||(o+="/"),e.path=o}return function(e,t){if(!e&&!t)return"";let i=o(e),r=i.type;if(t&&7!==r){let e=o(t),s=e.type;switch(r){case 1:i.hash=e.hash;case 2:i.query=e.query;case 3:case 4:l(e,e.type),"/"===i.path?i.path=e.path:i.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+i.path;case 5:i.user=e.user,i.host=e.host,i.port=e.port;case 6:i.scheme=e.scheme}s>r&&(r=s)}l(i,r);let n=i.query+i.hash;switch(r){case 2:case 3:return n;case 4:{let r=i.path.slice(1);if(!r)return n||".";if(s(t||e)&&!s(r))return"./"+r+n;return r+n}case 5:return i.path+n;default:return i.scheme+"//"+i.user+i.host+i.port+i.path+n}}}()},14017(e,t,i){var r;(function(e){"use strict";var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={},a={decode:()=>g,decodeGeneratedRanges:()=>P,decodeOriginalScopes:()=>S,encode:()=>v,encodeGeneratedRanges:()=>E,encodeOriginalScopes:()=>x};for(var o in a)t(n,o,{get:a[o],enumerable:!0});e.exports=((e,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let l of r(n))s.call(e,l)||l===a||t(e,l,{get:()=>n[l],enumerable:!(o=i(n,l))||o.enumerable});return e})(t({},"__esModule",{value:!0}),n);var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),c=new Uint8Array(128);for(let e=0;e<l.length;e++){let t=l.charCodeAt(e);p[e]=t,c[t]=e}function u(e,t){let i=0,r=0,s=0;do i|=(31&(s=c[e.next()]))<<r,r+=5;while(32&s);let n=1&i;return i>>>=1,n&&(i=-0x80000000|-i),t+i}function h(e,t,i){let r=t-i;r=r<0?-r<<1|1:r<<1;do{let t=31&r;(r>>>=5)>0&&(t|=32),e.write(p[t])}while(r>0);return t}function d(e,t){return!(e.pos>=t)&&44!==e.peek()}var f="u">typeof TextDecoder?new TextDecoder:"u">typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t}},m=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=f.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:i}=this;return i>0?t+f.decode(e.subarray(0,i)):t}},y=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:i}=this,r=t.indexOf(e,i);return -1===r?t.length:r}},T=[];function S(e){let{length:t}=e,i=new y(e),r=[],s=[],n=0;for(;i.pos<t;i.pos++){n=u(i,n);let e=u(i,0);if(!d(i,t)){let t=s.pop();t[2]=n,t[3]=e;continue}let a=u(i,0),o=1&u(i,0)?[n,e,0,0,a,u(i,0)]:[n,e,0,0,a],l=T;if(d(i,t)){l=[];do{let e=u(i,0);l.push(e)}while(d(i,t))}o.vars=l,r.push(o),s.push(o)}return r}function x(e){let t=new m;for(let i=0;i<e.length;)i=function e(t,i,r,s){let n=t[i],{0:a,1:o,2:l,3:p,4:c,vars:u}=n;for(let e of(i>0&&r.write(44),s[0]=h(r,a,s[0]),h(r,o,0),h(r,c,0),h(r,+(6===n.length),0),6===n.length&&h(r,n[5],0),u))h(r,e,0);for(i++;i<t.length;){let{0:n,1:a}=t[i];if(n>l||n===l&&a>=p)break;i=e(t,i,r,s)}return r.write(44),s[0]=h(r,l,s[0]),h(r,p,0),i}(e,i,t,[0]);return t.flush()}function P(e){let{length:t}=e,i=new y(e),r=[],s=[],n=0,a=0,o=0,l=0,p=0,c=0,h=0,f=0;do{let e=i.indexOf(";"),t=0;for(;i.pos<e;i.pos++){let m;if(t=u(i,t),!d(i,e)){let e=s.pop();e[2]=n,e[3]=t;continue}let y=u(i,0),S=1&y,x=2&y,P=4&y,E=null,b=T;if(S){let e=u(i,a);o=u(i,a===e?o:0),a=e,m=[n,t,0,0,e,o]}else m=[n,t,0,0];if(m.isScope=!!P,x){let e=p,t=l===(l=u(i,l));p=u(i,t?p:0),c=u(i,t&&e===p?c:0),E=[l,p,c]}if(m.callsite=E,d(i,e)){b=[];do{let e;h=n,f=t;let r=u(i,0);if(r<-1){e=[[u(i,0)]];for(let t=-1;t>r;t--){let t=h;h=u(i,h),f=u(i,h===t?f:0);let r=u(i,0);e.push([r,h,f])}}else e=[[r]];b.push(e)}while(d(i,e))}m.bindings=b,r.push(m),s.push(m)}n++,i.pos=e+1}while(i.pos<t);return r}function E(e){if(0===e.length)return"";let t=new m;for(let i=0;i<e.length;)i=function e(t,i,r,s){let n=t[i],{0:a,1:o,2:l,3:p,isScope:c,callsite:u,bindings:d}=n;if(s[0]<a?(b(r,s[0],a),s[0]=a,s[1]=0):i>0&&r.write(44),s[1]=h(r,n[1],s[1]),h(r,6===n.length|2*!!u|4*!!c,0),6===n.length){let{4:e,5:t}=n;e!==s[2]&&(s[3]=0),s[2]=h(r,e,s[2]),s[3]=h(r,t,s[3])}if(u){let{0:e,1:t,2:i}=n.callsite;e!==s[4]?(s[5]=0,s[6]=0):t!==s[5]&&(s[6]=0),s[4]=h(r,e,s[4]),s[5]=h(r,t,s[5]),s[6]=h(r,i,s[6])}if(d)for(let e of d){e.length>1&&h(r,-e.length,0),h(r,e[0][0],0);let t=a,i=o;for(let s=1;s<e.length;s++){let n=e[s];t=h(r,n[1],t),i=h(r,n[2],i),h(r,n[0],0)}}for(i++;i<t.length;){let{0:n,1:a}=t[i];if(n>l||n===l&&a>=p)break;i=e(t,i,r,s)}return s[0]<l?(b(r,s[0],l),s[0]=l,s[1]=0):r.write(44),s[1]=h(r,p,s[1]),i}(e,i,t,[0,0,0,0,0,0,0]);return t.flush()}function b(e,t,i){do e.write(59);while(++t<i)}function g(e){let{length:t}=e,i=new y(e),r=[],s=0,n=0,a=0,o=0,l=0;do{let e=i.indexOf(";"),t=[],p=!0,c=0;for(s=0;i.pos<e;){let r;(s=u(i,s))<c&&(p=!1),c=s,d(i,e)?(n=u(i,n),a=u(i,a),o=u(i,o),r=d(i,e)?[s,n,a,o,l=u(i,l)]:[s,n,a,o]):r=[s],t.push(r),i.pos++}p||t.sort(A),r.push(t),i.pos=e+1}while(i.pos<=t);return r}function A(e,t){return e[0]-t[0]}function v(e){let t=new m,i=0,r=0,s=0,n=0;for(let a=0;a<e.length;a++){let o=e[a];if(a>0&&t.write(59),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){let a=o[e];e>0&&t.write(44),l=h(t,a[0],l),1!==a.length&&(i=h(t,a[1],i),r=h(t,a[2],r),s=h(t,a[3],s),4!==a.length&&(n=h(t,a[4],n)))}}return t.flush()}})(e=i.nmd(e)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},41969(e,t,i){var r;(function(e,t,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===i||s(e,o,{get:()=>t[o],enumerable:!(r=n(t,o))||r.enumerable});return e},u=(e,t,i)=>(i=null!=e?r(o(e)):{},c(!t&&e&&e.__esModule?i:s(i,"default",{value:e,enumerable:!0}),e)),h=p({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=i}}),d=p({"umd:@jridgewell/resolve-uri"(e,i){i.exports=t}}),f={},m={AnyMap:()=>I,FlattenMap:()=>I,GREATEST_LOWER_BOUND:()=>k,LEAST_UPPER_BOUND:()=>O,TraceMap:()=>D,allGeneratedPositionsFor:()=>j,decodedMap:()=>J,decodedMappings:()=>_,eachMapping:()=>R,encodedMap:()=>Y,encodedMappings:()=>L,generatedPositionFor:()=>B,isIgnored:()=>V,originalPositionFor:()=>F,presortedDecodedMap:()=>q,sourceContentFor:()=>K,traceSegment:()=>M};for(var y in m)s(f,y,{get:m[y],enumerable:!0});e.exports=c(s({},"__esModule",{value:!0}),f);var T=u(h()),S=u(d());function x(e,t){for(let i=t;i<e.length;i++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[i]))return i;return e.length}function P(e,t){return e[0]-t[0]}var E=!1;function b(e,t,i){for(let r=i+1;r<e.length&&e[r][0]===t;i=r++);return i}function g(e,t,i){for(let r=i-1;r>=0&&e[r][0]===t;i=r--);return i}function A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function v(e){return"string"==typeof e?JSON.parse(e):e}var I=function(e,t){let i=v(e);if(!("sections"in i))return new D(i,t);let r=[],s=[],n=[],a=[],o=[];return function e(t,i,r,s,n,a,o,l,p,c,u){let{sections:h}=t;for(let t=0;t<h.length;t++){let{map:d,offset:f}=h[t],m=c,y=u;if(t+1<h.length){let e=h[t+1].offset;(m=Math.min(c,l+e.line))===c?y=Math.min(u,p+e.column):m<c&&(y=p+e.column)}!function(t,i,r,s,n,a,o,l,p,c,u){let h=v(t);if("sections"in h)return e(...arguments);let d=new D(h,i),f=s.length,m=a.length,y=_(d),{resolvedSources:T,sourcesContent:S,ignoreList:x}=d;if(C(s,T),C(a,d.names),S)C(n,S);else for(let e=0;e<T.length;e++)n.push(null);if(x)for(let e=0;e<x.length;e++)o.push(x[e]+f);for(let e=0;e<y.length;e++){let t=l+e;if(t>c)return;let i=function(e,t){for(let i=e.length;i<=t;i++)e[i]=[];return e[t]}(r,t),s=0===e?p:0,n=y[e];for(let e=0;e<n.length;e++){let r=n[e],a=s+r[0];if(t===c&&a>=u)return;if(1===r.length){i.push([a]);continue}let o=f+r[1],l=r[2],p=r[3];i.push(4===r.length?[a,o,l,p]:[a,o,l,p,m+r[4]])}}}(d,i,r,s,n,a,o,l+f.line,p+f.column,m,y)}}(i,t,r,s,n,a,o,0,0,1/0,1/0),q({version:3,file:i.file,names:a,sources:s,sourcesContent:n,mappings:r,ignoreList:o})};function C(e,t){for(let i=0;i<t.length;i++)e.push(t[i])}var w="`line` must be greater than 0 (lines start at line 1)",N="`column` must be greater than or equal to 0 (columns start at column 0)",O=-1,k=1,D=class{constructor(e,t){let i,r,s="string"==typeof e;if(!s&&e._decodedMemo)return e;let n=v(e),{version:a,file:o,names:l,sourceRoot:p,sources:c,sourcesContent:u}=n;this.version=a,this.file=o,this.names=l||[],this.sourceRoot=p,this.sources=c,this.sourcesContent=u,this.ignoreList=n.ignoreList||n.x_google_ignoreList||void 0;let h=(i=function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t),r=p?p+"/":"",e=>(0,S.default)(r+(e||""),i));this.resolvedSources=c.map(h);let{mappings:d}=n;if("string"==typeof d)this._encoded=d,this._decoded=void 0;else if(Array.isArray(d))this._encoded=void 0,this._decoded=function(e,t){let i=x(e,0);if(i===e.length)return e;t||(e=e.slice());for(let s=i;s<e.length;s=x(e,s+1)){var r;e[s]=(r=e[s],t||(r=r.slice()),r.sort(P))}return e}(d,s);else if(n.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(n)}`);this._decodedMemo=A(),this._bySources=void 0,this._bySourceMemos=void 0}};function L(e){var t;return null!=(t=e._encoded)?t:e._encoded=(0,T.encode)(e._decoded)}function _(e){return e._decoded||(e._decoded=(0,T.decode)(e._encoded))}function M(e,t,i){let r=_(e);if(t>=r.length)return null;let s=r[t],n=z(s,e._decodedMemo,t,i,k);return -1===n?null:s[n]}function F(e,t){let{line:i,column:r,bias:s}=t;if(--i<0)throw Error(w);if(r<0)throw Error(N);let n=_(e);if(i>=n.length)return W(null,null,null,null);let a=n[i],o=z(a,e._decodedMemo,i,r,s||k);if(-1===o)return W(null,null,null,null);let l=a[o];if(1===l.length)return W(null,null,null,null);let{names:p,resolvedSources:c}=e;return W(c[l[1]],l[2]+1,l[3],5===l.length?p[l[4]]:null)}function B(e,t){let{source:i,line:r,column:s,bias:n}=t;return $(e,i,r,s,n||k,!1)}function j(e,t){let{source:i,line:r,column:s,bias:n}=t;return $(e,i,r,s,n||O,!0)}function R(e,t){let i=_(e),{names:r,resolvedSources:s}=e;for(let e=0;e<i.length;e++){let n=i[e];for(let i=0;i<n.length;i++){let a=n[i],o=e+1,l=a[0],p=null,c=null,u=null,h=null;1!==a.length&&(p=s[a[1]],c=a[2]+1,u=a[3]),5===a.length&&(h=r[a[4]]),t({generatedLine:o,generatedColumn:l,source:p,originalLine:c,originalColumn:u,name:h})}}}function U(e,t){let{sources:i,resolvedSources:r}=e,s=i.indexOf(t);return -1===s&&(s=r.indexOf(t)),s}function K(e,t){let{sourcesContent:i}=e;if(null==i)return null;let r=U(e,t);return -1===r?null:i[r]}function V(e,t){let{ignoreList:i}=e;if(null==i)return!1;let r=U(e,t);return -1!==r&&i.includes(r)}function q(e,t){let i=new D(X(e,[]),t);return i._decoded=e.mappings,i}function J(e){return X(e,_(e))}function Y(e){return X(e,L(e))}function X(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function W(e,t,i,r){return{source:e,line:t,column:i,name:r}}function H(e,t){return{line:e,column:t}}function z(e,t,i,r,s){let n=function(e,t,i,r){let{lastKey:s,lastNeedle:n,lastIndex:a}=i,o=0,l=e.length-1;if(r===s){if(t===n)return E=-1!==a&&e[a][0]===t,a;t>=n?o=-1===a?0:a:l=a}return i.lastKey=r,i.lastNeedle=t,i.lastIndex=function(e,t,i,r){for(;i<=r;){let s=i+(r-i>>1),n=e[s][0]-t;if(0===n)return E=!0,s;n<0?i=s+1:r=s-1}return E=!1,i-1}(e,t,o,l)}(e,r,t,i);return(E?n=(s===O?b:g)(e,r,n):s===O&&n++,-1===n||n===e.length)?-1:n}function $(e,t,i,r,s,n){if(--i<0)throw Error(w);if(r<0)throw Error(N);let{sources:a,resolvedSources:o}=e,l=a.indexOf(t);if(-1===l&&(l=o.indexOf(t)),-1===l)return n?[]:H(null,null);let p=e._bySourceMemos||(e._bySourceMemos=a.map(A)),c=(e._bySources||(e._bySources=function(e,t){let i=t.map(()=>[]);for(let t=0;t<e.length;t++){let r=e[t];for(let e=0;e<r.length;e++){let s=r[e];if(1===s.length)continue;let n=s[1],a=s[2],o=s[3],l=i[n];(l[a]||(l[a]=[])).push([o,t,s[0]])}}for(let e=0;e<i.length;e++){let t=i[e];for(let e=0;e<t.length;e++){let i=t[e];i&&i.sort(P)}}return i}(_(e),p)))[l][i];if(null==c)return n?[]:H(null,null);let u=p[l];if(n)return function(e,t,i,r,s){let n=z(e,t,i,r,k);if(!E&&s===O&&n++,-1===n||n===e.length)return[];let a=E?r:e[n][0];E||(n=g(e,a,n));let o=b(e,a,n),l=[];for(;n<=o;n++){let t=e[n];l.push(H(t[1]+1,t[2]))}return l}(c,u,i,r,s);let h=z(c,u,i,r,s);if(-1===h)return H(null,null);let d=c[h];return H(d[1]+1,d[2])}})(e=i.nmd(e),i(98079),i(14017)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},18398(e){let t={},i=t.hasOwnProperty,r=(e,t)=>{for(let r in e)i.call(e,r)&&t(r,e[r])},s=e=>"\\u"+("0000"+e).slice(-4),n=(e,t)=>{let i=e.toString(16);return t?i:i.toUpperCase()},a=t.toString,o=Array.isArray,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p=/[\\\b\f\n\r\t]/,c=/[0-9]/,u=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,f=(e,t)=>{let i,m,y=()=>{g=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},T={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},S=t&&t.json;S&&(T.quotes="double",T.wrap=!0),"single"!=(!(L=t)||r(L,(e,t)=>{T[e]=t}),t=T).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",P=t.compact,E=t.lowercaseHex,b=t.indent.repeat(t.indentLevel),g="",A=t.__inline1__,v=t.__inline2__,I=P?"":"\n",C=!0,w="binary"==t.numbers,N="octal"==t.numbers,O="decimal"==t.numbers,k="hexadecimal"==t.numbers;if(S&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(m=e)&&"[object String]"!=a.call(m)){let s,n,l,p;if(s=e,"[object Map]"==a.call(s))return 0==e.size?"new Map()":(P||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+f(Array.from(e),t)+")");if(n=e,"[object Set]"==a.call(n))return 0==e.size?"new Set()":"new Set("+f(Array.from(e),t)+")";if(l=e,"function"==typeof Buffer&&Buffer.isBuffer(l))return 0==e.length?"Buffer.from([])":"Buffer.from("+f(Array.from(e),t)+")";if(o(e)){i=[],t.wrap=!0,A&&(t.__inline1__=!1,t.__inline2__=!0),v||y();var D,L,_=e;let r=_.length,s=-1;for(;++s<r;){D=_[s],C=!1,v&&(t.__inline2__=!1),i.push((P||v?"":b)+f(D,t))}return C?"[]":v?"["+i.join(", ")+"]":"["+I+i.join(","+I)+I+(P?"":g)+"]"}if("number"==typeof(p=e)||"[object Number]"==a.call(p)||"bigint"==typeof e){let t;if(S)return JSON.stringify(Number(e));if(O)t=String(e);else if(k){let i=e.toString(16);E||(i=i.toUpperCase()),t="0x"+i}else w?t="0b"+e.toString(2):N&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let s;if("bigint"==typeof e)return S?JSON.stringify(Number(e)):e+"n";return(s=e,"[object Object]"==a.call(s))?(i=[],t.wrap=!0,y(),r(e,(e,r)=>{C=!1,i.push((P?"":b)+f(e,t)+":"+(P?"":" ")+f(r,t))}),C)?"{}":"{"+I+i.join(","+I)+I+(P?"":g)+"}":S?JSON.stringify(e)||"null":String(e)}}let M=t.escapeEverything?h:d;return i=e.replace(M,(e,i,r,a,o,h)=>{if(i){if(t.minimal)return i;let e=i.charCodeAt(0),r=i.charCodeAt(1);return t.es6?"\\u{"+n((e-55296)*1024+r-56320+65536,E)+"}":s(n(e,E))+s(n(r,E))}if(r)return s(n(r.charCodeAt(0),E));if("\0"==e&&!S&&!c.test(h.charAt(o+1)))return"\\0";if(a)return a==x||t.escapeEverything?"\\"+a:a;if(p.test(e))return l[e];if(t.minimal&&!u.test(e))return e;let d=n(e.charCodeAt(0),E);return S||d.length>2?s(d):"\\x"+("00"+d).slice(-2)}),"`"==x&&(i=i.replace(/\$\{/g,"\\${")),t.isScriptContext&&(i=i.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,S?"\\u003C!--":"\\x3C!--")),t.wrap&&(i=x+i+x),i};f.version="3.0.2",e.exports=f},96405(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){let e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,i,r,s){let n=this._queueCursor;n===this._queue.length&&this._allocQueue();let a=this._queue[n];a.char=e,a.repeat=t,a.line=i,a.column=r,a.filename=s,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e?e.get():null;return t.map=i,i},set map(value){Object.defineProperty(t,"map",{value,writable:!0})},get rawMappings(){let i=null==e?void 0:e.getRawMappings();return t.rawMappings=i,i},set rawMappings(value){Object.defineProperty(t,"rawMappings",{value,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){let e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}let t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,t=this._queue;for(let i=0;i<e;i++){let e=t[i];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,i){if(this._last=e,-1===e){let e=this._fastIndentations[t];void 0!==e?this._str+=e:this._str+=t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,t,i){let r=e.length,s=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map){s.column+=r;return}let{column:n,identifierName:a,identifierNamePos:o,filename:l}=t,p=t.line;(null!=a||null!=o)&&this._canMarkIdName&&(t.identifierName=void 0,t.identifierNamePos=void 0);let c=e.indexOf("\n"),u=0;for(0!==c&&this._mark(p,n,a,o,l);-1!==c;)s.line++,s.column=0,(u=c+1)<r&&void 0!==p&&this._mark(++p,0,void 0,void 0,l),c=e.indexOf("\n",u);s.column+=r-u}_mark(e,t,i,r,s){var n;null==(n=this._map)||n.mark(this._position,e,t,i,r,s)}removeTrailingNewline(){let e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,t=0;if(0===e)return+(10===this._last);for(let i=e-1;i>=0&&10===this._queue[i].char;i--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){let e=this._queue,t=this._queueCursor;if(0!==t)return 10!==e[t-1].char?void 0:t>1?e[t-2].char:this._last}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);let i=e.identifierName,r=this._sourcePosition;i&&(this._canMarkIdName=!1,r.identifierName=i),t(),i&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,i){this._map&&this._normalizePosition(e,t,i)}_normalizePosition(e,t,i){let r=t[e],s=this._sourcePosition;r&&(s.line=r.line,s.column=Math.max(r.column+i,0),s.filename=t.filename)}getCurrentColumn(){let e=this._queue,t=this._queueCursor,i=-1,r=0;for(let s=0;s<t;s++){let t=e[s];10===t.char&&(i=r),r+=t.repeat}return -1===i?this._position.column+r:r-1-i}getCurrentLine(){let e=0,t=this._queue;for(let i=0;i<this._queueCursor;i++)10===t[i].char&&e++;return this._position.line+e}}},22005(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t,i;this.tokenChar(123);let r=this.enterDelimited(),s=null==(t=e.directives)?void 0:t.length;if(s){let t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[s-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),r(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let{value:s}=e;if(r.test(s))if(i.test(s))throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");else this.token(`'${s}'`);else this.token(`"${s}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t,i;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=null==(t=e.directives)?void 0:t.length;if(r){let t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(i=e.directives[r-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body)};let i=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},19534(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();let t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;let i=e.tokenMap.getIndexes(t);if(!i)return null;let r=1,s=0,n=0,a=()=>{for(;n<t.body.length&&null==t.body[n].start;)n++};return a(),o=>{let l;n<=o&&(n=o+1,a());let p=n===t.body.length?t.end:t.body[n].start;for(;r<i.length&&e.tokenMap.matchesOriginal(l=e._tokens[i[r]],";")&&l.start<p;)e.token(";",void 0,s++),r++}}(this,e);null==t||t(-1);let i=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),i(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(r(t)||s(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};let{isExportDefaultDeclaration:r,isExportNamedDeclaration:s}=i(58135)},58121(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){Object.assign(e.prototype,{Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}})}},6385(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||p(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=s.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&o(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(a(e.property)&&"number"==typeof e.property.value&&(t=!0),t){let t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!n(t,{callee:e})&&!o(t)&&!l(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let i=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),i(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e,{optional:i,property:r}=e;if(this.print(e.object),!t&&o(r))throw TypeError("Got a MemberExpression for MemberExpression property");a(r)&&"number"==typeof r.value&&(t=!0),i&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(i||this.tokenChar(46),this.print(r))},t.ParenthesizedExpression=function(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){let{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var r=i(58135),s=i(21956);let{isCallExpression:n,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:p}=r},93464(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),s.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h.call(this,e)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){let{explicitType:t}=e;p(this,"boolean",t),c(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){let{id:t,body:i}=e;this.word("enum"),this.space(),this.print(t),this.print(i)},t.EnumDefaultedMember=function(e){let{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){let{explicitType:t}=e;p(this,"number",t),c(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){let{explicitType:t}=e;p(this,"string",t),c(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){p(this,"symbol",!0),c(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let i=null==t?void 0:t.type;null!=i&&("ObjectTypeCallProperty"===i||"ObjectTypeInternalSlot"===i||"DeclareFunction"===i||"ObjectTypeProperty"===i&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),("get"===e.kind||"set"===e.kind)&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=n.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,f)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,i,r;this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type&&(null!=(i=e.mixins)&&i.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))),this.space(),this.print(e.body)},t._variance=function(e){var t;let i=null==(t=e.variance)?void 0:t.kind;null!=i&&("plus"===i?this.tokenChar(43):"minus"===i&&this.tokenChar(45))};var r=i(58135),s=i(58231),n=i(21956),a=i(32387);let{isDeclareExportDeclaration:o,isStatement:l}=r;function p(e,t,i){i&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function c(e,t){let{members:i}=t;for(let t of(e.token("{"),e.indent(),e.newline(),i))e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function u(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function h(e){if(e.declaration){let t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function d(e){this.space(),this.token("&",!1,e),this.space()}function f(e){this.space(),this.token("|",!1,e),this.space()}},62798(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(94403);Object.keys(r).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=i(6385);Object.keys(s).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var n=i(57734);Object.keys(n).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var a=i(19534);Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=i(74564);Object.keys(o).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var l=i(58231);Object.keys(l).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=i(32387);Object.keys(p).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var c=i(93464);Object.keys(c).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var u=i(22005);Object.keys(u).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var h=i(25083);Object.keys(h).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var d=i(39919);Object.keys(d).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})})},25083(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){for(let t of(this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){for(let t of(this.print(e.openingFragment),this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,i)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){let t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)};function i(){this.space()}},74564(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=s.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){let t=e.kind,i=e.key;("get"===t||"set"===t)&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),("method"===t||"init"===t)&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(i),this.tokenChar(93)):this.print(i),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){let i=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),s=e.length;for(let t=0;t<s;t++)this._param(e[t]),(r||t<s-1)&&(this.token(",",void 0,t),this.space());this.token(t),i()},t._params=function(e,t,i){this.print(e.typeParameters);let r=a.call(this,t,i);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");let s="ArrowFunctionExpression"===e.type;this.print(e.returnType,s),this._noLineTerminator=s},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,i;if(1!==e.params.length||e.typeParameters||e.returnType||e.predicate)return!0;let r=e.params[0];if(!n(r)||r.typeAnnotation||r.optional||null!=(t=r.leadingComments)&&t.length||null!=(i=r.trailingComments)&&i.length)return!0;if(this.tokenMap){if(null==e.loc||null!==this.tokenMap.findMatching(e,"("))return!0;let t=this.tokenMap.findMatching(e,"=>");return(null==t?void 0:t.loc)==null||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var r=i(58135),s=i(21956);let{isIdentifier:n}=r;function a(e,t){var i,r,s,n;let a,o=e;if(!o&&t){let e=t.type;"VariableDeclarator"===e?o=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?o=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(o=t.key):("ClassPrivateProperty"===e||"ClassAccessorProperty"===e)&&(o=t.key)}if(o)return"Identifier"===o.type?a={pos:null==(i=o.loc)?void 0:i.start,name:(null==(r=o.loc)?void 0:r.identifierName)||o.name}:"PrivateName"===o.type?a={pos:null==(s=o.loc)?void 0:s.start,name:"#"+o.id.name}:"StringLiteral"===o.type&&(a={pos:null==(n=o.loc)?void 0:n.start,name:o.value}),a}},58231(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,i;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){h(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=s.TokenContext.exportDefault;let t=e.declaration;this.print(t),c(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(h(this,e),this.word("export"),this.space(),e.declaration){let t=e.declaration;this.print(t),c(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());let r=e.specifiers.slice(0),s=!1;for(;;){let e=r[0];if(a(e)||o(e))s=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space());else break}let n=!1;if(!r.length&&(r.length||s)||(n=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,i;this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,n)):this.print(e.source)}this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,i;this.word("import"),this.space();let r="type"===e.importKind||"typeof"===e.importKind;r?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let e=s[0];if(l(e)||p(e))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var i;let{importAttributesKeyword:r}=this.format,{attributes:s,assertions:n}=e;s&&!r&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u&&(u=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a="assert"===r||!r&&n;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===r||!r&&null!=(i=e.extra)&&i.deprecatedWithLegacySyntax))return void this.printList(s||n);let o=+!!t;this.token("{",void 0,o),this.space(),this.printList(s||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)};var r=i(58135),s=i(21956);let{isClassDeclaration:n,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:p,isStatement:c}=r,u=!1;function h(e,t){n(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},57734(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),l(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),l(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&n(function e(t){let{body:i}=t;return!1===a(i)?t:e(i)}(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),l(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test)):this.word("default"),this.tokenChar(58),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),l(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());let{kind:i}=e;"await using"===i?(this.word("await"),this.space(),this.word("using",!0)):this.word(i,"using"===i),this.space();let n=!1;if(!r(t))for(let t of e.declarations)t.init&&(n=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?function(e){this.token(",",!1,e),this.newline()}:void 0),r(t)){if(s(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};let{isFor:r,isForStatement:s,isIfStatement:n,isStatement:a}=i(58135);function o(e){this.word("for"),this.space();let t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let i=this.enterForXStatementInit(t);this.print(e.left),null==i||i()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function l(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=o,t.ForOfStatement=o},94403(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){let i=e.quasis,r="`";for(let s=0;s<i.length-1;s++)if(r+=i[s].value.raw,this.token(r+"${",!0),this.print(t[s]),r="}",this.tokenMap){let t=this.tokenMap.findMatching(e,"}",s);t&&this._catchUpTo(t.loc.start)}r+=i[i.length-1].value.raw,this.token(r+"`",!0)}},32387(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){let t=e.elements,i=t.length;this.tokenChar(91);let r=this.enterDelimited();for(let e=0;e<t.length;e++){let r=t[e];r?(e>0&&this.space(),this.print(r),(e<i-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}r(),this.tokenChar(93)},t.BigIntLiteral=function(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){let t=this.getPossibleRaw(e),i=this.format.jsescOption,r=e.value,n=r+"";i.numbers?this.number(s(r,i),r):null==t?this.number(n,r):this.format.minified?this.number(t.length<n.length?t:n,r):this.number(t,r)},t.ObjectPattern=t.ObjectExpression=function(e){let t=e.properties;if(this.tokenChar(123),t.length){let e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(n(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){let t,i,r=e.properties;if("bar"===this.format.recordAndTupleSyntaxType)t="{|",i="|}";else if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else t="#{",i="}";this.token(t),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let i=s(e.value,this.format.jsescOption);this.token(i)},t.TopicReference=function(){let{topicToken:e}=this.format;if(p.has(e))this.token(e);else{let t=JSON.stringify(e),i=Array.from(p,e=>JSON.stringify(e));throw Error(`The "topicToken" generator option must be one of ${i.join(", ")} (${t} received instead).`)}},t.TupleExpression=function(e){let t,i,r=e.elements,s=r.length;if("bar"===this.format.recordAndTupleSyntaxType)t="[|",i="|]";else if("hash"===this.format.recordAndTupleSyntaxType)t="#[",i="]";else throw Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(t);for(let e=0;e<r.length;e++){let t=r[e];t&&(e>0&&this.space(),this.print(t),(e<s-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===o)return l;o=e;let{name:t}=e,i=this.tokenMap.find(e,e=>e.value===t);return l=i?this._originalCode.slice(i.start,i.end):e.name};var r=i(58135),s=i(18398);let{isAssignmentPattern:n,isIdentifier:a}=r,o=null,l="",p=new Set(["^^","@@","^","%","#"])},39919(e,t){function i(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function r(e,t,i){var r;let s=0;null!=(r=e.tokenMap)&&r.startMatches(t,i)&&(s=1,e.token(i)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(i,void 0,e+s),this.space()})}function s(e,t){!0!==t&&e.token(t)}function n(e){a(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)})}function a(e,t,i){e.token("{");let r=e.enterDelimited();i(),r(),e.rightBrace(t)}function o(e,t,i){var r;let s=new Set;for(let e of i)e&&s.add(e);for(let i of(null==(r=e.tokenMap)||r.find(t,t=>!!s.has(t.value)&&(e.token(t.value),e.space(),s.delete(t.value),0===s.size)),s))e.word(i),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){let{type:t,expression:i,typeAnnotation:r}=e;this.print(i,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=n,t.TSEnumDeclaration=function(e){let{declare:t,const:i,id:r}=e;t&&(this.word("declare"),this.space()),i&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),n.call(this,e)},t.TSEnumMember=function(e){let{id:t,initializer:i}=e;this.print(t),i&&(this.space(),this.tokenChar(61),this.space(),this.print(i))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){let{id:t,moduleReference:i}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSImportType=function(e){let{argument:t,qualifier:i,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),i&&(this.tokenChar(46),this.print(i));let s=e.typeParameters;s&&this.print(s)},t.TSIndexSignature=function(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),i(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){a(this,e,()=>this.printJoin(e.body,!0,!0))},t.TSInterfaceDeclaration=function(e){let{declare:t,id:i,typeParameters:r,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(i),this.print(r),null!=s&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){let{nameType:t,optional:i,readonly:r,typeAnnotation:n}=e;this.tokenChar(123);let a=this.enterDelimited();this.space(),r&&(s(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),i&&(s(this,i),this.tokenChar(63)),n&&(this.tokenChar(58),this.space(),this.print(n)),this.space(),a(),this.tokenChar(125)},t.TSMethodSignature=function(e){let{kind:t}=e;("set"===t||"get"===t)&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSModuleBlock=function(e){a(this,e,()=>this.printSequence(e.body,!0))},t.TSModuleDeclaration=function(e){let{declare:t,id:i,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===i.type?"namespace":"module"),this.space()),this.print(i),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),i(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){let{declare:t,id:i,typeParameters:r,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(i),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token(("TSFunctionType"===t.type||"TSConstructorType"===t.type)&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){let{typeAnnotation:t,expression:i}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(i)},t.TSTypeLiteral=function(e){a(this,e,()=>this.printJoin(e.members,!0,!0))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let i="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(i&&(i=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),i||(i=this.shouldPrintTrailingComma(">"))),this.printList(e.params,i),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){let t="ClassPrivateProperty"===e.type,i="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;o(this,e,[i&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),o(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(i||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){let{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")"),this.space();let r=e.typeAnnotation;this.print(r)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){let{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")");let r=e.typeAnnotation;this.print(r)}},2235(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=a;var r=i(9305),s=i(82475);function n(e,t,i){var r;if(t.experimental_preserveFormat){if("string"!=typeof e)throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(i.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=null!=(r=t.recordAndTupleSyntaxType)?r:"hash",s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return n&&!o(n)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}function a(e,t={},i){let o=n(i,t,e),l=t.sourceMaps?new r.default(t,i):null;return new s.default(o,l,e.tokens,"string"==typeof i?i:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=n(i,t,e),this._map=t.sourceMaps?new r.default(t,i):null}generate(){return new s.default(this._format,this._map).generate(this._ast)}},t.default=a},21956(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){let i=a[e.type];for(let r=i.length-1;r>=0;r--){let s=e[i[r]];if(s===t)return!0;if(Array.isArray(s)){let e=s.length-1;for(;e>=0&&null===s[e];)e--;return e>=0&&s[e]===t}if(s)break}return!1},t.needsParens=function(e,t,i,r){var s;return!!t&&(!!(u(t)&&t.callee===e&&function e(t){return!!o(t)||c(t)&&e(t.object)}(e))||(l(t)?!T(e)&&!(o(e)&&T(e.callee))&&!h(e):(null==(s=f.get(e.type))?void 0:s(e,t,i,r))||!1))},t.needsWhitespace=y,t.needsWhitespaceAfter=function(e,t){return y(e,t,2)},t.needsWhitespaceBefore=function(e,t){return y(e,t,1)};var r=i(10899),s=i(45584);let{FLIPPED_ALIAS_KEYS:n,VISITOR_KEYS:a,isCallExpression:o,isDecorator:l,isExpressionStatement:p,isMemberExpression:c,isNewExpression:u,isParenthesizedExpression:h}=i(58135);function d(e){let t=new Map;function i(e,i){let r=t.get(e);t.set(e,r?function(e,t,s,n){var a;return null!=(a=r(e,t,s,n))?a:i(e,t,s,n)}:i)}for(let t of Object.keys(e)){let r=n[t];if(r)for(let s of r)i(s,e[t]);else i(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};let f=d(s),m=d(r.nodes);function y(e,t,i){var r;if(!e)return!1;p(e)&&(e=e.expression);let s=null==(r=m.get(e.type))?void 0:r(e,t);return"number"==typeof s&&(s&i)!=0}function T(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&T(e.object);default:return!1}}},45584(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,i){return!!(P(i)&&u(e.left))||g(e,t)},t.Binary=E,t.BinaryExpression=function(e,t,i){return"in"===e.operator&&!!(i&s.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,i){return!!(i&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=g,t.DoExpression=function(e,t,i){return!e.async&&!!(i&s.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,i){return!!(i&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,i){let r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||!!(i&s.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,i,r){var n;let a=t.type;if(null!=(n=e.extra)&&n.parenthesized&&"AssignmentExpression"===a&&t.left===e){let e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!r||r(e)===e.name)&&("let"===e.name?!!(c(t,{object:e,computed:!0})||h(t,{object:e,computed:!0,optional:!1}))&&!!(i&(s.TokenContext.expressionStatement|s.TokenContext.forInitHead|s.TokenContext.forInHead))||!!(i&s.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){let i=t.type;if(T(i))return!0;if("LogicalExpression"!==i)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return n(t)},t.ObjectExpression=function(e,t,i){return P(i)},t.OptionalIndexedAccessType=function(e,t){return p(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||c(t)&&t.object===e},t.SequenceExpression=function(e,t){let i=t.type;return"SequenceExpression"!==i&&"ParenthesizedExpression"!==i&&("MemberExpression"!==i||t.property!==e)&&("OptionalMemberExpression"!==i||t.property!==e)&&"TemplateLiteral"!==i&&("ClassDeclaration"===i||("ForOfStatement"===i?t.right===e:"ExportDefaultDeclaration"===i||!f(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||E(e,t)},t.TSConditionalType=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||"TSTypeOperator"===i||"TSTypeParameter"===i||("TSIntersectionType"===i||"TSUnionType"===i)&&t.types[0]===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e)||!1},t.TSConstructorType=t.TSFunctionType=function(e,t){let i=t.type;return"TSIntersectionType"===i||"TSUnionType"===i||"TSTypeOperator"===i||"TSOptionalType"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||!!e.typeParameter.constraint&&("TSIntersectionType"===i||"TSUnionType"===i)&&t.types[0]===e},t.TSInstantiationExpression=function(e,t){let i=t.type;return("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i||"TSInstantiationExpression"===i)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){let i=t.type;return"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.UnaryLike=t.TSTypeAssertion=b,t.TSTypeOperator=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.TSUnionType=function(e,t){let i=t.type;return"TSIntersectionType"===i||"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){let i=t.type;return"ArrayTypeAnnotation"===i||"NullableTypeAnnotation"===i||"IntersectionTypeAnnotation"===i||"UnionTypeAnnotation"===i},t.UpdateExpression=function(e,t){return x(e,t)||S(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){let i=t.type;return"BinaryExpression"===i||"LogicalExpression"===i||"UnaryExpression"===i||"SpreadElement"===i||x(e,t)||"AwaitExpression"===i&&d(e)||"ConditionalExpression"===i&&e===t.test||S(e,t)||T(i)};var r=i(58135),s=i(21956);let{isArrayTypeAnnotation:n,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:p,isMemberExpression:c,isObjectPattern:u,isOptionalMemberExpression:h,isYieldExpression:d,isStatement:f}=r,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function y(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function T(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}let S=(e,t)=>{let i=t.type;return("ClassDeclaration"===i||"ClassExpression"===i)&&t.superClass===e},x=(e,t)=>{let i=t.type;return("MemberExpression"===i||"OptionalMemberExpression"===i)&&t.object===e||("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i)&&t.callee===e||"TaggedTemplateExpression"===i&&t.tag===e||"TSNonNullExpression"===i};function P(e){return!!(e&(s.TokenContext.expressionStatement|s.TokenContext.arrowBody))}function E(e,t){let i=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===i&&"**"===t.operator)return t.left===e;if(S(e,t)||x(e,t)||"UnaryExpression"===i||"SpreadElement"===i||"AwaitExpression"===i)return!0;let r=y(t,i);if(null!=r){let s=y(e,e.type);if(r===s&&"BinaryExpression"===i&&t.right===e||r>s)return!0}}function b(e,t){return x(e,t)||a(t)&&"**"===t.operator&&t.left===e||S(e,t)}function g(e,t){let i=t.type;return!!("UnaryExpression"===i||"SpreadElement"===i||"BinaryExpression"===i||"LogicalExpression"===i||"ConditionalExpression"===i&&t.test===e||"AwaitExpression"===i||T(i))||b(e,t)}},10899(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;let{FLIPPED_ALIAS_KEYS:r,isArrayExpression:s,isAssignmentExpression:n,isBinary:a,isBlockStatement:o,isCallExpression:l,isFunction:p,isIdentifier:c,isLiteral:u,isMemberExpression:h,isObjectExpression:d,isOptionalCallExpression:f,isOptionalMemberExpression:m,isStringLiteral:y}=i(58135);function T(e){return function e(t,i){return t&&(h(t)||m(t)?(e(t.object,i),t.computed&&e(t.property,i)):a(t)||n(t)?(e(t.left,i),e(t.right,i)):l(t)||f(t)?(i.hasCall=!0,e(t.callee,i)):p(t)?i.hasFunction=!0:c(t)&&(i.hasHelper=i.hasHelper||t.callee&&S(t.callee))),i}(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function S(e){return!!e&&(h(e)?S(e.object)||S(e.property):c(e)?"require"===e.name||95===e.name.charCodeAt(0):l(e)?S(e.callee):!!(a(e)||n(e))&&(c(e.left)&&S(e.left)||S(e.right)))}let x=t.nodes={AssignmentExpression(e){let t=T(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|2*(!e.consequent.length&&t.cases[t.cases.length-1]===e),LogicalExpression:e=>p(e.left)||p(e.right)?2:0,Literal:e=>y(e)&&"use strict"===e.value?2:0,CallExpression:e=>p(e.callee)||S(e)?3:0,OptionalCallExpression:e=>3*!!p(e.callee),VariableDeclaration(e){for(let i=0;i<e.declarations.length;i++){var t;let r=e.declarations[i],n=S(r.id)&&!(u(t=r.init)||d(t)||s(t)||c(t)||h(t));if(!n&&r.init){let e=T(r.init);n=S(r.init)&&e.hasCall||e.hasFunction}if(n)return 3}return 0},IfStatement:e=>3*!!o(e.consequent)};x.ObjectProperty=x.ObjectTypeProperty=x.ObjectMethod=function(e,t){return+(t.properties[0]===e)},x.ObjectTypeCallProperty=function(e,t){var i;return+(t.callProperties[0]===e&&(null==(i=t.properties)||!i.length))},x.ObjectTypeIndexer=function(e,t){var i,r;return+(t.indexers[0]===e&&(null==(i=t.properties)||!i.length)&&(null==(r=t.callProperties)||!r.length))},x.ObjectTypeInternalSlot=function(e,t){var i,r,s;return+(t.internalSlots[0]===e&&(null==(i=t.properties)||!i.length)&&(null==(r=t.callProperties)||!r.length)&&(null==(s=t.indexers)||!s.length))},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(r[e]||[]).forEach(function(e){let i=3*!!t;x[e]=()=>i})})},82475(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(96405),s=i(21956),n=i(58135),a=i(76697),o=i(62798),l=i(58121);let{isExpression:p,isFunction:c,isStatement:u,isClassBody:h,isTSInterfaceBody:d,isTSEnumMember:f}=n,m=/e/i,y=/\.0+$/,T=/[\n\r\u2028\u2029]/,S=/[\n\r\u2028\u2029]|\*\//;function x(e){return"CommentLine"===e.type||T.test(e.value)}let{needsParens:P}=s;class E{constructor(e,t,i=null,n=null){this.tokenContext=s.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=i,this._originalCode=n,this._indentRepeat=e.indent.style.length,this._inputMap=(null==t?void 0:t._inputMap)||null,this._buf=new r.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=s.TokenContext.forInitHead|s.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=s.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=s.TokenContext.forOfHead,null):(this.tokenContext|=s.TokenContext.forInHead|s.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=s.TokenContext.normal)}enterDelimited(){let e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&s.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=s.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:e}=this;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent++}dedent(){let{format:e}=this;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){let{format:t}=this;if(!t.compact&&!t.preserveFormat){if(e)this._space();else if(this._buf.hasContent()){let e=this.getLastChar();32!==e&&10!==e&&this._space()}}}word(e,t=!1){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){let t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!m.test(e)&&!y.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,i=0){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);let r=this.getLastChar(),n=e.charCodeAt(0);(33===r&&("--"===e||61===n)||43===n&&43===r||45===n&&45===r||46===n&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask;let t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);let i=this.getLastChar();(43===e&&43===i||45===e&&45===i||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,i){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,i))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=t,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){let i=this.tokenMap.findMatching(this._currentNode,e,t);i&&this._catchUpTo(i.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){let{format:i}=this;if(!i.preserveFormat){i.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line);return}let r=null==t?void 0:t[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:i}){let r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();let s=r>0?t:t-this._buf.getCurrentColumn();if(s>0){let e=this._originalCode?this._originalCode.slice(i-s,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(s);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,i){var r,n,a,o;let l,c;if(!e)return;this._endsWithInnerRaw=!1;let u=e.type,h=this.format,d=h.concise;e._compact&&(h.concise=!0);let f=this[u];if(void 0===f)throw ReferenceError(`unknown node of type ${JSON.stringify(u)} with constructor ${JSON.stringify(e.constructor.name)}`);let m=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let y=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!y);let T=null==(r=e.extra)?void 0:r.parenthesized,S=T&&h.preserveFormat||T&&h.retainFunctionParens&&"FunctionExpression"===u||P(e,m,this.tokenContext,h.preserveFormat?this._boundGetRawIdentifier:void 0);if(!S&&T&&null!=(n=e.leadingComments)&&n.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==m?void 0:m.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(m.callee!==e)break;default:S=!0}let E=!1;!S&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(x)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(S=!0,E=!0),!S&&(t||(t=!!m&&this._noLineTerminatorAfterNode===m&&s.isLastChild(m,e)),t&&(null!=(o=e.trailingComments)&&o.some(x)?p(e)&&(S=!0):(l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),S&&(this.tokenChar(40),E&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&s.TokenContext.forInOrInitHeadAccumulate&&(c=this.tokenContext,this.tokenContext=s.TokenContext.normal),l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,m);let b="Program"===u||"File"===u?null:e.loc;this.exactSource(b,f.bind(this,e,m)),S?(this._printTrailingComments(e,m),E&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,c&&(this.tokenContext=c)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,m)):this._printTrailingComments(e,m,i),this._currentNode=m,h.concise=d,this._insideAux=y,void 0!==l&&(this._noLineTerminatorAfterNode=l),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if((null==t?void 0:t.raw)!=null&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,i,r,s,n,a){var o,l,p;if(!(null!=e&&e.length))return;if(null==i&&this.format.retainLines){let t=null==(o=e[0].loc)?void 0:o.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let c={nextNodeStartLine:0},u=null==r?void 0:r.bind(this),h=e.length;for(let i=0;i<h;i++){let r=e[i];r&&(t&&this._printNewline(0===i,c),this.print(r,void 0,a||0),null==n||n(r,i),null!=u&&(i<h-1?u(i,!1):s&&u(i,!0)),t&&(null!=(l=r.trailingComments)&&l.length||(this._lastCommentLine=0),i+1===h?this.newline(1):(c.nextNodeStartLine=(null==(p=e[i+1].loc)?void 0:p.start.line)||0,this._printNewline(!0,c))))}i&&this.dedent()}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){let t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,i){let{innerComments:r,trailingComments:s}=e;null!=r&&r.length&&this._printComments(2,r,e,t,i),null!=s&&s.length&&this._printComments(2,s,e,t,i)}_printLeadingComments(e,t){let i=e.leadingComments;null!=i&&i.length&&this._printComments(0,i,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var i;this.printInnerComments(null==(i=this.tokenMap)?void 0:i.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){let t=this._currentNode,i=t.innerComments;if(!(null!=i&&i.length))return;let r=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,i,t,void 0,void 0,e),r&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,i){this.printJoin(e,!0,null!=t&&t,void 0,void 0,void 0,i)}printList(e,t,i,r,s,n){this.printJoin(e,i,r,null!=s?s:b,t,n)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise)return void this.space();if(!e)return;let r=t.nextNodeStartLine,s=this._lastCommentLine;if(r>0&&s>0){let e=r-s;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&S.test(e.value))return 2;if(t&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(i&&i.start>t.start)return 2}return+(this._printedComments.add(e),!!this.format.shouldPrintComment(e.value))}_printComment(e,t){let i,r=this._noLineTerminator,s="CommentBlock"===e.type,n=s&&1!==t&&!this._noLineTerminator;n&&this._buf.hasContent()&&2!==t&&this.newline(1);let a=this.getLastChar();if(91!==a&&123!==a&&40!==a&&this.space(),s){if(i=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;let t=null==(o=e.loc)?void 0:o.start.column;if(t){let e=RegExp("\\n\\s{1,"+t+"}","g");i=i.replace(e,"\n")}if(this.format.concise)i=i.replace(/\n(?!$)/g,`
2
+ `);else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),i=i.replace(/\n(?!$)/g,`
3
+ ${" ".repeat(e)}`)}}}else i=r?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(i,s),this._printSemicolonBeforeNextNode=r,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(i,s);s||r||this.newline(1,!0),n&&3!==t&&this.newline(1)}_printComments(e,t,i,r,s=0,n){let a=i.loc,o=t.length,l=!!a,p=l?a.start.line:0,m=l?a.end.line:0,y=0,S=0,x=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){let P=t[a],E=this._shouldPrintComment(P,n);if(2===E){l=!1;break}if(l&&P.loc&&1===E){let t=P.loc.start.line,i=P.loc.end.line;if(0===e){let e=0;0===a?this._buf.hasContent()&&("CommentLine"===P.type||t!==i)&&(e=S=1):e=t-y,y=i,x(e),this._printComment(P,1),a+1===o&&(x(Math.max(p-y,S)),y=p)}else if(1===e){let e=t-(0===a?p:y);y=i,x(e),this._printComment(P,1),a+1===o&&(x(Math.min(1,m-y)),y=m)}else{let e=t-(0===a?m-s:y);y=i,x(e),this._printComment(P,1)}}else{if(l=!1,1!==E)continue;if(1===o){let t=P.loc?P.loc.start.line===P.loc.end.line:!T.test(P.value),s=t&&!u(i)&&!h(r)&&!d(r)&&!f(i);0===e?this._printComment(P,s&&"ObjectExpression"!==i.type||t&&c(r,{body:i})?1:0):s&&2===e?this._printComment(P,1):this._printComment(P,0)}else 1!==e||"ObjectExpression"===i.type&&i.properties.length>1||"ClassBody"===i.type||"TSInterfaceBody"===i.type?this._printComment(P,0):this._printComment(P,0===a?2:3*(a===o-1))}}2===e&&l&&y&&(this._lastCommentLine=y)}}function b(e,t){this.token(",",!1,e),t||this.space()}Object.assign(E.prototype,o),(0,l.addDeprecatedGenerators)(E),t.default=E},9305(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(75267),s=i(41969);t.default=class{constructor(e,t){var i,n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let a=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(i=e.sourceFileName)?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new s.TraceMap(e.inputSourceMap);let t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++)(0,r.setSourceContent)(a,t[e],null==(n=this._inputMap.sourcesContent)?void 0:n[e])}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(let e of Object.keys(t))(0,r.setSourceContent)(a,e.replace(/\\/g,"/"),t[e])}else(0,r.setSourceContent)(a,this._sourceFileName,t)}get(){return(0,r.toEncodedMap)(this._map)}getDecoded(){return(0,r.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMappings)(this._map))}mark(e,t,i,n,a,o){var l;let p;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(!(p=(0,s.originalPositionFor)(this._inputMap,{line:t,column:i})).name&&a){let e=(0,s.originalPositionFor)(this._inputMap,a);e.name&&(n=e.name)}}else p={name:null,source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:i};(0,r.maybeAddMapping)(this._map,{name:n,generated:e,source:null==(l=p)?void 0:l.source,original:p})}}},76697(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;let{traverseFast:r,VISITOR_KEYS:s}=i(58135);t.TokenMap=class{constructor(e,t,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=i,r(e,e=>{let t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let i=this._nodesToTokenIndexes.get(e);if(i)for(let e=0;e<i.length;e++){let r=i[e],s=this._tokens[r];if(t(s,r))return s}return null}findLastIndex(e,t){let i=this._nodesToTokenIndexes.get(e);if(i)for(let e=i.length-1;e>=0;e--){let r=i[e];if(t(this._tokens[r],r))return r}return -1}findMatching(e,t,i=0){let r=this._nodesToTokenIndexes.get(e);if(r){let s=0,n=i;if(n>1){let r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<n&&(s=r.i+1,i-=r.count+1)}for(;s<r.length;s++){let a=this._tokens[r[s]];if(this.matchesOriginal(a,t)){if(0===i)return n>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:n,i:s}),a;i--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let r=this._tokens[i[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let r=this._tokens[i[i.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];let{first:t,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1),r=t,n=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}for(let t of s[e.type]){let i=e[t];i&&(Array.isArray(i)?yield*i:yield i)}}(e);("ExportNamedDeclaration"===e.type||"ExportDefaultDeclaration"===e.type)&&e.declaration&&"ClassDeclaration"===e.declaration.type&&n.next();let a=[];for(let e of n){if(null==e||null==e.start||null==e.end)continue;let t=this._findTokensOfNode(e,r,i),s=t.first;for(let e=r;e<s;e++)a.push(e);r=t.last+1}for(let e=r;e<=i;e++)a.push(e);return a}_findTokensOfNode(e,t,i){let r=this._tokensCache.get(e);if(r)return r;let s=this._findFirstTokenOfNode(e.start,t,i),n=this._findLastTokenOfNode(e.end,s,i);return this._tokensCache.set(e,{first:s,last:n}),{first:s,last:n}}_findFirstTokenOfNode(e,t,i){for(;t<=i;){let r=i+t>>1;if(e<this._tokens[r].start)i=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,i){for(;t<=i;){let r=i+t>>1;if(e<this._tokens[r].end)i=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return i}}},80672(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=p,t.readInt=l,t.readStringContents=function(e,t,i,r,s,n){let a=i,l=r,c=s,u="",h=null,d=i,{length:f}=t;for(;;){var m,y,T,S;if(i>=f){n.unterminated(a,l,c),u+=t.slice(d,i);break}let x=t.charCodeAt(i);if(m=e,y=x,T=t,S=i,"template"===m?96===y||36===y&&123===T.charCodeAt(S+1):y===("double"===m?34:39)){u+=t.slice(d,i);break}if(92===x){u+=t.slice(d,i);let a=function(e,t,i,r,s,n){let a=!s;t++;let l=e=>({pos:t,ch:e,lineStart:i,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return l("\n");case 114:return l("\r");case 120:{let s;return{code:s,pos:t}=o(e,t,i,r,2,!1,a,n),l(null===s?null:String.fromCharCode(s))}case 117:{let s;return{code:s,pos:t}=p(e,t,i,r,a,n),l(null===s?null:String.fromCodePoint(s))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:i=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(s)return l(null);n.strictNumericEscape(t-1,i,r);default:if(c>=48&&c<=55){let a=t-1,o=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(o,8);p>255&&(p=parseInt(o=o.slice(0,-1),8)),t+=o.length-1;let c=e.charCodeAt(t);if("0"!==o||56===c||57===c)if(s)return l(null);else n.strictNumericEscape(a,i,r);return l(String.fromCharCode(p))}return l(String.fromCharCode(c))}}(t,i,r,s,"template"===e,n);null!==a.ch||h?u+=a.ch:h={pos:i,lineStart:r,curLine:s},({pos:i,lineStart:r,curLine:s}=a),d=i}else 8232===x||8233===x?(++i,++s,r=i):10===x||13===x?"template"===e?(u+=t.slice(d,i)+"\n",++i,13===x&&10===t.charCodeAt(i)&&++i,++s,d=r=i):n.unterminated(a,l,c):++i}return{pos:i,str:u,firstInvalidLoc:h,lineStart:r,curLine:s,containsInvalid:!!h}};let i={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r=e=>48===e||49===e,s=e=>e>=48&&e<=55,n=e=>e>=48&&e<=57,a=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function o(e,t,i,r,s,n,a,o){let p,c=t;return{n:p,pos:t}=l(e,t,i,r,16,s,n,!1,o,!a),null===p&&(a?o.invalidEscapeSequence(c,i,r):t=c-1),{code:p,pos:t}}function l(e,t,o,l,p,c,u,h,d,f){let m=t,y=16===p?i.hex:i.decBinOct,T=16===p?a:10===p?n:8===p?s:r,S=!1,x=0;for(let i=0,r=null==c?1/0:c;i<r;++i){let i,r=e.charCodeAt(t);if(95===r&&"bail"!==h){let i=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(h){if(Number.isNaN(r)||!T(r)||y.has(i)||y.has(r)){if(f)return{n:null,pos:t};d.unexpectedNumericSeparator(t,o,l)}}else{if(f)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,o,l)}++t;continue}if(r>=97)i=r-97+10;else if(r>=65)i=r-65+10;else i=r>=48&&r<=57?r-48:1/0;if(i>=p)if(i<=9&&f)return{n:null,pos:t};else if(i<=9&&d.invalidDigit(t,o,l,p))i=0;else if(u)i=0,S=!0;else break;++t,x=x*p+i}return t===m||null!=c&&t-m!==c||S?{n:null,pos:t}:{n:x,pos:t}}function p(e,t,i,r,s,n){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=o(e,t,i,r,e.indexOf("}",t)-t,!0,s,n),++t,null!==a&&a>1114111)if(!s)return{code:null,pos:t};else n.invalidCodePoint(t,i,r)}else({code:a,pos:t}=o(e,t,i,r,4,!1,s,n));return{code:a,pos:t}}},41628(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=c,t.isIdentifierName=function(e){let t=!0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);if((64512&r)==55296&&i+1<e.length){let t=e.charCodeAt(++i);(64512&t)==56320&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!p(r))return!1}else if(!c(r))return!1}return!t},t.isIdentifierStart=p;let i="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s=RegExp("["+i+"]"),n=RegExp("["+i+r+"]");let 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 l(e,t){let i=65536;for(let r=0,s=t.length;r<s&&!((i+=t[r])>e);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function p(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):l(e,a)))}function c(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},14007(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return s.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return s.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return s.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return s.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return s.isStrictReservedWord}});var r=i(41628),s=i(82364)},82364(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return i.has(e)},t.isReservedWord=n,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;let i=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"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),s=new Set(["eval","arguments"]);function n(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return n(e,t)||r.has(e)}function o(e){return s.has(e)}},46773(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=i}}class r{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 s(e,t){let{line:r,column:s,index:n}=e;return new i(r,s+t,n+t)}let n="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",a={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"},o=e=>"UpdateExpression"===e.type?a.UpdateExpression[`${e.prefix}`]:a[e.type],l=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var p=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 ${o({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.'});let c=["message"];function u(e,t,i){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:i})}function h(e,t){if(Array.isArray(e))return t=>h(t,e[0]);let r={};for(let s of Object.keys(e)){let n=e[s],a="string"==typeof n?{message:()=>n}:"function"==typeof n?{message:n}:n,{message:o}=a,l=function(e,t){if(null==e)return{};var i={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}(a,c),p="string"==typeof o?()=>o:o;r[s]=function({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){let n="MissingPlugin"===r||"MissingOneOfPlugins"===r;{let e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[r]&&(r=e[r])}return function a(o,l){let p=SyntaxError();return p.code=t,p.reasonCode=r,p.loc=o,p.pos=o.index,p.syntaxPlugin=s,n&&(p.missingPlugin=l.missingPlugin),u(p,"clone",function(e={}){var t;let{line:r,column:s,index:n}=null!=(t=e.loc)?t:o;return a(new i(r,s,n),Object.assign({},l,e.details))}),u(p,"details",l),Object.defineProperty(p,"message",{configurable:!0,get(){let t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),p}}(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:p},t?{syntaxPlugin:t}:{},l))}return r}let d=Object.assign({},h({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:n},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:n}}),h({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.",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.",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\`.
4
+ - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"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 ${"BreakStatement"===e?"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.
5
+ - 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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",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 ${o(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${o(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${o(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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),h({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."}),h({ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`}),h`pipelineOperator`(p)),{defineProperty:f}=Object,m=(e,t)=>{e&&f(e,t,{enumerable:!1,value:e[t]})};function y(e){return m(e.loc.start,"index"),m(e.loc.end,"index"),e}class T{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}let S={brace:new T("{"),j_oTag:new T("<tag"),j_cTag:new T("</tag"),j_expr:new T("<tag>...</tag>",!0)};S.template=new T("`",!0);class x{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=null!=t.binop?t.binop:null,this.updateContext=null}}let P=new Map;function E(e,t={}){t.keyword=e;let i=O(e,t);return P.set(e,i),i}function b(e,t){return O(e,{beforeExpr:!0,binop:t})}let g=-1,A=[],v=[],I=[],C=[],w=[],N=[];function O(e,t={}){var i,r,s,n;return++g,v.push(e),I.push(null!=(i=t.binop)?i:-1),C.push(null!=(r=t.beforeExpr)&&r),w.push(null!=(s=t.startsExpr)&&s),N.push(null!=(n=t.prefix)&&n),A.push(new x(e,t)),g}function k(e,t={}){var i,r,s,n;return++g,P.set(e,g),v.push(e),I.push(null!=(i=t.binop)?i:-1),C.push(null!=(r=t.beforeExpr)&&r),w.push(null!=(s=t.startsExpr)&&s),N.push(null!=(n=t.prefix)&&n),A.push(new x("name",t)),g}let D={bracketL:O("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:O("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:O("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:O("]"),bracketBarR:O("|]"),braceL:O("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:O("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:O("#{",{beforeExpr:!0,startsExpr:!0}),braceR:O("}"),braceBarR:O("|}"),parenL:O("(",{beforeExpr:!0,startsExpr:!0}),parenR:O(")"),comma:O(",",{beforeExpr:!0}),semi:O(";",{beforeExpr:!0}),colon:O(":",{beforeExpr:!0}),doubleColon:O("::",{beforeExpr:!0}),dot:O("."),question:O("?",{beforeExpr:!0}),questionDot:O("?."),arrow:O("=>",{beforeExpr:!0}),template:O("template"),ellipsis:O("...",{beforeExpr:!0}),backQuote:O("`",{startsExpr:!0}),dollarBraceL:O("${",{beforeExpr:!0,startsExpr:!0}),templateTail:O("...`",{startsExpr:!0}),templateNonTail:O("...${",{beforeExpr:!0,startsExpr:!0}),at:O("@"),hash:O("#",{startsExpr:!0}),interpreterDirective:O("#!..."),eq:O("=",{beforeExpr:!0,isAssign:!0}),assign:O("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:O("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:O("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:O("_=",{beforeExpr:!0,isAssign:!0}),incDec:O("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:O("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:O("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:O("^^",{startsExpr:!0}),doubleAt:O("@@",{startsExpr:!0}),pipeline:b("|>",0),nullishCoalescing:b("??",1),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),lt:b("</>/<=/>=",7),gt:b("</>/<=/>=",7),relational:b("</>/<=/>=",7),bitShift:b("<</>>/>>>",8),bitShiftL:b("<</>>/>>>",8),bitShiftR:b("<</>>/>>>",8),plusMin:O("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:O("%",{binop:10,startsExpr:!0}),star:O("*",{binop:10}),slash:b("/",10),exponent:O("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:E("in",{beforeExpr:!0,binop:7}),_instanceof:E("instanceof",{beforeExpr:!0,binop:7}),_break:E("break"),_case:E("case",{beforeExpr:!0}),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",{beforeExpr:!0}),_else:E("else",{beforeExpr:!0}),_finally:E("finally"),_function:E("function",{startsExpr:!0}),_if:E("if"),_return:E("return",{beforeExpr:!0}),_switch:E("switch"),_throw:E("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:E("try"),_var:E("var"),_const:E("const"),_with:E("with"),_new:E("new",{beforeExpr:!0,startsExpr:!0}),_this:E("this",{startsExpr:!0}),_super:E("super",{startsExpr:!0}),_class:E("class",{startsExpr:!0}),_extends:E("extends",{beforeExpr:!0}),_export:E("export"),_import:E("import",{startsExpr:!0}),_null:E("null",{startsExpr:!0}),_true:E("true",{startsExpr:!0}),_false:E("false",{startsExpr:!0}),_typeof:E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:E("do",{isLoop:!0,beforeExpr:!0}),_for:E("for",{isLoop:!0}),_while:E("while",{isLoop:!0}),_as:k("as",{startsExpr:!0}),_assert:k("assert",{startsExpr:!0}),_async:k("async",{startsExpr:!0}),_await:k("await",{startsExpr:!0}),_defer:k("defer",{startsExpr:!0}),_from:k("from",{startsExpr:!0}),_get:k("get",{startsExpr:!0}),_let:k("let",{startsExpr:!0}),_meta:k("meta",{startsExpr:!0}),_of:k("of",{startsExpr:!0}),_sent:k("sent",{startsExpr:!0}),_set:k("set",{startsExpr:!0}),_source:k("source",{startsExpr:!0}),_static:k("static",{startsExpr:!0}),_using:k("using",{startsExpr:!0}),_yield:k("yield",{startsExpr:!0}),_asserts:k("asserts",{startsExpr:!0}),_checks:k("checks",{startsExpr:!0}),_exports:k("exports",{startsExpr:!0}),_global:k("global",{startsExpr:!0}),_implements:k("implements",{startsExpr:!0}),_intrinsic:k("intrinsic",{startsExpr:!0}),_infer:k("infer",{startsExpr:!0}),_is:k("is",{startsExpr:!0}),_mixins:k("mixins",{startsExpr:!0}),_proto:k("proto",{startsExpr:!0}),_require:k("require",{startsExpr:!0}),_satisfies:k("satisfies",{startsExpr:!0}),_keyof:k("keyof",{startsExpr:!0}),_readonly:k("readonly",{startsExpr:!0}),_unique:k("unique",{startsExpr:!0}),_abstract:k("abstract",{startsExpr:!0}),_declare:k("declare",{startsExpr:!0}),_enum:k("enum",{startsExpr:!0}),_module:k("module",{startsExpr:!0}),_namespace:k("namespace",{startsExpr:!0}),_interface:k("interface",{startsExpr:!0}),_type:k("type",{startsExpr:!0}),_opaque:k("opaque",{startsExpr:!0}),name:O("name",{startsExpr:!0}),placeholder:O("%%",{startsExpr:!0}),string:O("string",{startsExpr:!0}),num:O("num",{startsExpr:!0}),bigint:O("bigint",{startsExpr:!0}),decimal:O("decimal",{startsExpr:!0}),regexp:O("regexp",{startsExpr:!0}),privateName:O("#name",{startsExpr:!0}),eof:O("eof"),jsxName:O("jsxName"),jsxText:O("jsxText",{beforeExpr:!0}),jsxTagStart:O("jsxTagStart",{startsExpr:!0}),jsxTagEnd:O("jsxTagEnd")};function L(e){return e>=93&&e<=133}function _(e){return e>=58&&e<=133}function M(e){return e>=58&&e<=137}function F(e){return e>=129&&e<=131}function B(e){return e>=58&&e<=92}function j(e){return e>=24&&e<=25}A[8].updateContext=e=>{e.pop()},A[5].updateContext=A[7].updateContext=A[23].updateContext=e=>{e.push(S.brace)},A[22].updateContext=e=>{e[e.length-1]===S.template?e.pop():e.push(S.template)},A[143].updateContext=e=>{e.push(S.j_expr,S.j_oTag)};let R="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",U="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",K=RegExp("["+R+"]"),V=RegExp("["+R+U+"]");R=U=null;let q=[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],J=[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 Y(e,t){let i=65536;for(let r=0,s=t.length;r<s&&!((i+=t[r])>e);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function X(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&K.test(String.fromCharCode(e)):Y(e,q)))}function W(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&V.test(String.fromCharCode(e)):Y(e,q)||Y(e,J))))}let H=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"]),z=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),$=new Set(["eval","arguments"]);function G(e,t){return t&&"await"===e||"enum"===e}function Q(e,t){return G(e,t)||z.has(e)}function Z(e,t){return Q(e,t)||$.has(e)}let ee=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"]);class et{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ei{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(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new et(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,i){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,i);let s=r.names.get(e)||0;16&t?s|=4:(r.firstLexicalName||(r.firstLexicalName=e),s|=2),r.names.set(e,s),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let s=this.scopeStack.length-1;s>=0&&(r=this.scopeStack[s],this.checkRedeclarationInScope(r,e,t,i),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(1667&r.flags));--s);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,i,r){this.isRedeclaredInScope(e,t,i)&&this.parser.raise(d.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,i){if(!(1&i))return!1;if(8&i)return e.names.has(t);let r=e.names.get(t)||0;return 16&i?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>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(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class er extends et{constructor(...e){super(...e),this.declareFunctions=new Set}}class es extends ei{createScope(e){return new er(e)}declareName(e,t,i){let r=this.currentScope();if(2048&t){this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,i)}isRedeclaredInScope(e,t,i){if(super.isRedeclaredInScope(e,t,i))return!0;if(2048&i&&!e.declareFunctions.has(t)){let i=e.names.get(t);return(4&i)>0||(2&i)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}let en=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ea=h`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:i})=>`Enum \`${e}\` has type \`${i}\`, so the initializer of \`${t}\` needs to be a ${i} 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:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${i}\`, 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 eo(e){return"type"===e.importKind||"typeof"===e.importKind}let el={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ep=/\*?\s*@((?:no)?flow)\b/,ec={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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:"♦"},eu=RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function eh(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function ed(e,t,i){for(let r=t;r<i;r++)if(eh(e.charCodeAt(r)))return!0;return!1}let ef=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,em=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,ey=h`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 eT(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function eS(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return eS(e.object)+"."+eS(e.property);throw Error("Node had unexpected type: "+e.type)}class ex extends et{constructor(...e){super(...e),this.tsNames=new Map}}class eP extends ei{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new ex(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!t&&i>1){for(let t=0;t<i-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,i){if(4096&t){this.hasImport(e,!0)&&this.parser.raise(d.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),s=r.tsNames.get(e)||0;if(1024&t){this.maybeExportDefined(r,e),r.tsNames.set(e,16|s);return}super.declareName(e,t,i),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e)),s|=1),256&t&&(s|=2),512&t&&(s|=4),128&t&&(s|=8),s&&r.tsNames.set(e,s)}isRedeclaredInScope(e,t,i){let r=e.tsNames.get(t);if((2&r)>0)return!(256&i)||!!(512&i)!=(4&r)>0;if(128&i&&(8&r)>0)if(2&e.names.get(t))return!!(1&i);else return!1;return!!(2&i)&&(1&r)>0||super.isRedeclaredInScope(e,t,i)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let i=this.scopeStack.length;for(let e=i-1;e>=0;e--){let i=this.scopeStack[e].tsNames.get(t);if((1&i)>0||(16&i)>0)return}super.checkLocalExport(e)}}class eE{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function eb(e,t){return 2*!!e|!!t}class eg{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,i]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(i))if((null==r?void 0:r[e])!==i[e])return!1;return!0}}getPluginOption(e,t){var i;return null==(i=this.plugins.get(e))?void 0:i[t]}}function eA(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function ev(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function eI(e,t,i){let r=null,s=t.length;for(;null===r&&s>0;)r=t[--s];null===r||r.start>i.start?ev(e,i.comments):eA(r,i.comments)}class eC extends eg{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,i=t.length;if(0===i)return;let r=i-1,s=t[r];s.start===e.end&&(s.leadingNode=e,r--);let{start:n}=e;for(;r>=0;r--){let i=t[r],s=i.end;if(s>n)i.containingNode=e,this.finalizeComment(i),t.splice(r,1);else{s===n&&(i.trailingNode=e);break}}}finalizeComment(e){var t,i;let{comments:r}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&eA(e.leadingNode,r),null!==e.trailingNode&&(i=e.trailingNode,void 0===i.leadingComments?i.leadingComments=r:i.leadingComments.unshift(...r));else{let i=e.containingNode,s=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(s)-1))switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":eI(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":eI(i,i.arguments,e);break;case"ImportExpression":eI(i,[i.source,null!=(t=i.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":eI(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":eI(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":eI(i,i.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":eI(i,i.members,e);break;default:ev(i,r)}else ev(i,r)}}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:i}=t;if(0===i)return;let r=t[i-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,i){let{commentStack:r}=this.state,s=r.length;if(0===s)return;let n=s-1;for(;n>=0;n--){let s=r[n],a=s.end;if(s.start===i)s.leadingNode=e;else if(a===t)s.trailingNode=e;else if(a<t)break}}}class ew{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=[S.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:n}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=r,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new i(s,n,r)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new ew;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}let eN={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},eO=e=>48===e||49===e,ek=e=>e>=48&&e<=55,eD=e=>e>=48&&e<=57,eL=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function e_(e,t,i,r,s,n){let a=i,o=r,l=s,p="",c=null,u=i,{length:h}=t;for(;;){var d,f,m,y;if(i>=h){n.unterminated(a,o,l),p+=t.slice(u,i);break}let T=t.charCodeAt(i);if(d=e,f=T,m=t,y=i,"template"===d?96===f||36===f&&123===m.charCodeAt(y+1):f===("double"===d?34:39)){p+=t.slice(u,i);break}if(92===T){p+=t.slice(u,i);let a=function(e,t,i,r,s,n){let a=!s;t++;let o=e=>({pos:t,ch:e,lineStart:i,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let s;return{code:s,pos:t}=eM(e,t,i,r,2,!1,a,n),o(null===s?null:String.fromCharCode(s))}case 117:{let s;return{code:s,pos:t}=eB(e,t,i,r,a,n),o(null===s?null:String.fromCodePoint(s))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:i=t,++r;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,i,r);default:if(l>=48&&l<=55){let a=t-1,l=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(l,8);p>255&&(p=parseInt(l=l.slice(0,-1),8)),t+=l.length-1;let c=e.charCodeAt(t);if("0"!==l||56===c||57===c)if(s)return o(null);else n.strictNumericEscape(a,i,r);return o(String.fromCharCode(p))}return o(String.fromCharCode(l))}}(t,i,r,s,"template"===e,n);null!==a.ch||c?p+=a.ch:c={pos:i,lineStart:r,curLine:s},({pos:i,lineStart:r,curLine:s}=a),u=i}else 8232===T||8233===T?(++i,++s,r=i):10===T||13===T?"template"===e?(p+=t.slice(u,i)+"\n",++i,13===T&&10===t.charCodeAt(i)&&++i,++s,u=r=i):n.unterminated(a,o,l):++i}return{pos:i,str:p,firstInvalidLoc:c,lineStart:r,curLine:s,containsInvalid:!!c}}function eM(e,t,i,r,s,n,a,o){let l,p=t;return{n:l,pos:t}=eF(e,t,i,r,16,s,n,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(p,i,r):t=p-1),{code:l,pos:t}}function eF(e,t,i,r,s,n,a,o,l,p){let c=t,u=16===s?eN.hex:eN.decBinOct,h=16===s?eL:10===s?eD:8===s?ek:eO,d=!1,f=0;for(let c=0,m=null==n?1/0:n;c<m;++c){let n,c=e.charCodeAt(t);if(95===c&&"bail"!==o){let s=e.charCodeAt(t-1),n=e.charCodeAt(t+1);if(o){if(Number.isNaN(n)||!h(n)||u.has(s)||u.has(n)){if(p)return{n:null,pos:t};l.unexpectedNumericSeparator(t,i,r)}}else{if(p)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,i,r)}++t;continue}if(c>=97)n=c-97+10;else if(c>=65)n=c-65+10;else n=c>=48&&c<=57?c-48:1/0;if(n>=s)if(n<=9&&p)return{n:null,pos:t};else if(n<=9&&l.invalidDigit(t,i,r,s))n=0;else if(a)n=0,d=!0;else break;++t,f=f*s+n}return t===c||null!=n&&t-c!==n||d?{n:null,pos:t}:{n:f,pos:t}}function eB(e,t,i,r,s,n){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=eM(e,t,i,r,e.indexOf("}",t)-t,!0,s,n),++t,null!==a&&a>1114111)if(!s)return{code:null,pos:t};else n.invalidCodePoint(t,i,r)}else({code:a,pos:t}=eM(e,t,i,r,4,!1,s,n));return{code:a,pos:t}}function ej(e,t,r){return new i(r,e-t,e)}let eR=new Set([103,109,115,105,121,117,100,118]);class eU{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)}}class eK extends eC{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,i,r)=>!!(2048&this.optionFlags)&&(this.raise(d.InvalidDigit,ej(e,t,i),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(d.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(d.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(d.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(d.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,i)=>{this.recordStrictModeErrors(d.StrictNumericEscape,ej(e,t,i))},unterminated:(e,t,i)=>{throw this.raise(d.UnterminatedString,ej(e-1,t,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(d.StrictNumericEscape),unterminated:(e,t,i)=>{throw this.raise(d.UnterminatedTemplate,ej(e,t,i))}}),this.state=new ew,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(),256&this.optionFlags&&this.pushToken(new eU(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)}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 ef.lastIndex=e,ef.test(this.input)?ef.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return em.lastIndex=e,em.test(this.input)?em.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(64512&i)==56320&&(t=65536+((1023&t)<<10)+(1023&i))}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 i=this.state.pos,s=this.input.indexOf(e,i+2);if(-1===s)throw this.raise(d.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,eu.lastIndex=i+2;eu.test(this.input)&&eu.lastIndex<=s;)++this.state.curLine,this.state.lineStart=eu.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+e.length),loc:new r(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(n),n}skipLineComment(e){let t,i=this.state.pos;this.isLookahead||(t=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!eh(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,a={type:"CommentLine",value:this.input.slice(i+e,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n),loc:new r(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){let e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++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("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(function(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}}(i))++this.state.pos;else if(45===i&&!this.inModule&&8192&this.optionFlags){let i=this.state.pos;if(45===this.input.charCodeAt(i+1)&&62===this.input.charCodeAt(i+2)&&(0===e||this.state.lineStart>e)){let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}else break e}else if(60===i&&!this.inModule&&8192&this.optionFlags){let e=this.state.pos;if(33===this.input.charCodeAt(e+1)&&45===this.input.charCodeAt(e+2)&&45===this.input.charCodeAt(e+3)){let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}else break e}else break e}}if((null==t?void 0:t.length)>0){let i=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),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 i=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(d.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?d.RecordExpressionHashIncorrectStartSyntaxType:d.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else X(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++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):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!eh(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(t+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let t=42===e?55:54,i=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(i++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(i++,t=37===e?33:30),this.finishOp(t,i)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e)return void(61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2));if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}61===t?this.finishOp(30,2):this.finishOp(124===e?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&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):61===t?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);60===t?61===this.input.charCodeAt(e+2)?this.finishOp(30,3):this.finishOp(51,2):61===t?this.finishOp(49,2):this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61===t?this.finishOp(49,2):this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61===t)return void this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);if(61===e&&62===t){this.state.pos+=2,this.finishToken(19);return}this.finishOp(61===e?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}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")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.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")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.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")&&58===this.input.charCodeAt(this.state.pos+1)?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(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}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(X(e))return void this.readWord(e)}throw this.raise(d.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let i=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,i)}readRegexp(){let e,t,i=this.state.startLoc,r=this.state.start+1,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(d.UnterminatedRegExp,s(i,1));let r=this.input.charCodeAt(n);if(eh(r))throw this.raise(d.UnterminatedRegExp,s(i,1));if(e)e=!1;else{if(91===r)t=!0;else if(93===r&&t)t=!1;else if(47===r&&!t)break;e=92===r}}let a=this.input.slice(r,n);++n;let o="",l=()=>s(i,n+2-r);for(;n<this.length;){let e=this.codePointAtPos(n),t=String.fromCharCode(e);if(eR.has(e))118===e?o.includes("u")&&this.raise(d.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(d.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(d.DuplicateRegExpFlags,l());else if(W(e)||92===e)this.raise(d.MalformedRegExpFlags,l());else break;++n,o+=t}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,i=!1,r=!0){let{n:s,pos:n}=eF(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,i,r,this.errorHandlers_readInt,!1);return this.state.pos=n,s}readRadixNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(d.InvalidDigit,s(i,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,r=!0;else if(109===a)throw this.raise(d.InvalidDecimal,i);if(X(this.codePointAtPos(this.state.pos)))throw this.raise(d.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,n)}readNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1,n=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(d.InvalidNumber,this.state.curPosition());let l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(d.StrictOctalLiteral,i),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(d.ZeroDigitNumericSeparator,s(i,t))}o=l&&!/[89]/.test(e)}let p=this.input.charCodeAt(this.state.pos);if(46!==p||o||(++this.state.pos,this.readInt(10),r=!0,p=this.input.charCodeAt(this.state.pos)),69!==p&&101!==p||o||((43===(p=this.input.charCodeAt(++this.state.pos))||45===p)&&++this.state.pos,null===this.readInt(10)&&this.raise(d.InvalidOrMissingExponent,i),r=!0,a=!0,p=this.input.charCodeAt(this.state.pos)),110===p&&((r||l)&&this.raise(d.InvalidBigIntLiteral,i),++this.state.pos,n=!0),109===p){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(d.InvalidDecimal,i),++this.state.pos;var c=!0}if(X(this.codePointAtPos(this.state.pos)))throw this.raise(d.NumberIdentifier,this.state.curPosition());let u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)return void this.finishToken(136,u);if(c)return void this.finishToken(137,u);let h=o?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){let{code:t,pos:i}=eB(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,t}readString(e){let{str:t,pos:i,curLine:r,lineStart:s}=e_(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=s,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:s,curLine:n,lineStart:a}=e_("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,r&&(this.state.firstInvalidTemplateEscapePos=new i(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(s)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let i=t.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,t):this.state.strictErrors.set(i,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",i=this.state.pos,r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(W(e))this.state.pos+=e<=65535?1:2;else if(92===e){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),s=this.state.pos===i?X:W;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(d.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let n=this.readCodePoint(!0);null!==n&&(s(n)||this.raise(d.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(n)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),i=P.get(t);void 0!==i?this.finishToken(i,v[i]):this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;B(e)&&this.state.containsEsc&&this.raise(d.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:v[e]})}raise(e,t,r={}){let s=e(t instanceof i?t:t.loc.start,r);if(!(2048&this.optionFlags))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,t,r={}){let s=t instanceof i?t:t.loc.start,n=s.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let i=a[t];if(i.loc.index===n)return a[t]=e(s,r);if(i.loc.index<n)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(d.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?v[t]:null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(d.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(d.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,i,r)=>{this.raise(e,ej(t,i,r))}}}class eV{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class eq{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 eV)}exit(){let e=this.stack.pop(),t=this.current();for(let[i,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(i)||t.undefinedPrivateNames.set(i,r):this.parser.raise(d.InvalidPrivateFieldResolution,r,{identifierName:i})}declarePrivateName(e,t,i){let{privateNames:r,loneAccessors:s,undefinedPrivateNames:n}=this.current(),a=r.has(e);if(3&t){let i=a&&s.get(e);if(i){let r=4&t;(a=(3&i)==(3&t)||(4&i)!==r)||s.delete(e)}else a||s.set(e,t)}a&&this.parser.raise(d.PrivateNameRedeclaration,i,{identifierName:e}),r.add(e),n.delete(e)}usePrivateName(e,t){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,t):this.parser.raise(d.InvalidPrivateFieldResolution,t,{identifierName:e})}}class eJ{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class eY extends eJ{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let i=t.index;this.declarationErrors.set(i,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class eX{constructor(e){this.parser=void 0,this.stack=[new eJ],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let i=t.loc.start,{stack:r}=this,s=r.length-1,n=r[s];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i),n=r[--s]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,t){let{stack:i}=this,r=i[i.length-1],s=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,s);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,s)}}recordAsyncArrowParametersError(e){let{stack:t}=this,i=t.length-1,r=t[i];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(d.AwaitBindingIdentifier,e),r=t[--i]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,i])=>{this.parser.raise(t,i);let r=e.length-2,s=e[r];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(i.index),s=e[--r]})}}class eW extends eK{addExtra(e,t,i,r=!0){if(!e)return;let{extra:s}=e;null==s&&(e.extra=s={}),r?s[t]=i:Object.defineProperty(s,t,{enumerable:r,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let i=this.input.charCodeAt(e+t.length);return!(W(i)||(64512&i)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ed(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return ed(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(d.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let i={node:null};try{let r=e((e=null)=>{throw i.node=e,i});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(r){let e=this.state;if(this.state=t,r instanceof SyntaxError)return{node:null,error:r,thrown:!0,aborted:!1,failState:e};if(r===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:e};throw r}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:r,privateKeyLoc:s,optionalParametersLoc:n,voidPatternLoc:a}=e,o=!!i||!!r||!!n||!!s||!!a;if(!t)return o;null!=i&&this.raise(d.InvalidCoverInitializedName,i),null!=r&&this.raise(d.DuplicateProto,r),null!=s&&this.raise(d.UnexpectedPrivateField,s),null!=n&&this.unexpected(n),null!=a&&this.raise(d.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return M(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){let t=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let s=this.scope,n=this.getScopeHandler();this.scope=new n(this,e);let a=this.prodParam;this.prodParam=new eE;let o=this.classScope;this.classScope=new eq(this);let l=this.expressionScope;return this.expressionScope=new eX(this),()=>{this.state.labels=t,this.exportedIdentifiers=i,this.inModule=r,this.scope=s,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);let t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let i=t?514:1;4&this.optionFlags&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class eH{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class ez{constructor(e,t,i){this.type="",this.start=t,this.end=0,this.loc=new r(i),(null==e?void 0:e.optionFlags)&128&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}let e$=ez.prototype;e$.__clone=function(){let e=new ez(void 0,this.start,this.loc.start),t=Object.keys(this);for(let i=0,r=t.length;i<r;i++){let r=t[i];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class eG extends eW{startNode(){let e=this.state.startLoc;return new ez(this,e.index,e)}startNodeAt(e){return new ez(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,i){return e.type=t,e.end=i.index,e.loc.end=i,128&this.optionFlags&&(e.range[1]=i.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:i,end:r,loc:s,range:n,name:a}=e,o=Object.create(e$);return o.type=t,o.start=i,o.end=r,o.loc=s,o.range=n,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){let{type:t,start:i,end:r,loc:s,range:n,extra:a}=e,o=Object.create(e$);return o.type=t,o.start=i,o.end=r,o.loc=s,o.range=n,o.extra=a,o.value=e.value,o}}let eQ=e=>"ParenthesizedExpression"===e.type?eQ(e.expression):e;class eZ extends eG{toAssignable(e,t=!1){var i,r,s;let n;switch(("ParenthesizedExpression"===e.type||null!=(i=e.extra)&&i.parenthesized)&&(n=eQ(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(d.InvalidParenthesizedAssignment,e):"CallExpression"!==n.type&&"MemberExpression"!==n.type&&!this.isOptionalMemberExpression(n)&&this.raise(d.InvalidParenthesizedAssignment,e):this.raise(d.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let i=0,r=e.properties.length,n=r-1;i<r;i++){let r=e.properties[i],a=i===n;this.toAssignableObjectExpressionProp(r,a,t),a&&"RestElement"===r.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(d.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.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":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(d.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(d.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}}toAssignableObjectExpressionProp(e,t,i){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?d.PatternHasAccessor:d.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,i),t||this.raise(d.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,t,i){let r=e.length-1;for(let s=0;s<=r;s++){let n=e[s];n&&(this.toAssignableListItem(e,s,i),"RestElement"===n.type&&(s<r?this.raise(d.RestTrailingComma,n):t&&this.raise(d.RestTrailingComma,t)))}}toAssignableListItem(e,t,i){let r=e[t];if("SpreadElement"===r.type){this.castNodeTo(r,"RestElement");let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,i)}else this.toAssignable(r,i)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every((e,i)=>"ObjectMethod"!==e.type&&(i===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||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){for(let i of(this.toReferencedList(e,t),e))(null==i?void 0:i.type)==="ArrayExpression"&&this.toReferencedListDeep(i.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();this.next();let t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(d.UnexpectedVoidPattern,t),e.argument=t,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);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,i){let r=1&i,s=[],n=!0;for(;!this.eat(e);)if(n?n=!1:this.expect(12),r&&this.match(12))s.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin("flow")||2&i)&&(r=this.parseFunctionParamType(r)),s.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(2&i)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(d.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());s.push(this.parseBindingElement(i,e))}return s}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(d.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,t,!1,!1,!0,!1)}parseBindingElement(e,t){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(i),t.length&&(i.decorators=t,this.resetStartLocationFromNode(i,t[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;let i=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(d.VoidPatternInitializer,t),i.left=t,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,t,i,r){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";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,i=64,r=!1,s=!1,n=!1,a=!1){var o;let l,p,c=e.type;if(this.isObjectMethod(e))return;let u=this.isOptionalMemberExpression(e);if(u||"MemberExpression"===c){u&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(d.InvalidLhsOptionalChaining,e,{ancestor:t})),64!==i&&this.raise(d.InvalidPropertyBindingPattern,e);return}if("Identifier"===c){this.checkIdentifier(e,i,s);let{name:t}=e;r&&(r.has(t)?this.raise(d.ParamDupe,e):r.add(t));return}"VoidPattern"===c&&"CatchClause"===t.type&&this.raise(d.VoidPatternCatchClauseParam,e);let h=eQ(e);a||(a="CallExpression"===h.type&&("Import"===h.callee.type||"Super"===h.callee.type));let f=this.isValidLVal(c,a,!(n||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,i);if(!0===f)return;if(!1===f){let r=64===i?d.InvalidLhs:d.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}"string"==typeof f?(l=f,p="ParenthesizedExpression"===c):[l,p]=f;let m="ArrayPattern"===c||"ObjectPattern"===c?{type:c}:t,y=e[l];if(Array.isArray(y))for(let e of y)e&&this.checkLVal(e,m,i,r,s,p,!0);else y&&this.checkLVal(y,m,i,r,s,p,a)}checkIdentifier(e,t,i=!1){var r;this.state.strict&&(i?Z(e.name,this.inModule):(r=e.name,$.has(r)))&&(64===t?this.raise(d.StrictEvalArguments,e,{referenceName:e.name}):this.raise(d.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(d.LetInLexicalBinding,e),64&t||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(d.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?d.RestTrailingComma:d.ElementAfterRest,this.state.startLoc),!0)}}let e0=/in(?:stanceof)?|as|satisfies/y;function e1(e){if(!e)throw Error("Assert fail")}let e2=h`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: '${e}'.`,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.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,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.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,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.",NonClassMethodPropertyHasAbstractModifier:"'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}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function e3(e){return"private"===e||"public"===e||"protected"===e}function e4(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}let e5=h`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),e8=["minimal","fsharp","hack","smart"],e6=["^^","@@","^","%","#"],e9={estree:e=>class extends e{parse(){let e=y(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(y)),e}parseRegExpLiteral({pattern:e,flags:t}){let i=null;try{i=new RegExp(e,t)}catch(e){}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}let i=this.estreeParseLiteral(t);return i.bigint=String(i.value||e),i}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)}estreeParseChainExpression(e,t){let i=this.startNodeAtNode(e);return i.expression=e,this.finishNodeAt(i,"ChainExpression",t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let i=this.castNodeTo(e,"ExpressionStatement");return i.expression=t,i.directive=t.extra.rawValue,delete t.extra,i}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:t,end:i,loc:r,range:s,raw:n,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=i,o.loc=r,o.range=s,o.raw=n,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,i,r,s){super.parseBlockBody(e,t,i,r,s);let n=e.directives.map(e=>this.directiveToStmt(e));e.body=n.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 delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let i=super.parseLiteral(e,t);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,t,i=!1){super.parseFunctionBody(e,t,i),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,i,r,s,n,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,i,r,s,n,a),delete o.kind;let{typeParameters:l}=e;return(l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l)),e.value=this.castNodeTo(o,"FunctionExpression"),"ClassPrivateMethod"===n&&(e.computed=!1),"ObjectMethod"===n)?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(t,"PropertyDefinition"),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1),t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")&&(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty")),t}parseObjectProperty(e,t,i,r){let s=super.parseObjectProperty(e,t,i,r);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,i,r){return"Property"===e?"value":super.isValidLVal(e,t,i,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,i){"Property"===e.type&&("get"===e.kind||"set"===e.kind)?this.raise(d.PatternHasAccessor,e.key):"Property"===e.type&&e.method?this.raise(d.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,i)}finishCallExpression(e,t){let i=super.finishCallExpression(e,t);if("Import"===i.callee.type){var r,s;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=null!=(r=i.arguments[1])?r:null,i.attributes=null!=(s=i.arguments[1])?s:null,delete i.arguments,delete i.callee}else"OptionalCallExpression"===i.type?this.castNodeTo(i,"CallExpression"):i.optional=!1;return i}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let i=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var s;let{declaration:e}=r;(null==e?void 0:e.type)==="ClassDeclaration"&&(null==(s=e.decorators)?void 0:s.length)>0&&e.start===r.start&&this.resetStartLocation(r,i)}}return r}stopParseSubscript(e,t){let i=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(i,e.loc.end):i}parseMember(e,t,i,r,s){let n=super.parseMember(e,t,i,r,s);return"OptionalMemberExpression"===n.type?this.castNodeTo(n,"MemberExpression"):n.optional=!1,n}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){let i=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,i){return y(super.finishNodeAt(e,t,i))}finishNode(e,t){let i=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(e,t){super.resetStartLocation(e,t),y(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),y(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ey.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start)return void(60===i&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i));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:eh(i)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,i=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===i&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(d.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadEntity(),i=this.state.pos):eh(r)?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}t+=this.input.slice(i,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,i=!1;for(;t++<10&&this.state.pos<this.length&&!(i=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(i){let t=ec[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(W(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:B(this.state.type)?e.name=v[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 i=this.startNodeAt(e);return i.namespace=t,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let i=this.startNodeAt(e);i.object=t,i.property=this.jsxParseIdentifier(),t=this.finishNode(i,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(S.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,S.j_oTag)).expression.type&&this.raise(ey.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ey.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(S.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=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(S.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(S.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),i=[],r=this.jsxParseOpeningElementAt(e),s=null;if(!r.selfClosing){t:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break t}i.push(this.jsxParseElementAt(e));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let e=this.startNode();this.setContext(S.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e,S.j_expr));break}default:this.unexpected()}eT(r)&&!eT(s)&&null!==s?this.raise(ey.MissingClosingTagFragment,s):!eT(r)&&eT(s)?this.raise(ey.MissingClosingTagElement,s,{openingTagName:eS(r.name)}):eT(r)||eT(s)||eS(s.name)===eS(r.name)||this.raise(ey.MissingClosingTagElement,s,{openingTagName:eS(r.name)})}if(eT(r)?(t.openingFragment=r,t.closingFragment=s):(t.openingElement=r,t.closingElement=s),t.children=i,this.match(47))throw this.raise(ey.UnwrappedAdjacentJSXElements,this.state.startLoc);return eT(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)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===S.j_expr)return void this.jsxReadToken();if(t===S.j_oTag||t===S.j_cTag){if(X(e))return void this.jsxReadWord();if(62===e){++this.state.pos,this.finishToken(144);return}if((34===e||39===e)&&t===S.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:i}=this.state;if(56===i&&143===e)t.splice(-2,2,S.j_cTag),this.state.canStartJSXElement=!1;else if(143===i)t.push(S.j_oTag);else if(144===i){let i=t[t.length-1];i===S.j_oTag&&56===e||i===S.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===S.j_expr):(this.setContext(S.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=C[i]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return es}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=ep.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else if("noflow"===t[1])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 i=this.flowParseType();return this.state.inType=t,i}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(ea.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,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[t,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let s=this.flowParseFunctionTypeParams();return i.params=s.params,i.rest=s.rest,i.this=s._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"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))if(this.match(16))return this.flowParseDeclareModuleExports(e);else return t&&this.raise(ea.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e);if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);else if(this.isContextual(129))return this.flowParseDeclareInterface(e);else if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw 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),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),i=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(ea.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(e))):(this.expectContextual(125,ea.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,s=!1;return i.forEach(e=>{"DeclareExportAllDeclaration"!==e.type&&("DeclareExportDeclaration"!==e.type||e.declaration&&("TypeAlias"===e.declaration.type||"InterfaceDeclaration"===e.declaration.type))?"DeclareModuleExports"===e.type&&(s&&this.raise(ea.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(ea.AmbiguousDeclareModuleKind,e),r="CommonJS",s=!0):("CommonJS"===r&&this.raise(ea.AmbiguousDeclareModuleKind,e),r="ES")}),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(ea.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:el[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"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw 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 this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"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),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=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(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(ea.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,i){en.has(e)&&this.raise(i?ea.AssignReservedType:ea.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),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=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),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=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,i=this.startNode(),r=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return i.name=s.name,i.variance=r,i.bound=s.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(ea.MissingTypeParamDefault,t),this.finishNode(i,"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 i=!1;do{let e=this.flowParseTypeParameter(i);t.params.push(e),e.default&&(i=!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()===S.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())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()!==S.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;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,i){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,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 i=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:i,allowProto:r,allowInexact:s}){let n,a,o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let p=!1;for(t&&this.match(6)?(this.expect(6),n=9,a=!0):(this.expect(5),n=8,a=!1),l.exact=a;!this.match(n);){let t=!1,n=null,o=null,c=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),n=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}let u=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(u&&this.unexpected(u.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(c,t))):l.indexers.push(this.flowParseObjectTypeIndexer(c,t,u));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),u&&this.unexpected(u.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(c,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&M(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(c,t,n,u,e,i,null!=s?s:!a);null===r?(p=!0,o=this.state.lastTokStartLoc):l.properties.push(r)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(ea.UnexpectedExplicitInexactInObject,o)}this.expect(n),i&&(l.inexact=p);let c=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,c}flowParseObjectTypeProperty(e,t,i,r,s,n,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?a||this.raise(ea.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ea.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(ea.InexactVariance,r),null):(n||this.raise(ea.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=i&&this.unexpected(i),r&&this.raise(ea.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=i,e.kind=s;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=i&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===s||"set"===s)&&this.flowCheckGetterSetterParams(e),!n&&"constructor"===e.key.name&&e.value.this&&this.raise(ea.ThisParamBannedInConstructor,e.value.this)):("init"!==s&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t=+("get"!==e.kind),i=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise("get"===e.kind?ea.GetterMayNotHaveThisParam:ea.SetterMayNotHaveThisParam,e.value.this),i!==t&&this.raise("get"===e.kind?d.BadGetterArity:d.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(d.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let i=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=i,t.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(t,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"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,i=!1,r=null,s=this.startNode(),n=this.lookahead(),a=78===this.state.type;return 14===n.type||17===n.type?(a&&!e&&this.raise(ea.ThisParamMustBeFirst,s),t=this.parseIdentifier(a),this.eat(17)&&(i=!0,a&&this.raise(ea.ThisParamMayNotBeOptional,s)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),s.name=t,s.optional=i,s.typeAnnotation=r,this.finishNode(s,"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,i=null;for(this.match(78)&&((i=this.flowParseFunctionTypeParam(!0)).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:i}}flowIdentToTypeAnnotation(e,t,i){switch(i.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(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){let e,t,i=this.state.startLoc,r=this.startNode(),s=!1,n=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,t=this.flowParseTupleType(),this.state.noAnonFunctionType=n,t;case 47:{let t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),t.params=(e=this.flowParseFunctionTypeParams()).params,t.rest=e.rest,t.this=e._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{let i=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let e=this.lookahead().type;s=17!==e&&14!==e}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=n,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return i.params=(e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams()).params,i.rest=e.rest,i.this=e._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(ea.UnexpectedSubtractionOperand,this.state.startLoc)}break;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(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(B(this.state.type)){let e=v[this.state.type];return this.next(),super.createIdentifier(r,e)}if(L(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(i,r,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),s=this.eat(18);i=i||s,this.expect(0),!s&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=s,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 1===e.types.length?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 1===e.types.length?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(132!==this.state.type||"_"!==this.state.value)return this.flowParseType();{let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}}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,i=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,i)):super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,t,i=!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,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(_(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 void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,i){if("Identifier"===t.type){if("declare"===t.name){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(L(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);else if("type"===t.name)return this.flowParseTypeAlias(e);else if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return 126===e||F(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return 126===e||F(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,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),s=this.state.noArrowAt,n=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(a);if(o||p.length>0){let e=[...s];if(p.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(a)}o&&l.length>1&&this.raise(ea.AmbiguousConditionalArrow,r.startLoc),o&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,{consequent:a,failed:o}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=s,this.expect(14),n.test=e,n.consequent=a,n.alternate=this.forwardNoArrowParamsConversionAt(n,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(n,"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 i=[e],r=[];for(;0!==i.length;){let e=i.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),i.push(e.body)):"ConditionalExpression"===e.type&&(i.push(e.consequent),i.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):function(e,t){let i=[],r=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?i:r).push(e[s]);return[i,r]}(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=t(),this.state.noArrowParamsConversionAt.pop()):i=t(),i}parseParenItem(e,t){let i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=i,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){("ImportDeclaration"!==e.type||"type"!==e.importKind&&"typeof"!==e.importKind)&&("ExportNamedDeclaration"!==e.type||"type"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||"type"!==e.exportKind)&&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))return super.parseExportDeclaration(e);e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}}eatExportStar(e){return!!super.eatExportStar(e)||!!this.isContextual(130)&&55===this.lookahead().type&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&"type"===e.exportKind&&this.unexpected(t),i}parseClassId(e,t,i){super.parseClassId(e,t,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,i),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(ea.DeclareClassElement,r):t.value&&this.raise(ea.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(d.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);if(123===e&&124===t)this.finishOp(6,2);else if(this.state.inType&&(62===e||60===e))this.finishOp(62===e?48:47,1);else if(this.state.inType&&63===e)46===t?this.finishOp(18,2):this.finishOp(17,1);else{var i;(i=this.input.charCodeAt(this.state.pos+2),64===e&&64===t&&X(i))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,i){for(let t=0;t<e.length;t++){let i=e[t];(null==i?void 0:i.type)==="TypeCastExpression"&&(e[t]=this.typeCastToParameter(i))}super.toAssignableList(e,t,i)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var i;let s=e[r];s&&"TypeCastExpression"===s.type&&!(null!=(i=s.extra)&&i.parenthesized)&&(e.length>1||!t)&&this.raise(ea.TypeCastInPattern,s.typeAnnotation)}return e}parseArrayLike(e,t,i){let r=super.parseArrayLike(e,t,i);return null==i||this.state.maybeInArrowParameters||this.toReferencedList(r.elements),r}isValidLVal(e,t,i,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,i,r)}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,i,r,s,n){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,i,r,s,n),t.params&&s){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ea.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&s&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ea.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,i,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,i,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),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=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 i=t[0];this.isThisParam(i)&&"get"===e.kind?this.raise(ea.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(ea.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,i,r,s,n,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!n&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,t,i,r,s,n,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(ea.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ea.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ea.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ea.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(ea.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ea.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,i){t.local=eo(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){(super.applyImportPhase(e,t,i,r),t)?!i&&this.match(65)||(e.exportKind="type"===i?i:"value"):("type"===i&&this.match(55)&&this.unexpected(),e.importKind="type"===i||"typeof"===i?i:"value")}parseImportSpecifier(e,t,i,r,s){let n=e.imported,a=null;"Identifier"===n.type&&("type"===n.name?a="type":"typeof"===n.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||_(this.state.type)?(e.imported=n,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&_(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(d.ImportBindingIsString,e,{importName:n.value});e.imported=n,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}let l=eo(e);return i&&l&&this.raise(ea.ImportTypeShorthandOnlyInPureImport,e),(i||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||i||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let i=e.kind;"get"!==i&&"set"!==i&&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 i,r,s;let n,a=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),!(n=this.tryParse(()=>super.parseMaybeAssign(e,t),a)).error)return n.node;let{context:i}=this.state,r=i[i.length-1];(r===S.j_oTag||r===S.j_expr)&&i.pop()}if(null!=(i=n)&&i.error||this.match(47)){let i;a=a||this.state.clone();let o=this.tryParse(r=>{var s;i=this.flowParseTypeParameterDeclaration();let n=this.forwardNoArrowParamsConversionAt(i,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,i),r});null!=(s=n.extra)&&s.parenthesized&&r();let a=this.maybeUnwrapTypeCastExpression(n);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=i,this.resetStartLocationFromNode(a,i),n},a),l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ea.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),o.node;l=o.node}if(null!=(r=n)&&r.node)return this.state=n.failState,n.node;if(l)return this.state=o.failState,l;if(null!=(s=n)&&s.thrown)throw n.error;if(o.thrown)throw o.error;throw this.raise(ea.UnexpectedTokenAfterTypeParameter,i)}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 i=this.startNode();return[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});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,i,r=!0){if(!(i&&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(ea.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,i){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();let i=this.startNodeAt(t);i.callee=e,i.arguments=super.parseCallExpressionArguments(),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let r=this.state.clone(),s=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!s.error&&!s.aborted)return s.node;let n=this.tryParse(()=>super.parseSubscripts(e,t,i),r);if(n.node&&!n.error)return n.node;if(s.node)return this.state=s.failState,s.node;if(n.node)return this.state=n.failState,n.node;throw s.error||n.error}return super.parseSubscripts(e,t,i)}parseSubscript(e,t,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let s=this.startNodeAt(t);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),s.arguments=this.parseCallExpressionArguments(),s.optional=!0,this.finishCallExpression(s,!0)}if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(t);i.callee=e;let s=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,r.optionalChainMember)));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,i,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);if(42===e&&47===t&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124===e&&125===t?this.finishOp(9,2):super.readToken_pipe_amp(e)}parseTopLevel(e,t){let i=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(ea.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ea.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}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 i=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===i&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===i&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(d.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:i}){this.raise(ea.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?ea.EnumInvalidMemberInitializerSymbolType:ea.EnumInvalidMemberInitializerPrimaryType:ea.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(ea.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(ea.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);if(t())return{type:"number",loc:i.loc.start,value:i};return{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);if(t())return{type:"string",loc:i.loc.start,value:i};return{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));if(t())return{type:"boolean",loc:i.loc.start,value:i};return{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,i){let{explicitType:r}=t;null!==r&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let n=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(ea.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),i.has(l)&&this.raise(ea.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),i.add(l);let p={enumName:e,explicitType:t,memberName:l};switch(n.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"boolean"),n.init=o.value,r.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"number"),n.init=o.value,r.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"string"),n.init=o.value,r.stringMembers.push(this.finishNode(n,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,p);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,p);break;default:r.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:s}}flowEnumStringMembers(e,t,{enumName:i}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:i});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:i});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(ea.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(ea.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let i=t.name,r=t.loc.start,s=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:n,hasUnknownMembers:a}=this.flowEnumMembers({enumName:i,explicitType:s});switch(e.hasUnknownMembers=a,s){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let s=n.booleanMembers.length,a=n.numberMembers.length,o=n.stringMembers.length,l=n.defaultedMembers.length;if(!s&&!a&&!o&&!l)return t();if(!s&&!a)return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(a||o||!(s>=l))if(s||o||!(a>=l))return this.raise(ea.EnumInconsistentMemberValues,r,{enumName:i}),t();else{for(let e of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else{for(let e of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}}}}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(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript: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:e2.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:e2.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:e2.InvalidModifierOnTypeParameter})}getScopeHandler(){return eP}tsIsIdentifier(){return L(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,i){if(!L(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(e.includes(r)){if(i&&this.match(106)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:i,errorTemplate:r=e2.InvalidModifierOnTypeMember},s){let n=(e,t,i,r)=>{t===i&&s[r]&&this.raise(e2.InvalidModifiersOrder,e,{orderedModifiers:[i,r]})},a=(e,t,i,r)=>{(s[i]&&t===r||s[r]&&t===i)&&this.raise(e2.IncompatibleModifiers,e,{modifiers:[i,r]})};for(;;){let{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),i,s.static);if(!l)break;if(e3(l))s.accessibility?this.raise(e2.DuplicateAccessibilityModifier,o,{modifier:l}):(n(o,l,l,"override"),n(o,l,l,"static"),n(o,l,l,"readonly"),s.accessibility=l);else"in"===l||"out"===l?(s[l]&&this.raise(e2.DuplicateModifier,o,{modifier:l}),s[l]=!0,n(o,l,"in","out")):(hasOwnProperty.call(s,l)?this.raise(e2.DuplicateModifier,o,{modifier:l}):(n(o,l,"static","readonly"),n(o,l,"static","override"),n(o,l,"override","readonly"),n(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),s[l]=!0);null!=t&&t.includes(l)&&this.raise(r,o,{modifier:l})}}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 i=[];for(;!this.tsIsListTerminator(e);)i.push(t());return i}tsParseDelimitedList(e,t,i){var r=this.tsParseDelimitedListWorker(e,t,!0,i);if(null==r)throw Error(`Unexpected ${r} value.`);return r}tsParseDelimitedListWorker(e,t,i,r){let s=[],n=-1;for(;!this.tsIsListTerminator(e);){n=-1;let r=t();if(null==r)return;if(s.push(r),this.eat(12)){n=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=n),s}tsParseBracketedList(e,t,i,r,s){r||(i?this.expect(0):this.expect(47));let n=this.tsParseDelimitedList(e,t,s);return i?this.expect(3):this.expect(48),n}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(e2.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():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")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){let e=this.state.type;L(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){let i=this.startNodeAtNode(t);i.left=t,i.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(i,"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),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=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 i={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),0===t.params.length&&this.raise(e2.EmptyTypeParameters,t),-1!==i.value&&this.addExtra(t,"trailingComma",i.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let i=19===e,r="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),i?t[r]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[r]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;("AssignmentPattern"===e||"TSParameterProperty"===e)&&this.raise(e2.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(),!!L(this.state.type)&&(this.next(),this.match(14))}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 i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(e2.ReadonlyForMethodSignature,e),e.kind&&this.match(47)&&this.raise(e2.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon();let i="parameters",r="typeAnnotation";if("get"===e.kind)e[i].length>0&&(this.raise(d.BadGetterArity,this.state.curPosition()),this.isThisParam(e[i][0])&&this.raise(e2.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===e.kind){if(1!==e[i].length)this.raise(d.BadSetterArity,this.state.curPosition());else{let t=e[i][0];this.isThisParam(t)&&this.raise(e2.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(e2.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(e2.SetAccessorCannotHaveRestParameter,this.state.curPosition())}e[r]&&this.raise(e2.SetAccessorCannotHaveReturnType,e[r])}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}{t&&(e.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),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))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),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()&&(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:i}=e;t&&"TSRestType"!==i&&"TSOptionalType"!==i&&!("TSNamedTupleMember"===i&&e.optional)&&this.raise(e2.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===i&&e.optional||"TSOptionalType"===i)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,i,r,s=this.state.startLoc,n=this.eat(21),{startLoc:a}=this.state,o=_(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,i=!1,t=this.parseIdentifier(!0),this.expect(14),r=this.tsParseType();else if(63===o){i=!0;let s=this.state.value,n=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(a),s),this.expect(17),this.expect(14),r=this.tsParseType()):(e=!1,r=n,this.expect(17))}else r=this.tsParseType(),i=this.eat(17),e=this.eat(14);if(e){let e;t?((e=this.startNodeAt(a)).optional=i,e.label=t,e.elementType=r,this.eat(17)&&(e.optional=!0,this.raise(e2.TupleOptionalAfterType,this.state.lastTokStartLoc))):((e=this.startNodeAt(a)).optional=i,this.raise(e2.InvalidTupleMemberLabel,r),e.label=r,e.elementType=this.tsParseType()),r=this.finishNode(e,"TSNamedTupleMember")}else if(i){let e=this.startNodeAt(a);e.typeAnnotation=r,r=this.finishNode(e,"TSOptionalType")}if(n){let e=this.startNodeAt(s);e.typeAnnotation=r,r=this.finishNode(e,"TSRestType")}return r}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let i=this.startNode();return"TSConstructorType"===e&&(i.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,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 135!==t.type&&136!==t.type&&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(L(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(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}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAt(e);i.elementType=t,this.expect(3),t=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(e);i.objectType=t,i.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(i,"TSIndexedAccessType")}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e2.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(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,i){let r=this.startNode(),s=this.eat(i),n=[];do n.push(t());while(this.eat(i));return 1!==n.length||s?(r.types=n,this.finishNode(r,e)):n[0]}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)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(L(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(e){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(e){}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))return!0;return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(i.parameterName=e,i.asserts=!0,i.typeAnnotation=null,e=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(e,i),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,t.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let n=this.tsParseTypeAnnotation(!1);return i.parameterName=s,i.typeAnnotation=n,i.asserts=r,t.typeAnnotation=this.finishNode(i,"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(109!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),(!!L(this.state.type)||!!this.match(78))&&(e&&this.raise(d.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(){e1(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.isLookaheadContextual("new")}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(e2.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,i=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 i.length||this.raise(e2.EmptyHeritageClauseType,t,{token:e}),i}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),L(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(e2.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"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)&&46!==this.lookaheadCharCode()){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()===S.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}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(1024),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(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,i){e.isExport=i||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(e2.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}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(),i=e();return this.state=t,i}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(),i=e();if(void 0!==i&&!1!==i)return i;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return 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 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return e.declare=!0,this.parseVarStatement(e,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(e2.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(e2.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(L(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,i,r){switch(t){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||L(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);else if(L(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(i)&&L(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(i)&&L(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 i=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,i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())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))))),0===e.params.length?this.raise(e2.EmptyTypeArguments,e):this.state.inType||this.curContext()!==S.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var e;return(e=this.state.type)>=124&&e<=130}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){let i=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let s=r.accessibility,n=r.override,a=r.readonly;!(4&e)&&(s||a||n)&&this.raise(e2.UnexpectedParameterModifier,i);let o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);let l=this.parseMaybeDefault(o.loc.start,o);if(s||a||n){let e=this.startNodeAt(i);return t.length&&(e.decorators=t),s&&(e.accessibility=s),a&&(e.readonly=a),n&&(e.override=n),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(e2.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(e2.PatternIsOptional,t)}setArrowFunctionParameters(e,t,i){super.setArrowFunctionParameters(e,t,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(e2.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{(null==e?void 0:e.type)==="TSTypeCastExpression"&&this.raise(e2.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,i){let r=super.parseArrayLike(e,t,i);return"ArrayExpression"===r.type&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let i=this.startNodeAt(t);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}let s=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(i)return r.stop=!0,e;r.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let n,a=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(s&&!this.match(10)){n=this.state.curPosition();return}if(j(this.state.type)){let i=super.parseTaggedTemplateExpression(e,t,r);return i.typeParameters=a,i}if(!i&&this.eat(10)){let i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(i.arguments),i.typeParameters=a,r.optionalChainMember&&(i.optional=s),this.finishCallExpression(i,r.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&w[o]&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")});if(n&&this.unexpected(n,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(e2.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,r))),a}return super.parseSubscript(e,t,i,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:i}=e;"TSInstantiationExpression"!==i.type||null!=(t=i.extra)&&t.parenthesized||(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,t,i){let r;if(I[58]>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75))?(r&&this.raise(d.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()),this.finishNode(s,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,i)}return super.parseExprOp(e,t,i)}checkReservedWord(e,t,i,r){this.state.isAmbientContext||super.checkReservedWord(e,t,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(e2.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?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){super.applyImportPhase(e,t,i,r),t?e.exportKind="type"===i?"type":"value":e.importKind="type"===i||"typeof"===i?i:"value"}parseImport(e){let t;if(this.match(134))return e.importKind="value",super.parseImport(e);if(L(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,i);t=super.parseImportSpecifiersAndAfter(e,i)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(e2.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}return this.eat(29)?(e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")):this.eatContextual(93)?(this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")):super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}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,i=!1){let{isAmbientContext:r}=this.state,s=super.parseVarStatement(e,t,i||r);if(!r)return s;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(e2.UsingDeclarationInAmbientContext,e,t),s;for(let{id:e,init:i}of s.declarations)i&&("var"===t||"let"===t||e.typeAnnotation?this.raise(e2.InitializerNotAllowedInAmbientContext,i):!function(e,t){var i;let{type:r}=e;if(null!=(i=e.extra)&&i.parenthesized)return!1;if(t){if("Literal"===r){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!!(e4(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:i,argument:r}=e;if("-"===i&&e4(r,t))return!0}return!1}(e,t)||"TemplateLiteral"===r&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:i}=e;return(!t||"StringLiteral"===i.type||"TemplateLiteral"===i.type&&!(i.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(i,this.hasPlugin("estree"))&&this.raise(e2.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,i));return s}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,i=this.startNode();this.next();let r=125===e?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,t);if(r)return 125===e&&(r.declare=!0),r;return i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement")}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>e3(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:e2.InvalidModifierOnTypeParameterPositions},t);let s=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(e2.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,i,!!t.static)};t.declare?this.tsInAmbientContext(s):s()}parseClassMemberWithIsStatic(e,t,i,r){let s=this.tsTryParseIndexSignature(t);if(s){e.body.push(s),t.abstract&&this.raise(e2.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(e2.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(e2.IndexSignatureHasDeclare,t),t.override&&this.raise(e2.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(e2.NonAbstractClassHasAbstractMethod,t),t.override&&!i.hadSuperClass&&this.raise(e2.OverrideNotInSubClass,t),super.parseClassMemberWithIsStatic(e,t,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(e2.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(e2.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}return super.parseConditional(e,t,i)}parseParenItem(e,t){let i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(e2.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=L(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||i)&&(e.exportKind="type"),i&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,i,r){if((!t||i)&&this.isContextual(113))return;super.parseClassId(e,t,i,e.declare?1024:8331);let s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(e.typeParameters=s)}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(e2.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(e2.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e2.PrivateElementHasAbstract,e),e.accessibility&&this.raise(e2.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(e2.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,i,r,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&s&&this.raise(e2.ConstructorHasTypeParameters,a);let{declare:o=!1,kind:l}=t;o&&("get"===l||"set"===l)&&this.raise(e2.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,i,r,s,n)}pushClassPrivateMethod(e,t,i,r){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(t.typeParameters=s),super.pushClassPrivateMethod(e,t,i,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"===e.type||("MethodDefinition"!==e.type||null!=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,i,r,s,n,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,i,r,s,n,a)}parseFunctionParams(e,t){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var i,r,s,n,a;let o,l,p,c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),!(l=this.tryParse(()=>super.parseMaybeAssign(e,t),o)).error)return l.node;let{context:i}=this.state,r=i[i.length-1];(r===S.j_oTag||r===S.j_expr)&&i.pop()}if(!(null!=(i=l)&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());let u=this.tryParse(i=>{var r,s;c=this.tsParseTypeParameters(this.tsParseConstModifier);let n=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized)&&i(),(null==(s=c)?void 0:s.params.length)!==0&&this.resetStartLocationFromNode(n,c),n.typeParameters=c,n},o);if(!u.error&&!u.aborted)return c&&this.reportReservedArrowTypeParam(c),u.node;if(!l&&(e1(!this.hasPlugin("jsx")),!(p=this.tryParse(()=>super.parseMaybeAssign(e,t),o)).error))return p.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,c&&this.reportReservedArrowTypeParam(c),u.node;if(null!=(s=p)&&s.node)return this.state=p.failState,p.node;throw(null==(n=l)?void 0:n.error)||u.error||(null==(a=p)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&!(null!=(t=e.extra)&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(e2.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(e2.UnexpectedTypeCastInParameter,e):this.raise(e2.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(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,i,r){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!i)&&["expression",!0];default:return super.isValidLVal(e,t,i,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=i,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 i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(e2.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,i){let r=e[t];"TSTypeCastExpression"===r.type&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,i)}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),i=this.getObjectOrClassMethodParams(e)[0];return i&&this.isThisParam(i)?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:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=i}}parseClass(e,t,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,i)}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(e2.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e);else return null;throw this.unexpected(null,80)}parseMethod(e,t,i,r,s,n,a){let o=super.parseMethod(e,t,i,r,s,n,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){let{key:e}=o;this.raise(e2.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}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,i,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,i,r))}parseImportSpecifier(e,t,i,r,s){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,i){let r,s=t?"imported":"local",n=t?"local":"exported",a=e[s],o=!1,l=!0,p=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let i=this.parseIdentifier();_(this.state.type)?(o=!0,a=e,r=t?this.parseIdentifier():this.parseModuleExportName()):r=i,l=!1}else _(this.state.type)?(l=!1,r=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else _(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&i&&this.raise(t?e2.TypeModifierIsUsedInTypeImports:e2.TypeModifierIsUsedInTypeExports,p),e[s]=a,e[n]=r,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[n]=t?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=this.cloneIdentifier(e[s])),t&&this.checkIdentifier(e[n],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":null!=e.directive||(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);return;case"TSParameterProperty":null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),null!=e.static||(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),null!=e.typeParameters||(e.typeParameters=void 0);return;case"Property":null!=e.optional||(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),null!=e.static||(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.optional||(e.optional=!1);return;case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),null!=e.typeParameters||(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":null!=e.declare||(e.declare=!1);return;case"VariableDeclarator":null!=e.definite||(e.definite=!1);return;case"TSEnumDeclaration":null!=e.const||(e.const=!1),null!=e.declare||(e.declare=!1);return;case"TSEnumMember":null!=e.computed||(e.computed=!1);return;case"TSImportType":null!=e.qualifier||(e.qualifier=null),null!=e.options||(e.options=null);return;case"TSInterfaceDeclaration":null!=e.declare||(e.declare=!1),null!=e.extends||(e.extends=[]);return;case"TSMappedType":null!=e.optional||(e.optional=!1),null!=e.readonly||(e.readonly=void 0);return;case"TSModuleDeclaration":null!=e.declare||(e.declare=!1),null!=e.global||(e.global="global"===e.kind);return;case"TSTypeParameter":null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),null!=e.out||(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(X(e)){if(e0.lastIndex=t,e0.test(this.input)){let e=this.codePointAtPos(e0.lastIndex);if(!W(e)&&92!==e)return!1}return!0}return 92===e||!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),L(this.state.type)){let e=this.parseIdentifierName(),i=this.createIdentifier(t,e);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders: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 i=e;return i.expectedNode&&i.type||(i=this.finishNode(i,"Placeholder")),i.expectedNode=t,i}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?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,i,r){void 0!==e&&super.checkReservedWord(e,t,i,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,i,r){return"Placeholder"===e||super.isValidLVal(e,t,i,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let i=this.nextTokenStart();return 37===this.input.charCodeAt(i)&&37===this.input.charCodeAt(i+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var i;return"Placeholder"!==t.type||null!=(i=t.extra)&&i.parenthesized?super.parseExpressionStatement(e,t):this.match(14)?(e.label=this.finishPlaceholder(t,"Identifier"),this.next(),e.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(e,"LabeledStatement")):(this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement"))}parseBlock(e,t,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,i){let r=t?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,n=this.parsePlaceholder("Identifier");if(n)if(this.match(81)||this.match(133)||this.match(5))e.id=n;else if(i||!t)return e.id=null,e.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(e,r);else throw this.raise(e5.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,s),this.finishNode(e,r)}parseExport(e,t){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(v[133],this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var i;return null!=(i=e.specifiers)&&!!i.length||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),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 i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishNode(i,"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(e5.UnexpectedSpace,this.state.lastTokEndLoc)}}},e7=Object.keys(e9);class te extends eZ{checkProto(e,t,i,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let s=e.key;return"__proto__"===("Identifier"===s.type?s.name:s.value)?(t?this.raise(d.RecordNoProto,s):i&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=s.loc.start):this.raise(d.DuplicateProto,s)),!0):i}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(d.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(d.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(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,i=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[i];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){var i;let r,s=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let e=this.parseYield(s);return t&&(e=t.call(this,e,s)),e}e?r=!1:(e=new eH,r=!0);let{type:a}=this.state;(10===a||L(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,s)),(i=this.state.type)>=29&&i<=33){let t=this.startNodeAt(s),i=this.state.value;if(t.operator=i,this.match(29)){this.toAssignable(o,!0),t.left=o;let i=s.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=i&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=i&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=i&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=i&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===i||"&&="===i||"??="===i),t}if(r&&this.checkExpressionErrors(e,!0),n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?w[e]:w[e]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(d.YieldNotInGeneratorFunction,s),this.parseYield(s)}return o}parseMaybeConditional(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,i)?r:this.parseConditional(r,t,e)}parseConditional(e,t,i){if(this.eat(17)){let i=this.startNodeAt(t);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,i)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,i){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);!(i>=I[58])&&this.prodParam.hasIn&&this.match(58)||this.raise(d.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(r>=39&&r<=59&&(this.prodParam.hasIn||!this.match(58))){let s=I[r];if(s>i){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let n=this.startNodeAt(t);n.left=e,n.operator=this.state.value;let a=41===r||42===r,o=40===r;if(o&&(s=I[42]),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(d.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(r,s);let l=this.finishNode(n,a||o?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(o&&(41===p||42===p)||a&&40===p)throw this.raise(d.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,i)}}return e}parseExprOpRightExpr(e,t){let i=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(d.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),i)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,57===e?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,i=this.parseMaybeAssign();return l.has(i.type)&&!(null!=(e=i.extra)&&e.parenthesized)&&this.raise(d.PipeUnparenthesizedBody,t,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(d.PipeTopicUnused,t),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(d.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let i=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(i);return t||this.checkExponentialAfterUnary(e),e}let s=this.match(34),n=this.startNode();if(N[this.state.type]){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let i=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&i){let e=n.argument;"Identifier"===e.type?this.raise(d.StrictDelete,n):this.hasPropertyAsPrivateName(e)&&this.raise(d.DeletePrivateField,n)}if(!s)return t||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let a=this.parseUpdate(n,s,e);if(r){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?w[e]:w[e]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(d.AwaitNotInAsyncContext,i),this.parseAwait(i)}return a}parseUpdate(e,t,i){if(t)return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),e;let r=this.state.startLoc,s=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return s;for(;34===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(e,"UpdateExpression"))}return s}parseExprSubscripts(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,i)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,i){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,i,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,i,r){let{type:s}=this.state;if(!i&&15===s)return this.parseBind(e,t,i,r);if(j(s))return this.parseTaggedTemplateExpression(e,t,r);let n=!1;if(18===s){if(i&&(this.raise(d.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=n=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,n);{let i=this.eat(0);return i||n||this.eat(16)?this.parseMember(e,t,r,i,n):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,i,r,s){let n=this.startNodeAt(t);return(n.object=e,n.computed=r,r?(n.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(d.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),i.optionalChainMember)?(n.optional=s,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(e,t,i,r){let s=this.startNodeAt(t);return s.object=e,this.next(),s.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,i)}parseCoverCallAndAsyncArrowHead(e,t,i,r){let s=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:l}=i;o&&(this.expressionScope.enter(new eY(2)),n=new eH),l&&(a.optional=r),r?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments("Super"!==e.type,a,n);let p=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!r?(i.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(o&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=s,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,i){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(d.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(d.ImportCallArity,e);else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(d.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,i){let r=[],s=!0,n=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=n,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var i;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(i=t.extra)?void 0:i.trailingCommaLoc),t.innerComments&&ev(e,t.innerComments),t.callee.trailingComments&&ev(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,i=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:if(t=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall(t);if(!this.match(10))return this.raise(d.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");if(512&this.optionFlags)return this.parseImportCall(t);return 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 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,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("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(d.UnsupportedBind,e)}case 139:return this.raise(d.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);throw this.unexpected()}case 47:{let e=this.input.codePointAt(this.nextTokenStart());if(X(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===r)return this.parseDecimalLiteral(this.state.value);if(2===r||1===r)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===r||7===r)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(L(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,i=this.parseIdentifier();if(!t&&"async"===i.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(i),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(i));if(L(e))if(61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(i));else return i;if(90===e)return this.resetPreviousNodeTrailingComments(i),this.parseDo(this.startNodeAtNode(i),!0)}if(e&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(i),[i],!1);return i}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=s(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),i=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,i,e,r)}finishTopicReference(e,t,i,r){if(this.testTopicReferenceConfiguration(i,t,r))if("hack"===i)return this.topicReferenceIsAllowedInCurrentContext()||this.raise(d.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");else return this.topicReferenceIsAllowedInCurrentContext()||this.raise(d.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference");throw this.raise(d.PipeTopicUnconfiguredToken,t,{token:v[r]})}testTopicReferenceConfiguration(e,t,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:v[i]}]);case"smart":return 27===i;default:throw this.raise(d.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(eb(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(d.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 i=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=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(d.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(d.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(d.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(t,i),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,i){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||r)&&this.raise(d.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(d.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}parseLiteral(e,t){let i=this.startNode();return this.parseLiteralAtNode(e,t,i)}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,i,r,s=this.state.startLoc;this.next(),this.expressionScope.enter(new eY(1));let n=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,l=[],p=new eH,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===p.optionalParametersLoc?null:p.optionalParametersLoc),this.match(11)){r=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(i=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,p,this.parseParenItem))}let u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=a;let h=this.startNodeAt(s);return e&&this.shouldParseArrow(l)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(p),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,l,!1),h):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),r&&this.unexpected(r),i&&this.unexpected(i),this.checkExpressionErrors(p,!0),this.toReferencedListDeep(l,!0),l.length>1?((t=this.startNodeAt(o)).expressions=l,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,u)):t=l[0],this.wrapParenthesis(s,t))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let i=this.startNodeAt(e);return i.expression=t,this.finishNode(i,"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 i=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(d.UnexpectedNewTarget,i),i}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),i=this.parseNoCallExpr();e.callee=i,t&&("Import"===i.type||"ImportExpression"===i.type)&&this.raise(d.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:t,startLoc:i,end:r,value:n}=this.state,a=this.startNodeAt(s(i,1));null!==n||e||this.raise(d.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1));let o=this.match(24),l=o?-1:-2,p=r+l;a.value={raw:this.input.slice(t+1,p).replace(/\r\n?/g,"\n"),cooked:null===n?null:n.slice(1,l)},a.tail=o,this.next();let c=this.finishNode(a,"TemplateElement");return this.resetEndLocation(c,s(this.state.lastTokEndLoc,l)),c}parseTemplate(e){let t=this.startNode(),i=this.parseTemplateElement(e),r=[i],s=[];for(;!i.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(i=this.parseTemplateElement(e));return t.expressions=s,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=!1,a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){let s;if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}t?s=this.parseBindingProperty():(s=this.parsePropertyDefinition(r),n=this.checkProto(s,i,n,r)),i&&!this.isObjectProperty(s)&&"SpreadElement"!==s.type&&this.raise(d.InvalidRecordProperty,s),s.shorthand&&this.addExtra(s,"shorthand",!0),o.properties.push(s)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return t?l="ObjectPattern":i&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t,i=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(d.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)i.push(this.parseDecorator());let r=this.startNode(),s=!1,n=!1;if(this.match(21))return i.length&&this.unexpected(),this.parseSpread();i.length&&(r.decorators=i,i=[]),r.method=!1,e&&(t=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:e}=r,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(s=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(r)),("get"===t||"set"===t)&&(n=!0,this.resetPreviousNodeTrailingComments(e),r.kind=t,this.match(55)&&(a=!0,this.raise(d.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,t,a,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return+("get"!==e.kind)}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let i=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==i&&this.raise("get"===e.kind?d.BadGetterArity:d.BadSetterArity,e),"set"===e.kind&&(null==(t=r[r.length-1])?void 0:t.type)==="RestElement"&&this.raise(d.BadSetterRestParameter,e)}parseObjectMethod(e,t,i,r,s){if(s){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}if(i||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,i,r){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let i=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=i):this.raise(d.InvalidCoverInitializedName,i),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,i,r,s,n,a){let o=this.parseObjectMethod(e,i,r,s,n)||this.parseObjectProperty(e,t,s,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let i,{type:r,value:s}=this.state;if(_(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(d.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===r){i=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=i,139!==r&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,i,r,s,n,a=!1){this.initFunction(e,i),e.generator=t,this.scope.enter(530|576*!!a|32*!!s),this.prodParam.enter(eb(i,e.generator)),this.parseFunctionParams(e,r);let o=this.parseFunctionBodyAndFinish(e,n,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,i){t&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!t,i,s),this.state.inFSharpPipelineDirectBody=r,this.finishNode(s,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,i,r){this.scope.enter(518);let s=eb(i,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,i);let n=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=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,i){this.toAssignableList(t,i,!1),e.params=t}parseFunctionBodyAndFinish(e,t,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,t)}parseFunctionBody(e,t,i=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(new eJ),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,s=>{let n=!this.isSimpleParamList(e.params);s&&n&&this.raise(d.IllegalLanguageModeDirective,("method"===e.kind||"constructor"===e.kind)&&e.key?e.key.loc.end:e);let a=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!i&&!n,t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,i=e.length;t<i;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,i,r=!0){let s=!t&&new Set,n={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,n,5,s,r)}parseExprList(e,t,i,r){let s=[],n=!0;for(;!this.eat(e);){if(n)n=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(e,t,i))}return s}parseExprListItem(e,t,i,r){let s;if(this.match(12))t||this.raise(d.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let e=this.state.startLoc;s=this.parseParenItem(this.parseSpread(i),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(d.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),s=this.finishNode(e,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowInOrVoidPattern(e,i,this.parseParenItem);return s}parseIdentifier(e){let t=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(t,i)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,i){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",i)}parseIdentifierName(e){let t,{startLoc:i,type:r}=this.state;_(r)?t=this.state.value:this.unexpected();let s=r<=92;return e?s&&this.replaceToken(132):this.checkReservedWord(t,i,s,!1),this.next(),t}checkReservedWord(e,t,i,r){if(!(e.length>10)){if(ee.has(e)){if(i&&H.has(e))return void this.raise(d.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?r?Z:Q:G)(e,this.inModule))return void this.raise(d.UnexpectedReservedWord,t,{reservedWord:e});if("yield"===e){if(this.prodParam.hasYield)return void this.raise(d.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(d.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(d.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(d.ArgumentsInClass,t)}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(d.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(d.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||j(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(d.YieldInParameter,t);let i=!1,r=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:r=this.parseMaybeAssign()}return t.delegate=i,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(d.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(d.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let i=this.startNodeAt(t);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}{let i=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),i.expression=e,this.finishNode(i,"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(d.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(d.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"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}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(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=i,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 i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,i){if(null!=t&&this.match(88)){let i=this.lookaheadCharCode();if(44===i||i===(3===e?93:8===e?125:41)||61===i)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,i)}parsePropertyNamePrefixOperator(e){}}let tt={kind:1},ti={kind:2},tr=/[\uD800-\uDFFF]/u,ts=/in(?:stanceof)?/y;class tn extends te{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,i){for(let r=0;r<e.length;r++){let n=e[r],{type:a}=n;if("number"==typeof a){if(139===a){let{loc:t,start:i,value:a,end:o}=n,l=i+1,p=s(t.start,1);e.splice(r,1,new eU({type:A[27],value:"#",start:i,end:l,startLoc:t.start,endLoc:p}),new eU({type:A[132],value:a,start:l,end:o,startLoc:p,endLoc:t.end})),r++;continue}if(j(a)){let o,l,p,c,u,{loc:h,start:d,value:f,end:m}=n,y=d+1,T=s(h.start,1);o=new eU(96===t.charCodeAt(d-i)?{type:A[22],value:"`",start:d,end:y,startLoc:h.start,endLoc:T}:{type:A[8],value:"}",start:d,end:y,startLoc:h.start,endLoc:T}),24===a?(p=m-1,c=s(h.end,-1),l=null===f?null:f.slice(1,-1),u=new eU({type:A[22],value:"`",start:p,end:m,startLoc:c,endLoc:h.end})):(p=m-2,c=s(h.end,-2),l=null===f?null:f.slice(1,-2),u=new eU({type:A[23],value:"${",start:p,end:m,startLoc:c,endLoc:h.end})),e.splice(r,1,o,new eU({type:A[20],value:l,start:y,end:p,startLoc:T,endLoc:c}),u),r+=2;continue}n.type=A[a]}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,i){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(d.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1))}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.expression,"DirectiveLiteral"),r=i.value,s=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),n=i.value=s.slice(1,-1);return this.addExtra(i,"raw",s),this.addExtra(i,"rawValue",n),this.addExtra(i,"expressionValue",r),t.value=i,delete e.expression,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()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;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!0}return!1}chStartsBindingIdentifier(e,t){if(X(e)){if(ts.lastIndex=t,ts.test(this.input)){let e=this.codePointAtPos(ts.lastIndex);if(!W(e)&&92!==e)return!1}return!0}return 92===e||!1}chStartsBindingPattern(e){return 91===e||123===e}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 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}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 i=this.state.type,r=this.startNode(),s=!!(2&e),n=!!(4&e),a=1&e;switch(i){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(46===this.lookaheadCharCode())break;return n||this.raise(this.state.strict?d.StrictFunction:this.options.annexB?d.SloppyFunctionAnnexB:d.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!s&&n);case 80:return s||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.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(d.AwaitUsingNotInAsyncContext,r):this.raise(d.UnexpectedLexicalDeclaration,r):this.raise(d.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(d.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(d.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:s||this.raise(d.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(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(d.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===i?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return s||this.raise(d.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!s&&n)}let o=this.state.value,l=this.parseExpression();return L(i)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,o,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(d.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,i){if(e){var r;null!=(r=t.decorators)&&r.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),i&&this.resetStartLocationFromNode(i,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(d.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(d.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,i=this.state.startLoc;if(this.match(10)){let i=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(i,t);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t,i),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(d.DecoratorArgumentsOutsideParentheses,r)}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(i);e.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t,i)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"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 i;for(i=0;i<this.state.labels.length;++i){let r=this.state.labels[i];if((null==e.label||r.name===e.label.name)&&(null!=r.kind&&(t||1===r.kind)||e.label&&t))break}i===this.state.labels.length&&this.raise(d.IllegalBreakContinue,e,{type:t?"BreakStatement":"ContinueStatement"})}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(tt),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(tt);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 null!==t&&this.unexpected(t),this.parseFor(e,null);let i=this.isContextual(100);{let r=this.isAwaitUsing(),s=r||this.isForUsing(),n=i&&this.hasFollowingBindingAtom()||s;if(this.match(74)||this.match(75)||n){let i,n=this.startNode();r?(i="await using",this.recordAwaitIfAllowed()||this.raise(d.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(n,!0,i);let a=this.finishNode(n,"VariableDeclaration"),o=this.match(58);return(o&&s&&this.raise(d.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length)?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}let r=this.isContextual(95),s=new eH,n=this.parseExpression(!0,s),a=this.isContextual(102);return(a&&(i&&this.raise(d.ForOfLet,n),null===t&&r&&"Identifier"===n.type&&this.raise(d.ForOfAsync,n)),a||this.match(58))?(this.checkDestructuringPrivate(s),this.toAssignable(n,!0),this.checkLVal(n,{type:a?"ForOfStatement":"ForInStatement"}),this.parseForIn(e,n,t)):(this.checkExpressionErrors(s,!0),null!==t&&this.unexpected(t),this.parseFor(e,n))}parseFunctionStatement(e,t,i){return this.next(),this.parseFunction(e,1|2*!!i|8*!!t)}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.raise(d.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){let t,i;this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];for(this.expect(5),this.state.labels.push(ti),this.scope.enter(256);!this.match(8);)if(this.match(61)||this.match(65)){let e=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),e?t.test=this.parseExpression():(i&&this.raise(d.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(d.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&&"Identifier"===e.type?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(d.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,i=!1){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(tt),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(d.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,i,r){var s;for(let e of this.state.labels)e.name===t&&this.raise(d.LabelRedeclaration,i,{labelName:t});let n=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let i=this.state.labels[t];if(i.statementStart===e.start)i.statementStart=this.sourceToOffsetPos(this.state.start),i.kind=n;else break}return this.state.labels.push({name:t,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,i){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,i){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,i),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,i,r,s){let n=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?a:void 0,i,r,s)}parseBlockOrModuleBlockBody(e,t,i,r,s){let n=this.state.strict,a=!1,o=!1;for(;!this.match(r);){let r=i?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(r)}null==s||s.call(this,a),n||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,i){let r=this.match(58);return this.next(),r?null!==i&&this.unexpected(i):e.await=null!==i,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(d.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(d.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,i,r=!1){let s=e.declarations=[];for(e.kind=i;;){let e=this.startNode();if(this.parseVarId(e,i),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!r&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==i&&"using"!==i&&"await using"!==i||this.match(58)||this.isContextual(102)||this.raise(d.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i}):this.raise(d.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),s.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let i=this.parseBindingAtom();"using"===t||"await using"===t?("ArrayPattern"===i.type||"ObjectPattern"===i.type)&&this.raise(d.UsingDeclarationHasBindingPattern,i.loc.start):"VoidPattern"===i.type&&this.raise(d.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let i=2&t,r=!!(1&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(i&&this.raise(d.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(r&&!(4&t)));let n=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(eb(s,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&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=n,e}parseFunctionId(e){return e||L(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new eJ(3)),e.params=this.parseBindingList(11,41,2|4*!!t),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,i){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,i),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"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},r=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(d.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(s,e,i),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(d.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(d.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,t){let i=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=i,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=i,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(i),!1)}parseClassMember(e,t,i){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,i,r)}parseClassMemberWithIsStatic(e,t,i,r){if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){t.kind="method";let i=this.match(139);return(this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),i)?void this.pushClassPrivateMethod(e,t,!0,!1):(this.isNonstaticConstructor(t)&&this.raise(d.ConstructorIsGenerator,t.key),void this.pushClassMethod(e,t,!0,!1,!1,!1))}let s=!this.state.containsEsc&&L(this.state.type),n=this.parseClassElementName(t),a=s?n.name:null,o=this.isPrivateName(n),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",o)return void this.pushClassPrivateMethod(e,t,!1,!1);let r=this.isNonstaticConstructor(t),s=!1;r&&(t.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(d.DuplicateConstructor,n),r&&this.hasPlugin("typescript")&&t.override&&this.raise(d.OverrideOnConstructor,n),i.hadConstructor=!0,s=i.hadSuperClass),this.pushClassMethod(e,t,!1,!1,r,s)}else if(this.isClassProperty())o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if("async"!==a||this.isLineTerminator())if("get"!==a&&"set"!==a||this.match(55)&&this.isLineTerminator())if("accessor"!==a||this.isLineTerminator())this.isLineTerminator()?o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(n);let i=this.match(139);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,i)}else{this.resetPreviousNodeTrailingComments(n),t.kind=a;let i=this.match(139);this.parseClassElementName(t),i?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(d.ConstructorIsAccessor,t.key),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}else{this.resetPreviousNodeTrailingComments(n);let i=this.eat(55);t.optional&&this.unexpected(l),t.kind="method";let r=this.match(139);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),r?this.pushClassPrivateMethod(e,t,i,!0):(this.isNonstaticConstructor(t)&&this.raise(d.ConstructorIsAsync,t.key),this.pushClassMethod(e,t,i,!0,!1,!1))}}parseClassElementName(e){let{type:t,value:i}=this.state;if((132===t||134===t)&&e.static&&"prototype"===i&&this.raise(d.StaticPrototype,this.state.startLoc),139===t){"constructor"===i&&this.raise(d.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var i;this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(i=t.decorators)&&i.length&&this.raise(d.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(d.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let i=this.parseClassPrivateProperty(t);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,t,i){!i&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(d.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,i,r,s,n){e.body.push(this.parseMethod(t,i,r,s,n,"ClassMethod",!0))}pushClassPrivateMethod(e,t,i,r){let s=this.parseMethod(t,i,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);let n="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,n)}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(592),this.expressionScope.enter(new eJ),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,i,r=8331){if(L(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(i||!t)e.id=null;else throw this.raise(d.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let i,r=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,r),n=!s||this.eat(12),a=n&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=n&&(!o||this.eat(12)),p=s||a;if(a&&!o){if(s&&this.unexpected(),t)throw this.raise(d.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(e);if(s&&n&&!a&&!c&&this.unexpected(null,5),o&&l&&this.unexpected(null,98),p||c){if(i=!1,t)throw this.raise(d.UnsupportedDecoratorExport,e);this.parseExportFrom(e,p)}else i=this.maybeParseExportDeclaration(e);if(p||c||i){var u;if(this.checkExport(e,!0,!1,!!e.source),(null==(u=e.declaration)?void 0:u.type)==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(d.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(65)){let i=this.parseExportDefaultExpression();if(e.declaration=i,"ClassDeclaration"===i.type)this.maybeTakeDecorators(t,i,e);else if(t)throw this.raise(d.UnsupportedDecoratorExport,e);return this.checkExport(e,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);let i=t||this.parseIdentifier(!0),r=this.startNodeAtNode(i);return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){null!=e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}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")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(d.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(L(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),i=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||L(this.state.type)&&i)return!0;if(this.match(65)&&i){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}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 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(d.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,i,r){if(t){var s,n;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(n=t.extra)&&n.parenthesized||this.raise(d.ExportDefaultFromAsIdentifier,t)}}else if(null!=(s=e.specifiers)&&s.length)for(let t of e.specifiers){let{exported:e}=t,i="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,i),!r&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(d.ExportBindingIsString,t,{localName:e.value,exportName:i}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){let t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){let{id:i}=t;if(!i)throw Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if("VariableDeclaration"===t.type)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(d.DuplicateDefaultExport,e):this.raise(d.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),s=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(n,s,e,r))}return t}parseExportSpecifier(e,t,i,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=tr.exec(e.value);return t&&this.raise(d.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){let{specifiers:t}=e,i=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==i&&this.raise(d.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==i&&this.raise(d.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==i&&this.raise(d.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(d.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(d.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,i,r){!t&&("module"===i?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===i?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===i?(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 i=this.startNode(),r=this.parseIdentifierName(!0),{type:s}=this.state;return(_(s)?98!==s||102===this.lookaheadCharCode():12!==s)?(this.applyImportPhase(e,t,r,i.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(i,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return L(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(e);return i&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,i){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}finishImportSpecifier(e,t,i=8201){return this.checkLVal(e.local,{type:t},i),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let i=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(d.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?i.key=this.parseStringLiteral(r):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(d.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),"type"!==i.key.name&&this.raise(d.ModuleAttributeDifferentFromType,i.key),t.has(i.key.name)&&this.raise(d.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),t.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(d.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(d.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!i&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}return!!_(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}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(d.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),r=this.match(134),s=this.isContextual(130);i.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(i,r,"type"===e.importKind||"typeof"===e.importKind,s,void 0);e.specifiers.push(n)}}parseImportSpecifier(e,t,i,r,s){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(d.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",s)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class ta extends tn{constructor(e,t,i){let r=function(e){let t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(t))null!=e[i]&&(t[i]=e[i]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=i,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let s=0;r.allowAwaitOutsideFunction&&(s|=1),r.allowReturnOutsideFunction&&(s|=2),r.allowImportExportEverywhere&&(s|=8),r.allowSuperOutsideMethod&&(s|=16),r.allowUndeclaredExports&&(s|=64),r.allowNewTargetOutsideFunction&&(s|=4),r.allowYieldOutsideFunction&&(s|=32),r.ranges&&(s|=128),r.tokens&&(s|=256),r.createImportExpressions&&(s|=512),r.createParenthesizedExpressions&&(s|=1024),r.errorRecovery&&(s|=2048),r.attachComment&&(s|=4096),r.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return ei}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let i=this.parseTopLevel(e,t);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}}let to=function(e){let t={};for(let i of Object.keys(e))t[i]=A[e[i]];return t}(D);function tl(e,t){let i=ta,r=new Map;if(null!=e&&e.plugins){for(let t of e.plugins){let e,i;"string"==typeof t?e=t:[e,i]=t,r.has(e)||r.set(e,i||{})}!function(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(null!=t&&"boolean"!=typeof t)throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(null!=i&&"boolean"!=typeof i)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,i;let r=e.get("pipelineOperator").proposal;if(!e8.includes(r)){let e=e8.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===r){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(!e6.includes(t)){let e=e6.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&&(null==(i=e.get("recordAndTuple"))?void 0:i.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===r&&(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType)==="hash")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("may-2020"!==e.get("moduleAttributes").version)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(null!=t){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")&&"2023-07"!==e.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(r),i=function(e){let t=[];for(let i of e7)e.has(i)&&t.push(i);let i=t.join("|"),r=tp.get(i);if(!r){for(let e of(r=ta,t))r=e9[e](r);tp.set(i,r)}return r}(r)}return new i(e,t,r)}let tp=new Map;t.parse=function(e,t){var i;if((null==(i=t)?void 0:i.sourceType)!=="unambiguous")return tl(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let i=tl(t,e),r=i.parse();if(i.sawUnambiguousESM)return r;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",tl(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(i){try{return t.sourceType="script",tl(t,e).parse()}catch(e){}throw i}},t.parseExpression=function(e,t){let i=tl(t,e);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()},t.tokTypes=to},65372(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},57301(e,t,i){var r=i(37399),s=i(69893);e.exports=function(e,t,i){if(r())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return i&&s(a,i.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},30409(e){function t(i){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},40906(e,t,i){var r=i(69893);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},39833(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},37399(e){function t(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!i},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},63315(e,t,i){var r=i(14319).default,s=i(65372);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return s(e)},e.exports.__esModule=!0,e.exports.default=e.exports},69893(e){function t(i,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},59410(e,t,i){var r=i(30409),s=i(69893),n=i(39833),a=i(57301);function o(t){var i="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!n(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},82985(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;let i=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw TypeError(`Not a valid node of type "${i}"`)}};var r=i(24919)},73289(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){n("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){n("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){n("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){n("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){n("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){n("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){n("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){n("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){n("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){n("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){n("BigIntLiteral",e,t)},t.assertBinary=function(e,t){n("Binary",e,t)},t.assertBinaryExpression=function(e,t){n("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){n("BindExpression",e,t)},t.assertBlock=function(e,t){n("Block",e,t)},t.assertBlockParent=function(e,t){n("BlockParent",e,t)},t.assertBlockStatement=function(e,t){n("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){n("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){n("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){n("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){n("BreakStatement",e,t)},t.assertCallExpression=function(e,t){n("CallExpression",e,t)},t.assertCatchClause=function(e,t){n("CatchClause",e,t)},t.assertClass=function(e,t){n("Class",e,t)},t.assertClassAccessorProperty=function(e,t){n("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){n("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){n("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){n("ClassExpression",e,t)},t.assertClassImplements=function(e,t){n("ClassImplements",e,t)},t.assertClassMethod=function(e,t){n("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){n("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){n("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){n("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){n("CompletionStatement",e,t)},t.assertConditional=function(e,t){n("Conditional",e,t)},t.assertConditionalExpression=function(e,t){n("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){n("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){n("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){n("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){n("Declaration",e,t)},t.assertDeclareClass=function(e,t){n("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){n("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){n("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){n("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){n("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){n("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){n("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){n("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){n("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){n("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){n("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){n("Decorator",e,t)},t.assertDirective=function(e,t){n("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){n("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){n("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){n("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){n("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){n("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){n("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){n("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){n("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){n("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){n("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){n("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){n("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){n("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){n("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){n("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){n("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){n("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){n("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){n("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){n("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){n("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){n("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){n("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){n("ExportSpecifier",e,t)},t.assertExpression=function(e,t){n("Expression",e,t)},t.assertExpressionStatement=function(e,t){n("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){n("ExpressionWrapper",e,t)},t.assertFile=function(e,t){n("File",e,t)},t.assertFlow=function(e,t){n("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){n("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){n("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){n("FlowPredicate",e,t)},t.assertFlowType=function(e,t){n("FlowType",e,t)},t.assertFor=function(e,t){n("For",e,t)},t.assertForInStatement=function(e,t){n("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){n("ForOfStatement",e,t)},t.assertForStatement=function(e,t){n("ForStatement",e,t)},t.assertForXStatement=function(e,t){n("ForXStatement",e,t)},t.assertFunction=function(e,t){n("Function",e,t)},t.assertFunctionDeclaration=function(e,t){n("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){n("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){n("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){n("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){n("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){n("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){n("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){n("Identifier",e,t)},t.assertIfStatement=function(e,t){n("IfStatement",e,t)},t.assertImmutable=function(e,t){n("Immutable",e,t)},t.assertImport=function(e,t){n("Import",e,t)},t.assertImportAttribute=function(e,t){n("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){n("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){n("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){n("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){n("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){n("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){n("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){n("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){n("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){n("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){n("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){n("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){n("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){n("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){n("JSX",e,t)},t.assertJSXAttribute=function(e,t){n("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){n("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){n("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){n("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){n("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){n("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){n("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){n("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){n("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){n("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){n("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){n("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){n("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){n("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){n("JSXText",e,t)},t.assertLVal=function(e,t){n("LVal",e,t)},t.assertLabeledStatement=function(e,t){n("LabeledStatement",e,t)},t.assertLiteral=function(e,t){n("Literal",e,t)},t.assertLogicalExpression=function(e,t){n("LogicalExpression",e,t)},t.assertLoop=function(e,t){n("Loop",e,t)},t.assertMemberExpression=function(e,t){n("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){n("MetaProperty",e,t)},t.assertMethod=function(e,t){n("Method",e,t)},t.assertMiscellaneous=function(e,t){n("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){n("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,s.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),n("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){n("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){n("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){n("NewExpression",e,t)},t.assertNoop=function(e,t){n("Noop",e,t)},t.assertNullLiteral=function(e,t){n("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){n("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){n("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,s.default)("assertNumberLiteral","assertNumericLiteral"),n("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){n("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){n("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){n("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){n("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){n("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){n("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){n("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){n("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){n("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){n("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){n("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){n("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){n("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){n("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){n("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){n("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){n("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){n("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){n("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){n("Pattern",e,t)},t.assertPatternLike=function(e,t){n("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){n("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){n("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){n("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){n("Placeholder",e,t)},t.assertPrivate=function(e,t){n("Private",e,t)},t.assertPrivateName=function(e,t){n("PrivateName",e,t)},t.assertProgram=function(e,t){n("Program",e,t)},t.assertProperty=function(e,t){n("Property",e,t)},t.assertPureish=function(e,t){n("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){n("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){n("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){n("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,s.default)("assertRegexLiteral","assertRegExpLiteral"),n("RegexLiteral",e,t)},t.assertRestElement=function(e,t){n("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,s.default)("assertRestProperty","assertRestElement"),n("RestProperty",e,t)},t.assertReturnStatement=function(e,t){n("ReturnStatement",e,t)},t.assertScopable=function(e,t){n("Scopable",e,t)},t.assertSequenceExpression=function(e,t){n("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){n("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,s.default)("assertSpreadProperty","assertSpreadElement"),n("SpreadProperty",e,t)},t.assertStandardized=function(e,t){n("Standardized",e,t)},t.assertStatement=function(e,t){n("Statement",e,t)},t.assertStaticBlock=function(e,t){n("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){n("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){n("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){n("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){n("Super",e,t)},t.assertSwitchCase=function(e,t){n("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){n("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){n("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){n("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){n("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){n("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){n("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){n("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){n("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){n("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){n("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){n("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){n("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){n("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){n("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){n("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){n("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){n("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){n("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){n("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){n("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){n("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){n("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){n("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){n("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){n("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){n("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){n("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){n("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){n("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){n("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){n("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){n("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){n("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){n("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){n("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){n("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){n("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){n("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){n("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){n("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){n("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){n("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){n("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){n("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){n("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){n("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){n("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){n("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){n("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){n("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){n("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){n("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){n("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){n("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){n("TSThisType",e,t)},t.assertTSTupleType=function(e,t){n("TSTupleType",e,t)},t.assertTSType=function(e,t){n("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){n("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){n("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){n("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){n("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){n("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){n("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){n("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){n("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){n("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){n("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){n("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){n("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){n("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){n("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){n("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){n("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){n("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){n("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){n("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){n("Terminatorless",e,t)},t.assertThisExpression=function(e,t){n("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){n("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){n("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){n("TopicReference",e,t)},t.assertTryStatement=function(e,t){n("TryStatement",e,t)},t.assertTupleExpression=function(e,t){n("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){n("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){n("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){n("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){n("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){n("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){n("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){n("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){n("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){n("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){n("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){n("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){n("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){n("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){n("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){n("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){n("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){n("VariableDeclarator",e,t)},t.assertVariance=function(e,t){n("Variance",e,t)},t.assertVoidPattern=function(e,t){n("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){n("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){n("While",e,t)},t.assertWhileStatement=function(e,t){n("WhileStatement",e,t)},t.assertWithStatement=function(e,t){n("WithStatement",e,t)},t.assertYieldExpression=function(e,t){n("YieldExpression",e,t)};var r=i(80947),s=i(50231);function n(e,t,i){if(!(0,r.default)(e,t,i))throw Error(`Expected type "${e}" with option ${JSON.stringify(i)}, but instead got "${t.type}".`)}},95414(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=(0,s.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=i(93806),s=i(54538)},56461(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(93806);t.default=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw Error("Invalid typeof value: "+e)}},93806(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(56223);Object.keys(r).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=i(44614);Object.keys(s).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})})},56223(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){let t={type:"ArrayExpression",elements:e};return a(o.ArrayExpression.elements,t,"elements",e,1),t},t.arrayPattern=function(e){let t={type:"ArrayPattern",elements:e};return a(o.ArrayPattern.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){let t={type:"ArrayTypeAnnotation",elementType:e};return a(o.ArrayTypeAnnotation.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,i=!1){let r={type:"ArrowFunctionExpression",params:e,body:t,async:i,expression:null},s=o.ArrowFunctionExpression;return a(s.params,r,"params",e,1),a(s.body,r,"body",t,1),a(s.async,r,"async",i),r},t.assignmentExpression=function(e,t,i){let r={type:"AssignmentExpression",operator:e,left:t,right:i},s=o.AssignmentExpression;return a(s.operator,r,"operator",e),a(s.left,r,"left",t,1),a(s.right,r,"right",i,1),r},t.assignmentPattern=function(e,t){let i={type:"AssignmentPattern",left:e,right:t},r=o.AssignmentPattern;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.awaitExpression=function(e){let t={type:"AwaitExpression",argument:e};return a(o.AwaitExpression.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());let t={type:"BigIntLiteral",value:e};return a(o.BigIntLiteral.value,t,"value",e),t},t.binaryExpression=function(e,t,i){let r={type:"BinaryExpression",operator:e,left:t,right:i},s=o.BinaryExpression;return a(s.operator,r,"operator",e),a(s.left,r,"left",t,1),a(s.right,r,"right",i,1),r},t.bindExpression=function(e,t){let i={type:"BindExpression",object:e,callee:t},r=o.BindExpression;return a(r.object,i,"object",e,1),a(r.callee,i,"callee",t,1),i},t.blockStatement=function(e,t=[]){let i={type:"BlockStatement",body:e,directives:t},r=o.BlockStatement;return a(r.body,i,"body",e,1),a(r.directives,i,"directives",t,1),i},t.booleanLiteral=function(e){let t={type:"BooleanLiteral",value:e};return a(o.BooleanLiteral.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){let t={type:"BooleanLiteralTypeAnnotation",value:e};return a(o.BooleanLiteralTypeAnnotation.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){let t={type:"BreakStatement",label:e};return a(o.BreakStatement.label,t,"label",e,1),t},t.callExpression=function(e,t){let i={type:"CallExpression",callee:e,arguments:t},r=o.CallExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.catchClause=function(e=null,t){let i={type:"CatchClause",param:e,body:t},r=o.CatchClause;return a(r.param,i,"param",e,1),a(r.body,i,"body",t,1),i},t.classAccessorProperty=function(e,t=null,i=null,r=null,s=!1,n=!1){let l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:s,static:n},p=o.ClassAccessorProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",s),a(p.static,l,"static",n),l},t.classBody=function(e){let t={type:"ClassBody",body:e};return a(o.ClassBody.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,i,r=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:i,decorators:r},n=o.ClassDeclaration;return a(n.id,s,"id",e,1),a(n.superClass,s,"superClass",t,1),a(n.body,s,"body",i,1),a(n.decorators,s,"decorators",r,1),s},t.classExpression=function(e=null,t=null,i,r=null){let s={type:"ClassExpression",id:e,superClass:t,body:i,decorators:r},n=o.ClassExpression;return a(n.id,s,"id",e,1),a(n.superClass,s,"superClass",t,1),a(n.body,s,"body",i,1),a(n.decorators,s,"decorators",r,1),s},t.classImplements=function(e,t=null){let i={type:"ClassImplements",id:e,typeParameters:t},r=o.ClassImplements;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.classMethod=function(e="method",t,i,r,s=!1,n=!1,l=!1,p=!1){let c={type:"ClassMethod",kind:e,key:t,params:i,body:r,computed:s,static:n,generator:l,async:p},u=o.ClassMethod;return a(u.kind,c,"kind",e),a(u.key,c,"key",t,1),a(u.params,c,"params",i,1),a(u.body,c,"body",r,1),a(u.computed,c,"computed",s),a(u.static,c,"static",n),a(u.generator,c,"generator",l),a(u.async,c,"async",p),c},t.classPrivateMethod=function(e="method",t,i,r,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:i,body:r,static:s},l=o.ClassPrivateMethod;return a(l.kind,n,"kind",e),a(l.key,n,"key",t,1),a(l.params,n,"params",i,1),a(l.body,n,"body",r,1),a(l.static,n,"static",s),n},t.classPrivateProperty=function(e,t=null,i=null,r=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:i,static:r},n=o.ClassPrivateProperty;return a(n.key,s,"key",e,1),a(n.value,s,"value",t,1),a(n.decorators,s,"decorators",i,1),a(n.static,s,"static",r),s},t.classProperty=function(e,t=null,i=null,r=null,s=!1,n=!1){let l={type:"ClassProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:s,static:n},p=o.ClassProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",s),a(p.static,l,"static",n),l},t.conditionalExpression=function(e,t,i){let r={type:"ConditionalExpression",test:e,consequent:t,alternate:i},s=o.ConditionalExpression;return a(s.test,r,"test",e,1),a(s.consequent,r,"consequent",t,1),a(s.alternate,r,"alternate",i,1),r},t.continueStatement=function(e=null){let t={type:"ContinueStatement",label:e};return a(o.ContinueStatement.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){let t={type:"DecimalLiteral",value:e};return a(o.DecimalLiteral.value,t,"value",e),t},t.declareClass=function(e,t=null,i=null,r){let s={type:"DeclareClass",id:e,typeParameters:t,extends:i,body:r},n=o.DeclareClass;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.extends,s,"extends",i,1),a(n.body,s,"body",r,1),s},t.declareExportAllDeclaration=function(e,t=null){let i={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=o.DeclareExportAllDeclaration;return a(r.source,i,"source",e,1),a(r.attributes,i,"attributes",t,1),i},t.declareExportDeclaration=function(e=null,t=null,i=null,r=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:i,attributes:r},n=o.DeclareExportDeclaration;return a(n.declaration,s,"declaration",e,1),a(n.specifiers,s,"specifiers",t,1),a(n.source,s,"source",i,1),a(n.attributes,s,"attributes",r,1),s},t.declareFunction=function(e){let t={type:"DeclareFunction",id:e};return a(o.DeclareFunction.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,i=null,r){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:i,body:r},n=o.DeclareInterface;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.extends,s,"extends",i,1),a(n.body,s,"body",r,1),s},t.declareModule=function(e,t,i=null){let r={type:"DeclareModule",id:e,body:t,kind:i},s=o.DeclareModule;return a(s.id,r,"id",e,1),a(s.body,r,"body",t,1),a(s.kind,r,"kind",i),r},t.declareModuleExports=function(e){let t={type:"DeclareModuleExports",typeAnnotation:e};return a(o.DeclareModuleExports.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,i=null){let r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:i},s=o.DeclareOpaqueType;return a(s.id,r,"id",e,1),a(s.typeParameters,r,"typeParameters",t,1),a(s.supertype,r,"supertype",i,1),r},t.declareTypeAlias=function(e,t=null,i){let r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:i},s=o.DeclareTypeAlias;return a(s.id,r,"id",e,1),a(s.typeParameters,r,"typeParameters",t,1),a(s.right,r,"right",i,1),r},t.declareVariable=function(e){let t={type:"DeclareVariable",id:e};return a(o.DeclareVariable.id,t,"id",e,1),t},t.declaredPredicate=function(e){let t={type:"DeclaredPredicate",value:e};return a(o.DeclaredPredicate.value,t,"value",e,1),t},t.decorator=function(e){let t={type:"Decorator",expression:e};return a(o.Decorator.expression,t,"expression",e,1),t},t.directive=function(e){let t={type:"Directive",value:e};return a(o.Directive.value,t,"value",e,1),t},t.directiveLiteral=function(e){let t={type:"DirectiveLiteral",value:e};return a(o.DirectiveLiteral.value,t,"value",e),t},t.doExpression=function(e,t=!1){let i={type:"DoExpression",body:e,async:t},r=o.DoExpression;return a(r.body,i,"body",e,1),a(r.async,i,"async",t),i},t.doWhileStatement=function(e,t){let i={type:"DoWhileStatement",test:e,body:t},r=o.DoWhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumBooleanBody.members,t,"members",e,1),t},t.enumBooleanMember=function(e){let t={type:"EnumBooleanMember",id:e,init:null};return a(o.EnumBooleanMember.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){let i={type:"EnumDeclaration",id:e,body:t},r=o.EnumDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.enumDefaultedMember=function(e){let t={type:"EnumDefaultedMember",id:e};return a(o.EnumDefaultedMember.id,t,"id",e,1),t},t.enumNumberBody=function(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumNumberBody.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){let i={type:"EnumNumberMember",id:e,init:t},r=o.EnumNumberMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumStringBody=function(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumStringBody.members,t,"members",e,1),t},t.enumStringMember=function(e,t){let i={type:"EnumStringMember",id:e,init:t},r=o.EnumStringMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumSymbolBody=function(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null};return a(o.EnumSymbolBody.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){let t={type:"ExportAllDeclaration",source:e};return a(o.ExportAllDeclaration.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){let t={type:"ExportDefaultDeclaration",declaration:e};return a(o.ExportDefaultDeclaration.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){let t={type:"ExportDefaultSpecifier",exported:e};return a(o.ExportDefaultSpecifier.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],i=null){let r={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:i},s=o.ExportNamedDeclaration;return a(s.declaration,r,"declaration",e,1),a(s.specifiers,r,"specifiers",t,1),a(s.source,r,"source",i,1),r},t.exportNamespaceSpecifier=function(e){let t={type:"ExportNamespaceSpecifier",exported:e};return a(o.ExportNamespaceSpecifier.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){let i={type:"ExportSpecifier",local:e,exported:t},r=o.ExportSpecifier;return a(r.local,i,"local",e,1),a(r.exported,i,"exported",t,1),i},t.expressionStatement=function(e){let t={type:"ExpressionStatement",expression:e};return a(o.ExpressionStatement.expression,t,"expression",e,1),t},t.file=function(e,t=null,i=null){let r={type:"File",program:e,comments:t,tokens:i},s=o.File;return a(s.program,r,"program",e,1),a(s.comments,r,"comments",t,1),a(s.tokens,r,"tokens",i),r},t.forInStatement=function(e,t,i){let r={type:"ForInStatement",left:e,right:t,body:i},s=o.ForInStatement;return a(s.left,r,"left",e,1),a(s.right,r,"right",t,1),a(s.body,r,"body",i,1),r},t.forOfStatement=function(e,t,i,r=!1){let s={type:"ForOfStatement",left:e,right:t,body:i,await:r},n=o.ForOfStatement;return a(n.left,s,"left",e,1),a(n.right,s,"right",t,1),a(n.body,s,"body",i,1),a(n.await,s,"await",r),s},t.forStatement=function(e=null,t=null,i=null,r){let s={type:"ForStatement",init:e,test:t,update:i,body:r},n=o.ForStatement;return a(n.init,s,"init",e,1),a(n.test,s,"test",t,1),a(n.update,s,"update",i,1),a(n.body,s,"body",r,1),s},t.functionDeclaration=function(e=null,t,i,r=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:i,generator:r,async:s},l=o.FunctionDeclaration;return a(l.id,n,"id",e,1),a(l.params,n,"params",t,1),a(l.body,n,"body",i,1),a(l.generator,n,"generator",r),a(l.async,n,"async",s),n},t.functionExpression=function(e=null,t,i,r=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:i,generator:r,async:s},l=o.FunctionExpression;return a(l.id,n,"id",e,1),a(l.params,n,"params",t,1),a(l.body,n,"body",i,1),a(l.generator,n,"generator",r),a(l.async,n,"async",s),n},t.functionTypeAnnotation=function(e=null,t,i=null,r){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:i,returnType:r},n=o.FunctionTypeAnnotation;return a(n.typeParameters,s,"typeParameters",e,1),a(n.params,s,"params",t,1),a(n.rest,s,"rest",i,1),a(n.returnType,s,"returnType",r,1),s},t.functionTypeParam=function(e=null,t){let i={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=o.FunctionTypeParam;return a(r.name,i,"name",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.genericTypeAnnotation=function(e,t=null){let i={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=o.GenericTypeAnnotation;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.identifier=function(e){let t={type:"Identifier",name:e};return a(o.Identifier.name,t,"name",e),t},t.ifStatement=function(e,t,i=null){let r={type:"IfStatement",test:e,consequent:t,alternate:i},s=o.IfStatement;return a(s.test,r,"test",e,1),a(s.consequent,r,"consequent",t,1),a(s.alternate,r,"alternate",i,1),r},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){let i={type:"ImportAttribute",key:e,value:t},r=o.ImportAttribute;return a(r.key,i,"key",e,1),a(r.value,i,"value",t,1),i},t.importDeclaration=function(e,t){let i={type:"ImportDeclaration",specifiers:e,source:t},r=o.ImportDeclaration;return a(r.specifiers,i,"specifiers",e,1),a(r.source,i,"source",t,1),i},t.importDefaultSpecifier=function(e){let t={type:"ImportDefaultSpecifier",local:e};return a(o.ImportDefaultSpecifier.local,t,"local",e,1),t},t.importExpression=function(e,t=null){let i={type:"ImportExpression",source:e,options:t},r=o.ImportExpression;return a(r.source,i,"source",e,1),a(r.options,i,"options",t,1),i},t.importNamespaceSpecifier=function(e){let t={type:"ImportNamespaceSpecifier",local:e};return a(o.ImportNamespaceSpecifier.local,t,"local",e,1),t},t.importSpecifier=function(e,t){let i={type:"ImportSpecifier",local:e,imported:t},r=o.ImportSpecifier;return a(r.local,i,"local",e,1),a(r.imported,i,"imported",t,1),i},t.indexedAccessType=function(e,t){let i={type:"IndexedAccessType",objectType:e,indexType:t},r=o.IndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,i=null,r){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},n=o.InterfaceDeclaration;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.extends,s,"extends",i,1),a(n.body,s,"body",r,1),s},t.interfaceExtends=function(e,t=null){let i={type:"InterfaceExtends",id:e,typeParameters:t},r=o.InterfaceExtends;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.interfaceTypeAnnotation=function(e=null,t){let i={type:"InterfaceTypeAnnotation",extends:e,body:t},r=o.InterfaceTypeAnnotation;return a(r.extends,i,"extends",e,1),a(r.body,i,"body",t,1),i},t.interpreterDirective=function(e){let t={type:"InterpreterDirective",value:e};return a(o.InterpreterDirective.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){let t={type:"IntersectionTypeAnnotation",types:e};return a(o.IntersectionTypeAnnotation.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){let i={type:"JSXAttribute",name:e,value:t},r=o.JSXAttribute;return a(r.name,i,"name",e,1),a(r.value,i,"value",t,1),i},t.jSXClosingElement=t.jsxClosingElement=function(e){let t={type:"JSXClosingElement",name:e};return a(o.JSXClosingElement.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,i,r=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:i,selfClosing:r},n=o.JSXElement;return a(n.openingElement,s,"openingElement",e,1),a(n.closingElement,s,"closingElement",t,1),a(n.children,s,"children",i,1),a(n.selfClosing,s,"selfClosing",r),s},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){let t={type:"JSXExpressionContainer",expression:e};return a(o.JSXExpressionContainer.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,i){let r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:i},s=o.JSXFragment;return a(s.openingFragment,r,"openingFragment",e,1),a(s.closingFragment,r,"closingFragment",t,1),a(s.children,r,"children",i,1),r},t.jSXIdentifier=t.jsxIdentifier=function(e){let t={type:"JSXIdentifier",name:e};return a(o.JSXIdentifier.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){let i={type:"JSXMemberExpression",object:e,property:t},r=o.JSXMemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),i},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){let i={type:"JSXNamespacedName",namespace:e,name:t},r=o.JSXNamespacedName;return a(r.namespace,i,"namespace",e,1),a(r.name,i,"name",t,1),i},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,i=!1){let r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:i},s=o.JSXOpeningElement;return a(s.name,r,"name",e,1),a(s.attributes,r,"attributes",t,1),a(s.selfClosing,r,"selfClosing",i),r},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){let t={type:"JSXSpreadAttribute",argument:e};return a(o.JSXSpreadAttribute.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){let t={type:"JSXSpreadChild",expression:e};return a(o.JSXSpreadChild.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){let t={type:"JSXText",value:e};return a(o.JSXText.value,t,"value",e),t},t.labeledStatement=function(e,t){let i={type:"LabeledStatement",label:e,body:t},r=o.LabeledStatement;return a(r.label,i,"label",e,1),a(r.body,i,"body",t,1),i},t.logicalExpression=function(e,t,i){let r={type:"LogicalExpression",operator:e,left:t,right:i},s=o.LogicalExpression;return a(s.operator,r,"operator",e),a(s.left,r,"left",t,1),a(s.right,r,"right",i,1),r},t.memberExpression=function(e,t,i=!1,r=null){let s={type:"MemberExpression",object:e,property:t,computed:i,optional:r},n=o.MemberExpression;return a(n.object,s,"object",e,1),a(n.property,s,"property",t,1),a(n.computed,s,"computed",i),a(n.optional,s,"optional",r),s},t.metaProperty=function(e,t){let i={type:"MetaProperty",meta:e,property:t},r=o.MetaProperty;return a(r.meta,i,"meta",e,1),a(r.property,i,"property",t,1),i},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){let t={type:"ModuleExpression",body:e};return a(o.ModuleExpression.body,t,"body",e,1),t},t.newExpression=function(e,t){let i={type:"NewExpression",callee:e,arguments:t},r=o.NewExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e};return a(o.NullableTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,s.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){let t={type:"NumberLiteralTypeAnnotation",value:e};return a(o.NumberLiteralTypeAnnotation.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){let t={type:"ObjectExpression",properties:e};return a(o.ObjectExpression.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,i,r,s=!1,n=!1,l=!1){let p={type:"ObjectMethod",kind:e,key:t,params:i,body:r,computed:s,generator:n,async:l},c=o.ObjectMethod;return a(c.kind,p,"kind",e),a(c.key,p,"key",t,1),a(c.params,p,"params",i,1),a(c.body,p,"body",r,1),a(c.computed,p,"computed",s),a(c.generator,p,"generator",n),a(c.async,p,"async",l),p},t.objectPattern=function(e){let t={type:"ObjectPattern",properties:e};return a(o.ObjectPattern.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,i=!1,r=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:i,shorthand:r,decorators:s},l=o.ObjectProperty;return a(l.key,n,"key",e,1),a(l.value,n,"value",t,1),a(l.computed,n,"computed",i),a(l.shorthand,n,"shorthand",r),a(l.decorators,n,"decorators",s,1),n},t.objectTypeAnnotation=function(e,t=[],i=[],r=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:i,internalSlots:r,exact:s},l=o.ObjectTypeAnnotation;return a(l.properties,n,"properties",e,1),a(l.indexers,n,"indexers",t,1),a(l.callProperties,n,"callProperties",i,1),a(l.internalSlots,n,"internalSlots",r,1),a(l.exact,n,"exact",s),n},t.objectTypeCallProperty=function(e){let t={type:"ObjectTypeCallProperty",value:e,static:null};return a(o.ObjectTypeCallProperty.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,i,r=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:i,variance:r,static:null},n=o.ObjectTypeIndexer;return a(n.id,s,"id",e,1),a(n.key,s,"key",t,1),a(n.value,s,"value",i,1),a(n.variance,s,"variance",r,1),s},t.objectTypeInternalSlot=function(e,t,i,r,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:i,static:r,method:s},l=o.ObjectTypeInternalSlot;return a(l.id,n,"id",e,1),a(l.value,n,"value",t,1),a(l.optional,n,"optional",i),a(l.static,n,"static",r),a(l.method,n,"method",s),n},t.objectTypeProperty=function(e,t,i=null){let r={type:"ObjectTypeProperty",key:e,value:t,variance:i,kind:null,method:null,optional:null,proto:null,static:null},s=o.ObjectTypeProperty;return a(s.key,r,"key",e,1),a(s.value,r,"value",t,1),a(s.variance,r,"variance",i,1),r},t.objectTypeSpreadProperty=function(e){let t={type:"ObjectTypeSpreadProperty",argument:e};return a(o.ObjectTypeSpreadProperty.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,i=null,r){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:i,impltype:r},n=o.OpaqueType;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.supertype,s,"supertype",i,1),a(n.impltype,s,"impltype",r,1),s},t.optionalCallExpression=function(e,t,i){let r={type:"OptionalCallExpression",callee:e,arguments:t,optional:i},s=o.OptionalCallExpression;return a(s.callee,r,"callee",e,1),a(s.arguments,r,"arguments",t,1),a(s.optional,r,"optional",i),r},t.optionalIndexedAccessType=function(e,t){let i={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},r=o.OptionalIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.optionalMemberExpression=function(e,t,i=!1,r){let s={type:"OptionalMemberExpression",object:e,property:t,computed:i,optional:r},n=o.OptionalMemberExpression;return a(n.object,s,"object",e,1),a(n.property,s,"property",t,1),a(n.computed,s,"computed",i),a(n.optional,s,"optional",r),s},t.parenthesizedExpression=function(e){let t={type:"ParenthesizedExpression",expression:e};return a(o.ParenthesizedExpression.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){let t={type:"PipelineBareFunction",callee:e};return a(o.PipelineBareFunction.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){let t={type:"PipelineTopicExpression",expression:e};return a(o.PipelineTopicExpression.expression,t,"expression",e,1),t},t.placeholder=function(e,t){let i={type:"Placeholder",expectedNode:e,name:t},r=o.Placeholder;return a(r.expectedNode,i,"expectedNode",e),a(r.name,i,"name",t,1),i},t.privateName=function(e){let t={type:"PrivateName",id:e};return a(o.PrivateName.id,t,"id",e,1),t},t.program=function(e,t=[],i="script",r=null){let s={type:"Program",body:e,directives:t,sourceType:i,interpreter:r},n=o.Program;return a(n.body,s,"body",e,1),a(n.directives,s,"directives",t,1),a(n.sourceType,s,"sourceType",i),a(n.interpreter,s,"interpreter",r,1),s},t.qualifiedTypeIdentifier=function(e,t){let i={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=o.QualifiedTypeIdentifier;return a(r.id,i,"id",e,1),a(r.qualification,i,"qualification",t,1),i},t.recordExpression=function(e){let t={type:"RecordExpression",properties:e};return a(o.RecordExpression.properties,t,"properties",e,1),t},t.regExpLiteral=p,t.regexLiteral=function(e,t=""){return(0,s.default)("RegexLiteral","RegExpLiteral","The node type "),p(e,t)},t.restElement=c,t.restProperty=function(e){return(0,s.default)("RestProperty","RestElement","The node type "),c(e)},t.returnStatement=function(e=null){let t={type:"ReturnStatement",argument:e};return a(o.ReturnStatement.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){let t={type:"SequenceExpression",expressions:e};return a(o.SequenceExpression.expressions,t,"expressions",e,1),t},t.spreadElement=u,t.spreadProperty=function(e){return(0,s.default)("SpreadProperty","SpreadElement","The node type "),u(e)},t.staticBlock=function(e){let t={type:"StaticBlock",body:e};return a(o.StaticBlock.body,t,"body",e,1),t},t.stringLiteral=function(e){let t={type:"StringLiteral",value:e};return a(o.StringLiteral.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){let t={type:"StringLiteralTypeAnnotation",value:e};return a(o.StringLiteralTypeAnnotation.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){let i={type:"SwitchCase",test:e,consequent:t},r=o.SwitchCase;return a(r.test,i,"test",e,1),a(r.consequent,i,"consequent",t,1),i},t.switchStatement=function(e,t){let i={type:"SwitchStatement",discriminant:e,cases:t},r=o.SwitchStatement;return a(r.discriminant,i,"discriminant",e,1),a(r.cases,i,"cases",t,1),i},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){let i={type:"TaggedTemplateExpression",tag:e,quasi:t},r=o.TaggedTemplateExpression;return a(r.tag,i,"tag",e,1),a(r.quasi,i,"quasi",t,1),i},t.templateElement=function(e,t=!1){let i={type:"TemplateElement",value:e,tail:t},r=o.TemplateElement;return a(r.value,i,"value",e),a(r.tail,i,"tail",t),i},t.templateLiteral=function(e,t){let i={type:"TemplateLiteral",quasis:e,expressions:t},r=o.TemplateLiteral;return a(r.quasis,i,"quasis",e,1),a(r.expressions,i,"expressions",t,1),i},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){let t={type:"ThrowStatement",argument:e};return a(o.ThrowStatement.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,i=null){let r={type:"TryStatement",block:e,handler:t,finalizer:i},s=o.TryStatement;return a(s.block,r,"block",e,1),a(s.handler,r,"handler",t,1),a(s.finalizer,r,"finalizer",i,1),r},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){let t={type:"TSArrayType",elementType:e};return a(o.TSArrayType.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){let i={type:"TSAsExpression",expression:e,typeAnnotation:t},r=o.TSAsExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,i=null){let r={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},s=o.TSCallSignatureDeclaration;return a(s.typeParameters,r,"typeParameters",e,1),a(s.parameters,r,"parameters",t,1),a(s.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConditionalType=t.tsConditionalType=function(e,t,i,r){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:i,falseType:r},n=o.TSConditionalType;return a(n.checkType,s,"checkType",e,1),a(n.extendsType,s,"extendsType",t,1),a(n.trueType,s,"trueType",i,1),a(n.falseType,s,"falseType",r,1),s},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,i=null){let r={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},s=o.TSConstructSignatureDeclaration;return a(s.typeParameters,r,"typeParameters",e,1),a(s.parameters,r,"parameters",t,1),a(s.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConstructorType=t.tsConstructorType=function(e=null,t,i=null){let r={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:i},s=o.TSConstructorType;return a(s.typeParameters,r,"typeParameters",e,1),a(s.parameters,r,"parameters",t,1),a(s.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,i,r=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:i,returnType:r},n=o.TSDeclareFunction;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.params,s,"params",i,1),a(n.returnType,s,"returnType",r,1),s},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,i=null,r,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:i,params:r,returnType:s},l=o.TSDeclareMethod;return a(l.decorators,n,"decorators",e,1),a(l.key,n,"key",t,1),a(l.typeParameters,n,"typeParameters",i,1),a(l.params,n,"params",r,1),a(l.returnType,n,"returnType",s,1),n},t.tSEnumBody=t.tsEnumBody=function(e){let t={type:"TSEnumBody",members:e};return a(o.TSEnumBody.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){let i={type:"TSEnumDeclaration",id:e,members:t},r=o.TSEnumDeclaration;return a(r.id,i,"id",e,1),a(r.members,i,"members",t,1),i},t.tSEnumMember=t.tsEnumMember=function(e,t=null){let i={type:"TSEnumMember",id:e,initializer:t},r=o.TSEnumMember;return a(r.id,i,"id",e,1),a(r.initializer,i,"initializer",t,1),i},t.tSExportAssignment=t.tsExportAssignment=function(e){let t={type:"TSExportAssignment",expression:e};return a(o.TSExportAssignment.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){let i={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},r=o.TSExpressionWithTypeArguments;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){let t={type:"TSExternalModuleReference",expression:e};return a(o.TSExternalModuleReference.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,i=null){let r={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:i},s=o.TSFunctionType;return a(s.typeParameters,r,"typeParameters",e,1),a(s.parameters,r,"parameters",t,1),a(s.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){let i={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},r=o.TSImportEqualsDeclaration;return a(r.id,i,"id",e,1),a(r.moduleReference,i,"moduleReference",t,1),i},t.tSImportType=t.tsImportType=function(e,t=null,i=null){let r={type:"TSImportType",argument:e,qualifier:t,typeParameters:i},s=o.TSImportType;return a(s.argument,r,"argument",e,1),a(s.qualifier,r,"qualifier",t,1),a(s.typeParameters,r,"typeParameters",i,1),r},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){let i={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=o.TSIndexSignature;return a(r.parameters,i,"parameters",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){let i={type:"TSIndexedAccessType",objectType:e,indexType:t},r=o.TSIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.tSInferType=t.tsInferType=function(e){let t={type:"TSInferType",typeParameter:e};return a(o.TSInferType.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){let i={type:"TSInstantiationExpression",expression:e,typeParameters:t},r=o.TSInstantiationExpression;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSInterfaceBody=t.tsInterfaceBody=function(e){let t={type:"TSInterfaceBody",body:e};return a(o.TSInterfaceBody.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,i=null,r){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},n=o.TSInterfaceDeclaration;return a(n.id,s,"id",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.extends,s,"extends",i,1),a(n.body,s,"body",r,1),s},t.tSIntersectionType=t.tsIntersectionType=function(e){let t={type:"TSIntersectionType",types:e};return a(o.TSIntersectionType.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){let t={type:"TSLiteralType",literal:e};return a(o.TSLiteralType.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,i=null){let r={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:i},s=o.TSMappedType;return a(s.typeParameter,r,"typeParameter",e,1),a(s.typeAnnotation,r,"typeAnnotation",t,1),a(s.nameType,r,"nameType",i,1),r},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,i,r=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:i,typeAnnotation:r,kind:null},n=o.TSMethodSignature;return a(n.key,s,"key",e,1),a(n.typeParameters,s,"typeParameters",t,1),a(n.parameters,s,"parameters",i,1),a(n.typeAnnotation,s,"typeAnnotation",r,1),s},t.tSModuleBlock=t.tsModuleBlock=function(e){let t={type:"TSModuleBlock",body:e};return a(o.TSModuleBlock.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){let i={type:"TSModuleDeclaration",id:e,body:t,kind:null},r=o.TSModuleDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,i=!1){let r={type:"TSNamedTupleMember",label:e,elementType:t,optional:i},s=o.TSNamedTupleMember;return a(s.label,r,"label",e,1),a(s.elementType,r,"elementType",t,1),a(s.optional,r,"optional",i),r},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){let t={type:"TSNamespaceExportDeclaration",id:e};return a(o.TSNamespaceExportDeclaration.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){let t={type:"TSNonNullExpression",expression:e};return a(o.TSNonNullExpression.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){let t={type:"TSOptionalType",typeAnnotation:e};return a(o.TSOptionalType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){let t={type:"TSParameterProperty",parameter:e};return a(o.TSParameterProperty.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){let t={type:"TSParenthesizedType",typeAnnotation:e};return a(o.TSParenthesizedType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){let i={type:"TSPropertySignature",key:e,typeAnnotation:t},r=o.TSPropertySignature;return a(r.key,i,"key",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSQualifiedName=t.tsQualifiedName=function(e,t){let i={type:"TSQualifiedName",left:e,right:t},r=o.TSQualifiedName;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.tSRestType=t.tsRestType=function(e){let t={type:"TSRestType",typeAnnotation:e};return a(o.TSRestType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){let i={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=o.TSSatisfiesExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){let i={type:"TSTemplateLiteralType",quasis:e,types:t},r=o.TSTemplateLiteralType;return a(r.quasis,i,"quasis",e,1),a(r.types,i,"types",t,1),i},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){let t={type:"TSTupleType",elementTypes:e};return a(o.TSTupleType.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,i){let r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:i},s=o.TSTypeAliasDeclaration;return a(s.id,r,"id",e,1),a(s.typeParameters,r,"typeParameters",t,1),a(s.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){let t={type:"TSTypeAnnotation",typeAnnotation:e};return a(o.TSTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){let i={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=o.TSTypeAssertion;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.expression,i,"expression",t,1),i},t.tSTypeLiteral=t.tsTypeLiteral=function(e){let t={type:"TSTypeLiteral",members:e};return a(o.TSTypeLiteral.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){let i={type:"TSTypeOperator",typeAnnotation:e,operator:t},r=o.TSTypeOperator;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.operator,i,"operator",t),i},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,i){let r={type:"TSTypeParameter",constraint:e,default:t,name:i},s=o.TSTypeParameter;return a(s.constraint,r,"constraint",e,1),a(s.default,r,"default",t,1),a(s.name,r,"name",i),r},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){let t={type:"TSTypeParameterDeclaration",params:e};return a(o.TSTypeParameterDeclaration.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){let t={type:"TSTypeParameterInstantiation",params:e};return a(o.TSTypeParameterInstantiation.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,i=null){let r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:i},s=o.TSTypePredicate;return a(s.parameterName,r,"parameterName",e,1),a(s.typeAnnotation,r,"typeAnnotation",t,1),a(s.asserts,r,"asserts",i),r},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){let i={type:"TSTypeQuery",exprName:e,typeParameters:t},r=o.TSTypeQuery;return a(r.exprName,i,"exprName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSTypeReference=t.tsTypeReference=function(e,t=null){let i={type:"TSTypeReference",typeName:e,typeParameters:t},r=o.TSTypeReference;return a(r.typeName,i,"typeName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){let t={type:"TSUnionType",types:e};return a(o.TSUnionType.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){let t={type:"TupleExpression",elements:e};return a(o.TupleExpression.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){let t={type:"TupleTypeAnnotation",types:e};return a(o.TupleTypeAnnotation.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,i){let r={type:"TypeAlias",id:e,typeParameters:t,right:i},s=o.TypeAlias;return a(s.id,r,"id",e,1),a(s.typeParameters,r,"typeParameters",t,1),a(s.right,r,"right",i,1),r},t.typeAnnotation=function(e){let t={type:"TypeAnnotation",typeAnnotation:e};return a(o.TypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){let i={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=o.TypeCastExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.typeParameter=function(e=null,t=null,i=null){let r={type:"TypeParameter",bound:e,default:t,variance:i,name:null},s=o.TypeParameter;return a(s.bound,r,"bound",e,1),a(s.default,r,"default",t,1),a(s.variance,r,"variance",i,1),r},t.typeParameterDeclaration=function(e){let t={type:"TypeParameterDeclaration",params:e};return a(o.TypeParameterDeclaration.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){let t={type:"TypeParameterInstantiation",params:e};return a(o.TypeParameterInstantiation.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){let t={type:"TypeofTypeAnnotation",argument:e};return a(o.TypeofTypeAnnotation.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,i=!0){let r={type:"UnaryExpression",operator:e,argument:t,prefix:i},s=o.UnaryExpression;return a(s.operator,r,"operator",e),a(s.argument,r,"argument",t,1),a(s.prefix,r,"prefix",i),r},t.unionTypeAnnotation=function(e){let t={type:"UnionTypeAnnotation",types:e};return a(o.UnionTypeAnnotation.types,t,"types",e,1),t},t.updateExpression=function(e,t,i=!1){let r={type:"UpdateExpression",operator:e,argument:t,prefix:i},s=o.UpdateExpression;return a(s.operator,r,"operator",e),a(s.argument,r,"argument",t,1),a(s.prefix,r,"prefix",i),r},t.v8IntrinsicIdentifier=function(e){let t={type:"V8IntrinsicIdentifier",name:e};return a(o.V8IntrinsicIdentifier.name,t,"name",e),t},t.variableDeclaration=function(e,t){let i={type:"VariableDeclaration",kind:e,declarations:t},r=o.VariableDeclaration;return a(r.kind,i,"kind",e),a(r.declarations,i,"declarations",t,1),i},t.variableDeclarator=function(e,t=null){let i={type:"VariableDeclarator",id:e,init:t},r=o.VariableDeclarator;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.variance=function(e){let t={type:"Variance",kind:e};return a(o.Variance.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){let i={type:"WhileStatement",test:e,body:t},r=o.WhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.withStatement=function(e,t){let i={type:"WithStatement",object:e,body:t},r=o.WithStatement;return a(r.object,i,"object",e,1),a(r.body,i,"body",t,1),i},t.yieldExpression=function(e=null,t=!1){let i={type:"YieldExpression",argument:e,delegate:t},r=o.YieldExpression;return a(r.argument,i,"argument",e,1),a(r.delegate,i,"delegate",t),i};var r=i(88765),s=i(50231),n=i(65183);let{validateInternal:a}=r,{NODE_FIELDS:o}=n;function l(e){let t={type:"NumericLiteral",value:e};return a(o.NumericLiteral.value,t,"value",e),t}function p(e,t=""){let i={type:"RegExpLiteral",pattern:e,flags:t},r=o.RegExpLiteral;return a(r.pattern,i,"pattern",e),a(r.flags,i,"flags",t),i}function c(e){let t={type:"RestElement",argument:e};return a(o.RestElement.argument,t,"argument",e,1),t}function u(e){let t={type:"SpreadElement",argument:e};return a(o.SpreadElement.argument,t,"argument",e,1),t}},44614(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var r=i(56223);i(50231),t.ArrayExpression=r.arrayExpression,t.AssignmentExpression=r.assignmentExpression,t.BinaryExpression=r.binaryExpression,t.InterpreterDirective=r.interpreterDirective,t.Directive=r.directive,t.DirectiveLiteral=r.directiveLiteral,t.BlockStatement=r.blockStatement,t.BreakStatement=r.breakStatement,t.CallExpression=r.callExpression,t.CatchClause=r.catchClause,t.ConditionalExpression=r.conditionalExpression,t.ContinueStatement=r.continueStatement,t.DebuggerStatement=r.debuggerStatement,t.DoWhileStatement=r.doWhileStatement,t.EmptyStatement=r.emptyStatement,t.ExpressionStatement=r.expressionStatement,t.File=r.file,t.ForInStatement=r.forInStatement,t.ForStatement=r.forStatement,t.FunctionDeclaration=r.functionDeclaration,t.FunctionExpression=r.functionExpression,t.Identifier=r.identifier,t.IfStatement=r.ifStatement,t.LabeledStatement=r.labeledStatement,t.StringLiteral=r.stringLiteral,t.NumericLiteral=r.numericLiteral,t.NullLiteral=r.nullLiteral,t.BooleanLiteral=r.booleanLiteral,t.RegExpLiteral=r.regExpLiteral,t.LogicalExpression=r.logicalExpression,t.MemberExpression=r.memberExpression,t.NewExpression=r.newExpression,t.Program=r.program,t.ObjectExpression=r.objectExpression,t.ObjectMethod=r.objectMethod,t.ObjectProperty=r.objectProperty,t.RestElement=r.restElement,t.ReturnStatement=r.returnStatement,t.SequenceExpression=r.sequenceExpression,t.ParenthesizedExpression=r.parenthesizedExpression,t.SwitchCase=r.switchCase,t.SwitchStatement=r.switchStatement,t.ThisExpression=r.thisExpression,t.ThrowStatement=r.throwStatement,t.TryStatement=r.tryStatement,t.UnaryExpression=r.unaryExpression,t.UpdateExpression=r.updateExpression,t.VariableDeclaration=r.variableDeclaration,t.VariableDeclarator=r.variableDeclarator,t.WhileStatement=r.whileStatement,t.WithStatement=r.withStatement,t.AssignmentPattern=r.assignmentPattern,t.ArrayPattern=r.arrayPattern,t.ArrowFunctionExpression=r.arrowFunctionExpression,t.ClassBody=r.classBody,t.ClassExpression=r.classExpression,t.ClassDeclaration=r.classDeclaration,t.ExportAllDeclaration=r.exportAllDeclaration,t.ExportDefaultDeclaration=r.exportDefaultDeclaration,t.ExportNamedDeclaration=r.exportNamedDeclaration,t.ExportSpecifier=r.exportSpecifier,t.ForOfStatement=r.forOfStatement,t.ImportDeclaration=r.importDeclaration,t.ImportDefaultSpecifier=r.importDefaultSpecifier,t.ImportNamespaceSpecifier=r.importNamespaceSpecifier,t.ImportSpecifier=r.importSpecifier,t.ImportExpression=r.importExpression,t.MetaProperty=r.metaProperty,t.ClassMethod=r.classMethod,t.ObjectPattern=r.objectPattern,t.SpreadElement=r.spreadElement,t.Super=r.super,t.TaggedTemplateExpression=r.taggedTemplateExpression,t.TemplateElement=r.templateElement,t.TemplateLiteral=r.templateLiteral,t.YieldExpression=r.yieldExpression,t.AwaitExpression=r.awaitExpression,t.Import=r.import,t.BigIntLiteral=r.bigIntLiteral,t.ExportNamespaceSpecifier=r.exportNamespaceSpecifier,t.OptionalMemberExpression=r.optionalMemberExpression,t.OptionalCallExpression=r.optionalCallExpression,t.ClassProperty=r.classProperty,t.ClassAccessorProperty=r.classAccessorProperty,t.ClassPrivateProperty=r.classPrivateProperty,t.ClassPrivateMethod=r.classPrivateMethod,t.PrivateName=r.privateName,t.StaticBlock=r.staticBlock,t.ImportAttribute=r.importAttribute,t.AnyTypeAnnotation=r.anyTypeAnnotation,t.ArrayTypeAnnotation=r.arrayTypeAnnotation,t.BooleanTypeAnnotation=r.booleanTypeAnnotation,t.BooleanLiteralTypeAnnotation=r.booleanLiteralTypeAnnotation,t.NullLiteralTypeAnnotation=r.nullLiteralTypeAnnotation,t.ClassImplements=r.classImplements,t.DeclareClass=r.declareClass,t.DeclareFunction=r.declareFunction,t.DeclareInterface=r.declareInterface,t.DeclareModule=r.declareModule,t.DeclareModuleExports=r.declareModuleExports,t.DeclareTypeAlias=r.declareTypeAlias,t.DeclareOpaqueType=r.declareOpaqueType,t.DeclareVariable=r.declareVariable,t.DeclareExportDeclaration=r.declareExportDeclaration,t.DeclareExportAllDeclaration=r.declareExportAllDeclaration,t.DeclaredPredicate=r.declaredPredicate,t.ExistsTypeAnnotation=r.existsTypeAnnotation,t.FunctionTypeAnnotation=r.functionTypeAnnotation,t.FunctionTypeParam=r.functionTypeParam,t.GenericTypeAnnotation=r.genericTypeAnnotation,t.InferredPredicate=r.inferredPredicate,t.InterfaceExtends=r.interfaceExtends,t.InterfaceDeclaration=r.interfaceDeclaration,t.InterfaceTypeAnnotation=r.interfaceTypeAnnotation,t.IntersectionTypeAnnotation=r.intersectionTypeAnnotation,t.MixedTypeAnnotation=r.mixedTypeAnnotation,t.EmptyTypeAnnotation=r.emptyTypeAnnotation,t.NullableTypeAnnotation=r.nullableTypeAnnotation,t.NumberLiteralTypeAnnotation=r.numberLiteralTypeAnnotation,t.NumberTypeAnnotation=r.numberTypeAnnotation,t.ObjectTypeAnnotation=r.objectTypeAnnotation,t.ObjectTypeInternalSlot=r.objectTypeInternalSlot,t.ObjectTypeCallProperty=r.objectTypeCallProperty,t.ObjectTypeIndexer=r.objectTypeIndexer,t.ObjectTypeProperty=r.objectTypeProperty,t.ObjectTypeSpreadProperty=r.objectTypeSpreadProperty,t.OpaqueType=r.opaqueType,t.QualifiedTypeIdentifier=r.qualifiedTypeIdentifier,t.StringLiteralTypeAnnotation=r.stringLiteralTypeAnnotation,t.StringTypeAnnotation=r.stringTypeAnnotation,t.SymbolTypeAnnotation=r.symbolTypeAnnotation,t.ThisTypeAnnotation=r.thisTypeAnnotation,t.TupleTypeAnnotation=r.tupleTypeAnnotation,t.TypeofTypeAnnotation=r.typeofTypeAnnotation,t.TypeAlias=r.typeAlias,t.TypeAnnotation=r.typeAnnotation,t.TypeCastExpression=r.typeCastExpression,t.TypeParameter=r.typeParameter,t.TypeParameterDeclaration=r.typeParameterDeclaration,t.TypeParameterInstantiation=r.typeParameterInstantiation,t.UnionTypeAnnotation=r.unionTypeAnnotation,t.Variance=r.variance,t.VoidTypeAnnotation=r.voidTypeAnnotation,t.EnumDeclaration=r.enumDeclaration,t.EnumBooleanBody=r.enumBooleanBody,t.EnumNumberBody=r.enumNumberBody,t.EnumStringBody=r.enumStringBody,t.EnumSymbolBody=r.enumSymbolBody,t.EnumBooleanMember=r.enumBooleanMember,t.EnumNumberMember=r.enumNumberMember,t.EnumStringMember=r.enumStringMember,t.EnumDefaultedMember=r.enumDefaultedMember,t.IndexedAccessType=r.indexedAccessType,t.OptionalIndexedAccessType=r.optionalIndexedAccessType,t.JSXAttribute=r.jsxAttribute,t.JSXClosingElement=r.jsxClosingElement,t.JSXElement=r.jsxElement,t.JSXEmptyExpression=r.jsxEmptyExpression,t.JSXExpressionContainer=r.jsxExpressionContainer,t.JSXSpreadChild=r.jsxSpreadChild,t.JSXIdentifier=r.jsxIdentifier,t.JSXMemberExpression=r.jsxMemberExpression,t.JSXNamespacedName=r.jsxNamespacedName,t.JSXOpeningElement=r.jsxOpeningElement,t.JSXSpreadAttribute=r.jsxSpreadAttribute,t.JSXText=r.jsxText,t.JSXFragment=r.jsxFragment,t.JSXOpeningFragment=r.jsxOpeningFragment,t.JSXClosingFragment=r.jsxClosingFragment,t.Noop=r.noop,t.Placeholder=r.placeholder,t.V8IntrinsicIdentifier=r.v8IntrinsicIdentifier,t.ArgumentPlaceholder=r.argumentPlaceholder,t.BindExpression=r.bindExpression,t.Decorator=r.decorator,t.DoExpression=r.doExpression,t.ExportDefaultSpecifier=r.exportDefaultSpecifier,t.RecordExpression=r.recordExpression,t.TupleExpression=r.tupleExpression,t.DecimalLiteral=r.decimalLiteral,t.ModuleExpression=r.moduleExpression,t.TopicReference=r.topicReference,t.PipelineTopicExpression=r.pipelineTopicExpression,t.PipelineBareFunction=r.pipelineBareFunction,t.PipelinePrimaryTopicReference=r.pipelinePrimaryTopicReference,t.VoidPattern=r.voidPattern,t.TSParameterProperty=r.tsParameterProperty,t.TSDeclareFunction=r.tsDeclareFunction,t.TSDeclareMethod=r.tsDeclareMethod,t.TSQualifiedName=r.tsQualifiedName,t.TSCallSignatureDeclaration=r.tsCallSignatureDeclaration,t.TSConstructSignatureDeclaration=r.tsConstructSignatureDeclaration,t.TSPropertySignature=r.tsPropertySignature,t.TSMethodSignature=r.tsMethodSignature,t.TSIndexSignature=r.tsIndexSignature,t.TSAnyKeyword=r.tsAnyKeyword,t.TSBooleanKeyword=r.tsBooleanKeyword,t.TSBigIntKeyword=r.tsBigIntKeyword,t.TSIntrinsicKeyword=r.tsIntrinsicKeyword,t.TSNeverKeyword=r.tsNeverKeyword,t.TSNullKeyword=r.tsNullKeyword,t.TSNumberKeyword=r.tsNumberKeyword,t.TSObjectKeyword=r.tsObjectKeyword,t.TSStringKeyword=r.tsStringKeyword,t.TSSymbolKeyword=r.tsSymbolKeyword,t.TSUndefinedKeyword=r.tsUndefinedKeyword,t.TSUnknownKeyword=r.tsUnknownKeyword,t.TSVoidKeyword=r.tsVoidKeyword,t.TSThisType=r.tsThisType,t.TSFunctionType=r.tsFunctionType,t.TSConstructorType=r.tsConstructorType,t.TSTypeReference=r.tsTypeReference,t.TSTypePredicate=r.tsTypePredicate,t.TSTypeQuery=r.tsTypeQuery,t.TSTypeLiteral=r.tsTypeLiteral,t.TSArrayType=r.tsArrayType,t.TSTupleType=r.tsTupleType,t.TSOptionalType=r.tsOptionalType,t.TSRestType=r.tsRestType,t.TSNamedTupleMember=r.tsNamedTupleMember,t.TSUnionType=r.tsUnionType,t.TSIntersectionType=r.tsIntersectionType,t.TSConditionalType=r.tsConditionalType,t.TSInferType=r.tsInferType,t.TSParenthesizedType=r.tsParenthesizedType,t.TSTypeOperator=r.tsTypeOperator,t.TSIndexedAccessType=r.tsIndexedAccessType,t.TSMappedType=r.tsMappedType,t.TSTemplateLiteralType=r.tsTemplateLiteralType,t.TSLiteralType=r.tsLiteralType,t.TSExpressionWithTypeArguments=r.tsExpressionWithTypeArguments,t.TSInterfaceDeclaration=r.tsInterfaceDeclaration,t.TSInterfaceBody=r.tsInterfaceBody,t.TSTypeAliasDeclaration=r.tsTypeAliasDeclaration,t.TSInstantiationExpression=r.tsInstantiationExpression,t.TSAsExpression=r.tsAsExpression,t.TSSatisfiesExpression=r.tsSatisfiesExpression,t.TSTypeAssertion=r.tsTypeAssertion,t.TSEnumBody=r.tsEnumBody,t.TSEnumDeclaration=r.tsEnumDeclaration,t.TSEnumMember=r.tsEnumMember,t.TSModuleDeclaration=r.tsModuleDeclaration,t.TSModuleBlock=r.tsModuleBlock,t.TSImportType=r.tsImportType,t.TSImportEqualsDeclaration=r.tsImportEqualsDeclaration,t.TSExternalModuleReference=r.tsExternalModuleReference,t.TSNonNullExpression=r.tsNonNullExpression,t.TSExportAssignment=r.tsExportAssignment,t.TSNamespaceExportDeclaration=r.tsNamespaceExportDeclaration,t.TSTypeAnnotation=r.tsTypeAnnotation,t.TSTypeParameterInstantiation=r.tsTypeParameterInstantiation,t.TSTypeParameterDeclaration=r.tsTypeParameterDeclaration,t.TSTypeParameter=r.tsTypeParameter,t.NumberLiteral=r.numberLiteral,t.RegexLiteral=r.regexLiteral,t.RestProperty=r.restProperty,t.SpreadProperty=r.spreadProperty},12456(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,r.unaryExpression)("void",(0,r.numericLiteral)(0),!0)};var r=i(93806)},86503(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=[];for(let i=0;i<e.children.length;i++){let n=e.children[i];if((0,r.isJSXText)(n)){(0,s.default)(n,t);continue}(0,r.isJSXExpressionContainer)(n)&&(n=n.expression),(0,r.isJSXEmptyExpression)(n)||t.push(n)}return t};var r=i(60133),s=i(90132)},84534(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.map(e=>(0,n.isTSTypeAnnotation)(e)?e.typeAnnotation:e),i=(0,s.default)(t);return 1===i.length?i[0]:(0,r.tsUnionType)(i)};var r=i(93806),s=i(99227),n=i(60133)},74780(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=i(16812)},99042(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=i(16812)},46248(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=i(16812)},16812(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,i=!1){return l(e,t,i,new Map)};var r=i(49390),s=i(60133);let{hasOwn:n}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function a(e,t,i,r){return e&&"string"==typeof e.type?l(e,t,i,r):e}function o(e,t,i,r){return Array.isArray(e)?e.map(e=>a(e,t,i,r)):a(e,t,i,r)}function l(e,t=!0,i=!1,a){if(!e)return e;let{type:c}=e,u={type:e.type};if((0,s.isIdentifier)(e))u.name=e.name,n(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),n(e,"typeAnnotation")&&(u.typeAnnotation=t?o(e.typeAnnotation,!0,i,a):e.typeAnnotation),n(e,"decorators")&&(u.decorators=t?o(e.decorators,!0,i,a):e.decorators);else if(n(r.NODE_FIELDS,c))for(let l of Object.keys(r.NODE_FIELDS[c]))n(e,l)&&(t?u[l]=(0,s.isFile)(e)&&"comments"===l?p(e.comments,t,i,a):o(e[l],!0,i,a):u[l]=e[l]);else throw Error(`Unknown node type: "${c}"`);return n(e,"loc")&&(i?u.loc=null:u.loc=e.loc),n(e,"leadingComments")&&(u.leadingComments=p(e.leadingComments,t,i,a)),n(e,"innerComments")&&(u.innerComments=p(e.innerComments,t,i,a)),n(e,"trailingComments")&&(u.trailingComments=p(e.trailingComments,t,i,a)),n(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function p(e,t,i,r){return e&&t?e.map(e=>{let t=r.get(e);if(t)return t;let{type:s,value:n,loc:a}=e,o={type:s,value:n,loc:a};return i&&(o.loc=null),r.set(e,o),o}):e}},33242(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=i(16812)},89456(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,s){return(0,r.default)(e,t,[{type:s?"CommentLine":"CommentBlock",value:i}])};var r=i(943)},943(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!i||!e)return e;let r=`${t}Comments`;return e[r]?"leading"===t?e[r]=i.concat(e[r]):e[r].push(...i):e[r]=i,e}},11515(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=i(30594)},18445(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=i(30594)},46691(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=i(30594)},64494(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,s.default)(e,t),(0,n.default)(e,t),e};var r=i(46691),s=i(18445),n=i(11515)},73890(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var r=i(79897)},55527(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=i(49390);t.STANDARDIZED_TYPES=r.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=r.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=r.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=r.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=r.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=r.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=r.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=r.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=r.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=r.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=r.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=r.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=r.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=r.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=r.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=r.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=r.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=r.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=r.FLIPPED_ALIAS_KEYS.Class;let s=t.IMPORTOREXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=r.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=r.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=r.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=r.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=r.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=r.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=r.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=s},79897(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];let i=t.LOGICAL_OPERATORS=["||","&&","??"];t.UPDATE_OPERATORS=["++","--"];let r=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],s=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],n=t.COMPARISON_BINARY_OPERATORS=[...s,"in","instanceof"],a=t.BOOLEAN_BINARY_OPERATORS=[...n,...r],o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.BINARY_OPERATORS=["+",...o,...a,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...o.map(e=>e+"="),...i.map(e=>e+"=")];let l=t.BOOLEAN_UNARY_OPERATORS=["delete","!"],p=t.NUMBER_UNARY_OPERATORS=["+","-","~"],c=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...p,...c],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},11350(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){let i=(0,r.default)(e[t],e);return e[t]=i,i};var r=i(98999)},22852(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){let l=[],p=!0;for(let c of t)if((0,s.isEmptyStatement)(c)||(p=!1),(0,s.isExpression)(c))l.push(c);else if((0,s.isExpressionStatement)(c))l.push(c.expression);else if((0,s.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(let e of c.declarations){let t=(0,r.default)(e);for(let e of Object.keys(t))i.push({kind:c.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,n.assignmentExpression)("=",e.id,e.init))}p=!0}else if((0,s.isIfStatement)(c)){let t=c.consequent?e([c.consequent],i):(0,a.buildUndefinedNode)(),r=c.alternate?e([c.alternate],i):(0,a.buildUndefinedNode)();if(!t||!r)return;l.push((0,n.conditionalExpression)(c.test,t,r))}else if((0,s.isBlockStatement)(c)){let t=e(c.body,i);if(!t)return;l.push(t)}else{if(!(0,s.isEmptyStatement)(c))return;0===t.indexOf(c)&&(p=!0)}return(p&&l.push((0,a.buildUndefinedNode)()),1===l.length)?l[0]:(0,n.sequenceExpression)(l)};var r=i(46676),s=i(60133),n=i(93806),a=i(12456),o=i(16812)},95847(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return("eval"===(e=(0,r.default)(e))||"arguments"===e)&&(e="_"+e),e};var r=i(17627)},98999(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let i=[];return(0,r.isEmptyStatement)(e)?i=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,s.returnStatement)(e):(0,s.expressionStatement)(e)),i=[e]),(0,s.blockStatement)(i)};var r=i(60133),s=i(93806)},93544(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,s.stringLiteral)(t.name)),t};var r=i(60133),s=i(93806)},25002(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(60133);t.default=function(e){if((0,r.isExpressionStatement)(e)&&(e=e.expression),(0,r.isExpression)(e))return e;if((0,r.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,r.isFunction)(e)&&(e.type="FunctionExpression"),!(0,r.isExpression)(e))throw Error(`cannot turn ${e.type} to an expression`);return e}},17627(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t="";for(let i of e+="")t+=(0,s.isIdentifierChar)(i.codePointAt(0))?i:"-";return t=(t=t.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,r.default)(t)||(t=`_${t}`),t||"_"};var r=i(78126),s=i(14007)},35349(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(60133),s=i(16812),n=i(55262);function a(e,t=e.key){let i;return"method"===e.kind?a.increment()+"":(i=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,n.default)((0,s.default)(t))),e.computed&&(i=`[${i}]`),e.static&&(i=`static:${i}`),i)}a.uid=0,a.increment=function(){return a.uid>=Number.MAX_SAFE_INTEGER?a.uid=0:a.uid++}},55827(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(null!=e&&e.length))return;let i=[],s=(0,r.default)(e,i);if(s){for(let e of i)t.push(e);return s}};var r=i(22852)},10187(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(60133),s=i(93806);t.default=function(e,t){let i;if((0,r.isStatement)(e))return e;let n=!1;if((0,r.isClass)(e))n=!0,i="ClassDeclaration";else if((0,r.isFunction)(e))n=!0,i="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,s.expressionStatement)(e);if(n&&!e.id&&(i=!1),!i)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=i,e}},62485(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(78126),s=i(93806);t.default=function e(t){if(void 0===t)return(0,s.identifier)("undefined");if(!0===t||!1===t)return(0,s.booleanLiteral)(t);if(null===t)return(0,s.nullLiteral)();if("string"==typeof t)return(0,s.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,s.numericLiteral)(Math.abs(t));else{let i;i=Number.isNaN(t)?(0,s.numericLiteral)(0):(0,s.numericLiteral)(1),e=(0,s.binaryExpression)("/",i,(0,s.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,s.unaryExpression)("-",e)),e}if("bigint"==typeof t)if(t<0)return(0,s.unaryExpression)("-",(0,s.bigIntLiteral)(-t));else return(0,s.bigIntLiteral)(t);if("[object RegExp]"===n(t)){let e=t.source,i=/\/([a-z]*)$/.exec(t.toString())[1];return(0,s.regExpLiteral)(e,i)}if(Array.isArray(t))return(0,s.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){let i=[];for(let n of Object.keys(t)){let a,o=!1;(0,r.default)(n)?"__proto__"===n?(o=!0,a=(0,s.stringLiteral)(n)):a=(0,s.identifier)(n):a=(0,s.stringLiteral)(n),i.push((0,s.objectProperty)(a,e(t[n]),o))}return(0,s.objectExpression)(i)}throw Error("don't know how to turn this value into a node")};let n=Function.call.bind(Object.prototype.toString)},81587(e,t,i){let r,s,n,a,o,l,p,c,u,h,d,f,m,y,T,S,x,P,E,b,g,A,v,I,C;Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyUnionShapeCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var w=i(80947),N=i(78126),O=i(14007),k=i(80672),D=i(79897),L=i(65183);let _=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,L.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});t.classMethodOrPropertyUnionShapeCommon=_;let M=(0,L.defineAliasedType)("Standardized");M("ArrayExpression",{fields:{elements:{validate:(0,L.arrayOf)((0,L.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),M("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((r=(0,L.assertOneOf)(...D.ASSIGNMENT_OPERATORS),s=(0,L.assertOneOf)("="),function(e,t,i){((0,w.default)("Pattern",e.left)?s:r)(e,t,i)}),{oneOf:D.ASSIGNMENT_OPERATORS}):(0,L.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,L.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,L.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),M("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,L.assertOneOf)(...D.BINARY_OPERATORS)},left:{validate:(n=(0,L.assertNodeType)("Expression"),a=(0,L.assertNodeType)("Expression","PrivateName"),Object.assign(function(e,t,i){("in"===e.operator?a:n)(e,t,i)},{oneOfNodeTypes:["Expression","PrivateName"]}))},right:{validate:(0,L.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),M("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,L.assertValueType)("string")}}}),M("Directive",{visitor:["value"],fields:{value:{validate:(0,L.assertNodeType)("DirectiveLiteral")}}}),M("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,L.assertValueType)("string")}}}),M("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,L.arrayOfType)("Directive"),default:[]},body:(0,L.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),M("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,L.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),M("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,L.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,L.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,L.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,L.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,L.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),M("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,L.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,L.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),M("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,L.assertNodeType)("Expression")},consequent:{validate:(0,L.assertNodeType)("Expression")},alternate:{validate:(0,L.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),M("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,L.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),M("DebuggerStatement",{aliases:["Statement"]}),M("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,L.assertNodeType)("Expression")},body:{validate:(0,L.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),M("EmptyStatement",{aliases:["Statement"]}),M("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,L.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),M("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,L.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertEach)((0,L.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,L.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),M("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,L.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,L.assertNodeType)("Expression")},body:{validate:(0,L.assertNodeType)("Statement")}}}),M("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,L.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,L.assertNodeType)("Expression"),optional:!0},update:{validate:(0,L.assertNodeType)("Expression"),optional:!0},body:{validate:(0,L.assertNodeType)("Statement")}}});let F=()=>({params:(0,L.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=F;let B=()=>({returnType:{validate:(0,L.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,L.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=B;let j=()=>Object.assign({},F(),{declare:{validate:(0,L.assertValueType)("boolean"),optional:!0},id:{validate:(0,L.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=j,M("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},j(),B(),{body:{validate:(0,L.assertNodeType)("BlockStatement")},predicate:{validate:(0,L.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(o=(0,L.assertNodeType)("Identifier"),function(e,t,i){(0,w.default)("ExportDefaultDeclaration",e)||o(i,"id",i.id)}):void 0}),M("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},F(),B(),{id:{validate:(0,L.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,L.assertNodeType)("BlockStatement")},predicate:{validate:(0,L.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});let R=()=>({typeAnnotation:{validate:(0,L.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,L.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=R,M("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},R(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("string"),Object.assign(function(e,t,i){if(!(0,N.default)(i,!1))throw TypeError(`"${i}" is not a valid identifier name`)},{type:"string"})):(0,L.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,i){let r=/\.(\w+)$/.exec(t.toString());if(!r)return;let[,s]=r,n={computed:!1};if("property"===s){if((0,w.default)("MemberExpression",e,n)||(0,w.default)("OptionalMemberExpression",e,n))return}else if("key"===s){if((0,w.default)("Property",e,n)||(0,w.default)("Method",e,n))return}else if("exported"===s){if((0,w.default)("ExportSpecifier",e))return}else if("imported"===s){if((0,w.default)("ImportSpecifier",e,{imported:i}))return}else if("meta"===s&&(0,w.default)("MetaProperty",e,{meta:i}))return;if(((0,O.isKeyword)(i.name)||(0,O.isReservedWord)(i.name,!1))&&"this"!==i.name)throw TypeError(`"${i.name}" is not a valid identifier`)}:void 0}),M("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,L.assertNodeType)("Expression")},consequent:{validate:(0,L.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,L.assertNodeType)("Statement")}}}),M("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,L.assertNodeType)("Identifier")},body:{validate:(0,L.assertNodeType)("Statement")}}}),M("StringLiteral",{builder:["value"],fields:{value:{validate:(0,L.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),M("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,L.chain)((0,L.assertValueType)("number"),Object.assign(function(e,t,i){(1/i<0||!Number.isFinite(i))&&Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${i}) instead.`)},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),M("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),M("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,L.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),M("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,L.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("string"),Object.assign(function(e,t,i){let r=/[^dgimsuvy]/.exec(i);if(r)throw TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,L.assertValueType)("string"),default:""}}}),M("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,L.assertOneOf)(...D.LOGICAL_OPERATORS)},left:{validate:(0,L.assertNodeType)("Expression")},right:{validate:(0,L.assertNodeType)("Expression")}}}),M("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,L.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,L.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,L.assertNodeType)("Expression","Super")},property:{validate:(l=(0,L.assertNodeType)("Identifier","PrivateName"),p=(0,L.assertNodeType)("Expression"),(c=function(e,t,i){(e.computed?p:l)(e,t,i)}).oneOfNodeTypes=["Expression","Identifier","PrivateName"],c)},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,L.assertValueType)("boolean"),optional:!0}})}),M("NewExpression",{inherits:"CallExpression"}),M("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,L.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,L.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,L.arrayOfType)("Directive"),default:[]},body:(0,L.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),M("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,L.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),M("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},_(),{fields:Object.assign({},F(),B(),{kind:Object.assign({validate:(0,L.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(u=(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),h=(0,L.assertNodeType)("Expression"),(d=function(e,t,i){(e.computed?h:u)(e,t,i)}).oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],d)},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,L.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),M("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,L.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(f=(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),m=(0,L.assertNodeType)("Expression"),Object.assign(function(e,t,i){(e.computed?m:f)(e,t,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]}))},value:{validate:(0,L.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("boolean"),Object.assign(function(e,t,i){if(i){if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,w.default)("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,L.assertValueType)("boolean"),default:!1},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(y=(0,L.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),T=(0,L.assertNodeType)("Expression"),function(e,t,i){((0,w.default)("ObjectPattern",e)?y:T)(i,"value",i.value)}):void 0}),M("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},R(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,L.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let i=/(\w+)\[(\d+)\]/.exec(t.toString());if(!i)throw Error("Internal Babel error: malformed key.");let[,r,s]=i;if(e[r].length>+s+1)throw TypeError(`RestElement must be last element of ${r}`)}:void 0}),M("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,L.assertNodeType)("Expression"),optional:!0}}}),M("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,L.validateArrayOfType)("Expression")},aliases:["Expression"]}),M("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,L.assertNodeType)("Expression")}}}),M("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,L.assertNodeType)("Expression"),optional:!0},consequent:(0,L.validateArrayOfType)("Statement")}}),M("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,L.assertNodeType)("Expression")},cases:(0,L.validateArrayOfType)("SwitchCase")}}),M("ThisExpression",{aliases:["Expression"]}),M("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,L.assertNodeType)("Expression")}}}),M("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.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,L.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,L.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,L.assertNodeType)("BlockStatement")}}}),M("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,L.assertNodeType)("Expression")},operator:{validate:(0,L.assertOneOf)(...D.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),M("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertNodeType)("Identifier","MemberExpression"):(0,L.assertNodeType)("Expression")},operator:{validate:(0,L.assertOneOf)(...D.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),M("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,L.assertValueType)("boolean"),optional:!0},kind:{validate:(0,L.assertOneOf)("var","let","const","using","await using")},declarations:(0,L.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(S=(0,L.assertNodeType)("Identifier","Placeholder"),x=(0,L.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),P=(0,L.assertNodeType)("Identifier","VoidPattern","Placeholder"),function(e,t,i){let{kind:r,declarations:s}=i,n=(0,w.default)("ForXStatement",e,{left:i});if(n&&1!==s.length)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`);for(let e of s)"const"===r||"let"===r||"var"===r?n||e.init?x(e,"id",e.id):S(e,"id",e.id):P(e,"id",e.id)}):void 0}),M("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,L.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,L.assertValueType)("boolean")},init:{optional:!0,validate:(0,L.assertNodeType)("Expression")}}}),M("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,L.assertNodeType)("Expression")},body:{validate:(0,L.assertNodeType)("Statement")}}}),M("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,L.assertNodeType)("Expression")},body:{validate:(0,L.assertNodeType)("Statement")}}}),M("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{left:{validate:(0,L.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,L.assertNodeType)("Expression")},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0}})}),M("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{elements:{validate:(0,L.chain)((0,L.assertValueType)("array"),(0,L.assertEach)((0,L.assertNodeOrValueType)("null","PatternLike")))}})}),M("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},F(),B(),{expression:{validate:(0,L.assertValueType)("boolean")},body:{validate:(0,L.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,L.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),M("ClassBody",{visitor:["body"],fields:{body:(0,L.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),M("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,L.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,L.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,L.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,L.assertNodeType)("Expression")},superTypeParameters:{validate:(0,L.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,L.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,L.assertNodeType)("InterfaceExtends"),optional:!0}}}),M("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,L.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,L.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,L.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,L.assertNodeType)("Expression")},superTypeParameters:{validate:(0,L.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,L.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,L.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,L.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,L.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(E=(0,L.assertNodeType)("Identifier"),function(e,t,i){(0,w.default)("ExportDefaultDeclaration",e)||E(i,"id",i.id)}):void 0});let U=t.importAttributes={attributes:{optional:!0,validate:(0,L.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,L.arrayOfType)("ImportAttribute")}};M("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,L.assertNodeType)("StringLiteral")},exportKind:(0,L.validateOptional)((0,L.assertOneOf)("type","value"))},U)}),M("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,L.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,L.validateOptional)((0,L.assertOneOf)("value"))}}),M("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,L.chain)((0,L.assertNodeType)("Declaration"),Object.assign(function(e,t,i){if(i&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(i&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,L.assertNodeType)("Declaration")}},U,{specifiers:{default:[],validate:(0,L.arrayOf)((b=(0,L.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),g=(0,L.assertNodeType)("ExportSpecifier"),process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(e,t,i){(e.source?b:g)(e,t,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):b))},source:{validate:(0,L.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,L.validateOptional)((0,L.assertOneOf)("type","value"))})}),M("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,L.assertNodeType)("Identifier")},exported:{validate:(0,L.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,L.assertOneOf)("type","value"),optional:!0}}}),M("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,L.assertNodeType)("VariableDeclaration","LVal");let e=(0,L.assertNodeType)("VariableDeclaration"),t=(0,L.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(i,r,s){(0,w.default)("VariableDeclaration",s)?e(i,r,s):t(i,r,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,L.assertNodeType)("Expression")},body:{validate:(0,L.assertNodeType)("Statement")},await:{default:!1}}}),M("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},U,{module:{optional:!0,validate:(0,L.assertValueType)("boolean")},phase:{default:null,validate:(0,L.assertOneOf)("source","defer")},specifiers:(0,L.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,L.assertNodeType)("StringLiteral")},importKind:{validate:(0,L.assertOneOf)("type","typeof","value"),optional:!0}})}),M("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,L.assertNodeType)("Identifier")}}}),M("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,L.assertNodeType)("Identifier")}}}),M("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,L.assertNodeType)("Identifier")},imported:{validate:(0,L.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,L.assertOneOf)("type","typeof","value"),optional:!0}}}),M("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,L.assertOneOf)("source","defer")},source:{validate:(0,L.assertNodeType)("Expression")},options:{validate:(0,L.assertNodeType)("Expression"),optional:!0}}}),M("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertNodeType)("Identifier"),Object.assign(function(e,t,i){let r;switch(i.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta"}if(!(0,w.default)("Identifier",e.property,{name:r}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,L.assertNodeType)("Identifier")},property:{validate:(0,L.assertNodeType)("Identifier")}}});let K=()=>{let e,t;return{abstract:{validate:(0,L.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,L.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,L.assertValueType)("boolean"),optional:!0},key:{validate:(0,L.chain)((e=(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,L.assertNodeType)("Expression"),function(i,r,s){(i.computed?t:e)(i,r,s)}),(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}};t.classMethodOrPropertyCommon=K;let V=()=>Object.assign({},F(),K(),{params:(0,L.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,L.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,L.chain)((0,L.assertValueType)("string"),(0,L.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=V,M("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"]},_(),{fields:Object.assign({},V(),B(),{body:{validate:(0,L.assertNodeType)("BlockStatement")}})})),M("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{properties:(0,L.validateArrayOfType)("RestElement","ObjectProperty")})}),M("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,L.assertNodeType)("Expression")}}}),M("Super",{aliases:["Expression"]}),M("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,L.assertNodeType)("Expression")},quasi:{validate:(0,L.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,L.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),M("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,L.chain)((0,L.assertShape)({raw:{validate:(0,L.assertValueType)("string")},cooked:{validate:(0,L.assertValueType)("string"),optional:!0}}),function(e){let t=e.value.raw,i=!1,r=()=>{throw Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:n}=(0,k.readStringContents)("template",t,0,0,0,{unterminated(){i=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!i)throw Error("Invalid raw");e.value.cooked=n?null:s})},tail:{default:!1}}}),M("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,L.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,L.chain)((0,L.assertValueType)("array"),(0,L.assertEach)((0,L.assertNodeType)("Expression","TSType")),function(e,t,i){if(e.quasis.length!==i.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
6
+ Expected ${i.length+1} quasis but got ${e.quasis.length}`)})}}}),M("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("boolean"),Object.assign(function(e,t,i){if(i&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,L.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,L.assertNodeType)("Expression")}}}),M("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,L.assertNodeType)("Expression")}}}),M("Import",{aliases:["Expression"]}),M("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,L.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),M("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,L.assertNodeType)("Identifier")}}}),M("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,L.assertNodeType)("Expression")},property:{validate:(A=(0,L.assertNodeType)("Identifier"),v=(0,L.assertNodeType)("Expression"),Object.assign(function(e,t,i){(e.computed?v:A)(e,t,i)},{oneOfNodeTypes:["Expression","Identifier"]}))},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("boolean"),(0,L.assertOptionalChainStart)()):(0,L.assertValueType)("boolean")}}}),M("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,L.assertNodeType)("Expression")},arguments:(0,L.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,L.chain)((0,L.assertValueType)("boolean"),(0,L.assertOptionalChainStart)()):(0,L.assertValueType)("boolean")},typeArguments:{validate:(0,L.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,L.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),M("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},_(),{fields:Object.assign({},K(),{value:{validate:(0,L.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,L.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,L.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,L.assertValueType)("boolean"),optional:!0},declare:{validate:(0,L.assertValueType)("boolean"),optional:!0},variance:{validate:(0,L.assertNodeType)("Variance"),optional:!0}})})),M("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},_(!0),{fields:Object.assign({},K(),{key:{validate:(0,L.chain)((I=(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),C=(0,L.assertNodeType)("Expression"),function(e,t,i){(e.computed?C:I)(e,t,i)}),(0,L.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,L.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,L.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,L.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,L.assertValueType)("boolean"),optional:!0},declare:{validate:(0,L.assertValueType)("boolean"),optional:!0},variance:{validate:(0,L.assertNodeType)("Variance"),optional:!0}})})),M("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,L.assertNodeType)("PrivateName")},value:{validate:(0,L.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,L.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,L.assertValueType)("boolean"),default:!1},readonly:{validate:(0,L.assertValueType)("boolean"),optional:!0},optional:{validate:(0,L.assertValueType)("boolean"),optional:!0},definite:{validate:(0,L.assertValueType)("boolean"),optional:!0},variance:{validate:(0,L.assertNodeType)("Variance"),optional:!0}}}),M("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},V(),B(),{kind:{validate:(0,L.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,L.assertNodeType)("PrivateName")},body:{validate:(0,L.assertNodeType)("BlockStatement")}})}),M("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,L.assertNodeType)("Identifier")}}}),M("StaticBlock",{visitor:["body"],fields:{body:(0,L.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),M("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,L.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,L.assertNodeType)("StringLiteral")}}})},81720(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},18218(e,t,i){var r=i(65183);(0,r.default)("ArgumentPlaceholder",{}),(0,r.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,r.assertNodeType)("Expression")},callee:{validate:(0,r.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,r.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,r.assertNodeType)("BlockStatement")},async:{validate:(0,r.assertValueType)("boolean"),default:!1}}}),(0,r.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,r.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,r.default)("TupleExpression",{fields:{elements:{validate:(0,r.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,r.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,r.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,r.assertNodeType)("Program")}},aliases:["Expression"]}),(0,r.default)("TopicReference",{aliases:["Expression"]}),(0,r.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,r.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},94520(e,t,i){var r=i(81587),s=i(65183);let n=(0,s.defineAliasedType)("Flow"),a=e=>{let t="DeclareClass"===e;n(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),implements:(0,s.validateOptional)((0,s.arrayOfType)("ClassImplements"))}:{},{body:(0,s.validateType)("ObjectTypeAnnotation")})})};n("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,s.validateType)("FlowType")}}),n("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),a("DeclareClass"),n("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),predicate:(0,s.validateOptionalType)("DeclaredPredicate")}}),a("DeclareInterface"),n("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier","StringLiteral"),body:(0,s.validateType)("BlockStatement"),kind:(0,s.validateOptional)((0,s.assertOneOf)("CommonJS","ES"))}}),n("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,s.validateType)("TypeAnnotation")}}),n("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}}),n("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateOptionalType)("FlowType")}}),n("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier")}}),n("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,s.validateOptionalType)("Flow"),specifiers:(0,s.validateOptional)((0,s.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,s.validateOptionalType)("StringLiteral"),default:(0,s.validateOptional)((0,s.assertValueType)("boolean"))},r.importAttributes)}),n("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,s.validateType)("StringLiteral"),exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))},r.importAttributes)}),n("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,s.validateType)("Flow")}}),n("ExistsTypeAnnotation",{aliases:["FlowType"]}),n("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),params:(0,s.validateArrayOfType)("FunctionTypeParam"),rest:(0,s.validateOptionalType)("FunctionTypeParam"),this:(0,s.validateOptionalType)("FunctionTypeParam"),returnType:(0,s.validateType)("FlowType")}}),n("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,s.validateOptionalType)("Identifier"),typeAnnotation:(0,s.validateType)("FlowType"),optional:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}}),n("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),n("InferredPredicate",{aliases:["FlowPredicate"]}),n("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),a("InterfaceDeclaration"),n("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),body:(0,s.validateType)("ObjectTypeAnnotation")}}),n("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),n("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}}),n("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.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,s.validate)((0,s.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,s.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,s.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,s.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,s.assertValueType)("boolean"),default:!1},inexact:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}}),n("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateType)("Identifier"),value:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean")),static:(0,s.validate)((0,s.assertValueType)("boolean")),method:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateOptionalType)("Identifier"),key:(0,s.validateType)("FlowType"),value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance")}}),n("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,s.validateType)("Identifier","StringLiteral"),value:(0,s.validateType)("FlowType"),kind:(0,s.validate)((0,s.assertOneOf)("init","get","set")),static:(0,s.validate)((0,s.assertValueType)("boolean")),proto:(0,s.validate)((0,s.assertValueType)("boolean")),optional:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance"),method:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,s.validateType)("FlowType")}}),n("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateType)("FlowType")}}),n("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,s.validateType)("Identifier"),qualification:(0,s.validateType)("Identifier","QualifiedTypeIdentifier")}}),n("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.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,s.validate)((0,s.arrayOfType)("FlowType"))}}),n("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,s.validateType)("FlowType")}}),n("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}}),n("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}}),n("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TypeAnnotation")}}),n("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,s.validate)((0,s.assertValueType)("string")),bound:(0,s.validateOptionalType)("TypeAnnotation"),default:(0,s.validateOptionalType)("FlowType"),variance:(0,s.validateOptionalType)("Variance")}}),n("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("TypeParameter"))}}),n("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),n("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),n("Variance",{builder:["kind"],fields:{kind:(0,s.validate)((0,s.assertOneOf)("minus","plus"))}}),n("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,s.validateType)("Identifier"),body:(0,s.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),n("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,s.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),n("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("BooleanLiteral")}}),n("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("NumericLiteral")}}),n("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("StringLiteral")}}),n("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,s.validateType)("Identifier")}}),n("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType")}}),n("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean"))}})},49390(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return n.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return r.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return s.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}}),i(81587),i(94520),i(42363),i(27232),i(18218),i(94831);var r=i(65183),s=i(74014),n=i(81720);for(let{types:e,set:t}of(Object.keys(n.DEPRECATED_ALIASES).forEach(e=>{r.FLIPPED_ALIAS_KEYS[e]=r.FLIPPED_ALIAS_KEYS[n.DEPRECATED_ALIASES[e]]}),r.allExpandedTypes))for(let i of e){let e=r.FLIPPED_ALIAS_KEYS[i];e?e.forEach(t.add,t):t.add(i)}t.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))},42363(e,t,i){var r=i(65183);let s=(0,r.defineAliasedType)("JSX");s("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),s("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),s("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}})}),s("JSXEmptyExpression",{}),s("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),s("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),s("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),s("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),s("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),s("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,r.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,r.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),s("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),s("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),s("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),s("JSXOpeningFragment",{aliases:["Immutable"]}),s("JSXClosingFragment",{aliases:["Immutable"]})},27232(e,t,i){var r=i(65183),s=i(74014),n=i(81587);let a=(0,r.defineAliasedType)("Miscellaneous");a("Noop",{visitor:[]}),a("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...s.PLACEHOLDERS)}},(0,n.patternLikeCommon)())}),a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},74014(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=i(65183);let s=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],n=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of s){let t=r.ALIAS_KEYS[e];null!=t&&t.length&&(n[e]=t)}let a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(n).forEach(e=>{n[e].forEach(t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)})})},94831(e,t,i){let r,s,n,a;var o=i(65183),l=i(81587),p=i(80947);let c=(0,o.defineAliasedType)("TypeScript"),u=(0,o.assertValueType)("boolean"),h=()=>({returnType:{validate:(0,o.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,o.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});c("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,o.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,o.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,o.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,o.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,o.arrayOfType)("Decorator"),optional:!0}}}),c("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,l.functionDeclarationCommon)(),h())}),c("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,l.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,l.classMethodOrDeclareMethodCommon)(),h())})),c("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,o.validateType)("TSEntityName"),right:(0,o.validateType)("Identifier")}});let d=()=>({typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,o.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation")}),f={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:d()};c("TSCallSignatureDeclaration",f),c("TSConstructSignatureDeclaration",f);let m=()=>({key:(0,o.validateType)("Expression"),computed:{default:!1},optional:(0,o.validateOptional)(u)});for(let e of(c("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},m(),{readonly:(0,o.validateOptional)(u),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,o.assertOneOf)("get","set")}})}),c("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},d(),m(),{kind:{validate:(0,o.assertOneOf)("method","get","set")}})}),c("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,o.validateOptional)(u),static:(0,o.validateOptional)(u),parameters:(0,o.validateArrayOfType)("Identifier"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation")}}),["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"]))c(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});c("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});let y={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};c("TSFunctionType",Object.assign({},y,{fields:d()})),c("TSConstructorType",Object.assign({},y,{fields:Object.assign({},d(),{abstract:(0,o.validateOptional)(u)})})),c("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,o.validateType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),c("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,o.validateType)("Identifier","TSThisType"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation"),asserts:(0,o.validateOptional)(u)}}),c("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,o.validateType)("TSEntityName","TSImportType"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),c("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,o.validateArrayOfType)("TSTypeElement")}}),c("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,o.validateType)("TSType")}}),c("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,o.validateArrayOfType)("TSType","TSNamedTupleMember")}}),c("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),c("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),c("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,o.validateType)("Identifier"),optional:{validate:u,default:!1},elementType:(0,o.validateType)("TSType")}});let T={aliases:["TSType"],visitor:["types"],fields:{types:(0,o.validateArrayOfType)("TSType")}};c("TSUnionType",T),c("TSIntersectionType",T),c("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,o.validateType)("TSType"),extendsType:(0,o.validateType)("TSType"),trueType:(0,o.validateType)("TSType"),falseType:(0,o.validateType)("TSType")}}),c("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,o.validateType)("TSTypeParameter")}}),c("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),c("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,o.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,o.validateType)("TSType")}}),c("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,o.validateType)("TSType"),indexType:(0,o.validateType)("TSType")}}),c("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,o.validateType)("TSTypeParameter")},{readonly:(0,o.validateOptional)((0,o.assertOneOf)(!0,!1,"+","-")),optional:(0,o.validateOptional)((0,o.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,o.validateOptionalType)("TSType"),nameType:(0,o.validateOptionalType)("TSType")})}),c("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,o.validateArrayOfType)("TemplateElement"),types:{validate:(0,o.chain)((0,o.assertValueType)("array"),(0,o.assertEach)((0,o.assertNodeType)("TSType")),function(e,t,i){if(e.quasis.length!==i.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
7
+ Expected ${i.length+1} quasis but got ${e.quasis.length}`)})}}}),c("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(r=(0,o.assertNodeType)("NumericLiteral","BigIntLiteral"),s=(0,o.assertOneOf)("-"),n=(0,o.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),(a=function(e,t,i){(0,p.default)("UnaryExpression",i)?(s(i,"operator",i.operator),r(i,"argument",i.argument)):n(e,t,i)}).oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],a)}}}),c("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,o.validateType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),c("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,o.validateOptional)(u),id:(0,o.validateType)("Identifier"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,o.validateOptional)((0,o.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,o.validateType)("TSInterfaceBody")}}),c("TSInterfaceBody",{visitor:["body"],fields:{body:(0,o.validateArrayOfType)("TSTypeElement")}}),c("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,o.validateOptional)(u),id:(0,o.validateType)("Identifier"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,o.validateType)("TSType")}}),c("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,o.validateType)("Expression"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}});let S={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,o.validateType)("Expression"),typeAnnotation:(0,o.validateType)("TSType")}};c("TSAsExpression",S),c("TSSatisfiesExpression",S),c("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,o.validateType)("TSType"),expression:(0,o.validateType)("Expression")}}),c("TSEnumBody",{visitor:["members"],fields:{members:(0,o.validateArrayOfType)("TSEnumMember")}}),c("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,o.validateOptional)(u),const:(0,o.validateOptional)(u),id:(0,o.validateType)("Identifier"),members:(0,o.validateArrayOfType)("TSEnumMember"),initializer:(0,o.validateOptionalType)("Expression"),body:(0,o.validateOptionalType)("TSEnumBody")}}),c("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,o.validateType)("Identifier","StringLiteral"),initializer:(0,o.validateOptionalType)("Expression")}}),c("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,o.assertOneOf)("global","module","namespace")},declare:(0,o.validateOptional)(u)},{global:(0,o.validateOptional)(u)},{id:(0,o.validateType)("Identifier","StringLiteral"),body:(0,o.validateType)("TSModuleBlock","TSModuleDeclaration")})}),c("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,o.validateArrayOfType)("Statement")}}),c("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,o.validateType)("StringLiteral"),qualifier:(0,o.validateOptionalType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,o.assertNodeType)("ObjectExpression"),optional:!0}}}),c("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,o.validate)(u)},{id:(0,o.validateType)("Identifier"),moduleReference:(0,o.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,o.assertOneOf)("type","value"),optional:!0}})}),c("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,o.validateType)("StringLiteral")}}),c("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,o.validateType)("Expression")}}),c("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,o.validateType)("Expression")}}),c("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,o.validateType)("Identifier")}}),c("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,o.assertNodeType)("TSType")}}}),c("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,o.validateArrayOfType)("TSType")}}),c("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,o.validateArrayOfType)("TSTypeParameter")}}),c("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,o.assertValueType)("string")},in:{validate:(0,o.assertValueType)("boolean"),optional:!0},out:{validate:(0,o.assertValueType)("boolean"),optional:!0},const:{validate:(0,o.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,o.assertNodeType)("TSType"),optional:!0},default:{validate:(0,o.assertNodeType)("TSType"),optional:!0}}})},65183(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_UNION_SHAPES__PRIVATE=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=T,t.assertNodeOrValueType=function(...e){function t(t,i,n){let a=d(n);for(let o of e)if(a===o||(0,r.default)(o,n))return void(0,s.validateChild)(t,i,n);throw TypeError(`Property ${i} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==n?void 0:n.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=x,t.assertOneOf=function(...e){function t(t,i,r){if(!e.includes(r))throw TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let i=e;for(;e;){let{type:e}=i;if("OptionalCallExpression"===e){if(i.optional)return;i=i.callee;continue}if("OptionalMemberExpression"===e){if(i.optional)return;i=i.object;continue}break}throw TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=i)?void 0:t.type}`)}},t.assertShape=function(e){let t=Object.keys(e);function i(i,r,n){let a=[];for(let r of t)try{(0,s.validateField)(i,r,n[r],e[r])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw TypeError(`Property ${r} of ${i.type} expected to have the following:
8
+ ${a.join("\n")}`)}return i.shapeOf=e,i},t.assertValueType=P,t.chain=E,t.default=v,t.defineAliasedType=function(...e){return(t,i={})=>{let r=i.aliases;if(!r){var s;i.inherits&&(r=null==(s=A[i.inherits].aliases)?void 0:s.slice()),null!=r||(r=[]),i.aliases=r}let n=e.filter(e=>!r.includes(e));r.unshift(...n),v(t,i)}},t.validate=f,t.validateArrayOfType=function(...e){return f(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:x(...e),optional:!0}},t.validateType=function(...e){return f(x(...e))};var r=i(80947),s=i(88765);let n=t.VISITOR_KEYS={},a=t.ALIAS_KEYS={},o=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},p=t.BUILDER_KEYS={},c=t.DEPRECATED_KEYS={},u=t.NODE_PARENT_VALIDATIONS={},h=t.NODE_UNION_SHAPES__PRIVATE={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function m(e){return E(P("array"),T(e))}function y(...e){return m(x(...e))}function T(e){let t=process.env.BABEL_TYPES_8_BREAKING?s.validateChild:()=>{};function i(i,r,s){if(!Array.isArray(s))return;let n=0,a={toString:()=>`${r}[${n}]`};for(;n<s.length;n++){let r=s[n];e(i,a,r),t(i,a,r)}}return i.each=e,i}let S=t.allExpandedTypes=[];function x(...e){let t=new Set;function i(i,n,a){let o=null==a?void 0:a.type;if(null!=o){if(t.has(o))return void(0,s.validateChild)(i,n,a);if("Placeholder"===o){for(let t of e)if((0,r.default)(t,a))return void(0,s.validateChild)(i,n,a)}}throw TypeError(`Property ${n} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}return S.push({types:e,set:t}),i.oneOfNodeTypes=e,i}function P(e){function t(t,i,r){if(d(r)!==e)throw TypeError(`Property ${i} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function E(...e){function t(...i){for(let t of e)t(...i)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}let b=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),g=new Set(["default","optional","deprecated","validate"]),A={};function v(e,t={}){let i=t.inherits&&A[t.inherits]||{},r=t.fields;if(!r&&(r={},i.fields))for(let e of Object.getOwnPropertyNames(i.fields)){let t=i.fields[e],s=t.default;if(Array.isArray(s)?s.length>0:s&&"object"==typeof s)throw Error("field defaults can only be primitives or empty arrays currently");r[e]={default:Array.isArray(s)?[]:s,optional:t.optional,deprecated:t.deprecated,validate:t.validate}}let s=t.visitor||i.visitor||[],f=t.aliases||i.aliases||[],m=t.builder||i.builder||t.visitor||[];for(let i of Object.keys(t))if(!b.has(i))throw Error(`Unknown type option "${i}" on ${e}`);for(let i of(t.deprecatedAlias&&(c[t.deprecatedAlias]=e),s.concat(m)))r[i]=r[i]||{};for(let t of Object.keys(r)){let i=r[t];for(let r of(void 0===i.default||m.includes(t)||(i.optional=!0),void 0===i.default?i.default=null:i.validate||null==i.default||(i.validate=P(d(i.default))),Object.keys(i)))if(!g.has(r))throw Error(`Unknown field key "${r}" on ${e}.${t}`)}n[e]=t.visitor=s,p[e]=t.builder=m,l[e]=t.fields=r,a[e]=t.aliases=f,f.forEach(t=>{o[t]=o[t]||[],o[t].push(e)}),t.validate&&(u[e]=t.validate),t.unionShape&&(h[e]=t.unionShape),A[e]=t}},58135(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r={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(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ey.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ef.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return ei.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return er.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return es.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return en.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ea.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return eo.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return el.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ep.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ec.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return eu.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return eh.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return ed.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return F.default}});var s=i(80737),n=i(76977),a=i(86503),o=i(82985),l=i(73289);Object.keys(l).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=i(56461),c=i(95414),u=i(84534),h=i(12456);Object.keys(h).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var d=i(93806);Object.keys(d).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var f=i(16812),m=i(74780),y=i(99042),T=i(46248),S=i(33242),x=i(89456),P=i(943),E=i(11515),b=i(18445),g=i(64494),A=i(46691),v=i(73890),I=i(55527);Object.keys(I).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}})});var C=i(79897);Object.keys(C).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}})});var w=i(11350),N=i(95847),O=i(98999),k=i(93544),D=i(25002),L=i(17627),_=i(35349),M=i(10187),F=i(62485),B=i(49390);Object.keys(B).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}})});var j=i(41748),R=i(27937),U=i(66948),K=i(6944),V=i(55262),q=i(54538),J=i(48204),Y=i(46676),X=i(18271),W=i(26692),H=i(43998);Object.keys(H).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}})});var z=i(72148),$=i(86293),G=i(80947),Q=i(57166),Z=i(53358),ee=i(34375),et=i(20266),ei=i(24919),er=i(44466),es=i(33346),en=i(93380),ea=i(88143),eo=i(48778),el=i(42379),ep=i(55467),ec=i(78126),eu=i(21342),eh=i(31782),ed=i(88765),ef=i(90550),em=i(60133);Object.keys(em).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===em[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return em[e]}})});var ey=i(50231),eT=i(55827);t.react={isReactComponent:s.default,isCompatTag:n.default,buildChildren:a.default},t.toSequenceExpression=eT.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!")},41748(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!i,e};var r=i(93806)},54538(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){let i=Array.from(t),s=new Map,n=new Map,a=new Set,o=[];for(let t=0;t<i.length;t++){let l=i[t];if(l&&!o.includes(l)){if((0,r.isAnyTypeAnnotation)(l))return[l];if((0,r.isFlowBaseAnnotation)(l)){n.set(l.type,l);continue}if((0,r.isUnionTypeAnnotation)(l)){a.has(l.types)||(i.push(...l.types),a.add(l.types));continue}if((0,r.isGenericTypeAnnotation)(l)){let t=function e(t){return(0,r.isIdentifier)(t)?t.name:`${t.id.name}.${e(t.qualification)}`}(l.id);if(s.has(t)){let i=s.get(t);i.typeParameters?l.typeParameters&&(i.typeParameters.params.push(...l.typeParameters.params),i.typeParameters.params=e(i.typeParameters.params)):i=l.typeParameters}else s.set(t,l);continue}o.push(l)}}for(let[,e]of n)o.push(e);for(let[,e]of s)o.push(e);return o};var r=i(60133)},27937(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(let i of r.INHERIT_KEYS.optional)null==e[i]&&(e[i]=t[i]);for(let i of Object.keys(t))"_"===i[0]&&"__clone"!==i&&(e[i]=t[i]);for(let i of r.INHERIT_KEYS.force)e[i]=t[i];return(0,s.default)(e,t),e};var r=i(79897),s=i(64494)},66948(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,s.isSuper)(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,r.memberExpression)(t,e.object),e};var r=i(93806),s=i(58135)},6944(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){for(let i of t.preserveComments?s:n)null!=e[i]&&(e[i]=void 0);for(let t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);for(let t of Object.getOwnPropertySymbols(e))e[t]=null};var r=i(79897);let s=["tokens","start","end","loc","raw","rawValue"],n=[...r.COMMENT_KEYS,"comments",...s]},55262(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,s.default,t),e};var r=i(72148),s=i(6944)},99227(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){let i=Array.from(t),s=new Map,n=new Map,a=new Set,o=[];for(let t=0;t<i.length;t++){let l=i[t];if(!l||o.includes(l))continue;if((0,r.isTSAnyKeyword)(l))return[l];if((0,r.isTSBaseType)(l)){n.set(l.type,l);continue}if((0,r.isTSUnionType)(l)){a.has(l.types)||(i.push(...l.types),a.add(l.types));continue}let p="typeParameters";if((0,r.isTSTypeReference)(l)&&l[p]){let t=l[p],i=function e(t){return(0,r.isIdentifier)(t)?t.name:(0,r.isThisExpression)(t)?"this":`${t.right.name}.${e(t.left)}`}(l.typeName);if(s.has(i)){let r=s.get(i),n=r[p];n?(n.params.push(...t.params),n.params=e(n.params)):r=t}else s.set(i,l);continue}o.push(l)}for(let[,e]of n)o.push(e);for(let[,e]of s)o.push(e);return o};var r=i(60133)},48204(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=[].concat(e),i=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":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":i[e.name]=e}}return i}},46676(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(60133);function s(e,t,i,n){let a=[].concat(e),o=Object.create(null);for(;a.length;){let e=a.shift();if(!e||n&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)||(0,r.isUpdateExpression)(e)))continue;if((0,r.isIdentifier)(e)){t?(o[e.name]=o[e.name]||[]).push(e):o[e.name]=e;continue}if((0,r.isExportDeclaration)(e)&&!(0,r.isExportAllDeclaration)(e)){(0,r.isDeclaration)(e.declaration)&&a.push(e.declaration);continue}if(i){if((0,r.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}let l=s.keys[e.type];if(l)for(let t=0;t<l.length;t++){let i=e[l[t]];i&&(Array.isArray(i)?a.push(...i):a.push(i))}}return o}s.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"]}},26692(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;let n;if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let a="";if((0,r.isObjectProperty)(t,{value:e})?n=s(t):(0,r.isObjectMethod)(e)||(0,r.isClassMethod)(e)?(n=s(e),"get"===e.kind?a="get ":"set"===e.kind&&(a="set ")):(0,r.isVariableDeclarator)(t,{init:e})?n=t.id:(0,r.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;let o=(0,r.isLiteral)(n)?(i=n,(0,r.isNullLiteral)(i)?"null":(0,r.isRegExpLiteral)(i)?`/${i.pattern}/${i.flags}`:(0,r.isTemplateLiteral)(i)?i.quasis.map(e=>e.value.raw).join(""):void 0!==i.value?String(i.value):null):(0,r.isIdentifier)(n)?n.name:(0,r.isPrivateName)(n)?n.id.name:null;return null==o?null:{name:a+o,originalNode:n}};var r=i(60133);function s(e){if(!e.computed||(0,r.isLiteral)(e.key))return e.key}},18271(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(46676);t.default=function(e,t){return(0,r.default)(e,t,!0)}},43998(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){"function"==typeof t&&(t={enter:t});let{enter:s,exit:n}=t;!function e(t,i,s,n,a){let o=r.VISITOR_KEYS[t.type];if(o){for(let r of(i&&i(t,a,n),o)){let o=t[r];if(Array.isArray(o))for(let l=0;l<o.length;l++){let p=o[l];p&&(a.push({node:t,key:r,index:l}),e(p,i,s,n,a),a.pop())}else o&&(a.push({node:t,key:r}),e(o,i,s,n,a),a.pop())}s&&s(t,a,n)}}(e,s,n,i,[])};var r=i(49390)},72148(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(49390);let s=Symbol(),n=Symbol();function a(e,t,i){if(!e)return!1;let o=r.VISITOR_KEYS[e.type];if(!o)return!1;let l=t(e,i=i||{});if(void 0!==l)switch(l){case s:return!1;case n:return!0}for(let r of o){let s=e[r];if(s){if(Array.isArray(s)){for(let e of s)if(a(e,t,i))return!0}else if(a(s,t,i))return!0}}return!1}a.skip=s,a.stop=n},50231(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="",s=e){if(i.has(s))return;i.add(s);let{internal:n,trace:a}=function(){let e,{stackTraceLimit:t,prepareStackTrace:i}=Error;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(t,i){e=i},Error().stack,Error.stackTraceLimit=t,Error.prepareStackTrace=i,!e)return{internal:!1,trace:""};let r=e.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map(e=>` at ${e}`).join("\n")}}();n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
9
+ ${a}`)};let i=new Set},30594(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){t&&i&&(t[e]=Array.from(new Set([].concat(t[e],i[e]).filter(Boolean))))}},90132(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=e.value.split(/\r\n|\n|\r/),n=0;for(let e=0;e<i.length;e++)/[^ \t]/.exec(i[e])&&(n=e);let a="";for(let e=0;e<i.length;e++){let t=i[e],r=0===e,s=e===i.length-1,o=e===n,l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),s||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,s.inherits)((0,r.stringLiteral)(a),e))};var r=i(93806),s=i(58135)},86293(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(let i of Object.keys(t))if(e[i]!==t[i])return!1;return!0}},90550(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=e.split(".");return e=>(0,r.default)(e,i,t)};var r=i(31782)},60133(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){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("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){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("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){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 null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){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 null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){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 null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){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 null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){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 null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionParent=function(e,t){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 null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){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("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=n,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){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 null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){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 null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){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("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,s.default)("isModuleDeclaration","isImportOrExportDeclaration"),n(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,s.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){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 null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){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("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,s.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,s.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){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("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,s.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){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 null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){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 null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){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 null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){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 null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){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 null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){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 null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidPattern=function(e,t){return!!e&&"VoidPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=i(86293),s=i(50231);function n(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},80947(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){return!!t&&((0,s.default)(t.type,e)?void 0===i||(0,r.default)(t,i):!i&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,n.default)(t.expectedNode,e))};var r=i(86293),s=i(42379),n=i(33346),a=i(49390)},57166(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(i&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===i.type)return!1;let s=r.default.keys[t.type];if(s)for(let i=0;i<s.length;i++){let r=t[s[i]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1};var r=i(46676)},53358(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,s.default)(e)};var r=i(60133),s=i(20266)},34375(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!((0,r.default)(e.type,"Immutable")||(0,s.isIdentifier)(e)&&"undefined"===e.name)||!1};var r=i(42379),s=i(60133)},20266(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[s])};var r=i(60133),s=Symbol.for("var used to be block scoped")},24919(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(e&&r.VISITOR_KEYS[e.type])};var r=i(49390)},44466(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){if("object"!=typeof t||"object"!=typeof i||null==t||null==i)return t===i;if(t.type!==i.type)return!1;let s=Object.keys(r.NODE_FIELDS[t.type]||t.type),n=r.VISITOR_KEYS[t.type];for(let r of s){let s=t[r],a=i[r];if(typeof s!=typeof a)return!1;if(null!=s||null!=a){if(null==s||null==a)return!1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let t=0;t<s.length;t++)if(!e(s[t],a[t]))return!1;continue}if("object"==typeof s&&!(null!=n&&n.includes(r))){for(let e of Object.keys(s))if(s[e]!==a[e])return!1;continue}if(!e(s,a))return!1}}return!0};var r=i(49390)},33346(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;let i=r.PLACEHOLDERS_ALIAS[e];return!!(null!=i&&i.includes(t))};var r=i(49390)},93380(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return!i||"ObjectPattern"!==i.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":if(t.key===e)return!!t.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":if(null!=i&&i.source)return!1;return t.local===e;case"TSEnumMember":return t.id!==e}return!0}},88143(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!((0,r.isBlockStatement)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))&&(!!((0,r.isPattern)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))||(0,r.isScopable)(e))};var r=i(60133)},48778(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=i(60133)},42379(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e||r.ALIAS_KEYS[t])return!1;let i=r.FLIPPED_ALIAS_KEYS[t];return!!(null!=i&&i.includes(e))};var r=i(49390)},55467(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!s.has(e)};var r=i(78126);let s=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"])},78126(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return!("string"!=typeof e||t&&((0,r.isKeyword)(e)||(0,r.isStrictReservedWord)(e,!0)))&&(0,r.isIdentifierName)(e)};var r=i(14007)},21342(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[s]};var r=i(60133),s=Symbol.for("var used to be block scoped")},31782(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let n;if(!s(e))return!1;let a=Array.isArray(t)?t:t.split("."),o=[];for(n=e;s(n);n=null!=(l=n.object)?l:n.meta){var l;o.push(n.property)}if(o.push(n),o.length<a.length||!i&&o.length>a.length)return!1;for(let e=0,t=o.length-1;e<a.length;e++,t--){let i,s=o[t];if((0,r.isIdentifier)(s))i=s.name;else if((0,r.isStringLiteral)(s))i=s.value;else if((0,r.isThisExpression)(s))i="this";else if((0,r.isSuper)(s))i="super";else{if(!(0,r.isPrivateName)(s))return!1;i="#"+s.id.name}if(a[e]!==i)return!1}return!0};var r=i(60133);function s(e){return(0,r.isMemberExpression)(e)||(0,r.isMetaProperty)(e)}},76977(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},80737(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,i(90550).default)("React.Component")},88765(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!e)return;let a=r.NODE_FIELDS[e.type];if(!a)return;let o=a[t];s(e,t,i,o),n(e,t,i)},t.validateChild=n,t.validateField=s,t.validateInternal=function(e,t,i,s,n){if(null!=e&&e.validate&&(!e.optional||null!=s)&&(e.validate(t,i,s),n)){var a;let e=s.type;if(null!=e)null==(a=r.NODE_PARENT_VALIDATIONS[e])||a.call(r.NODE_PARENT_VALIDATIONS,t,i,s)}};var r=i(49390);function s(e,t,i,r){!(null!=r&&r.validate)||r.optional&&null==i||r.validate(e,t,i)}function n(e,t,i){var s;let n=null==i?void 0:i.type;null!=n&&(null==(s=r.NODE_PARENT_VALIDATIONS[n])||s.call(r.NODE_PARENT_VALIDATIONS,e,t,i))}}};