@tachybase/module-cloud-component 0.23.20 → 0.23.35

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 (48) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/externalVersion.js +7 -7
  3. package/dist/node_modules/@babel/core/lib/index.js +76 -76
  4. package/dist/node_modules/@babel/core/node_modules/.bin/parser +4 -4
  5. package/dist/node_modules/@babel/core/package.json +1 -1
  6. package/dist/node_modules/@babel/parser/LICENSE +19 -0
  7. package/dist/node_modules/@babel/parser/bin/babel-parser.js +15 -0
  8. package/dist/node_modules/@babel/parser/index.cjs +5 -0
  9. package/dist/node_modules/@babel/parser/lib/index.js +1 -0
  10. package/dist/node_modules/@babel/parser/package.json +1 -0
  11. package/dist/node_modules/@babel/parser/typings/babel-parser.d.ts +267 -0
  12. package/dist/node_modules/@babel/traverse/LICENSE +22 -0
  13. package/dist/node_modules/@babel/traverse/lib/cache.js +44 -0
  14. package/dist/node_modules/@babel/traverse/lib/context.js +119 -0
  15. package/dist/node_modules/@babel/traverse/lib/hub.js +19 -0
  16. package/dist/node_modules/@babel/traverse/lib/index.js +13 -0
  17. package/dist/node_modules/@babel/traverse/lib/path/ancestry.js +141 -0
  18. package/dist/node_modules/@babel/traverse/lib/path/comments.js +52 -0
  19. package/dist/node_modules/@babel/traverse/lib/path/context.js +242 -0
  20. package/dist/node_modules/@babel/traverse/lib/path/conversion.js +609 -0
  21. package/dist/node_modules/@babel/traverse/lib/path/evaluation.js +347 -0
  22. package/dist/node_modules/@babel/traverse/lib/path/family.js +340 -0
  23. package/dist/node_modules/@babel/traverse/lib/path/index.js +292 -0
  24. package/dist/node_modules/@babel/traverse/lib/path/inference/index.js +149 -0
  25. package/dist/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +151 -0
  26. package/dist/node_modules/@babel/traverse/lib/path/inference/inferers.js +207 -0
  27. package/dist/node_modules/@babel/traverse/lib/path/inference/util.js +30 -0
  28. package/dist/node_modules/@babel/traverse/lib/path/introspection.js +398 -0
  29. package/dist/node_modules/@babel/traverse/lib/path/lib/hoister.js +171 -0
  30. package/dist/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +37 -0
  31. package/dist/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +163 -0
  32. package/dist/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +26 -0
  33. package/dist/node_modules/@babel/traverse/lib/path/modification.js +229 -0
  34. package/dist/node_modules/@babel/traverse/lib/path/removal.js +69 -0
  35. package/dist/node_modules/@babel/traverse/lib/path/replacement.js +263 -0
  36. package/dist/node_modules/@babel/traverse/lib/scope/binding.js +83 -0
  37. package/dist/node_modules/@babel/traverse/lib/scope/index.js +981 -0
  38. package/dist/node_modules/@babel/traverse/lib/scope/lib/renamer.js +131 -0
  39. package/dist/node_modules/@babel/traverse/lib/traverse-node.js +29 -0
  40. package/dist/node_modules/@babel/traverse/lib/types.js +3 -0
  41. package/dist/node_modules/@babel/traverse/lib/visitors.js +258 -0
  42. package/dist/node_modules/@babel/traverse/node_modules/.bin/parser +17 -0
  43. package/dist/node_modules/@babel/traverse/package.json +1 -0
  44. package/dist/node_modules/@hapi/topo/lib/index.d.ts +60 -0
  45. package/dist/node_modules/@hapi/topo/lib/index.js +1 -0
  46. package/dist/node_modules/@hapi/topo/package.json +1 -0
  47. package/dist/server/services/cloud-libraries-service.js +36 -1
  48. package/package.json +13 -9
@@ -0,0 +1,13 @@
1
+ (function(){var e={1377:function(e,t,r){(function(e,s){true?s(t,r(2421),r(8425),r(8579)):0})(this,(function(e,t,r,s){"use strict";const n=0;const i=1;const a=2;const o=3;const l=4;const c=-1;class GenMapping{constructor({file:e,sourceRoot:r}={}){this._names=new t.SetArray;this._sources=new t.SetArray;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=r;this._ignoreList=new t.SetArray}}function cast(e){return e}function addSegment(e,t,r,s,n,i,a,o){return addSegmentInternal(false,e,t,r,s,n,i,a,o)}function addMapping(e,t){return addMappingInternal(false,e,t)}const maybeAddSegment=(e,t,r,s,n,i,a,o)=>addSegmentInternal(true,e,t,r,s,n,i,a,o);const maybeAddMapping=(e,t)=>addMappingInternal(true,e,t);function setSourceContent(e,r,s){const{_sources:n,_sourcesContent:i}=cast(e);const a=t.put(n,r);i[a]=s}function setIgnore(e,r,s=true){const{_sources:n,_sourcesContent:i,_ignoreList:a}=cast(e);const o=t.put(n,r);if(o===i.length)i[o]=null;if(s)t.put(a,o);else t.remove(a,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:s,_names:n,_ignoreList:i}=cast(e);removeEmptyFinalLines(t);return{version:3,file:e.file||undefined,names:n.array,sourceRoot:e.sourceRoot||undefined,sources:r.array,sourcesContent:s,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign(Object.assign({},t),{mappings:r.encode(t.mappings)})}function fromMap(e){const t=new s.TraceMap(e);const r=new GenMapping({file:t.file,sourceRoot:t.sourceRoot});putAll(cast(r)._names,t.names);putAll(cast(r)._sources,t.sources);cast(r)._sourcesContent=t.sourcesContent||t.sources.map((()=>null));cast(r)._mappings=s.decodedMappings(t);if(t.ignoreList)putAll(cast(r)._ignoreList,t.ignoreList);return r}function allMappings(e){const t=[];const{_mappings:r,_sources:s,_names:c}=cast(e);for(let e=0;e<r.length;e++){const p=r[e];for(let r=0;r<p.length;r++){const u=p[r];const f={line:e+1,column:u[n]};let d=undefined;let h=undefined;let m=undefined;if(u.length!==1){d=s.array[u[i]];h={line:u[a]+1,column:u[o]};if(u.length===5)m=c.array[u[l]]}t.push({generated:f,source:d,original:h,name:m})}}return t}function addSegmentInternal(e,r,s,n,i,a,o,l,p){const{_mappings:u,_sources:f,_sourcesContent:d,_names:h}=cast(r);const m=getLine(u,s);const y=getColumnIndex(m,n);if(!i){if(e&&skipSourceless(m,y))return;return insert(m,y,[n])}const T=t.put(f,i);const S=l?t.put(h,l):c;if(T===d.length)d[T]=p!==null&&p!==void 0?p:null;if(e&&skipSource(m,y,T,a,o,S)){return}return insert(m,y,l?[n,T,a,o,S]:[n,T,a,o])}function getLine(e,t){for(let r=e.length;r<=t;r++){e[r]=[]}return e[t]}function getColumnIndex(e,t){let r=e.length;for(let s=r-1;s>=0;r=s--){const r=e[s];if(t>=r[n])break}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0;r=t,t--){if(e[t].length>0)break}if(r<t)e.length=r}function putAll(e,r){for(let s=0;s<r.length;s++)t.put(e,r[s])}function skipSourceless(e,t){if(t===0)return true;const r=e[t-1];return r.length===1}function skipSource(e,t,r,s,n,p){if(t===0)return false;const u=e[t-1];if(u.length===1)return false;return r===u[i]&&s===u[a]&&n===u[o]&&p===(u.length===5?u[l]:c)}function addMappingInternal(e,t,r){const{generated:s,source:n,original:i,name:a,content:o}=r;if(!n){return addSegmentInternal(e,t,s.line-1,s.column,null,null,null,null,null)}return addSegmentInternal(e,t,s.line-1,s.column,n,i.line-1,i.column,a,o)}e.GenMapping=GenMapping;e.addMapping=addMapping;e.addSegment=addSegment;e.allMappings=allMappings;e.fromMap=fromMap;e.maybeAddMapping=maybeAddMapping;e.maybeAddSegment=maybeAddSegment;e.setIgnore=setIgnore;e.setSourceContent=setSourceContent;e.toDecodedMap=toDecodedMap;e.toEncodedMap=toEncodedMap;Object.defineProperty(e,"__esModule",{value:true})}))},3654:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";const e=/^[\w+.-]+:\/\//;const t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(t){return e.test(t)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const r=t.exec(e);return makeUrl(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function parseFileUrl(e){const t=r.exec(e);const s=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(s)?s:"/"+s,t[3]||"",t[4]||"")}function makeUrl(e,t,r,s,n,i,a){return{scheme:e,user:t,host:r,port:s,path:n,query:i,hash:a,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);t.scheme="";t.type=6;return t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);t.scheme="";t.host="";t.type=5;return t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);t.scheme="";t.host="";t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1;return t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){normalizePath(t,t.type);if(e.path==="/"){e.path=t.path}else{e.path=stripPathFilename(t.path)+e.path}}function normalizePath(e,t){const r=t<=4;const s=e.path.split("/");let n=1;let i=0;let a=false;for(let e=1;e<s.length;e++){const t=s[e];if(!t){a=true;continue}a=false;if(t===".")continue;if(t===".."){if(i){a=true;i--;n--}else if(r){s[n++]=t}continue}s[n++]=t;i++}let o="";for(let e=1;e<n;e++){o+="/"+s[e]}if(!o||a&&!o.endsWith("/..")){o+="/"}e.path=o}function resolve(e,t){if(!e&&!t)return"";const r=parseUrl(e);let s=r.type;if(t&&s!==7){const e=parseUrl(t);const n=e.type;switch(s){case 1:r.hash=e.hash;case 2:r.query=e.query;case 3:case 4:mergePaths(r,e);case 5:r.user=e.user;r.host=e.host;r.port=e.port;case 6:r.scheme=e.scheme}if(n>s)s=n}normalizePath(r,s);const n=r.query+r.hash;switch(s){case 2:case 3:return n;case 4:{const s=r.path.slice(1);if(!s)return n||".";if(isRelative(t||e)&&!isRelative(s)){return"./"+s+n}return s+n}case 5:return r.path+n;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+n}}return resolve}))},2421:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(r!==undefined)return r;const{array:s,_indexes:n}=cast(e);const i=s.push(t);return n[t]=i-1}function pop(e){const{array:t,_indexes:r}=cast(e);if(t.length===0)return;const s=t.pop();r[s]=undefined}function remove(e,t){const r=get(e,t);if(r===undefined)return;const{array:s,_indexes:n}=cast(e);for(let e=r+1;e<s.length;e++){const t=s[e];s[e-1]=t;n[t]--}n[t]=undefined;s.pop()}e.SetArray=SetArray;e.get=get;e.pop=pop;e.put=put;e.remove=remove;Object.defineProperty(e,"__esModule",{value:true})}))},8425:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";const t=",".charCodeAt(0);const r=";".charCodeAt(0);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=new Uint8Array(64);const i=new Uint8Array(128);for(let e=0;e<s.length;e++){const t=s.charCodeAt(e);n[e]=t;i[t]=e}function decodeInteger(e,t){let r=0;let s=0;let n=0;do{const t=e.next();n=i[t];r|=(n&31)<<s;s+=5}while(n&32);const a=r&1;r>>>=1;if(a){r=-2147483648|-r}return t+r}function encodeInteger(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let t=s&31;s>>>=5;if(s>0)t|=32;e.write(n[t])}while(s>0);return t}function hasMoreVlq(e,r){if(e.pos>=r)return false;return e.peek()!==t}const a=1024*16;const o=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t}};class StringWriter{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(a)}write(e){const{buffer:t}=this;t[this.pos++]=e;if(this.pos===a){this.out+=o.decode(t);this.pos=0}}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+o.decode(e.subarray(0,r)):t}}class StringReader{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this;const s=t.indexOf(e,r);return s===-1?t.length:s}}const l=[];function decodeOriginalScopes(e){const{length:t}=e;const r=new StringReader(e);const s=[];const n=[];let i=0;for(;r.pos<t;r.pos++){i=decodeInteger(r,i);const e=decodeInteger(r,0);if(!hasMoreVlq(r,t)){const t=n.pop();t[2]=i;t[3]=e;continue}const a=decodeInteger(r,0);const o=decodeInteger(r,0);const c=o&1;const p=c?[i,e,0,0,a,decodeInteger(r,0)]:[i,e,0,0,a];let u=l;if(hasMoreVlq(r,t)){u=[];do{const e=decodeInteger(r,0);u.push(e)}while(hasMoreVlq(r,t))}p.vars=u;s.push(p);n.push(p)}return s}function encodeOriginalScopes(e){const t=new StringWriter;for(let r=0;r<e.length;){r=_encodeOriginalScopes(e,r,t,[0])}return t.flush()}function _encodeOriginalScopes(e,r,s,n){const i=e[r];const{0:a,1:o,2:l,3:c,4:p,vars:u}=i;if(r>0)s.write(t);n[0]=encodeInteger(s,a,n[0]);encodeInteger(s,o,0);encodeInteger(s,p,0);const f=i.length===6?1:0;encodeInteger(s,f,0);if(i.length===6)encodeInteger(s,i[5],0);for(const e of u){encodeInteger(s,e,0)}for(r++;r<e.length;){const t=e[r];const{0:i,1:a}=t;if(i>l||i===l&&a>=c){break}r=_encodeOriginalScopes(e,r,s,n)}s.write(t);n[0]=encodeInteger(s,l,n[0]);encodeInteger(s,c,0);return r}function decodeGeneratedRanges(e){const{length:t}=e;const r=new StringReader(e);const s=[];const n=[];let i=0;let a=0;let o=0;let c=0;let p=0;let u=0;let f=0;let d=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){t=decodeInteger(r,t);if(!hasMoreVlq(r,e)){const e=n.pop();e[2]=i;e[3]=t;continue}const h=decodeInteger(r,0);const m=h&1;const y=h&2;const T=h&4;let S=null;let g=l;let x;if(m){const e=decodeInteger(r,a);o=decodeInteger(r,a===e?o:0);a=e;x=[i,t,0,0,e,o]}else{x=[i,t,0,0]}x.isScope=!!T;if(y){const e=c;const t=p;c=decodeInteger(r,c);const s=e===c;p=decodeInteger(r,s?p:0);u=decodeInteger(r,s&&t===p?u:0);S=[c,p,u]}x.callsite=S;if(hasMoreVlq(r,e)){g=[];do{f=i;d=t;const e=decodeInteger(r,0);let s;if(e<-1){s=[[decodeInteger(r,0)]];for(let t=-1;t>e;t--){const e=f;f=decodeInteger(r,f);d=decodeInteger(r,f===e?d:0);const t=decodeInteger(r,0);s.push([t,f,d])}}else{s=[[e]]}g.push(s)}while(hasMoreVlq(r,e))}x.bindings=g;s.push(x);n.push(x)}i++;r.pos=e+1}while(r.pos<t);return s}function encodeGeneratedRanges(e){if(e.length===0)return"";const t=new StringWriter;for(let r=0;r<e.length;){r=_encodeGeneratedRanges(e,r,t,[0,0,0,0,0,0,0])}return t.flush()}function _encodeGeneratedRanges(e,r,s,n){const i=e[r];const{0:a,1:o,2:l,3:c,isScope:p,callsite:u,bindings:f}=i;if(n[0]<a){catchupLine(s,n[0],a);n[0]=a;n[1]=0}else if(r>0){s.write(t)}n[1]=encodeInteger(s,i[1],n[1]);const d=(i.length===6?1:0)|(u?2:0)|(p?4:0);encodeInteger(s,d,0);if(i.length===6){const{4:e,5:t}=i;if(e!==n[2]){n[3]=0}n[2]=encodeInteger(s,e,n[2]);n[3]=encodeInteger(s,t,n[3])}if(u){const{0:e,1:t,2:r}=i.callsite;if(e!==n[4]){n[5]=0;n[6]=0}else if(t!==n[5]){n[6]=0}n[4]=encodeInteger(s,e,n[4]);n[5]=encodeInteger(s,t,n[5]);n[6]=encodeInteger(s,r,n[6])}if(f){for(const e of f){if(e.length>1)encodeInteger(s,-e.length,0);const t=e[0][0];encodeInteger(s,t,0);let r=a;let n=o;for(let t=1;t<e.length;t++){const i=e[t];r=encodeInteger(s,i[1],r);n=encodeInteger(s,i[2],n);encodeInteger(s,i[0],0)}}}for(r++;r<e.length;){const t=e[r];const{0:i,1:a}=t;if(i>l||i===l&&a>=c){break}r=_encodeGeneratedRanges(e,r,s,n)}if(n[0]<l){catchupLine(s,n[0],l);n[0]=l;n[1]=0}else{s.write(t)}n[1]=encodeInteger(s,c,n[1]);return r}function catchupLine(e,t,s){do{e.write(r)}while(++t<s)}function decode(e){const{length:t}=e;const r=new StringReader(e);const s=[];let n=0;let i=0;let a=0;let o=0;let l=0;do{const e=r.indexOf(";");const t=[];let c=true;let p=0;n=0;while(r.pos<e){let s;n=decodeInteger(r,n);if(n<p)c=false;p=n;if(hasMoreVlq(r,e)){i=decodeInteger(r,i);a=decodeInteger(r,a);o=decodeInteger(r,o);if(hasMoreVlq(r,e)){l=decodeInteger(r,l);s=[n,i,a,o,l]}else{s=[n,i,a,o]}}else{s=[n]}t.push(s);r.pos++}if(!c)sort(t);s.push(t);r.pos=e+1}while(r.pos<=t);return s}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const s=new StringWriter;let n=0;let i=0;let a=0;let o=0;for(let l=0;l<e.length;l++){const c=e[l];if(l>0)s.write(r);if(c.length===0)continue;let p=0;for(let e=0;e<c.length;e++){const r=c[e];if(e>0)s.write(t);p=encodeInteger(s,r[0],p);if(r.length===1)continue;n=encodeInteger(s,r[1],n);i=encodeInteger(s,r[2],i);a=encodeInteger(s,r[3],a);if(r.length===4)continue;o=encodeInteger(s,r[4],o)}}return s.flush()}e.decode=decode;e.decodeGeneratedRanges=decodeGeneratedRanges;e.decodeOriginalScopes=decodeOriginalScopes;e.encode=encode;e.encodeGeneratedRanges=encodeGeneratedRanges;e.encodeOriginalScopes=encodeOriginalScopes;Object.defineProperty(e,"__esModule",{value:true})}))},8579:function(e,t,r){(function(e,s){true?s(t,r(8425),r(3654)):0})(this,(function(e,t,r){"use strict";function resolve(e,t){if(t&&!t.endsWith("/"))t+="/";return r(e,t)}function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const s=0;const n=1;const i=2;const a=3;const o=4;const l=1;const c=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;if(!t)e=e.slice();for(let s=r;s<e.length;s=nextUnsortedSegmentLine(e,s+1)){e[s]=sortSegments(e[s],t)}return e}function nextUnsortedSegmentLine(e,t){for(let r=t;r<e.length;r++){if(!isSorted(e[r]))return r}return e.length}function isSorted(e){for(let t=1;t<e.length;t++){if(e[t][s]<e[t-1][s]){return false}}return true}function sortSegments(e,t){if(!t)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,t){return e[s]-t[s]}let p=false;function binarySearch(e,t,r,n){while(r<=n){const i=r+(n-r>>1);const a=e[i][s]-t;if(a===0){p=true;return i}if(a<0){r=i+1}else{n=i-1}}p=false;return r-1}function upperBound(e,t,r){for(let n=r+1;n<e.length;r=n++){if(e[n][s]!==t)break}return r}function lowerBound(e,t,r){for(let n=r-1;n>=0;r=n--){if(e[n][s]!==t)break}return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,n){const{lastKey:i,lastNeedle:a,lastIndex:o}=r;let l=0;let c=e.length-1;if(n===i){if(t===a){p=o!==-1&&e[o][s]===t;return o}if(t>=a){l=o===-1?0:o}else{c=o}}r.lastKey=n;r.lastNeedle=t;return r.lastIndex=binarySearch(e,t,l,c)}function buildBySources(e,t){const r=t.map(buildNullArray);for(let o=0;o<e.length;o++){const l=e[o];for(let e=0;e<l.length;e++){const c=l[e];if(c.length===1)continue;const p=c[n];const u=c[i];const f=c[a];const d=r[p];const h=d[u]||(d[u]=[]);const m=t[p];let y=upperBound(h,f,memoizedBinarySearch(h,f,m,u));m.lastIndex=++y;insert(h,y,[f,o,c[s]])}}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function buildNullArray(){return{__proto__:null}}const AnyMap=function(e,t){const r=parse(e);if(!("sections"in r)){return new TraceMap(r,t)}const s=[];const n=[];const i=[];const a=[];const o=[];recurse(r,t,s,n,i,a,o,0,0,Infinity,Infinity);const l={version:3,file:r.file,names:a,sources:n,sourcesContent:i,mappings:s,ignoreList:o};return presortedDecodedMap(l)};function parse(e){return typeof e==="string"?JSON.parse(e):e}function recurse(e,t,r,s,n,i,a,o,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:f,offset:d}=u[e];let h=c;let m=p;if(e+1<u.length){const t=u[e+1].offset;h=Math.min(c,o+t.line);if(h===c){m=Math.min(p,l+t.column)}else if(h<c){m=l+t.column}}addSection(f,t,r,s,n,i,a,o+d.line,l+d.column,h,m)}}function addSection(e,t,r,l,c,p,u,f,d,h,m){const y=parse(e);if("sections"in y)return recurse(...arguments);const T=new TraceMap(y,t);const S=l.length;const g=p.length;const x=decodedMappings(T);const{resolvedSources:b,sourcesContent:E,ignoreList:P}=T;append(l,b);append(p,T.names);if(E)append(c,E);else for(let e=0;e<b.length;e++)c.push(null);if(P)for(let e=0;e<P.length;e++)u.push(P[e]+S);for(let e=0;e<x.length;e++){const t=f+e;if(t>h)return;const l=getLine(r,t);const c=e===0?d:0;const p=x[e];for(let e=0;e<p.length;e++){const r=p[e];const u=c+r[s];if(t===h&&u>=m)return;if(r.length===1){l.push([u]);continue}const f=S+r[n];const d=r[i];const y=r[a];l.push(r.length===4?[u,f,d,y]:[u,f,d,y,g+r[o]])}}}function append(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function getLine(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}const u="`line` must be greater than 0 (lines start at line 1)";const f="`column` must be greater than or equal to 0 (columns start at column 0)";const d=-1;const h=1;class TraceMap{constructor(e,t){const r=typeof e==="string";if(!r&&e._decodedMemo)return e;const s=r?JSON.parse(e):e;const{version:n,file:i,names:a,sourceRoot:o,sources:l,sourcesContent:c}=s;this.version=n;this.file=i;this.names=a||[];this.sourceRoot=o;this.sources=l;this.sourcesContent=c;this.ignoreList=s.ignoreList||s.x_google_ignoreList||undefined;const p=resolve(o||"",stripFilename(t));this.resolvedSources=l.map((e=>resolve(e||"",p)));const{mappings:u}=s;if(typeof u==="string"){this._encoded=u;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(u,r)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}function cast(e){return e}function encodedMappings(e){var r;var s;return(r=(s=cast(e))._encoded)!==null&&r!==void 0?r:s._encoded=t.encode(cast(e)._decoded)}function decodedMappings(e){var r;return(r=cast(e))._decoded||(r._decoded=t.decode(cast(e)._encoded))}function traceSegment(e,t,r){const s=decodedMappings(e);if(t>=s.length)return null;const n=s[t];const i=traceSegmentInternal(n,cast(e)._decodedMemo,t,r,h);return i===-1?null:n[i]}function originalPositionFor(e,t){let{line:r,column:s,bias:l}=t;r--;if(r<0)throw new Error(u);if(s<0)throw new Error(f);const c=decodedMappings(e);if(r>=c.length)return OMapping(null,null,null,null);const p=c[r];const d=traceSegmentInternal(p,cast(e)._decodedMemo,r,s,l||h);if(d===-1)return OMapping(null,null,null,null);const m=p[d];if(m.length===1)return OMapping(null,null,null,null);const{names:y,resolvedSources:T}=e;return OMapping(T[m[n]],m[i]+1,m[a],m.length===5?y[m[o]]:null)}function generatedPositionFor(e,t){const{source:r,line:s,column:n,bias:i}=t;return generatedPosition(e,r,s,n,i||h,false)}function allGeneratedPositionsFor(e,t){const{source:r,line:s,column:n,bias:i}=t;return generatedPosition(e,r,s,n,i||d,true)}function eachMapping(e,t){const r=decodedMappings(e);const{names:s,resolvedSources:n}=e;for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const a=i[r];const o=e+1;const l=a[0];let c=null;let p=null;let u=null;let f=null;if(a.length!==1){c=n[a[1]];p=a[2]+1;u=a[3]}if(a.length===5)f=s[a[4]];t({generatedLine:o,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:f})}}}function sourceIndex(e,t){const{sources:r,resolvedSources:s}=e;let n=r.indexOf(t);if(n===-1)n=s.indexOf(t);return n}function sourceContentFor(e,t){const{sourcesContent:r}=e;if(r==null)return null;const s=sourceIndex(e,t);return s===-1?null:r[s]}function isIgnored(e,t){const{ignoreList:r}=e;if(r==null)return false;const s=sourceIndex(e,t);return s===-1?false:r.includes(s)}function presortedDecodedMap(e,t){const r=new TraceMap(clone(e,[]),t);cast(r)._decoded=e.mappings;return r}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(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 OMapping(e,t,r,s){return{source:e,line:t,column:r,name:s}}function GMapping(e,t){return{line:e,column:t}}function traceSegmentInternal(e,t,r,s,n){let i=memoizedBinarySearch(e,s,t,r);if(p){i=(n===d?upperBound:lowerBound)(e,s,i)}else if(n===d)i++;if(i===-1||i===e.length)return-1;return i}function sliceGeneratedPositions(e,t,r,n,i){let a=traceSegmentInternal(e,t,r,n,h);if(!p&&i===d)a++;if(a===-1||a===e.length)return[];const o=p?n:e[a][s];if(!p)a=lowerBound(e,o,a);const u=upperBound(e,o,a);const f=[];for(;a<=u;a++){const t=e[a];f.push(GMapping(t[l]+1,t[c]))}return f}function generatedPosition(e,t,r,s,n,i){var a;r--;if(r<0)throw new Error(u);if(s<0)throw new Error(f);const{sources:o,resolvedSources:p}=e;let d=o.indexOf(t);if(d===-1)d=p.indexOf(t);if(d===-1)return i?[]:GMapping(null,null);const h=(a=cast(e))._bySources||(a._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=o.map(memoizedState)));const m=h[d][r];if(m==null)return i?[]:GMapping(null,null);const y=cast(e)._bySourceMemos[d];if(i)return sliceGeneratedPositions(m,y,r,s,n);const T=traceSegmentInternal(m,y,r,s,n);if(T===-1)return GMapping(null,null);const S=m[T];return GMapping(S[l]+1,S[c])}e.AnyMap=AnyMap;e.GREATEST_LOWER_BOUND=h;e.LEAST_UPPER_BOUND=d;e.TraceMap=TraceMap;e.allGeneratedPositionsFor=allGeneratedPositionsFor;e.decodedMap=decodedMap;e.decodedMappings=decodedMappings;e.eachMapping=eachMapping;e.encodedMap=encodedMap;e.encodedMappings=encodedMappings;e.generatedPositionFor=generatedPositionFor;e.isIgnored=isIgnored;e.originalPositionFor=originalPositionFor;e.presortedDecodedMap=presortedDecodedMap;e.sourceContentFor=sourceContentFor;e.traceSegment=traceSegment}))},8798:function(e,t,r){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(8337)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8337:function(e,t,r){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(2134);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let s;let n;function debug(...e){if(!debug.enabled){return}const r=debug;const s=Number(new Date);const n=s-(t||s);r.diff=n;r.prev=t;r.curr=s;t=s;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if(t==="%%"){return"%"}i++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[i];t=n.call(r,s);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const a=r.log||createDebug.log;a.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(s!==createDebug.namespaces){s=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let s=0;let n=-1;let i=0;while(r<e.length){if(s<t.length&&(t[s]===e[r]||t[s]==="*")){if(t[s]==="*"){n=s;i=r;s++}else{r++;s++}}else if(n!==-1){s=n+1;i++;r=i}else{return false}}while(s<t.length&&t[s]==="*"){s++}return s===t.length}function disable(){const e=[...createDebug.names,...createDebug.skips.map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2366:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8798)}else{e.exports=r(6500)}},6500:function(e,t,r){const s=r(2018);const n=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(5414);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const i=` ${n};1m${r} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++){e.inspectOpts[r[s]]=t.inspectOpts[r[s]]}}e.exports=r(8337)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},4321:function(e,t,r){"use strict";e.exports=r(4777)},2871:function(e){"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1?true:s<n)}},4966:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},995:function(e){"use strict";const t={};const r=t.hasOwnProperty;const forOwn=(e,t)=>{for(const s in e){if(r.call(e,s)){t(s,e[s])}}};const extend=(e,t)=>{if(!t){return e}forOwn(t,((t,r)=>{e[t]=r}));return e};const forEach=(e,t)=>{const r=e.length;let s=-1;while(++s<r){t(e[s])}};const fourHexEscape=e=>"\\u"+("0000"+e).slice(-4);const hexadecimal=(e,t)=>{let r=e.toString(16);if(t)return r;return r.toUpperCase()};const s=t.toString;const n=Array.isArray;const isBuffer=e=>typeof Buffer==="function"&&Buffer.isBuffer(e);const isObject=e=>s.call(e)=="[object Object]";const isString=e=>typeof e=="string"||s.call(e)=="[object String]";const isNumber=e=>typeof e=="number"||s.call(e)=="[object Number]";const isFunction=e=>typeof e=="function";const isMap=e=>s.call(e)=="[object Map]";const isSet=e=>s.call(e)=="[object Set]";const i={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const a=/[\\\b\f\n\r\t]/;const o=/[0-9]/;const l=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;const c=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g;const p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g;const jsesc=(e,t)=>{const increaseIndentation=()=>{m=h;++t.indentLevel;h=t.indent.repeat(t.indentLevel)};const r={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const s=t&&t.json;if(s){r.quotes="double";r.wrap=true}t=extend(r,t);if(t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"){t.quotes="single"}const u=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'";const f=t.compact;const d=t.lowercaseHex;let h=t.indent.repeat(t.indentLevel);let m="";const y=t.__inline1__;const T=t.__inline2__;const S=f?"":"\n";let g;let x=true;const b=t.numbers=="binary";const E=t.numbers=="octal";const P=t.numbers=="decimal";const A=t.numbers=="hexadecimal";if(s&&e&&isFunction(e.toJSON)){e=e.toJSON()}if(!isString(e)){if(isMap(e)){if(e.size==0){return"new Map()"}if(!f){t.__inline1__=true;t.__inline2__=false}return"new Map("+jsesc(Array.from(e),t)+")"}if(isSet(e)){if(e.size==0){return"new Set()"}return"new Set("+jsesc(Array.from(e),t)+")"}if(isBuffer(e)){if(e.length==0){return"Buffer.from([])"}return"Buffer.from("+jsesc(Array.from(e),t)+")"}if(n(e)){g=[];t.wrap=true;if(y){t.__inline1__=false;t.__inline2__=true}if(!T){increaseIndentation()}forEach(e,(e=>{x=false;if(T){t.__inline2__=false}g.push((f||T?"":h)+jsesc(e,t))}));if(x){return"[]"}if(T){return"["+g.join(", ")+"]"}return"["+S+g.join(","+S)+S+(f?"":m)+"]"}else if(isNumber(e)){if(s){return JSON.stringify(e)}if(P){return String(e)}if(A){let t=e.toString(16);if(!d){t=t.toUpperCase()}return"0x"+t}if(b){return"0b"+e.toString(2)}if(E){return"0o"+e.toString(8)}}else if(!isObject(e)){if(s){return JSON.stringify(e)||"null"}return String(e)}else{g=[];t.wrap=true;increaseIndentation();forOwn(e,((e,r)=>{x=false;g.push((f?"":h)+jsesc(e,t)+":"+(f?"":" ")+jsesc(r,t))}));if(x){return"{}"}return"{"+S+g.join(","+S)+S+(f?"":m)+"}"}}const v=t.escapeEverything?c:p;g=e.replace(v,((e,r,n,c,p,f)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0);const s=r.charCodeAt(1);if(t.es6){const t=(e-55296)*1024+s-56320+65536;const r=hexadecimal(t,d);return"\\u{"+r+"}"}return fourHexEscape(hexadecimal(e,d))+fourHexEscape(hexadecimal(s,d))}if(n){return fourHexEscape(hexadecimal(n.charCodeAt(0),d))}if(e=="\0"&&!s&&!o.test(f.charAt(p+1))){return"\\0"}if(c){if(c==u||t.escapeEverything){return"\\"+c}return c}if(a.test(e)){return i[e]}if(t.minimal&&!l.test(e)){return e}const h=hexadecimal(e.charCodeAt(0),d);if(s||h.length>2){return fourHexEscape(h)}return"\\x"+("00"+h).slice(-2)}));if(u=="`"){g=g.replace(/\$\{/g,"\\${")}if(t.isScriptContext){g=g.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")}if(t.wrap){g=u+g+u}return g};jsesc.version="3.0.2";e.exports=jsesc},2134:function(e){var t=1e3;var r=t*60;var s=r*60;var n=s*24;var i=n*7;var a=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o){return}var l=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*s;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=n){return Math.round(e/n)+"d"}if(i>=s){return Math.round(e/s)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=n){return plural(e,i,n,"day")}if(i>=s){return plural(e,i,s,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},4348:function(e){let t=process||{},r=t.argv||[],s=t.env||{};let n=!(!!s.NO_COLOR||r.includes("--no-color"))&&(!!s.FORCE_COLOR||r.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&s.TERM!=="dumb"||!!s.CI);let formatter=(e,t,r=e)=>s=>{let n=""+s,i=n.indexOf(t,e.length);return~i?e+replaceClose(n,t,r,i)+t:e+n+t};let replaceClose=(e,t,r,s)=>{let n="",i=0;do{n+=e.substring(i,s)+r;i=s+t.length;s=e.indexOf(t,i)}while(~s);return n+e.substring(i)};let createColors=(e=n)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};e.exports=createColors();e.exports.createColors=createColors},5414:function(e,t,r){"use strict";const s=r(857);const n=r(2871);const i=process.env;let a;if(n("no-color")||n("no-colors")||n("color=false")){a=false}else if(n("color")||n("colors")||n("color=true")||n("color=always")){a=true}if("FORCE_COLOR"in i){a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(a===false){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(e&&!e.isTTY&&a!==true){return 0}const t=a?1:0;if(process.platform==="win32"){const e=s.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},857:function(e){"use strict";e.exports=require("os")},2018:function(e){"use strict";e.exports=require("tty")},9023:function(e){"use strict";e.exports=require("util")},2562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4348);var n=r(4966);var i=r(8008);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:s.isColorSupported}const compose=(e,t)=>r=>e(t(r));function buildDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold),gutter:e.gray,marker:compose(e.red,e.bold),message:compose(e.red,e.bold),reset:e.reset}}const a=buildDefs(s.createColors(true));const o=buildDefs(s.createColors(false));function getDefs(e){return e?a:o}const l=new Set(["as","async","from","get","of","set"]);const c=/\r\n|[\n\r\u2028\u2029]/;const p=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(t,r,s){if(t.type==="name"){if(i.isKeyword(t.value)||i.isStrictReservedWord(t.value,true)||l.has(t.value)){return"keyword"}if(e.test(t.value)&&(s[r-1]==="<"||s.slice(r-2,r)==="</")){return"jsxIdentifier"}if(t.value[0]!==t.value[0].toLowerCase()){return"capitalized"}}if(t.type==="punctuator"&&p.test(t.value)){return"bracket"}if(t.type==="invalid"&&(t.value==="@"||t.value==="#")){return"punctuator"}return t.type};u=function*(e){let t;while(t=n.default.exec(e)){const r=n.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}}}function highlight(e){if(e==="")return"";const t=getDefs(true);let r="";for(const{type:s,value:n}of u(e)){if(s in t){r+=n.split(c).map((e=>t[s](e))).join("\n")}else{r+=n}}return r}let f=false;const d=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const s=Object.assign({column:0,line:-1},e.start);const n=Object.assign({},s,e.end);const{linesAbove:i=2,linesBelow:a=3}=r||{};const o=s.line;const l=s.column;const c=n.line;const p=n.column;let u=Math.max(o-(i+1),0);let f=Math.min(t.length,c+a);if(o===-1){u=0}if(c===-1){f=t.length}const d=c-o;const h={};if(d){for(let e=0;e<=d;e++){const r=e+o;if(!l){h[r]=true}else if(e===0){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===d){h[r]=[0,p]}else{const s=t[r-e].length;h[r]=[0,s]}}}else{if(l===p){if(l){h[o]=[l,0]}else{h[o]=true}}else{h[o]=[l,p-l]}}return{start:u,end:f,markerLines:h}}function codeFrameColumns(e,t,r={}){const s=r.forceColor||isColorSupported()&&r.highlightCode;const n=getDefs(s);const i=e.split(d);const{start:a,end:o,markerLines:l}=getMarkerLines(t,i,r);const c=t.start&&typeof t.start.column==="number";const p=String(o).length;const u=s?highlight(e):e;let f=u.split(d,o).slice(a,o).map(((e,t)=>{const s=a+1+t;const i=` ${s}`.slice(-p);const o=` ${i} |`;const c=l[s];const u=!l[s+1];if(c){let t="";if(Array.isArray(c)){const s=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," ");const i=c[1]||1;t=["\n ",n.gutter(o.replace(/\d/g," "))," ",s,n.marker("^").repeat(i)].join("");if(u&&r.message){t+=" "+n.message(r.message)}}return[n.marker(">"),n.gutter(o),e.length>0?` ${e}`:"",t].join("")}else{return` ${n.gutter(o)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!c){f=`${" ".repeat(p+1)}${r.message}\n${f}`}if(s){return n.reset(f)}else{return f}}function index(e,t,r,s={}){if(!f){f=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const n={start:{column:r,line:t}};return codeFrameColumns(e,n,s)}t.codeFrameColumns=codeFrameColumns;t["default"]=index;t.highlight=highlight},1025:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Buffer{constructor(e,t){this._map=null;this._buf="";this._str="";this._appendCount=0;this._last=0;this._queue=[];this._queueCursor=0;this._canMarkIdName=true;this._indentChar="";this._fastIndentations=[];this._position={line:1,column:0};this._sourcePosition={identifierName:undefined,identifierNamePos:undefined,line:undefined,column:undefined,filename:undefined};this._map=e;this._indentChar=t;for(let e=0;e<64;e++){this._fastIndentations.push(t.repeat(e))}this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++){e.push({char:0,repeat:1,line:undefined,column:undefined,identifierName:undefined,identifierNamePos:undefined,filename:""})}}_pushQueue(e,t,r,s,n){const i=this._queueCursor;if(i===this._queue.length){this._allocQueue()}const a=this._queue[i];a.char=e;a.repeat=t;a.line=r;a.column=s;a.filename=n;this._queueCursor++}_popQueue(){if(this._queueCursor===0){throw new Error("Cannot pop from empty queue")}return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map;const t={code:(this._buf+this._str).trimRight(),decodedMap:e==null?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;t.map=r;return r},set map(e){Object.defineProperty(t,"map",{value:e,writable:true})},get rawMappings(){const r=e==null?void 0:e.getRawMappings();t.rawMappings=r;return r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:true})}};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(e===10){while(this._queueCursor!==0){const e=this._queue[this._queueCursor-1].char;if(e!==32&&e!==9){break}this._queueCursor--}}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){if(e===0)return;this._pushQueue(-1,e,undefined,undefined,undefined)}_flush(){const e=this._queueCursor;const t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){this._last=e;if(e===-1){const e=this._fastIndentations[t];if(e!==undefined){this._str+=e}else{this._str+=t>1?this._indentChar.repeat(t):this._indentChar}}else{this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e)}if(e!==10){this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename);this._position.column+=t}else{this._position.line++;this._position.column=0}if(this._canMarkIdName){r.identifierName=undefined;r.identifierNamePos=undefined}}_append(e,t,r){const s=e.length;const n=this._position;this._last=e.charCodeAt(s-1);if(++this._appendCount>4096){+this._str;this._buf+=this._str;this._str=e;this._appendCount=0}else{this._str+=e}if(!r&&!this._map){n.column+=s;return}const{column:i,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;if((a!=null||o!=null)&&this._canMarkIdName){t.identifierName=undefined;t.identifierNamePos=undefined}let p=e.indexOf("\n");let u=0;if(p!==0){this._mark(c,i,a,o,l)}while(p!==-1){n.line++;n.column=0;u=p+1;if(u<s&&c!==undefined){this._mark(++c,0,null,null,l)}p=e.indexOf("\n",u)}n.column+=s-u}_mark(e,t,r,s,n){var i;(i=this._map)==null||i.mark(this._position,e,t,r,s,n)}removeTrailingNewline(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===10){this._queueCursor--}}removeLastSemicolon(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===59){this._queueCursor--}}getLastChar(){const e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(e===0)return this._last===10?1:0;for(let r=e-1;r>=0;r--){if(this._queue[r].char!==10){break}t++}return t===e&&this._last===10?t+1:t}endsWithCharAndNewline(){const e=this._queue;const t=this._queueCursor;if(t!==0){const r=e[t-1].char;if(r!==10)return;if(t>1){return e[t-2].char}else{return this._last}}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,t){if(!this._map){t();return}this.source("start",e);const r=e.identifierName;const s=this._sourcePosition;if(r){this._canMarkIdName=false;s.identifierName=r}t();if(r){this._canMarkIdName=true;s.identifierName=undefined;s.identifierNamePos=undefined}this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){const s=t[e];const n=this._sourcePosition;if(s){n.line=s.line;n.column=Math.max(s.column+r,0);n.filename=t.filename}}getCurrentColumn(){const e=this._queue;const t=this._queueCursor;let r=-1;let s=0;for(let n=0;n<t;n++){const t=e[n];if(t.char===10){r=s}s+=t.repeat}return r===-1?this._position.column+s:s-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++){if(t[r].char===10){e++}}return this._position.line+e}}t["default"]=Buffer},8281:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockStatement=BlockStatement;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.File=File;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;t.Program=Program;function File(e){if(e.program){this.print(e.program.interpreter)}this.print(e.program)}function Program(e){var t;this.noIndentInnerCommentsHere();this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var s;const t=e.body.length?2:1;this.printSequence(e.directives,undefined,t);if(!((s=e.directives[r-1].trailingComments)!=null&&s.length)){this.newline(t)}}this.printSequence(e.body)}function BlockStatement(e){var t;this.tokenChar(123);const r=this.enterDelimited();const s=(t=e.directives)==null?void 0:t.length;if(s){var n;const t=e.body.length?2:1;this.printSequence(e.directives,true,t);if(!((n=e.directives[s-1].trailingComments)!=null&&n.length)){this.newline(t)}}this.printSequence(e.body,true);r();this.rightBrace(e)}function Directive(e){this.print(e.value);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const s=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const{value:n}=e;if(!s.test(n)){this.token(`"${n}"`)}else if(!r.test(n)){this.token(`'${n}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}`);this.newline(1,true)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},4226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassAccessorProperty=ClassAccessorProperty;t.ClassBody=ClassBody;t.ClassExpression=t.ClassDeclaration=ClassDeclaration;t.ClassMethod=ClassMethod;t.ClassPrivateMethod=ClassPrivateMethod;t.ClassPrivateProperty=ClassPrivateProperty;t.ClassProperty=ClassProperty;t.StaticBlock=StaticBlock;t._classMethodHead=_classMethodHead;var s=r(9175);const{isExportDefaultDeclaration:n,isExportNamedDeclaration:i}=s;function ClassDeclaration(e,t){const r=n(t)||i(t);if(!r||!this._shouldPrintDecoratorsBeforeExport(t)){this.printJoin(e.decorators)}if(e.declare){this.word("declare");this.space()}if(e.abstract){this.word("abstract");this.space()}this.word("class");if(e.id){this.space();this.print(e.id)}this.print(e.typeParameters);if(e.superClass){this.space();this.word("extends");this.space();this.print(e.superClass);this.print(e.superTypeParameters)}if(e.implements){this.space();this.word("implements");this.space();this.printList(e.implements)}this.space();this.print(e.body)}function ClassBody(e){this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();const t=classBodyEmptySemicolonsPrinter(this,e);t==null||t(-1);const r=this.enterDelimited();this.printJoin(e.body,true,true,t,true);r();if(!this.endsWith(10))this.newline();this.rightBrace(e)}}function classBodyEmptySemicolonsPrinter(e,t){if(!e.tokenMap||t.start==null||t.end==null){return null}const r=e.tokenMap.getIndexes(t);if(!r)return null;let s=1;let n=0;let i=0;const advanceNextLocIndex=()=>{while(i<t.body.length&&t.body[i].start==null){i++}};advanceNextLocIndex();return a=>{if(i<=a){i=a+1;advanceNextLocIndex()}const o=i===t.body.length?t.end:t.body[i].start;let l;while(s<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[s]],";")&&l.start<o){e.token(";",undefined,n++);s++}}}function ClassProperty(e){this.printJoin(e.decorators);if(!e.static&&!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassAccessorProperty(e){var t;this.printJoin(e.decorators);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r);this.tsPrintClassMemberModifiers(e);this.word("accessor",true);this.space();if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassPrivateProperty(e){this.printJoin(e.decorators);if(e.static){this.word("static");this.space()}this.print(e.key);this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function ClassPrivateMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function _classMethodHead(e){this.printJoin(e.decorators);if(!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);this._methodHead(e)}function StaticBlock(e){this.word("static");this.space();this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();this.printSequence(e.body,true);this.rightBrace(e)}}},501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=AssignmentExpression;t.AssignmentPattern=AssignmentPattern;t.AwaitExpression=AwaitExpression;t.BindExpression=BindExpression;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.Decorator=Decorator;t.DoExpression=DoExpression;t.EmptyStatement=EmptyStatement;t.ExpressionStatement=ExpressionStatement;t.Import=Import;t.MemberExpression=MemberExpression;t.MetaProperty=MetaProperty;t.ModuleExpression=ModuleExpression;t.NewExpression=NewExpression;t.OptionalCallExpression=OptionalCallExpression;t.OptionalMemberExpression=OptionalMemberExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.PrivateName=PrivateName;t.SequenceExpression=SequenceExpression;t.Super=Super;t.ThisExpression=ThisExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.V8IntrinsicIdentifier=V8IntrinsicIdentifier;t.YieldExpression=YieldExpression;t._shouldPrintDecoratorsBeforeExport=_shouldPrintDecoratorsBeforeExport;var s=r(9175);var n=r(4864);const{isCallExpression:i,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:c}=s;function UnaryExpression(e){const{operator:t}=e;if(t==="void"||t==="delete"||t==="typeof"||t==="throw"){this.word(t);this.space()}else{this.token(t)}this.print(e.argument)}function DoExpression(e){if(e.async){this.word("async",true);this.space()}this.word("do");this.space();this.print(e.body)}function ParenthesizedExpression(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression);t();this.rightParens(e)}function UpdateExpression(e){if(e.prefix){this.token(e.operator);this.print(e.argument)}else{this.print(e.argument,true);this.token(e.operator)}}function ConditionalExpression(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)}function NewExpression(e,t){this.word("new");this.space();this.print(e.callee);if(this.format.minified&&e.arguments.length===0&&!e.optional&&!i(t,{callee:e})&&!o(t)&&!l(t)){return}this.print(e.typeArguments);this.print(e.typeParameters);if(e.optional){this.token("?.")}if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")){return}this.tokenChar(40);const r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));r();this.rightParens(e)}function SequenceExpression(e){this.printList(e.expressions)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function _shouldPrintDecoratorsBeforeExport(e){if(typeof this.format.decoratorsBeforeExport==="boolean"){return this.format.decoratorsBeforeExport}return typeof e.start==="number"&&e.start===e.declaration.start}function Decorator(e){this.tokenChar(64);this.print(e.expression);this.newline()}function OptionalMemberExpression(e){let{computed:t}=e;const{optional:r,property:s}=e;this.print(e.object);if(!t&&o(s)){throw new TypeError("Got a MemberExpression for MemberExpression property")}if(a(s)&&typeof s.value==="number"){t=true}if(r){this.token("?.")}if(t){this.tokenChar(91);this.print(s);this.tokenChar(93)}else{if(!r){this.tokenChar(46)}this.print(s)}}function OptionalCallExpression(e){this.print(e.callee);this.print(e.typeParameters);if(e.optional){this.token("?.")}this.print(e.typeArguments);this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments);t();this.rightParens(e)}function CallExpression(e){this.print(e.callee);this.print(e.typeArguments);this.print(e.typeParameters);this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));t();this.rightParens(e)}function Import(){this.word("import")}function AwaitExpression(e){this.word("await");if(e.argument){this.space();this.printTerminatorless(e.argument)}}function YieldExpression(e){this.word("yield",true);if(e.delegate){this.tokenChar(42);if(e.argument){this.space();this.print(e.argument)}}else{if(e.argument){this.space();this.printTerminatorless(e.argument)}}}function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(e){this.tokenContext|=n.TokenContext.expressionStatement;this.print(e.expression);this.semicolon()}function AssignmentPattern(e){this.print(e.left);if(e.left.type==="Identifier"||c(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space();this.tokenChar(61);this.space();this.print(e.right)}function AssignmentExpression(e){this.print(e.left);this.space();if(e.operator==="in"||e.operator==="instanceof"){this.word(e.operator)}else{this.token(e.operator);this._endsWithDiv=e.operator==="/"}this.space();this.print(e.right)}function BindExpression(e){this.print(e.object);this.token("::");this.print(e.callee)}function MemberExpression(e){this.print(e.object);if(!e.computed&&o(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(a(e.property)&&typeof e.property.value==="number"){t=true}if(t){const t=this.enterDelimited();this.tokenChar(91);this.print(e.property);this.tokenChar(93);t()}else{this.tokenChar(46);this.print(e.property)}}function MetaProperty(e){this.print(e.meta);this.tokenChar(46);this.print(e.property)}function PrivateName(e){this.tokenChar(35);this.print(e.id)}function V8IntrinsicIdentifier(e){this.tokenChar(37);this.word(e.name)}function ModuleExpression(e){this.word("module",true);this.space();this.tokenChar(123);this.indent();const{body:t}=e;if(t.body.length||t.directives.length){this.newline()}this.print(t);this.dedent();this.rightBrace(e)}},5652:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnyTypeAnnotation=AnyTypeAnnotation;t.ArrayTypeAnnotation=ArrayTypeAnnotation;t.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;t.BooleanTypeAnnotation=BooleanTypeAnnotation;t.DeclareClass=DeclareClass;t.DeclareExportAllDeclaration=DeclareExportAllDeclaration;t.DeclareExportDeclaration=DeclareExportDeclaration;t.DeclareFunction=DeclareFunction;t.DeclareInterface=DeclareInterface;t.DeclareModule=DeclareModule;t.DeclareModuleExports=DeclareModuleExports;t.DeclareOpaqueType=DeclareOpaqueType;t.DeclareTypeAlias=DeclareTypeAlias;t.DeclareVariable=DeclareVariable;t.DeclaredPredicate=DeclaredPredicate;t.EmptyTypeAnnotation=EmptyTypeAnnotation;t.EnumBooleanBody=EnumBooleanBody;t.EnumBooleanMember=EnumBooleanMember;t.EnumDeclaration=EnumDeclaration;t.EnumDefaultedMember=EnumDefaultedMember;t.EnumNumberBody=EnumNumberBody;t.EnumNumberMember=EnumNumberMember;t.EnumStringBody=EnumStringBody;t.EnumStringMember=EnumStringMember;t.EnumSymbolBody=EnumSymbolBody;t.ExistsTypeAnnotation=ExistsTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.FunctionTypeParam=FunctionTypeParam;t.IndexedAccessType=IndexedAccessType;t.InferredPredicate=InferredPredicate;t.InterfaceDeclaration=InterfaceDeclaration;t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=InterfaceExtends;t.InterfaceTypeAnnotation=InterfaceTypeAnnotation;t.IntersectionTypeAnnotation=IntersectionTypeAnnotation;t.MixedTypeAnnotation=MixedTypeAnnotation;t.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;t.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return a.NumericLiteral}});t.NumberTypeAnnotation=NumberTypeAnnotation;t.ObjectTypeAnnotation=ObjectTypeAnnotation;t.ObjectTypeCallProperty=ObjectTypeCallProperty;t.ObjectTypeIndexer=ObjectTypeIndexer;t.ObjectTypeInternalSlot=ObjectTypeInternalSlot;t.ObjectTypeProperty=ObjectTypeProperty;t.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;t.OpaqueType=OpaqueType;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return a.StringLiteral}});t.StringTypeAnnotation=StringTypeAnnotation;t.SymbolTypeAnnotation=SymbolTypeAnnotation;t.ThisTypeAnnotation=ThisTypeAnnotation;t.TupleTypeAnnotation=TupleTypeAnnotation;t.TypeAlias=TypeAlias;t.TypeAnnotation=TypeAnnotation;t.TypeCastExpression=TypeCastExpression;t.TypeParameter=TypeParameter;t.TypeParameterDeclaration=t.TypeParameterInstantiation=TypeParameterInstantiation;t.TypeofTypeAnnotation=TypeofTypeAnnotation;t.UnionTypeAnnotation=UnionTypeAnnotation;t.Variance=Variance;t.VoidTypeAnnotation=VoidTypeAnnotation;t._interfaceish=_interfaceish;t._variance=_variance;var s=r(9175);var n=r(5659);var i=r(4864);var a=r(9031);const{isDeclareExportDeclaration:o,isStatement:l}=s;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(e,t){if(!o(t)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(e)}function DeclareFunction(e,t){if(!o(t)){this.word("declare");this.space()}this.word("function");this.space();this.print(e.id);this.print(e.id.typeAnnotation.typeAnnotation);if(e.predicate){this.space();this.print(e.predicate)}this.semicolon()}function InferredPredicate(){this.tokenChar(37);this.word("checks")}function DeclaredPredicate(e){this.tokenChar(37);this.word("checks");this.tokenChar(40);this.print(e.value);this.tokenChar(41)}function DeclareInterface(e){this.word("declare");this.space();this.InterfaceDeclaration(e)}function DeclareModule(e){this.word("declare");this.space();this.word("module");this.space();this.print(e.id);this.space();this.print(e.body)}function DeclareModuleExports(e){this.word("declare");this.space();this.word("module");this.tokenChar(46);this.word("exports");this.print(e.typeAnnotation)}function DeclareTypeAlias(e){this.word("declare");this.space();this.TypeAlias(e)}function DeclareOpaqueType(e,t){if(!o(t)){this.word("declare");this.space()}this.OpaqueType(e)}function DeclareVariable(e,t){if(!o(t)){this.word("declare");this.space()}this.word("var");this.space();this.print(e.id);this.print(e.id.typeAnnotation);this.semicolon()}function DeclareExportDeclaration(e){this.word("declare");this.space();this.word("export");this.space();if(e.default){this.word("default");this.space()}FlowExportDeclaration.call(this,e)}function DeclareExportAllDeclaration(e){this.word("declare");this.space();n.ExportAllDeclaration.call(this,e)}function EnumDeclaration(e){const{id:t,body:r}=e;this.word("enum");this.space();this.print(t);this.print(r)}function enumExplicitType(e,t,r){if(r){e.space();e.word("of");e.space();e.word(t)}e.space()}function enumBody(e,t){const{members:r}=t;e.token("{");e.indent();e.newline();for(const t of r){e.print(t);e.newline()}if(t.hasUnknownMembers){e.token("...");e.newline()}e.dedent();e.token("}")}function EnumBooleanBody(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t);enumBody(this,e)}function EnumNumberBody(e){const{explicitType:t}=e;enumExplicitType(this,"number",t);enumBody(this,e)}function EnumStringBody(e){const{explicitType:t}=e;enumExplicitType(this,"string",t);enumBody(this,e)}function EnumSymbolBody(e){enumExplicitType(this,"symbol",true);enumBody(this,e)}function EnumDefaultedMember(e){const{id:t}=e;this.print(t);this.tokenChar(44)}function enumInitializedMember(e,t){e.print(t.id);e.space();e.token("=");e.space();e.print(t.init);e.token(",")}function EnumBooleanMember(e){enumInitializedMember(this,e)}function EnumNumberMember(e){enumInitializedMember(this,e)}function EnumStringMember(e){enumInitializedMember(this,e)}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t);if(!l(t))this.semicolon()}else{this.tokenChar(123);if(e.specifiers.length){this.space();this.printList(e.specifiers);this.space()}this.tokenChar(125);if(e.source){this.space();this.word("from");this.space();this.print(e.source)}this.semicolon()}}function ExistsTypeAnnotation(){this.tokenChar(42)}function FunctionTypeAnnotation(e,t){this.print(e.typeParameters);this.tokenChar(40);if(e.this){this.word("this");this.tokenChar(58);this.space();this.print(e.this.typeAnnotation);if(e.params.length||e.rest){this.tokenChar(44);this.space()}}this.printList(e.params);if(e.rest){if(e.params.length){this.tokenChar(44);this.space()}this.token("...");this.print(e.rest)}this.tokenChar(41);const r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)){this.tokenChar(58)}else{this.space();this.token("=>")}this.space();this.print(e.returnType)}function FunctionTypeParam(e){this.print(e.name);if(e.optional)this.tokenChar(63);if(e.name){this.tokenChar(58);this.space()}this.print(e.typeAnnotation)}function InterfaceExtends(e){this.print(e.id);this.print(e.typeParameters,true)}function _interfaceish(e){var t;this.print(e.id);this.print(e.typeParameters);if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}if(e.type==="DeclareClass"){var r,s;if((r=e.mixins)!=null&&r.length){this.space();this.word("mixins");this.space();this.printList(e.mixins)}if((s=e.implements)!=null&&s.length){this.space();this.word("implements");this.space();this.printList(e.implements)}}this.space();this.print(e.body)}function _variance(e){var t;const r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus"){this.tokenChar(43)}else if(r==="minus"){this.tokenChar(45)}}}function InterfaceDeclaration(e){this.word("interface");this.space();this._interfaceish(e)}function andSeparator(e){this.space();this.token("&",false,e);this.space()}function InterfaceTypeAnnotation(e){var t;this.word("interface");if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}this.space();this.print(e.body)}function IntersectionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,andSeparator)}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(e){this.tokenChar(63);this.print(e.typeAnnotation)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(e){this.tokenChar(91);this.printList(e.types);this.tokenChar(93)}function TypeofTypeAnnotation(e){this.word("typeof");this.space();this.print(e.argument)}function TypeAlias(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()}function TypeAnnotation(e,t){this.tokenChar(58);this.space();if(t.type==="ArrowFunctionExpression"){this.tokenContext|=i.TokenContext.arrowFlowReturnType}else if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function TypeParameterInstantiation(e){this.tokenChar(60);this.printList(e.params);this.tokenChar(62)}function TypeParameter(e){this._variance(e);this.word(e.name);if(e.bound){this.print(e.bound)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function OpaqueType(e){this.word("opaque");this.space();this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);if(e.supertype){this.tokenChar(58);this.space();this.print(e.supertype)}if(e.impltype){this.space();this.tokenChar(61);this.space();this.print(e.impltype)}this.semicolon()}function ObjectTypeAnnotation(e){if(e.exact){this.token("{|")}else{this.tokenChar(123)}const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length){this.newline();this.space();this.printJoin(t,true,true,undefined,undefined,(function addNewlines(e){if(e&&!t[0])return 1}),(()=>{if(t.length!==1||e.inexact){this.tokenChar(44);this.space()}}));this.space()}if(e.inexact){this.indent();this.token("...");if(t.length){this.newline()}this.dedent()}if(e.exact){this.token("|}")}else{this.tokenChar(125)}}function ObjectTypeInternalSlot(e){if(e.static){this.word("static");this.space()}this.tokenChar(91);this.tokenChar(91);this.print(e.id);this.tokenChar(93);this.tokenChar(93);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeCallProperty(e){if(e.static){this.word("static");this.space()}this.print(e.value)}function ObjectTypeIndexer(e){if(e.static){this.word("static");this.space()}this._variance(e);this.tokenChar(91);if(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)}function ObjectTypeProperty(e){if(e.proto){this.word("proto");this.space()}if(e.static){this.word("static");this.space()}if(e.kind==="get"||e.kind==="set"){this.word(e.kind);this.space()}this._variance(e);this.print(e.key);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeSpreadProperty(e){this.token("...");this.print(e.argument)}function QualifiedTypeIdentifier(e){this.print(e.qualification);this.tokenChar(46);this.print(e.id)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(e){this.space();this.token("|",false,e);this.space()}function UnionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,orSeparator)}function TypeCastExpression(e){this.tokenChar(40);this.print(e.expression);this.print(e.typeAnnotation);this.tokenChar(41)}function Variance(e){if(e.kind==="plus"){this.tokenChar(43)}else{this.tokenChar(45)}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function OptionalIndexedAccessType(e){this.print(e.objectType);if(e.optional){this.token("?.")}this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}},7242:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(6431);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));var n=r(501);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})}));var i=r(5866);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var a=r(4226);Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var o=r(3088);Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var l=r(5659);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var c=r(9031);Object.keys(c).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===c[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return c[e]}})}));var p=r(5652);Object.keys(p).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===p[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})}));var u=r(8281);Object.keys(u).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===u[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return u[e]}})}));var f=r(7471);Object.keys(f).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}));var d=r(5347);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}))},7471:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXClosingElement=JSXClosingElement;t.JSXClosingFragment=JSXClosingFragment;t.JSXElement=JSXElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXFragment=JSXFragment;t.JSXIdentifier=JSXIdentifier;t.JSXMemberExpression=JSXMemberExpression;t.JSXNamespacedName=JSXNamespacedName;t.JSXOpeningElement=JSXOpeningElement;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;function JSXAttribute(e){this.print(e.name);if(e.value){this.tokenChar(61);this.print(e.value)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace);this.tokenChar(58);this.print(e.name)}function JSXMemberExpression(e){this.print(e.object);this.tokenChar(46);this.print(e.property)}function JSXSpreadAttribute(e){this.tokenChar(123);this.token("...");this.print(e.argument);this.rightBrace(e)}function JSXExpressionContainer(e){this.tokenChar(123);this.print(e.expression);this.rightBrace(e)}function JSXSpreadChild(e){this.tokenChar(123);this.token("...");this.print(e.expression);this.rightBrace(e)}function JSXText(e){const t=this.getPossibleRaw(e);if(t!==undefined){this.token(t,true)}else{this.token(e.value,true)}}function JSXElement(e){const t=e.openingElement;this.print(t);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingElement)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.tokenChar(60);this.print(e.name);this.print(e.typeParameters);if(e.attributes.length>0){this.space();this.printJoin(e.attributes,undefined,undefined,spaceSeparator)}if(e.selfClosing){this.space();this.tokenChar(47)}this.tokenChar(62)}function JSXClosingElement(e){this.tokenChar(60);this.tokenChar(47);this.print(e.name);this.tokenChar(62)}function JSXEmptyExpression(){this.printInnerComments()}function JSXFragment(e){this.print(e.openingFragment);this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingFragment)}function JSXOpeningFragment(){this.tokenChar(60);this.tokenChar(62)}function JSXClosingFragment(){this.token("</");this.tokenChar(62)}},3088:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrowFunctionExpression=ArrowFunctionExpression;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t._functionHead=_functionHead;t._methodHead=_methodHead;t._param=_param;t._parameters=_parameters;t._params=_params;t._predicate=_predicate;t._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var s=r(9175);var n=r(4864);const{isIdentifier:i}=s;function _params(e,t,r){this.print(e.typeParameters);const s=_getFuncIdName.call(this,t,r);if(s){this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40);this._parameters(e.params,")");const n=e.type==="ArrowFunctionExpression";this.print(e.returnType,n);this._noLineTerminator=n}function _parameters(e,t){const r=this.enterDelimited();const s=this.shouldPrintTrailingComma(t);const n=e.length;for(let t=0;t<n;t++){this._param(e[t]);if(s||t<n-1){this.token(",",null,t);this.space()}}this.token(t);r()}function _param(e){this.printJoin(e.decorators);this.print(e);if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function _methodHead(e){const t=e.kind;const r=e.key;if(t==="get"||t==="set"){this.word(t);this.space()}if(e.async){this.word("async",true);this.space()}if(t==="method"||t==="init"){if(e.generator){this.tokenChar(42)}}if(e.computed){this.tokenChar(91);this.print(r);this.tokenChar(93)}else{this.print(r)}if(e.optional){this.tokenChar(63)}this._params(e,e.computed&&e.key.type!=="StringLiteral"?undefined:e.key,undefined)}function _predicate(e,t){if(e.predicate){if(!e.returnType){this.tokenChar(58)}this.space();this.print(e.predicate,t)}}function _functionHead(e,t){if(e.async){this.word("async");if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.space()}this.word("function");if(e.generator){if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.tokenChar(42)}this.space();if(e.id){this.print(e.id)}this._params(e,e.id,t);if(e.type!=="TSDeclareFunction"){this._predicate(e)}}function FunctionExpression(e,t){this._functionHead(e,t);this.space();this.print(e.body)}function ArrowFunctionExpression(e,t){if(e.async){this.word("async",true);this.space()}if(this._shouldPrintArrowParamsParens(e)){this._params(e,undefined,t)}else{this.print(e.params[0],true)}this._predicate(e,true);this.space();this.printInnerComments();this.token("=>");this.space();this.tokenContext|=n.TokenContext.arrowBody;this.print(e.body)}function _shouldPrintArrowParamsParens(e){var t,r;if(e.params.length!==1)return true;if(e.typeParameters||e.returnType||e.predicate){return true}const s=e.params[0];if(!i(s)||s.typeAnnotation||s.optional||(t=s.leadingComments)!=null&&t.length||(r=s.trailingComments)!=null&&r.length){return true}if(this.tokenMap){if(e.loc==null)return true;if(this.tokenMap.findMatching(e,"(")!==null)return true;const t=this.tokenMap.findMatching(e,"=>");if((t==null?void 0:t.loc)==null)return true;return t.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return true;return false}function _getFuncIdName(e,t){let r=e;if(!r&&t){const e=t.type;if(e==="VariableDeclarator"){r=t.id}else if(e==="AssignmentExpression"||e==="AssignmentPattern"){r=t.left}else if(e==="ObjectProperty"||e==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral"){r=t.key}}else if(e==="ClassPrivateProperty"||e==="ClassAccessorProperty"){r=t.key}}if(!r)return;let s;if(r.type==="Identifier"){var n,i;s={pos:(n=r.loc)==null?void 0:n.start,name:((i=r.loc)==null?void 0:i.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;s={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;s={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return s}},5659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExportAllDeclaration=ExportAllDeclaration;t.ExportDefaultDeclaration=ExportDefaultDeclaration;t.ExportDefaultSpecifier=ExportDefaultSpecifier;t.ExportNamedDeclaration=ExportNamedDeclaration;t.ExportNamespaceSpecifier=ExportNamespaceSpecifier;t.ExportSpecifier=ExportSpecifier;t.ImportAttribute=ImportAttribute;t.ImportDeclaration=ImportDeclaration;t.ImportDefaultSpecifier=ImportDefaultSpecifier;t.ImportExpression=ImportExpression;t.ImportNamespaceSpecifier=ImportNamespaceSpecifier;t.ImportSpecifier=ImportSpecifier;t._printAttributes=_printAttributes;var s=r(9175);var n=r(4864);const{isClassDeclaration:i,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=s;function ImportSpecifier(e){if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}this.print(e.imported);if(e.local&&e.local.name!==e.imported.name){this.space();this.word("as");this.space();this.print(e.local)}}function ImportDefaultSpecifier(e){this.print(e.local)}function ExportDefaultSpecifier(e){this.print(e.exported)}function ExportSpecifier(e){if(e.exportKind==="type"){this.word("type");this.space()}this.print(e.local);if(e.exported&&e.local.name!==e.exported.name){this.space();this.word("as");this.space();this.print(e.exported)}}function ExportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.exported)}let u=false;function _printAttributes(e,t){const{importAttributesKeyword:r}=this.format;const{attributes:s,assertions:n}=e;if(s&&!r&&!u){u=true;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`)}const i=r==="assert"||!r&&n;this.word(i?"assert":"with");this.space();if(!i&&r!=="with"){this.printList(s||n);return}const a=t?1:0;this.token("{",null,a);this.space();this.printList(s||n,this.shouldPrintTrailingComma("}"));this.space();this.token("}",null,a)}function ExportAllDeclaration(e){var t,r;this.word("export");this.space();if(e.exportKind==="type"){this.word("type");this.space()}this.tokenChar(42);this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,false)}else{this.print(e.source)}this.semicolon()}function maybePrintDecoratorsBeforeExport(e,t){if(i(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)){e.printJoin(t.declaration.decorators)}}function ExportNamedDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.space();if(e.declaration){const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}else{if(e.exportKind==="type"){this.word("type");this.space()}const s=e.specifiers.slice(0);let n=false;for(;;){const e=s[0];if(a(e)||o(e)){n=true;this.print(s.shift());if(s.length){this.tokenChar(44);this.space()}}else{break}}let i=false;if(s.length||!s.length&&!n){i=true;this.tokenChar(123);if(s.length){this.space();this.printList(s,this.shouldPrintTrailingComma("}"));this.space()}this.tokenChar(125)}if(e.source){var t,r;this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,i)}else{this.print(e.source)}}this.semicolon()}}function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.noIndentInnerCommentsHere();this.space();this.word("default");this.space();this.tokenContext|=n.TokenContext.exportDefault;const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}function ImportDeclaration(e){var t,r;this.word("import");this.space();const s=e.importKind==="type"||e.importKind==="typeof";if(s){this.noIndentInnerCommentsHere();this.word(e.importKind);this.space()}else if(e.module){this.noIndentInnerCommentsHere();this.word("module");this.space()}else if(e.phase){this.noIndentInnerCommentsHere();this.word(e.phase);this.space()}const n=e.specifiers.slice(0);const i=!!n.length;while(i){const e=n[0];if(l(e)||c(e)){this.print(n.shift());if(n.length){this.tokenChar(44);this.space()}}else{break}}let a=false;if(n.length){a=true;this.tokenChar(123);this.space();this.printList(n,this.shouldPrintTrailingComma("}"));this.space();this.tokenChar(125)}else if(s&&!i){a=true;this.tokenChar(123);this.tokenChar(125)}if(i||s){this.space();this.word("from");this.space()}if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,a)}else{this.print(e.source)}this.semicolon()}function ImportAttribute(e){this.print(e.key);this.tokenChar(58);this.space();this.print(e.value)}function ImportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.local)}function ImportExpression(e){this.word("import");if(e.phase){this.tokenChar(46);this.word(e.phase)}this.tokenChar(40);this.print(e.source);if(e.options!=null){this.tokenChar(44);this.space();this.print(e.options)}this.tokenChar(41)}},5866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BreakStatement=BreakStatement;t.CatchClause=CatchClause;t.ContinueStatement=ContinueStatement;t.DebuggerStatement=DebuggerStatement;t.DoWhileStatement=DoWhileStatement;t.ForOfStatement=t.ForInStatement=void 0;t.ForStatement=ForStatement;t.IfStatement=IfStatement;t.LabeledStatement=LabeledStatement;t.ReturnStatement=ReturnStatement;t.SwitchCase=SwitchCase;t.SwitchStatement=SwitchStatement;t.ThrowStatement=ThrowStatement;t.TryStatement=TryStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.WhileStatement=WhileStatement;t.WithStatement=WithStatement;var s=r(9175);var n=r(4864);const{isFor:i,isForStatement:a,isIfStatement:o,isStatement:l}=s;function WithStatement(e){this.word("with");this.space();this.tokenChar(40);this.print(e.object);this.tokenChar(41);this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.space();const t=e.alternate&&o(getLastStatement(e.consequent));if(t){this.tokenChar(123);this.newline();this.indent()}this.printAndIndentOnComments(e.consequent);if(t){this.dedent();this.newline();this.tokenChar(125)}if(e.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate)}}function getLastStatement(e){const{body:t}=e;if(l(t)===false){return e}return getLastStatement(t)}function ForStatement(e){this.word("for");this.space();this.tokenChar(40);{const t=this.enterForStatementInit();this.tokenContext|=n.TokenContext.forHead;this.print(e.init);t()}this.tokenChar(59);if(e.test){this.space();this.print(e.test)}this.token(";",false,1);if(e.update){this.space();this.print(e.update)}this.tokenChar(41);this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.printBlock(e)}function ForXStatement(e){this.word("for");this.space();const t=e.type==="ForOfStatement";if(t&&e.await){this.word("await");this.space()}this.noIndentInnerCommentsHere();this.tokenChar(40);{const r=t?null:this.enterForStatementInit();this.tokenContext|=t?n.TokenContext.forOfHead:n.TokenContext.forInHead;this.print(e.left);r==null||r()}this.space();this.word(t?"of":"in");this.space();this.print(e.right);this.tokenChar(41);this.printBlock(e)}const c=t.ForInStatement=ForXStatement;const p=t.ForOfStatement=ForXStatement;function DoWhileStatement(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()}function printStatementAfterKeyword(e,t){if(t){e.space();e.printTerminatorless(t)}e.semicolon()}function BreakStatement(e){this.word("break");printStatementAfterKeyword(this,e.label)}function ContinueStatement(e){this.word("continue");printStatementAfterKeyword(this,e.label)}function ReturnStatement(e){this.word("return");printStatementAfterKeyword(this,e.argument)}function ThrowStatement(e){this.word("throw");printStatementAfterKeyword(this,e.argument)}function LabeledStatement(e){this.print(e.label);this.tokenChar(58);this.space();this.print(e.body)}function TryStatement(e){this.word("try");this.space();this.print(e.block);this.space();if(e.handlers){this.print(e.handlers[0])}else{this.print(e.handler)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.tokenChar(40);this.print(e.param);this.print(e.param.typeAnnotation);this.tokenChar(41);this.space()}this.print(e.body)}function SwitchStatement(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,true,undefined,(function addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}));this.rightBrace(e)}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test);this.tokenChar(58)}else{this.word("default");this.tokenChar(58)}if(e.consequent.length){this.newline();this.printSequence(e.consequent,true)}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}const{kind:r}=e;if(r==="await using"){this.word("await");this.space();this.word("using",true)}else{this.word(r,r==="using")}this.space();let s=false;if(!i(t)){for(const t of e.declarations){if(t.init){s=true}}}this.printList(e.declarations,undefined,undefined,e.declarations.length>1,s?function(e){this.token(",",false,e);this.newline()}:undefined);if(i(t)){if(a(t)){if(t.init===e)return}else{if(t.left===e)return}}this.semicolon()}function VariableDeclarator(e){this.print(e.id);if(e.definite)this.tokenChar(33);this.print(e.id.typeAnnotation);if(e.init){this.space();this.tokenChar(61);this.space();this.print(e.init)}}},6431:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateElement=TemplateElement;t.TemplateLiteral=TemplateLiteral;function TaggedTemplateExpression(e){this.print(e.tag);this.print(e.typeParameters);this.print(e.quasi)}function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function TemplateLiteral(e){const t=e.quasis;let r="`";for(let s=0;s<t.length;s++){r+=t[s].value.raw;if(s+1<t.length){this.token(r+"${",true);this.print(e.expressions[s]);r="}";if(this.tokenMap){const t=this.tokenMap.findMatching(e,"}",s);if(t)this._catchUpTo(t.loc.start)}}}this.token(r+"`",true)}},9031:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentPlaceholder=ArgumentPlaceholder;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.BigIntLiteral=BigIntLiteral;t.BooleanLiteral=BooleanLiteral;t.DecimalLiteral=DecimalLiteral;t.Identifier=Identifier;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;t.PipelineTopicExpression=PipelineTopicExpression;t.RecordExpression=RecordExpression;t.RegExpLiteral=RegExpLiteral;t.SpreadElement=t.RestElement=RestElement;t.StringLiteral=StringLiteral;t.TopicReference=TopicReference;t.TupleExpression=TupleExpression;t._getRawIdentifier=_getRawIdentifier;var s=r(9175);var n=r(995);const{isAssignmentPattern:i,isIdentifier:a}=s;let o=null;let l="";function _getRawIdentifier(e){if(e===o)return l;o=e;const{name:t}=e;const r=this.tokenMap.find(e,(e=>e.value===t));if(r){l=this._originalCode.slice(r.start,r.end);return l}return l=e.name}function Identifier(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name);this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function ArgumentPlaceholder(){this.tokenChar(63)}function RestElement(e){this.token("...");this.print(e.argument)}function ObjectExpression(e){const t=e.properties;this.tokenChar(123);if(t.length){const e=this.enterDelimited();this.space();this.printList(t,this.shouldPrintTrailingComma("}"),true,true);this.space();e()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}function ObjectMethod(e){this.printJoin(e.decorators);this._methodHead(e);this.space();this.print(e.body)}function ObjectProperty(e){this.printJoin(e.decorators);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{if(i(e.value)&&a(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}this.print(e.key);if(e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name){return}}this.tokenChar(58);this.space();this.print(e.value)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.tokenChar(91);const s=this.enterDelimited();for(let e=0;e<t.length;e++){const s=t[e];if(s){if(e>0)this.space();this.print(s);if(e<r-1||this.shouldPrintTrailingComma("]")){this.token(",",false,e)}}else{this.token(",",false,e)}}s();this.tokenChar(93)}function RecordExpression(e){const t=e.properties;let r;let s;{if(this.format.recordAndTupleSyntaxType==="bar"){r="{|";s="|}"}else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null){throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`)}else{r="#{";s="}"}}this.token(r);if(t.length){this.space();this.printList(t,this.shouldPrintTrailingComma(s),true,true);this.space()}this.token(s)}function TupleExpression(e){const t=e.elements;const r=t.length;let s;let n;{if(this.format.recordAndTupleSyntaxType==="bar"){s="[|";n="|]"}else if(this.format.recordAndTupleSyntaxType==="hash"){s="#[";n="]"}else{throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`)}}this.token(s);for(let e=0;e<t.length;e++){const s=t[e];if(s){if(e>0)this.space();this.print(s);if(e<r-1||this.shouldPrintTrailingComma(n)){this.token(",",false,e)}}}this.token(n)}function RegExpLiteral(e){this.word(`/${e.pattern}/${e.flags}`)}function BooleanLiteral(e){this.word(e.value?"true":"false")}function NullLiteral(){this.word("null")}function NumericLiteral(e){const t=this.getPossibleRaw(e);const r=this.format.jsescOption;const s=e.value;const i=s+"";if(r.numbers){this.number(n(s,r),s)}else if(t==null){this.number(i,s)}else if(this.format.minified){this.number(t.length<i.length?t:i,s)}else{this.number(t,s)}}function StringLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const r=n(e.value,this.format.jsescOption);this.token(r)}function BigIntLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"n")}function DecimalLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"m")}const c=new Set(["^^","@@","^","%","#"]);function TopicReference(){const{topicToken:e}=this.format;if(c.has(e)){this.token(e)}else{const t=JSON.stringify(e);const r=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of `+`${r.join(", ")} (${t} received instead).`)}}function PipelineTopicExpression(e){this.print(e.expression)}function PipelineBareFunction(e){this.print(e.callee)}function PipelinePrimaryTopicReference(){this.tokenChar(35)}},5347:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSAnyKeyword=TSAnyKeyword;t.TSArrayType=TSArrayType;t.TSSatisfiesExpression=t.TSAsExpression=TSTypeExpression;t.TSBigIntKeyword=TSBigIntKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSInterfaceHeritage=t.TSExpressionWithTypeArguments=t.TSClassImplements=TSClassImplements;t.TSConditionalType=TSConditionalType;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSConstructorType=TSConstructorType;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSExportAssignment=TSExportAssignment;t.TSExternalModuleReference=TSExternalModuleReference;t.TSFunctionType=TSFunctionType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSImportType=TSImportType;t.TSIndexSignature=TSIndexSignature;t.TSIndexedAccessType=TSIndexedAccessType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSInterfaceBody=TSInterfaceBody;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSIntersectionType=TSIntersectionType;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSLiteralType=TSLiteralType;t.TSMappedType=TSMappedType;t.TSMethodSignature=TSMethodSignature;t.TSModuleBlock=TSModuleBlock;t.TSModuleDeclaration=TSModuleDeclaration;t.TSNamedTupleMember=TSNamedTupleMember;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.TSNeverKeyword=TSNeverKeyword;t.TSNonNullExpression=TSNonNullExpression;t.TSNullKeyword=TSNullKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSOptionalType=TSOptionalType;t.TSParameterProperty=TSParameterProperty;t.TSParenthesizedType=TSParenthesizedType;t.TSPropertySignature=TSPropertySignature;t.TSQualifiedName=TSQualifiedName;t.TSRestType=TSRestType;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSThisType=TSThisType;t.TSTupleType=TSTupleType;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeAssertion=TSTypeAssertion;t.TSTypeLiteral=TSTypeLiteral;t.TSTypeOperator=TSTypeOperator;t.TSTypeParameter=TSTypeParameter;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeReference=TSTypeReference;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSUnionType=TSUnionType;t.TSUnknownKeyword=TSUnknownKeyword;t.TSVoidKeyword=TSVoidKeyword;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;function TSTypeAnnotation(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":");this.space();if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function TSTypeParameterInstantiation(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null){r&&(r=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,","))));r||(r=this.shouldPrintTrailingComma(">"))}this.printList(e.params,r);this.tokenChar(62)}function TSTypeParameter(e){if(e.in){this.word("in");this.space()}if(e.out){this.word("out");this.space()}this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e,t){if(e.declare){this.word("declare");this.space()}this._functionHead(e,t);this.semicolon()}function TSDeclareMethod(e){this._classMethodHead(e);this.semicolon()}function TSQualifiedName(e){this.print(e.left);this.tokenChar(46);this.print(e.right)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function maybePrintTrailingCommaOrSemicolon(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,",")){e.token(",")}else if(e.tokenMap.endMatches(t,";")){e.semicolon()}}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSPropertySignature(e){const{readonly:t}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function tsPrintPropertyOrMethodName(e){if(e.computed){this.tokenChar(91)}this.print(e.key);if(e.computed){this.tokenChar(93)}if(e.optional){this.tokenChar(63)}}function TSMethodSignature(e){const{kind:t}=e;if(t==="set"||t==="get"){this.word(t);this.space()}this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSIndexSignature(e){const{readonly:t,static:r}=e;if(r){this.word("static");this.space()}if(t){this.word("readonly");this.space()}this.tokenChar(91);this._parameters(e.parameters,"]");this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){if(e.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");this.space();const s=e.typeAnnotation;this.print(s)}function TSTypeReference(e){this.print(e.typeName,!!e.typeParameters);this.print(e.typeParameters)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName);if(e.typeParameters){this.print(e.typeParameters)}}function TSTypeLiteral(e){printBraced(this,e,(()=>this.printJoin(e.members,true,true)))}function TSArrayType(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function TSTupleType(e){this.tokenChar(91);this.printList(e.elementTypes,this.shouldPrintTrailingComma("]"));this.tokenChar(93)}function TSOptionalType(e){this.print(e.typeAnnotation);this.tokenChar(63)}function TSRestType(e){this.token("...");this.print(e.typeAnnotation)}function TSNamedTupleMember(e){this.print(e.label);if(e.optional)this.tokenChar(63);this.tokenChar(58);this.space();this.print(e.elementType)}function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")}function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")}function tsPrintUnionOrIntersectionType(e,t,r){var s;let n=0;if((s=e.tokenMap)!=null&&s.startMatches(t,r)){n=1;e.token(r)}e.printJoin(t.types,undefined,undefined,(function(e){this.space();this.token(r,null,e+n);this.space()}))}function TSConditionalType(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)}function TSInferType(e){this.word("infer");this.print(e.typeParameter)}function TSParenthesizedType(e){this.tokenChar(40);this.print(e.typeAnnotation);this.tokenChar(41)}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation)}function TSIndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function TSMappedType(e){const{nameType:t,optional:r,readonly:s,typeAnnotation:n}=e;this.tokenChar(123);const i=this.enterDelimited();this.space();if(s){tokenIfPlusMinus(this,s);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)}if(t){this.space();this.word("as");this.space();this.print(t)}this.tokenChar(93);if(r){tokenIfPlusMinus(this,r);this.tokenChar(63)}if(n){this.tokenChar(58);this.space();this.print(n)}this.space();i();this.tokenChar(125)}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSLiteralType(e){this.print(e.literal)}function TSClassImplements(e){this.print(e.expression);this.print(e.typeParameters)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:s,extends:n,body:i}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r);this.print(s);if(n!=null&&n.length){this.space();this.word("extends");this.space();this.printList(n)}this.space();this.print(i)}function TSInterfaceBody(e){printBraced(this,e,(()=>this.printJoin(e.body,true,true)))}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:s,typeAnnotation:n}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r);this.print(s);this.space();this.tokenChar(61);this.space();this.print(n);this.semicolon()}function TSTypeExpression(e){const{type:t,expression:r,typeAnnotation:s}=e;this.print(r,true);this.space();this.word(t==="TSAsExpression"?"as":"satisfies");this.space();this.print(s)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60);this.print(t);this.tokenChar(62);this.space();this.print(r)}function TSInstantiationExpression(e){this.print(e.expression);this.print(e.typeParameters)}function TSEnumDeclaration(e){const{declare:t,const:r,id:s,members:n}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(s);this.space();printBraced(this,e,(()=>{var e;return this.printList(n,(e=this.shouldPrintTrailingComma("}"))!=null?e:true,true,true)}))}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t);if(r){this.space();this.tokenChar(61);this.space();this.print(r)}}function TSModuleDeclaration(e){const{declare:t,id:r,kind:s}=e;if(t){this.word("declare");this.space()}{if(!e.global){this.word(s!=null?s:r.type==="Identifier"?"namespace":"module");this.space()}this.print(r);if(!e.body){this.semicolon();return}let t=e.body;while(t.type==="TSModuleDeclaration"){this.tokenChar(46);this.print(t.id);t=t.body}this.space();this.print(t)}}function TSModuleBlock(e){printBraced(this,e,(()=>this.printSequence(e.body,true)))}function TSImportType(e){const{argument:t,qualifier:r,typeParameters:s}=e;this.word("import");this.tokenChar(40);this.print(t);this.tokenChar(41);if(r){this.tokenChar(46);this.print(r)}if(s){this.print(s)}}function TSImportEqualsDeclaration(e){const{isExport:t,id:r,moduleReference:s}=e;if(t){this.word("export");this.space()}this.word("import");this.space();this.print(r);this.space();this.tokenChar(61);this.space();this.print(s);this.semicolon()}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression);this.tokenChar(41)}function TSNonNullExpression(e){this.print(e.expression);this.tokenChar(33)}function TSExportAssignment(e){this.word("export");this.space();this.tokenChar(61);this.space();this.print(e.expression);this.semicolon()}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id);this.semicolon()}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");const s=e.typeAnnotation;this.print(s)}function tsPrintClassMemberModifiers(e){const t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";printModifiersList(this,e,[t&&e.declare&&"declare",e.accessibility]);if(e.static){this.word("static");this.space()}printModifiersList(this,e,[e.override&&"override",e.abstract&&"abstract",t&&e.readonly&&"readonly"])}function printBraced(e,t,r){e.token("{");const s=e.enterDelimited();r();s();e.rightBrace(t)}function printModifiersList(e,t,r){var s;const n=new Set;for(const e of r){if(e)n.add(e)}(s=e.tokenMap)==null||s.find(t,(t=>{if(n.has(t.value)){e.token(t.value);e.space();n.delete(t.value);return n.size===0}}));for(const t of n){e.word(t);e.space()}}},2327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generate;var s=r(4845);var n=r(391);function normalizeOptions(e,t,r){if(t.experimental_preserveFormat){if(typeof e!=="string"){throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string")}if(!t.retainLines){throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`")}if(t.compact&&t.compact!=="auto"){throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option")}if(t.minified){throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option")}if(t.jsescOption){throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option")}if(!Array.isArray(r.tokens)){throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}}const s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var n;s.decoratorsBeforeExport=t.decoratorsBeforeExport;s.jsescOption.json=t.jsonCompatibleStrings;s.recordAndTupleSyntaxType=(n=t.recordAndTupleSyntaxType)!=null?n:"hash"}if(s.minified){s.compact=true;s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)}else{s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve"))}if(s.compact==="auto"){s.compact=typeof e==="string"&&e.length>5e5;if(s.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of ${"500KB"}.`)}}if(s.compact||s.preserveFormat){s.indent.adjustMultilineComment=false}const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;if(i&&!o(i)){s.auxiliaryCommentBefore=undefined}if(a&&!o(a)){s.auxiliaryCommentAfter=undefined}return s}{t.CodeGenerator=class CodeGenerator{constructor(e,t={},r){this._ast=void 0;this._format=void 0;this._map=void 0;this._ast=e;this._format=normalizeOptions(r,t,e);this._map=t.sourceMaps?new s.default(t,r):null}generate(){const e=new n.default(this._format,this._map);return e.generate(this._ast)}}}function generate(e,t={},r){const i=normalizeOptions(r,t,e);const a=t.sourceMaps?new s.default(t,r):null;const o=new n.default(i,a,e.tokens,typeof r==="string"?r:null);return o.generate(e)}},4864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenContext=void 0;t.isLastChild=isLastChild;t.needsParens=needsParens;t.needsWhitespace=needsWhitespace;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsWhitespaceBefore=needsWhitespaceBefore;var s=r(3471);var n=r(124);var i=r(9175);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:f,isParenthesizedExpression:d}=i;const h=t.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function expandAliases(e){const t=new Map;function add(e,r){const s=t.get(e);t.set(e,s?function(e,t,n,i,a){var o;return(o=s(e,t,n,i,a))!=null?o:r(e,t,n,i,a)}:r)}for(const t of Object.keys(e)){const r=a[t];if(r){for(const s of r){add(s,e[t])}}else{add(t,e[t])}}return t}const m=expandAliases(n);const y=expandAliases(s.nodes);function isOrHasCallExpression(e){if(l(e)){return true}return u(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){var s;if(!e)return false;if(p(e)){e=e.expression}const n=(s=y.get(e.type))==null?void 0:s(e,t);if(typeof n==="number"){return(n&r)!==0}return false}function needsWhitespaceBefore(e,t){return needsWhitespace(e,t,1)}function needsWhitespaceAfter(e,t){return needsWhitespace(e,t,2)}function needsParens(e,t,r,s,n){var i;if(!t)return false;if(f(t)&&t.callee===e){if(isOrHasCallExpression(e))return true}if(c(t)){return!isDecoratorMemberExpression(e)&&!(l(e)&&isDecoratorMemberExpression(e.callee))&&!d(e)}return(i=m.get(e.type))==null?void 0:i(e,t,r,s,n)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return true;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&isDecoratorMemberExpression(e.object);default:return false}}function isLastChild(e,t){const r=o[e.type];for(let s=r.length-1;s>=0;s--){const n=e[r[s]];if(n===t){return true}else if(Array.isArray(n)){let e=n.length-1;while(e>=0&&n[e]===null)e--;return e>=0&&n[e]===t}else if(n){return false}}return false}},124:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssignmentExpression=AssignmentExpression;t.Binary=Binary;t.BinaryExpression=BinaryExpression;t.ClassExpression=ClassExpression;t.ArrowFunctionExpression=t.ConditionalExpression=ConditionalExpression;t.DoExpression=DoExpression;t.FunctionExpression=FunctionExpression;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.Identifier=Identifier;t.LogicalExpression=LogicalExpression;t.NullableTypeAnnotation=NullableTypeAnnotation;t.ObjectExpression=ObjectExpression;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.OptionalCallExpression=t.OptionalMemberExpression=OptionalMemberExpression;t.SequenceExpression=SequenceExpression;t.TSSatisfiesExpression=t.TSAsExpression=TSAsExpression;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.UnaryLike=t.TSTypeAssertion=UnaryLike;t.TSIntersectionType=t.TSUnionType=TSUnionType;t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=UnionTypeAnnotation;t.UpdateExpression=UpdateExpression;t.AwaitExpression=t.YieldExpression=YieldExpression;var s=r(9175);var n=r(4864);const{isArrayTypeAnnotation:i,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:u,isOptionalMemberExpression:f,isYieldExpression:d,isStatement:h}=s;const 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 getBinaryPrecedence(e,t){if(t==="BinaryExpression"||t==="LogicalExpression"){return m.get(e.operator)}if(t==="TSAsExpression"||t==="TSSatisfiesExpression"){return m.get("in")}}function isTSTypeExpression(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}const isClassExtendsClause=(e,t)=>{const r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e};const hasPostfixPart=(e,t)=>{const r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function NullableTypeAnnotation(e,t){return i(t)}function FunctionTypeAnnotation(e,t,r){const s=t.type;return s==="UnionTypeAnnotation"||s==="IntersectionTypeAnnotation"||s==="ArrayTypeAnnotation"||Boolean(r&n.TokenContext.arrowFlowReturnType)}function UpdateExpression(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)}function needsParenBeforeExpressionBrace(e){return Boolean(e&(n.TokenContext.expressionStatement|n.TokenContext.arrowBody))}function ObjectExpression(e,t,r){return needsParenBeforeExpressionBrace(r)}function DoExpression(e,t,r){return!e.async&&Boolean(r&n.TokenContext.expressionStatement)}function Binary(e,t){const r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**"){return t.left===e}if(isClassExtendsClause(e,t)){return true}if(hasPostfixPart(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression"){return true}const s=getBinaryPrecedence(t,r);if(s!=null){const n=getBinaryPrecedence(e,e.type);if(s===n&&r==="BinaryExpression"&&t.right===e||s>n){return true}}return undefined}function UnionTypeAnnotation(e,t){const r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function OptionalIndexedAccessType(e,t){return c(t)&&t.objectType===e}function TSAsExpression(e,t){if((t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e){return true}if(t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left){return true}return Binary(e,t)}function TSUnionType(e,t){const r=t.type;return r==="TSArrayType"||r==="TSOptionalType"||r==="TSIntersectionType"||r==="TSRestType"}function TSInferType(e,t){const r=t.type;return r==="TSArrayType"||r==="TSOptionalType"}function TSInstantiationExpression(e,t){const r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function BinaryExpression(e,t,r,s){return e.operator==="in"&&s}function SequenceExpression(e,t){const r=t.type;if(r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"){return false}if(r==="ClassDeclaration"){return true}if(r==="ForOfStatement"){return t.right===e}if(r==="ExportDefaultDeclaration"){return true}return!h(t)}function YieldExpression(e,t){const r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||hasPostfixPart(e,t)||r==="AwaitExpression"&&d(e)||r==="ConditionalExpression"&&e===t.test||isClassExtendsClause(e,t)||isTSTypeExpression(r)}function ClassExpression(e,t,r){return Boolean(r&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))}function UnaryLike(e,t){return hasPostfixPart(e,t)||a(t)&&t.operator==="**"&&t.left===e||isClassExtendsClause(e,t)}function FunctionExpression(e,t,r){return Boolean(r&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))}function ConditionalExpression(e,t){const r=t.type;if(r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||isTSTypeExpression(r)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e}function AssignmentExpression(e,t,r){if(needsParenBeforeExpressionBrace(r)&&u(e.left)){return true}else{return ConditionalExpression(e,t)}}function LogicalExpression(e,t){const r=t.type;if(isTSTypeExpression(r))return true;if(r!=="LogicalExpression")return false;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Identifier(e,t,r,s,i){var a;const o=t.type;if((a=e.extra)!=null&&a.parenthesized&&o==="AssignmentExpression"&&t.left===e){const e=t.right.type;if((e==="FunctionExpression"||e==="ClassExpression")&&t.right.id==null){return true}}if(i&&i(e)!==e.name){return false}if(e.name==="let"){const s=p(t,{object:e,computed:true})||f(t,{object:e,computed:true,optional:false});if(s&&r&(n.TokenContext.expressionStatement|n.TokenContext.forHead|n.TokenContext.forInHead)){return true}return Boolean(r&n.TokenContext.forOfHead)}return e.name==="async"&&l(t,{left:e,await:false})}},3471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodes=void 0;var s=r(9175);const{FLIPPED_ALIAS_KEYS:n,isArrayExpression:i,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:f,isMemberExpression:d,isObjectExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:T}=s;function crawlInternal(e,t){if(!e)return t;if(d(e)||y(e)){crawlInternal(e.object,t);if(e.computed)crawlInternal(e.property,t)}else if(o(e)||a(e)){crawlInternal(e.left,t);crawlInternal(e.right,t)}else if(c(e)||m(e)){t.hasCall=true;crawlInternal(e.callee,t)}else if(p(e)){t.hasFunction=true}else if(u(e)){t.hasHelper=t.hasHelper||e.callee&&isHelper(e.callee)}return t}function crawl(e){return crawlInternal(e,{hasCall:false,hasFunction:false,hasHelper:false})}function isHelper(e){if(!e)return false;if(d(e)){return isHelper(e.object)||isHelper(e.property)}else if(u(e)){return e.name==="require"||e.name.charCodeAt(0)===95}else if(c(e)){return isHelper(e.callee)}else if(o(e)||a(e)){return u(e.left)&&isHelper(e.left)||isHelper(e.right)}else{return false}}function isType(e){return f(e)||h(e)||i(e)||u(e)||d(e)}const S=t.nodes={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction){return t.hasFunction?1|2:2}},SwitchCase(e,t){return(!!e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(p(e.left)||p(e.right)){return 2}},Literal(e){if(T(e)&&e.value==="use strict"){return 2}},CallExpression(e){if(p(e.callee)||isHelper(e)){return 1|2}},OptionalCallExpression(e){if(p(e.callee)){return 1|2}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let s=isHelper(r.id)&&!isType(r.init);if(!s&&r.init){const e=crawl(r.init);s=isHelper(r.init)&&e.hasCall||e.hasFunction}if(s){return 1|2}}},IfStatement(e){if(l(e.consequent)){return 1|2}}};S.ObjectProperty=S.ObjectTypeProperty=S.ObjectMethod=function(e,t){if(t.properties[0]===e){return 1}};S.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length)){return 1}};S.ObjectTypeIndexer=function(e,t){var r,s;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((s=t.callProperties)!=null&&s.length)){return 1}};S.ObjectTypeInternalSlot=function(e,t){var r,s,n;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((s=t.callProperties)!=null&&s.length)&&!((n=t.indexers)!=null&&n.length)){return 1}};[["Function",true],["Class",true],["Loop",true],["LabeledStatement",true],["SwitchStatement",true],["TryStatement",true]].forEach((function([e,t]){[e].concat(n[e]||[]).forEach((function(e){const r=t?1|2:0;S[e]=()=>r}))}))},391:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(1025);var n=r(4864);var i=r(9175);var a=r(1261);var o=r(7242);const{isExpression:l,isFunction:c,isStatement:p,isClassBody:u,isTSInterfaceBody:f,isTSEnumDeclaration:d}=i;const h=/e/i;const m=/\.0+$/;const y=/[\n\r\u2028\u2029]/;const T=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return e.type==="CommentLine"||y.test(e.value)}const{needsParens:S}=n;class Printer{constructor(e,t,r,n){this.inForStatementInit=false;this.tokenContext=0;this._tokens=null;this._originalCode=null;this._currentNode=null;this._indent=0;this._indentRepeat=0;this._insideAux=false;this._noLineTerminator=false;this._noLineTerminatorAfterNode=null;this._printAuxAfterOnNextUserNode=false;this._printedComments=new Set;this._endsWithInteger=false;this._endsWithWord=false;this._endsWithDiv=false;this._lastCommentLine=0;this._endsWithInnerRaw=false;this._indentInnerComments=true;this.tokenMap=null;this._boundGetRawIdentifier=this._getRawIdentifier.bind(this);this._printSemicolonBeforeNextNode=-1;this._printSemicolonBeforeNextToken=-1;this.format=e;this._tokens=r;this._originalCode=n;this._indentRepeat=e.indent.style.length;this._inputMap=t==null?void 0:t._inputMap;this._buf=new s.default(t,e.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};this.inForStatementInit=true;return()=>{this.inForStatementInit=false}}enterDelimited(){const e=this.inForStatementInit;const t=this._noLineTerminatorAfterNode;if(e===false&&t===null){return()=>{}}this.inForStatementInit=false;this._noLineTerminatorAfterNode=null;return()=>{this.inForStatementInit=e;this._noLineTerminatorAfterNode=t}}generate(e){if(this.format.preserveFormat){this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)}this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent++}dedent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent--}semicolon(e=false){this._maybeAddAuxComment();if(e){this._appendChar(59);this._noLineTerminator=false;return}if(this.tokenMap){const e=this._currentNode;if(e.start!=null&&e.end!=null){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59);this._noLineTerminator=false}rightBrace(e){if(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=false){const{format:t}=this;if(t.compact||t.preserveFormat)return;if(e){this._space()}else if(this._buf.hasContent()){const e=this.getLastChar();if(e!==32&&e!==10){this._space()}}}word(e,t=false){this.tokenContext=0;this._maybePrintInnerComments(e);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e);if(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47){this._space()}this._append(e,false);this._endsWithWord=true;this._noLineTerminator=t}number(e,t){function isNonDecimalLiteral(e){if(e.length>2&&e.charCodeAt(0)===48){const t=e.charCodeAt(1);return t===98||t===111||t===120}return false}this.word(e);this._endsWithInteger=Number.isInteger(t)&&!isNonDecimalLiteral(e)&&!h.test(e)&&!m.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,t=false,r=0){this.tokenContext=0;this._maybePrintInnerComments(e,r);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e,r);const s=this.getLastChar();const n=e.charCodeAt(0);if(s===33&&(e==="--"||n===61)||n===43&&s===43||n===45&&s===45||n===46&&this._endsWithInteger){this._space()}this._append(e,t);this._noLineTerminator=false}tokenChar(e){this.tokenContext=0;const t=String.fromCharCode(e);this._maybePrintInnerComments(t);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(t);const r=this.getLastChar();if(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger){this._space()}this._appendChar(e);this._noLineTerminator=false}newline(e=1,t){if(e<=0)return;if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let t=0;t<e;t++){this._newline()}return}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){if(!e){t();return}this._catchUp("start",e);this._buf.exactSource(e,t)}source(e,t){if(!t)return;this._catchUp(e,t);this._buf.source(e,t)}sourceWithOffset(e,t,r){if(!t||this.format.preserveFormat)return;this._catchUp(e,t);this._buf.sourceWithOffset(e,t,r)}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t;r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const r=this.tokenMap.findMatching(this._currentNode,e,t);if(r)this._catchUpTo(r.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()){this._buf.appendChar(59);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0));this._buf.append(e,t);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_appendChar(e){this._maybeIndent(e);this._buf.appendChar(e);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_queue(e){this._maybeIndent(e);this._buf.queue(e);this._endsWithWord=false;this._endsWithInteger=false}_maybeIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){this._buf.queueIndentation(this._getIndent())}}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){return true}}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++){this._newline()}}_catchUp(e,t){const{format:r}=this;if(!r.preserveFormat){if(r.retainLines&&t!=null&&t[e]){this.catchUp(t[e].line)}return}const s=t==null?void 0:t[e];if(s!=null)this._catchUpTo(s)}_catchUpTo({line:e,column:t,index:r}){const s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator){return}for(let e=0;e<s;e++){this._newline()}const n=s>0?t:t-this._buf.getCurrentColumn();if(n>0){const e=this._originalCode?this._originalCode.slice(r-n,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._append(e,false)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=true;this.print(e)}print(e,t,r){var s,i,a;if(!e)return;this._endsWithInnerRaw=false;const o=e.type;const c=this.format;const p=c.concise;if(e._compact){c.concise=true}const u=this[o];if(u===undefined){throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`)}const f=this._currentNode;this._currentNode=e;if(this.tokenMap){this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode}const d=this._insideAux;this._insideAux=e.loc==null;this._maybeAddAuxComment(this._insideAux&&!d);const h=(s=e.extra)==null?void 0:s.parenthesized;let m=h&&c.preserveFormat||h&&c.retainFunctionParens&&o==="FunctionExpression"||S(e,f,this.tokenContext,this.inForStatementInit,c.preserveFormat?this._boundGetRawIdentifier:undefined);if(!m&&h&&(i=e.leadingComments)!=null&&i.length&&e.leadingComments[0].type==="CommentBlock"){const t=f==null?void 0:f.type;switch(t){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(f.callee!==e)break;default:m=true}}let y=false;if(!m&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())){m=true;y=true}let T;let g;if(!m){t||(t=f&&this._noLineTerminatorAfterNode===f&&n.isLastChild(f,e));if(t){var x;if((x=e.trailingComments)!=null&&x.some(commentIsNewline)){if(l(e))m=true}else{T=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=e}}}if(m){this.tokenChar(40);if(y)this.indent();this._endsWithInnerRaw=false;if(this.inForStatementInit){g=true;this.inForStatementInit=false}T=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=null}this._lastCommentLine=0;this._printLeadingComments(e,f);const b=o==="Program"||o==="File"?null:e.loc;this.exactSource(b,u.bind(this,e,f));if(m){this._printTrailingComments(e,f);if(y){this.dedent();this.newline()}this.tokenChar(41);this._noLineTerminator=t;if(g)this.inForStatementInit=true}else if(t&&!this._noLineTerminator){this._noLineTerminator=true;this._printTrailingComments(e,f)}else{this._printTrailingComments(e,f,r)}this._currentNode=f;c.concise=p;this._insideAux=d;if(T!==undefined){this._noLineTerminatorAfterNode=T}this._endsWithInnerRaw=false}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e},0)}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e},0)}}getPossibleRaw(e){const t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r,s,n,i,a,o){if(!(e!=null&&e.length))return;if(r==null&&this.format.retainLines){var l;const t=(l=e[0].loc)==null?void 0:l.start.line;if(t!=null&&t!==this._buf.getCurrentLine()){r=true}}if(r)this.indent();const c={addNewlines:i,nextNodeStartLine:0};const p=s==null?void 0:s.bind(this);const u=e.length;for(let r=0;r<u;r++){const s=e[r];if(!s)continue;if(t)this._printNewline(r===0,c);this.print(s,undefined,o||0);a==null||a(s,r);if(p!=null){if(r<u-1)p(r,false);else if(n)p(r,true)}if(t){var f;if(!((f=s.trailingComments)!=null&&f.length)){this._lastCommentLine=0}if(r+1===u){this.newline(1)}else{var d;const t=e[r+1];c.nextNodeStartLine=((d=t.loc)==null?void 0:d.start.line)||0;this._printNewline(true,c)}}}if(r)this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;if(t)this.indent();this.print(e);if(t)this.dedent()}printBlock(e){const t=e.body;if(t.type!=="EmptyStatement"){this.space()}this.print(t)}_printTrailingComments(e,t,r){const{innerComments:s,trailingComments:n}=e;if(s!=null&&s.length){this._printComments(2,s,e,t,r)}if(n!=null&&n.length){this._printComments(2,n,e,t,r)}}_printLeadingComments(e,t){const r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var r;this.printInnerComments((r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=true;this._indentInnerComments=true}printInnerComments(e){const t=this._currentNode;const r=t.innerComments;if(!(r!=null&&r.length))return;const s=this.endsWith(32);const n=this._indentInnerComments;const i=this._printedComments.size;if(n)this.indent();this._printComments(1,r,t,undefined,undefined,e);if(s&&i!==this._printedComments.size){this.space()}if(n)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=false}printSequence(e,t,r,s){this.printJoin(e,true,t!=null?t:false,undefined,undefined,s,undefined,r)}printList(e,t,r,s,n,i){this.printJoin(e,r,s,n!=null?n:commaSeparator,t,undefined,i)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise){this.space();return}if(!e){return}const s=t.nextNodeStartLine;const n=this._lastCommentLine;if(s>0&&n>0){const e=s-n;if(e>=0){this.newline(e||1);return}}if(this._buf.hasContent()){this.newline(1)}}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&T.test(e.value)){return 2}if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(r&&r.start>t.start){return 2}}this._printedComments.add(e);if(!this.format.shouldPrintComment(e.value)){return 0}return 1}_printComment(e,t){const r=this._noLineTerminator;const s=e.type==="CommentBlock";const n=s&&t!==1&&!this._noLineTerminator;if(n&&this._buf.hasContent()&&t!==2){this.newline(1)}const i=this.getLastChar();if(i!==91&&i!==123&&i!==40){this.space()}let a;if(s){a=`/*${e.value}*/`;if(this.format.indent.adjustMultilineComment){var o;const t=(o=e.loc)==null?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise){a=a.replace(/\n(?!$)/g,`\n`)}else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines){e+=this._getIndent()}a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else if(!r){a=`//${e.value}`}else{a=`/*${e.value}*/`}if(this._endsWithDiv)this._space();if(this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1;this.source("start",e.loc);this._append(a,s);this._printSemicolonBeforeNextNode=r;this._printSemicolonBeforeNextToken=t}else{this.source("start",e.loc);this._append(a,s)}if(!s&&!r){this.newline(1,true)}if(n&&t!==3){this.newline(1)}}_printComments(e,t,r,s,n=0,i){const a=r.loc;const o=t.length;let l=!!a;const h=l?a.start.line:0;const m=l?a.end.line:0;let T=0;let S=0;const g=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const x=t[a];const b=this._shouldPrintComment(x,i);if(b===2){l=false;break}if(l&&x.loc&&b===1){const t=x.loc.start.line;const r=x.loc.end.line;if(e===0){let e=0;if(a===0){if(this._buf.hasContent()&&(x.type==="CommentLine"||t!==r)){e=S=1}}else{e=t-T}T=r;g(e);this._printComment(x,1);if(a+1===o){g(Math.max(h-T,S));T=h}}else if(e===1){const e=t-(a===0?h:T);T=r;g(e);this._printComment(x,1);if(a+1===o){g(Math.min(1,m-T));T=m}}else{const e=t-(a===0?m-n:T);T=r;g(e);this._printComment(x,1)}}else{l=false;if(b!==1){continue}if(o===1){const t=x.loc?x.loc.start.line===x.loc.end.line:!y.test(x.value);const n=t&&!p(r)&&!u(s)&&!f(s)&&!d(s);if(e===0){this._printComment(x,n&&r.type!=="ObjectExpression"||t&&c(s,{body:r})?1:0)}else if(n&&e===2){this._printComment(x,1)}else{this._printComment(x,0)}}else if(e===1&&!(r.type==="ObjectExpression"&&r.properties.length>1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody"){this._printComment(x,a===0?2:a===o-1?3:0)}else{this._printComment(x,0)}}}if(e===2&&l&&T){this._lastCommentLine=T}}}Object.assign(Printer.prototype,o);{Printer.prototype.Noop=function Noop(){}}var g=t["default"]=Printer;function commaSeparator(e,t){this.token(",",false,e);if(!t)this.space()}},4845:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(1377);var n=r(8579);class SourceMap{constructor(e,t){var r;this._map=void 0;this._rawMappings=void 0;this._sourceFileName=void 0;this._lastGenLine=0;this._lastSourceLine=0;this._lastSourceColumn=0;this._inputMap=void 0;const i=this._map=new s.GenMapping({sourceRoot:e.sourceRoot});this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/");this._rawMappings=undefined;if(e.inputSourceMap){this._inputMap=new n.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length){for(let e=0;e<t.length;e++){var a;(0,s.setSourceContent)(i,t[e],(a=this._inputMap.sourcesContent)==null?void 0:a[e])}}}if(typeof t==="string"&&!e.inputSourceMap){(0,s.setSourceContent)(i,this._sourceFileName,t)}else if(typeof t==="object"){for(const e of Object.keys(t)){(0,s.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}}}get(){return(0,s.toEncodedMap)(this._map)}getDecoded(){return(0,s.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,s.allMappings)(this._map))}mark(e,t,r,i,a,o){var l;this._rawMappings=undefined;let c;if(t!=null){if(this._inputMap){c=(0,n.originalPositionFor)(this._inputMap,{line:t,column:r});if(!c.name&&a){const e=(0,n.originalPositionFor)(this._inputMap,a);if(e.name){i=e.name}}}else{c={source:(o==null?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r}}}(0,s.maybeAddMapping)(this._map,{name:i,generated:e,source:(l=c)==null?void 0:l.source,original:c})}}t["default"]=SourceMap},1261:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenMap=void 0;var s=r(9175);const{traverseFast:n,VISITOR_KEYS:i}=s;class TokenMap{constructor(e,t,r){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=r;n(e,(e=>{const t=this._getTokensIndexesOfNode(e);if(t.length>0)this._nodesToTokenIndexes.set(e,t)}));this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=0;e<r.length;e++){const s=r[e];const n=this._tokens[s];if(t(n,s))return n}}return null}findLastIndex(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=r.length-1;e>=0;e--){const s=r[e];const n=this._tokens[s];if(t(n,s))return s}}return-1}findMatching(e,t,r=0){const s=this._nodesToTokenIndexes.get(e);if(s){let n=0;const i=r;if(i>1){const s=this._nodesOccurrencesCountCache.get(e);if(s&&s.test===t&&s.count<i){n=s.i+1;r-=s.count+1}}for(;n<s.length;n++){const a=this._tokens[s[n]];if(this.matchesOriginal(a,t)){if(r===0){if(i>0){this._nodesOccurrencesCountCache.set(e,{test:t,count:i,i:n})}return a}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return false;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const s=this._tokens[r[0]];if(s.start!==e.start)return false;return this.matchesOriginal(s,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const s=this._tokens[r[r.length-1]];if(s.end!==e.end)return false;return this.matchesOriginal(s,t)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];const{first:t,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1);let s=t;const n=childrenIterator(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"){n.next()}const i=[];for(const e of n){if(e==null)continue;if(e.start==null||e.end==null)continue;const t=this._findTokensOfNode(e,s,r);const n=t.first;for(let e=s;e<n;e++)i.push(e);s=t.last+1}for(let e=s;e<=r;e++)i.push(e);return i}_findTokensOfNode(e,t,r){const s=this._tokensCache.get(e);if(s)return s;const n=this._findFirstTokenOfNode(e.start,t,r);const i=this._findLastTokenOfNode(e.end,n,r);this._tokensCache.set(e,{first:n,last:i});return{first:n,last:i}}_findFirstTokenOfNode(e,t,r){while(t<=r){const s=r+t>>1;if(e<this._tokens[s].start){r=s-1}else if(e>this._tokens[s].start){t=s+1}else{return s}}return t}_findLastTokenOfNode(e,t,r){while(t<=r){const s=r+t>>1;if(e<this._tokens[s].end){r=s-1}else if(e>this._tokens[s].end){t=s+1}else{return s}}return r}}t.TokenMap=TokenMap;function*childrenIterator(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++){yield e.expressions[t-1];yield e.quasis[t]}return}const t=i[e.type];for(const r of t){const t=e[r];if(!t)continue;if(Array.isArray(t)){yield*t}else{yield t}}}},4506:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readCodePoint=readCodePoint;t.readInt=readInt;t.readStringContents=readStringContents;var r=function isDigit(e){return e>=48&&e<=57};const s={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const n={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,n,i){const a=r;const o=s;const l=n;let c="";let p=null;let u=r;const{length:f}=t;for(;;){if(r>=f){i.unterminated(a,o,l);c+=t.slice(u,r);break}const d=t.charCodeAt(r);if(isStringEnd(e,d,t,r)){c+=t.slice(u,r);break}if(d===92){c+=t.slice(u,r);const a=readEscapedChar(t,r,s,n,e==="template",i);if(a.ch===null&&!p){p={pos:r,lineStart:s,curLine:n}}else{c+=a.ch}({pos:r,lineStart:s,curLine:n}=a);u=r}else if(d===8232||d===8233){++r;++n;s=r}else if(d===10||d===13){if(e==="template"){c+=t.slice(u,r)+"\n";++r;if(d===13&&t.charCodeAt(r)===10){++r}++n;u=s=r}else{i.unterminated(a,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:p,lineStart:s,curLine:n,containsInvalid:!!p}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,n,i){const a=!n;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let n;({code:n,pos:t}=readHexChar(e,t,r,s,2,false,a,i));return res(n===null?null:String.fromCharCode(n))}case 117:{let n;({code:n,pos:t}=readCodePoint(e,t,r,s,a,i));return res(n===null?null:String.fromCodePoint(n))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(n){return res(null)}else{i.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const a=t-1;const o=/^[0-7]+/.exec(e.slice(a,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const p=e.charCodeAt(t);if(l!=="0"||p===56||p===57){if(n){return res(null)}else{i.strictNumericEscape(a,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,n,i,a,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,n,i,false,o,!a));if(c===null){if(a){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,i,a,o,l,c,p,u,f){const d=t;const h=o===16?s.hex:s.decBinOct;const m=o===16?n.hex:o===10?n.dec:o===8?n.oct:n.bin;let y=false;let T=0;for(let s=0,n=l==null?Infinity:l;s<n;++s){const s=e.charCodeAt(t);let n;if(s===95&&p!=="bail"){const r=e.charCodeAt(t-1);const s=e.charCodeAt(t+1);if(!p){if(f)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,i,a)}else if(Number.isNaN(s)||!m(s)||h.has(r)||h.has(s)){if(f)return{n:null,pos:t};u.unexpectedNumericSeparator(t,i,a)}++t;continue}if(s>=97){n=s-97+10}else if(s>=65){n=s-65+10}else if(r(s)){n=s-48}else{n=Infinity}if(n>=o){if(n<=9&&f){return{n:null,pos:t}}else if(n<=9&&u.invalidDigit(t,i,a,o)){n=0}else if(c){n=0;y=true}else{break}}++t;T=T*o+n}if(t===d||l!=null&&t-d!==l||y){return{n:null,pos:t}}return{n:T,pos:t}}function readCodePoint(e,t,r,s,n,i){const a=e.charCodeAt(t);let o;if(a===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,n,i));++t;if(o!==null&&o>1114111){if(n){i.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,n,i))}return{code:o,pos:t}}},417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const n=new RegExp("["+r+"]");const i=new RegExp("["+r+s+"]");r=s=null;const 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,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const 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,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,n=t.length;s<n;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,a)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,a)||isInAstralSet(e,o)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if((s&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){s=65536+((s&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(s)){return false}}else if(!isIdentifierChar(s)){return false}}return!t}},8008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return n.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return n.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return n.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return n.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return n.isStrictReservedWord}});var s=r(417);var n=r(7291)},7291:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(r.keyword);const n=new Set(r.strict);const i=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||n.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},1243:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;r[s]=e[s]}return r}class Position{constructor(e,t,r){this.line=void 0;this.column=void 0;this.index=void 0;this.line=e;this.column=t;this.index=r}}class SourceLocation{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 createPositionWithColumnOffset(e,t){const{line:r,column:s,index:n}=e;return new Position(r,s+t,n+t)}const r="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var s={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:r},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:r}};const n={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"};const toNodeDescription=e=>e.type==="UpdateExpression"?n.UpdateExpression[`${e.prefix}`]:n[e.type];var i={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:`\`import()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};var a={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."};const o=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var l={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 ${toNodeDescription({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.'};const c=["message"];function defineHidden(e,t,r){Object.defineProperty(e,t,{enumerable:false,configurable:true,value:r})}function toParseErrorConstructor({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){const n=r==="MissingPlugin"||r==="MissingOneOfPlugins";{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(e[r]){r=e[r]}}return function constructor(i,a){const o=new SyntaxError;o.code=t;o.reasonCode=r;o.loc=i;o.pos=i.index;o.syntaxPlugin=s;if(n){o.missingPlugin=a.missingPlugin}defineHidden(o,"clone",(function clone(e={}){var t;const{line:r,column:s,index:n}=(t=e.loc)!=null?t:i;return constructor(new Position(r,s,n),Object.assign({},a,e.details))}));defineHidden(o,"details",a);Object.defineProperty(o,"message",{configurable:true,get(){const t=`${e(a)} (${i.line}:${i.column})`;this.message=t;return t},set(e){Object.defineProperty(this,"message",{value:e,writable:true})}});return o}}function ParseErrorEnum(e,t){if(Array.isArray(e)){return t=>ParseErrorEnum(t,e[0])}const r={};for(const s of Object.keys(e)){const n=e[s];const i=typeof n==="string"?{message:()=>n}:typeof n==="function"?{message:n}:n,{message:a}=i,o=_objectWithoutPropertiesLoose(i,c);const l=typeof a==="string"?()=>a:a;r[s]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}const p=Object.assign({},ParseErrorEnum(s),ParseErrorEnum(i),ParseErrorEnum(a),ParseErrorEnum`pipelineOperator`(l));const{defineProperty:u}=Object;const toUnenumerable=(e,t)=>{if(e){u(e,t,{enumerable:false,value:e[t]})}};function toESTreeLocation(e){toUnenumerable(e.loc.start,"index");toUnenumerable(e.loc.end,"index");return e}var estree=e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());if(this.options.tokens){e.tokens=e.tokens.map(toESTreeLocation)}return e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const s=this.estreeParseLiteral(r);s.regex={pattern:e,flags:t};return s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);r.bigint=String(r.value||e);return r}parseDecimalLiteral(e){const t=null;const r=this.estreeParseLiteral(t);r.decimal=String(r.value||e);return r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value;t.type="Literal";t.raw=t.extra.raw;t.value=t.extra.expressionValue;const r=e;r.type="ExpressionStatement";r.expression=t;r.directive=t.extra.rawValue;delete t.extra;return r}initFunction(e,t){super.initFunction(e,t);e.expression=false}checkDeclaration(e){if(e!=null&&this.isObjectProperty(e)){this.checkDeclaration(e.value)}else{super.checkDeclaration(e)}}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,r,s,n){super.parseBlockBody(e,t,r,s,n);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body);delete e.directives}pushClassMethod(e,t,r,s,n,i){this.parseMethod(t,r,s,n,i,"ClassMethod",true);if(t.typeParameters){t.value.typeParameters=t.typeParameters;delete t.typeParameters}e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();{if(!this.getPluginOption("estree","classFeatures")){return e}}return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);e=e;delete e.id;e.name=t;e.type="PrivateIdentifier";return e}isPrivateName(e){{if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(e)}}return e.type==="PrivateIdentifier"}getPrivateNameSV(e){{if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(e)}}return e.name}parseLiteral(e,t){const r=super.parseLiteral(e,t);r.raw=r.extra.raw;delete r.extra;return r}parseFunctionBody(e,t,r=false){super.parseFunctionBody(e,t,r);e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,r,s,n,i,a=false){let o=this.startNode();o.kind=e.kind;o=super.parseMethod(o,t,r,s,n,i,a);o.type="FunctionExpression";delete o.kind;e.value=o;if(i==="ClassPrivateMethod"){e.computed=false}return this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){if(e.type==="Literal")return e.value==="constructor";return super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}t.type="PropertyDefinition";return t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}t.type="PropertyDefinition";t.computed=false;return t}parseObjectMethod(e,t,r,s,n){const i=super.parseObjectMethod(e,t,r,s,n);if(i){i.type="Property";if(i.kind==="method"){i.kind="init"}i.shorthand=false}return i}parseObjectProperty(e,t,r,s){const n=super.parseObjectProperty(e,t,r,s);if(n){n.kind="init";n.type="Property"}return n}isValidLVal(e,t,r){return e==="Property"?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){if(e!=null&&this.isObjectProperty(e)){return this.isAssignable(e.value,t)}return super.isAssignable(e,t)}toAssignable(e,t=false){if(e!=null&&this.isObjectProperty(e)){const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t)}else{super.toAssignable(e,t)}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="Property"&&(e.kind==="get"||e.kind==="set")){this.raise(p.PatternHasAccessor,e.key)}else if(e.type==="Property"&&e.method){this.raise(p.PatternHasMethod,e.key)}else{super.toAssignableObjectExpressionProp(e,t,r)}}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);if(r.callee.type==="Import"){var s,n;r.type="ImportExpression";r.source=r.arguments[0];r.options=(s=r.arguments[1])!=null?s:null;r.attributes=(n=r.arguments[1])!=null?n:null;delete r.arguments;delete r.callee}return r}toReferencedArguments(e){if(e.type==="ImportExpression"){return}super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc;const s=super.parseExport(e,t);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":if(s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"){s.type="ExportAllDeclaration";s.exported=s.specifiers[0].exported;delete s.specifiers}case"ExportDefaultDeclaration":{var n;const{declaration:e}=s;if((e==null?void 0:e.type)==="ClassDeclaration"&&((n=e.decorators)==null?void 0:n.length)>0&&e.start===s.start){this.resetStartLocation(s,r)}}break}return s}parseSubscript(e,t,r,s){const n=super.parseSubscript(e,t,r,s);if(s.optionalChainMember){if(n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression"){n.type=n.type.substring(8)}if(s.stop){const e=this.startNodeAtNode(n);e.expression=n;return this.finishNode(e,"ChainExpression")}}else if(n.type==="MemberExpression"||n.type==="CallExpression"){n.optional=false}return n}isOptionalMemberExpression(e){if(e.type==="ChainExpression"){return e.expression.type==="MemberExpression"}return super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){if(e.type==="ChainExpression"){e=e.expression}return super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,t,r){return toESTreeLocation(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t);toESTreeLocation(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t);toESTreeLocation(e)}};class TokContext{constructor(e,t){this.token=void 0;this.preserveSpace=void 0;this.token=e;this.preserveSpace=!!t}}const f={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",true)};{f.template=new TokContext("`",true)}const d=true;const h=true;const m=true;const y=true;const T=true;const S=true;class ExportedTokenType{constructor(e,t={}){this.label=void 0;this.keyword=void 0;this.beforeExpr=void 0;this.startsExpr=void 0;this.rightAssociative=void 0;this.isLoop=void 0;this.isAssign=void 0;this.prefix=void 0;this.postfix=void 0;this.binop=void 0;this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.rightAssociative=!!t.rightAssociative;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop!=null?t.binop:null;{this.updateContext=null}}}const g=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);g.set(e,r);return r}function createBinop(e,t){return createToken(e,{beforeExpr:d,binop:t})}let x=-1;const b=[];const E=[];const P=[];const A=[];const v=[];const I=[];function createToken(e,t={}){var r,s,n,i;++x;E.push(e);P.push((r=t.binop)!=null?r:-1);A.push((s=t.beforeExpr)!=null?s:false);v.push((n=t.startsExpr)!=null?n:false);I.push((i=t.prefix)!=null?i:false);b.push(new ExportedTokenType(e,t));return x}function createKeywordLike(e,t={}){var r,s,n,i;++x;g.set(e,x);E.push(e);P.push((r=t.binop)!=null?r:-1);A.push((s=t.beforeExpr)!=null?s:false);v.push((n=t.startsExpr)!=null?n:false);I.push((i=t.prefix)!=null?i:false);b.push(new ExportedTokenType("name",t));return x}const C={bracketL:createToken("[",{beforeExpr:d,startsExpr:h}),bracketHashL:createToken("#[",{beforeExpr:d,startsExpr:h}),bracketBarL:createToken("[|",{beforeExpr:d,startsExpr:h}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:d,startsExpr:h}),braceBarL:createToken("{|",{beforeExpr:d,startsExpr:h}),braceHashL:createToken("#{",{beforeExpr:d,startsExpr:h}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:d,startsExpr:h}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:d}),semi:createToken(";",{beforeExpr:d}),colon:createToken(":",{beforeExpr:d}),doubleColon:createToken("::",{beforeExpr:d}),dot:createToken("."),question:createToken("?",{beforeExpr:d}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:d}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:d}),backQuote:createToken("`",{startsExpr:h}),dollarBraceL:createToken("${",{beforeExpr:d,startsExpr:h}),templateTail:createToken("...`",{startsExpr:h}),templateNonTail:createToken("...${",{beforeExpr:d,startsExpr:h}),at:createToken("@"),hash:createToken("#",{startsExpr:h}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:d,isAssign:y}),assign:createToken("_=",{beforeExpr:d,isAssign:y}),slashAssign:createToken("_=",{beforeExpr:d,isAssign:y}),xorAssign:createToken("_=",{beforeExpr:d,isAssign:y}),moduloAssign:createToken("_=",{beforeExpr:d,isAssign:y}),incDec:createToken("++/--",{prefix:T,postfix:S,startsExpr:h}),bang:createToken("!",{beforeExpr:d,prefix:T,startsExpr:h}),tilde:createToken("~",{beforeExpr:d,prefix:T,startsExpr:h}),doubleCaret:createToken("^^",{startsExpr:h}),doubleAt:createToken("@@",{startsExpr:h}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:d,binop:9,prefix:T,startsExpr:h}),modulo:createToken("%",{binop:10,startsExpr:h}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:d,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:d,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:d,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:d}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:d}),_else:createKeyword("else",{beforeExpr:d}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:h}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:d}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:d,prefix:T,startsExpr:h}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:d,startsExpr:h}),_this:createKeyword("this",{startsExpr:h}),_super:createKeyword("super",{startsExpr:h}),_class:createKeyword("class",{startsExpr:h}),_extends:createKeyword("extends",{beforeExpr:d}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:h}),_null:createKeyword("null",{startsExpr:h}),_true:createKeyword("true",{startsExpr:h}),_false:createKeyword("false",{startsExpr:h}),_typeof:createKeyword("typeof",{beforeExpr:d,prefix:T,startsExpr:h}),_void:createKeyword("void",{beforeExpr:d,prefix:T,startsExpr:h}),_delete:createKeyword("delete",{beforeExpr:d,prefix:T,startsExpr:h}),_do:createKeyword("do",{isLoop:m,beforeExpr:d}),_for:createKeyword("for",{isLoop:m}),_while:createKeyword("while",{isLoop:m}),_as:createKeywordLike("as",{startsExpr:h}),_assert:createKeywordLike("assert",{startsExpr:h}),_async:createKeywordLike("async",{startsExpr:h}),_await:createKeywordLike("await",{startsExpr:h}),_defer:createKeywordLike("defer",{startsExpr:h}),_from:createKeywordLike("from",{startsExpr:h}),_get:createKeywordLike("get",{startsExpr:h}),_let:createKeywordLike("let",{startsExpr:h}),_meta:createKeywordLike("meta",{startsExpr:h}),_of:createKeywordLike("of",{startsExpr:h}),_sent:createKeywordLike("sent",{startsExpr:h}),_set:createKeywordLike("set",{startsExpr:h}),_source:createKeywordLike("source",{startsExpr:h}),_static:createKeywordLike("static",{startsExpr:h}),_using:createKeywordLike("using",{startsExpr:h}),_yield:createKeywordLike("yield",{startsExpr:h}),_asserts:createKeywordLike("asserts",{startsExpr:h}),_checks:createKeywordLike("checks",{startsExpr:h}),_exports:createKeywordLike("exports",{startsExpr:h}),_global:createKeywordLike("global",{startsExpr:h}),_implements:createKeywordLike("implements",{startsExpr:h}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:h}),_infer:createKeywordLike("infer",{startsExpr:h}),_is:createKeywordLike("is",{startsExpr:h}),_mixins:createKeywordLike("mixins",{startsExpr:h}),_proto:createKeywordLike("proto",{startsExpr:h}),_require:createKeywordLike("require",{startsExpr:h}),_satisfies:createKeywordLike("satisfies",{startsExpr:h}),_keyof:createKeywordLike("keyof",{startsExpr:h}),_readonly:createKeywordLike("readonly",{startsExpr:h}),_unique:createKeywordLike("unique",{startsExpr:h}),_abstract:createKeywordLike("abstract",{startsExpr:h}),_declare:createKeywordLike("declare",{startsExpr:h}),_enum:createKeywordLike("enum",{startsExpr:h}),_module:createKeywordLike("module",{startsExpr:h}),_namespace:createKeywordLike("namespace",{startsExpr:h}),_interface:createKeywordLike("interface",{startsExpr:h}),_type:createKeywordLike("type",{startsExpr:h}),_opaque:createKeywordLike("opaque",{startsExpr:h}),name:createToken("name",{startsExpr:h}),placeholder:createToken("%%",{startsExpr:true}),string:createToken("string",{startsExpr:h}),num:createToken("num",{startsExpr:h}),bigint:createToken("bigint",{startsExpr:h}),decimal:createToken("decimal",{startsExpr:h}),regexp:createToken("regexp",{startsExpr:h}),privateName:createToken("#name",{startsExpr:h}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:true}),jsxTagStart:createToken("jsxTagStart",{startsExpr:true}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenComesBeforeExpression(e){return A[e]}function tokenCanStartExpression(e){return v[e]}function tokenIsAssignment(e){return e>=29&&e<=33}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsLoop(e){return e>=90&&e<=92}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsOperator(e){return e>=39&&e<=59}function tokenIsPostfix(e){return e===34}function tokenIsPrefix(e){return I[e]}function tokenIsTSTypeOperator(e){return e>=121&&e<=123}function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}function tokenLabelName(e){return E[e]}function tokenOperatorPrecedence(e){return P[e]}function tokenIsRightAssociative(e){return e===57}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return b[e]}{b[8].updateContext=e=>{e.pop()};b[5].updateContext=b[7].updateContext=b[23].updateContext=e=>{e.push(f.brace)};b[22].updateContext=e=>{if(e[e.length-1]===f.template){e.pop()}else{e.push(f.template)}};b[143].updateContext=e=>{e.push(f.j_expr,f.j_oTag)}}let w="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let O="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const N=new RegExp("["+w+"]");const k=new RegExp("["+w+O+"]");w=O=null;const D=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const L=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,n=t.length;s<n;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&N.test(String.fromCharCode(e))}return isInAstralSet(e,D)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&k.test(String.fromCharCode(e))}return isInAstralSet(e,D)||isInAstralSet(e,L)}const M={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const _=new Set(M.keyword);const B=new Set(M.strict);const F=new Set(M.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||B.has(e)}function isStrictBindOnlyReservedWord(e){return F.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return _.has(e)}function isIteratorStart(e,t,r){return e===64&&t===64&&isIdentifierStart(r)}const j=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"]);function canBeReservedWord(e){return j.has(e)}class Scope{constructor(e){this.flags=0;this.names=new Map;this.firstLexicalName="";this.flags=e}}class ScopeHandler{constructor(e,t){this.parser=void 0;this.scopeStack=[];this.inModule=void 0;this.undefinedExports=new Map;this.parser=e;this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&128){return true}if(t&(387|64)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){const e=this.scopeStack.pop();return e.flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(2|128)||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let n=s.names.get(e)||0;if(t&16){n=n|4}else{if(!s.firstLexicalName){s.firstLexicalName=e}n=n|2}s.names.set(e,n);if(t&8){this.maybeExportDefined(s,e)}}else if(t&4){for(let n=this.scopeStack.length-1;n>=0;--n){s=this.scopeStack[n];this.checkRedeclarationInScope(s,e,t,r);s.names.set(e,(s.names.get(e)||0)|1);this.maybeExportDefined(s,e);if(s.flags&387)break}}if(this.parser.inModule&&s.flags&1){this.undefinedExports.delete(e)}}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1){this.undefinedExports.delete(t)}}checkRedeclarationInScope(e,t,r,s){if(this.isRedeclaredInScope(e,t,r)){this.parser.raise(p.VarRedeclaration,s,{identifierName:t})}}isRedeclaredInScope(e,t,r){if(!(r&1))return false;if(r&8){return e.names.has(t)}const s=e.names.get(t);if(r&16){return(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0}return(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){const{name:t}=e;const r=this.scopeStack[0];if(!r.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--){const{flags:t}=this.scopeStack[e];if(t&387){return t}}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(387|64)&&!(t&4)){return t}}}}class FlowScope extends Scope{constructor(...e){super(...e);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e);s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return true;if(r&2048&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(r&4)>0||(r&2)>0}return false}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name)){super.checkLocalExport(e)}}}class BaseParser{constructor(){this.sawUnambiguousESM=false;this.ambiguousScriptDifferentAst=false}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string"){return this.plugins.has(e)}else{const[t,r]=e;if(!this.hasPlugin(t)){return false}const s=this.plugins.get(t);for(const e of Object.keys(r)){if((s==null?void 0:s[e])!==r[e]){return false}}return true}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function setTrailingComments(e,t){if(e.trailingComments===undefined){e.trailingComments=t}else{e.trailingComments.unshift(...t)}}function setLeadingComments(e,t){if(e.leadingComments===undefined){e.leadingComments=t}else{e.leadingComments.unshift(...t)}}function setInnerComments(e,t){if(e.innerComments===undefined){e.innerComments=t}else{e.innerComments.unshift(...t)}}function adjustInnerComments(e,t,r){let s=null;let n=t.length;while(s===null&&n>0){s=t[--n]}if(s===null||s.start>r.start){setInnerComments(e,r.comments)}else{setTrailingComments(s,r.comments)}}class CommentsParser extends BaseParser{addComment(e){if(this.filename)e.loc.filename=this.filename;const{commentsLen:t}=this.state;if(this.comments.length!==t){this.comments.length=t}this.comments.push(e);this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state;const r=t.length;if(r===0)return;let s=r-1;const n=t[s];if(n.start===e.end){n.leadingNode=e;s--}const{start:i}=e;for(;s>=0;s--){const r=t[s];const n=r.end;if(n>i){r.containingNode=e;this.finalizeComment(r);t.splice(s,1)}else{if(n===i){r.trailingNode=e}break}}}finalizeComment(e){const{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null){setTrailingComments(e.leadingNode,t)}if(e.trailingNode!==null){setLeadingComments(e.trailingNode,t)}}else{const{containingNode:r,start:s}=e;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44){switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(r,r.specifiers,e);break;default:{setInnerComments(r,t)}}}else{setInnerComments(r,t)}}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--){this.finalizeComment(e[t])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;const s=t[r-1];if(s.leadingNode===e){s.leadingNode=null}}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;if(t[r-1].trailingNode===e){t[r-1].trailingNode=null}else if(r>=2&&t[r-2].trailingNode===e){t[r-2].trailingNode=null}}takeSurroundingComments(e,t,r){const{commentStack:s}=this.state;const n=s.length;if(n===0)return;let i=n-1;for(;i>=0;i--){const n=s[i];const a=n.end;const o=n.start;if(o===r){n.leadingNode=e}else if(a===t){n.trailingNode=e}else if(a<t){break}}}}const R=/\r\n|[\r\n\u2028\u2029]/;const K=new RegExp(R.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return true;default:return false}}function hasNewLine(e,t,r){for(let s=t;s<r;s++){if(isNewLine(e.charCodeAt(s))){return true}}return false}const U=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const V=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(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 true;default:return false}}class State{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=[f.brace];this.firstInvalidTemplateEscapePos=null;this.strictErrors=new Map;this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:n}){this.strict=e===false?false:e===true?true:t==="module";this.startIndex=r;this.curLine=s;this.lineStart=-n;this.startLoc=this.endLoc=new Position(s,n,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;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;return e}}var W=function isDigit(e){return e>=48&&e<=57};const q={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const J={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,n,i){const a=r;const o=s;const l=n;let c="";let p=null;let u=r;const{length:f}=t;for(;;){if(r>=f){i.unterminated(a,o,l);c+=t.slice(u,r);break}const d=t.charCodeAt(r);if(isStringEnd(e,d,t,r)){c+=t.slice(u,r);break}if(d===92){c+=t.slice(u,r);const a=readEscapedChar(t,r,s,n,e==="template",i);if(a.ch===null&&!p){p={pos:r,lineStart:s,curLine:n}}else{c+=a.ch}({pos:r,lineStart:s,curLine:n}=a);u=r}else if(d===8232||d===8233){++r;++n;s=r}else if(d===10||d===13){if(e==="template"){c+=t.slice(u,r)+"\n";++r;if(d===13&&t.charCodeAt(r)===10){++r}++n;u=s=r}else{i.unterminated(a,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:p,lineStart:s,curLine:n,containsInvalid:!!p}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,n,i){const a=!n;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let n;({code:n,pos:t}=readHexChar(e,t,r,s,2,false,a,i));return res(n===null?null:String.fromCharCode(n))}case 117:{let n;({code:n,pos:t}=readCodePoint(e,t,r,s,a,i));return res(n===null?null:String.fromCodePoint(n))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(n){return res(null)}else{i.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const a=t-1;const o=/^[0-7]+/.exec(e.slice(a,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const p=e.charCodeAt(t);if(l!=="0"||p===56||p===57){if(n){return res(null)}else{i.strictNumericEscape(a,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,n,i,a,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,n,i,false,o,!a));if(c===null){if(a){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,r,s,n,i,a,o,l,c){const p=t;const u=n===16?q.hex:q.decBinOct;const f=n===16?J.hex:n===10?J.dec:n===8?J.oct:J.bin;let d=false;let h=0;for(let p=0,m=i==null?Infinity:i;p<m;++p){const i=e.charCodeAt(t);let p;if(i===95&&o!=="bail"){const n=e.charCodeAt(t-1);const i=e.charCodeAt(t+1);if(!o){if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(i)||!f(i)||u.has(n)||u.has(i)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(i>=97){p=i-97+10}else if(i>=65){p=i-65+10}else if(W(i)){p=i-48}else{p=Infinity}if(p>=n){if(p<=9&&c){return{n:null,pos:t}}else if(p<=9&&l.invalidDigit(t,r,s,n)){p=0}else if(a){p=0;d=true}else{break}}++t;h=h*n+p}if(t===p||i!=null&&t-p!==i||d){return{n:null,pos:t}}return{n:h,pos:t}}function readCodePoint(e,t,r,s,n,i){const a=e.charCodeAt(t);let o;if(a===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,n,i));++t;if(o!==null&&o>1114111){if(n){i.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,n,i))}return{code:o,pos:t}}function buildPosition(e,t,r){return new Position(r,e-t,e)}const X=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const 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 SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,t){super();this.isLookahead=void 0;this.tokens=[];this.errorHandlers_readInt={invalidDigit:(e,t,r,s)=>{if(!this.options.errorRecovery)return false;this.raise(p.InvalidDigit,buildPosition(e,t,r),{radix:s});return true},numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)};this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)});this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,buildPosition(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedString,buildPosition(e-1,t,r))}});this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedTemplate,buildPosition(e,t,r))}});this.state=new State;this.state.init(e);this.input=t;this.length=t.length;this.comments=[];this.isLookahead=false}pushToken(e){this.tokens.length=this.state.tokensLength;this.tokens.push(e);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.options.tokens){this.pushToken(new Token(this.state))}this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(e){if(this.match(e)){this.next();return true}else{return false}}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(){const e=this.state;this.state=this.createLookaheadState(e);this.isLookahead=true;this.nextToken();this.isLookahead=false;const t=this.state;this.state=e;return t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){U.lastIndex=e;return U.test(this.input)?U.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){V.lastIndex=e;return V.test(this.input)?V.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){const r=this.input.charCodeAt(e);if((r&64512)===56320){t=65536+((t&1023)<<10)+(r&1023)}}return t}setStrict(e){this.state.strict=e;if(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;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();const r=this.state.pos;const s=this.input.indexOf(e,r+2);if(s===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}this.state.pos=s+e.length;K.lastIndex=r+2;while(K.test(this.input)&&K.lastIndex<=s){++this.state.curLine;this.state.lineStart=K.lastIndex}if(this.isLookahead)return;const n={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new SourceLocation(t,this.state.curPosition())};if(this.options.tokens)this.pushToken(n);return n}skipLineComment(e){const t=this.state.pos;let r;if(!this.isLookahead)r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length){while(!isNewLine(s)&&++this.state.pos<this.length){s=this.input.charCodeAt(this.state.pos)}}if(this.isLookahead)return;const n=this.state.pos;const i=this.input.slice(t+e,n);const a={type:"CommentLine",value:i,start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(n),loc:new SourceLocation(r,this.state.curPosition())};if(this.options.tokens)this.pushToken(a);return a}skipSpace(){const e=this.state.pos;const t=[];e:while(this.state.pos<this.length){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10){++this.state.pos}case 10:case 8232:case 8233:++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}break}case 47:{const e=this.skipLineComment(2);if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}break}default:break e}break;default:if(isWhitespace(r)){++this.state.pos}else if(r===45&&!this.inModule&&this.options.annexB){const r=this.state.pos;if(this.input.charCodeAt(r+1)===45&&this.input.charCodeAt(r+2)===62&&(e===0||this.state.lineStart>e)){const e=this.skipLineComment(3);if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}}else{break e}}else if(r===60&&!this.inModule&&this.options.annexB){const e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){const e=this.skipLineComment(4);if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}}else{break e}}else{break e}}}if(t.length>0){const r=this.state.pos;const s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos;this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e;this.state.value=t;if(!this.isLookahead){this.updateContext(r)}}replaceToken(e){this.state.type=e;this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const e=this.state.pos+1;const t=this.codePointAtPos(e);if(t>=48&&t<=57){throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition())}if(t===123||t===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")==="bar"){throw this.raise(t===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;if(t===123){this.finishToken(7)}else{this.finishToken(1)}}else if(isIdentifierStart(t)){++this.state.pos;this.finishToken(139,this.readWord1(t))}else if(t===92){++this.state.pos;this.finishToken(139,this.readWord1())}else{this.finishOp(27,1)}}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(true);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(21)}else{++this.state.pos;this.finishToken(16)}}readToken_slash(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(31,2)}else{this.finishOp(56,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return false;const t=this.state.pos;this.state.pos+=1;while(!isNewLine(e)&&++this.state.pos<this.length){e=this.input.charCodeAt(this.state.pos)}const r=this.input.slice(t+2,this.state.pos);this.finishToken(28,r);return true}readToken_mult_modulo(e){let t=e===42?55:54;let r=1;let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===42){r++;s=this.input.charCodeAt(this.state.pos+2);t=57}if(s===61&&!this.state.inType){r++;t=e===37?33:30}this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61){this.finishOp(30,3)}else{this.finishOp(e===124?41:42,2)}return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType){this.finishOp(32,2)}else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);const e=this.input.codePointAt(this.state.pos);if(e===94){this.unexpected()}}else{this.finishOp(44,1)}}readToken_atSign(){const e=this.input.charCodeAt(this.state.pos+1);if(e===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])){this.finishOp(38,2)}else{this.finishOp(26,1)}}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61){this.finishOp(30,2)}else{this.finishOp(53,1)}}readToken_lt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===62){const t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2;this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1);const t=this.input.charCodeAt(this.state.pos+2);if(e===63){if(t===61){this.finishOp(30,3)}else{this.finishOp(40,2)}}else if(e===46&&!(t>=48&&t<=57)){this.state.pos+=2;this.finishToken(18)}else{++this.state.pos;this.finishToken(17)}}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(10);return;case 41:++this.state.pos;this.finishToken(11);return;case 59:++this.state.pos;this.finishToken(13);return;case 44:++this.state.pos;this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(2)}else{++this.state.pos;this.finishToken(0)}return;case 93:++this.state.pos;this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.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:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(15,2)}else{++this.state.pos;this.finishToken(14)}return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);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(isIdentifierStart(e)){this.readWord(e);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t;this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc;const t=this.state.start+1;let r,s;let{pos:n}=this.state;for(;;++n){if(n>=this.length){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}const t=this.input.charCodeAt(n);if(isNewLine(t)){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}if(r){r=false}else{if(t===91){s=true}else if(t===93&&s){s=false}else if(t===47&&!s){break}r=t===92}}const i=this.input.slice(t,n);++n;let a="";const nextPos=()=>createPositionWithColumnOffset(e,n+2-t);while(n<this.length){const e=this.codePointAtPos(n);const t=String.fromCharCode(e);if(X.has(e)){if(e===118){if(a.includes("u")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}else if(e===117){if(a.includes("v")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}if(a.includes(t)){this.raise(p.DuplicateRegExpFlags,nextPos())}}else if(isIdentifierChar(e)||e===92){this.raise(p.MalformedRegExpFlags,nextPos())}else{break}++n;a+=t}this.state.pos=n;this.finishToken(138,{pattern:i,flags:a})}readInt(e,t,r=false,s=true){const{n:n,pos:i}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,s,this.errorHandlers_readInt,false);this.state.pos=i;return n}readRadixNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;this.state.pos+=2;const n=this.readInt(e);if(n==null){this.raise(p.InvalidDigit,createPositionWithColumnOffset(r,2),{radix:e})}const i=this.input.charCodeAt(this.state.pos);if(i===110){++this.state.pos;s=true}else if(i===109){throw this.raise(p.InvalidDecimal,r)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,n)}readNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;let n=false;let i=false;let a=false;if(!e&&this.readInt(10)===null){this.raise(p.InvalidNumber,this.state.curPosition())}const o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){const e=this.input.slice(t,this.state.pos);this.recordStrictModeErrors(p.StrictOctalLiteral,r);if(!this.state.strict){const t=e.indexOf("_");if(t>0){this.raise(p.ZeroDigitNumericSeparator,createPositionWithColumnOffset(r,t))}}a=o&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!a){++this.state.pos;this.readInt(10);s=true;l=this.input.charCodeAt(this.state.pos)}if((l===69||l===101)&&!a){l=this.input.charCodeAt(++this.state.pos);if(l===43||l===45){++this.state.pos}if(this.readInt(10)===null){this.raise(p.InvalidOrMissingExponent,r)}s=true;i=true;l=this.input.charCodeAt(this.state.pos)}if(l===110){if(s||o){this.raise(p.InvalidBigIntLiteral,r)}++this.state.pos;n=true}if(l===109){this.expectPlugin("decimal",this.state.curPosition());if(i||o){this.raise(p.InvalidDecimal,r)}++this.state.pos;var c=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}const f=a?parseInt(u,8):parseFloat(u);this.finishToken(135,f)}readCodePoint(e){const{code:t,pos:r}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);this.state.pos=r;return t}readString(e){const{str:t,pos:r,curLine:s,lineStart:n}=readStringContents(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1;this.state.lineStart=n;this.state.curLine=s;this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8)){this.unexpected(null,8)}this.state.pos--;this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos];const{str:t,firstInvalidLoc:r,pos:s,curLine:n,lineStart:i}=readStringContents("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=i;this.state.curLine=n;if(r){this.state.firstInvalidTemplateEscapePos=new Position(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))}if(this.input.codePointAt(s)===96){this.finishToken(24,r?null:e+t+"`")}else{this.state.pos++;this.finishToken(25,r?null:e+t+"${")}}recordStrictModeErrors(e,t){const r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r)){this.raise(e,t)}else{this.state.strictErrors.set(r,[e,t])}}readWord1(e){this.state.containsEsc=false;let t="";const r=this.state.pos;let s=this.state.pos;if(e!==undefined){this.state.pos+=e<=65535?1:2}while(this.state.pos<this.length){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e)){this.state.pos+=e<=65535?1:2}else if(e===92){this.state.containsEsc=true;t+=this.input.slice(s,this.state.pos);const e=this.state.curPosition();const n=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(p.MissingUnicodeEscape,this.state.curPosition());s=this.state.pos-1;continue}++this.state.pos;const i=this.readCodePoint(true);if(i!==null){if(!n(i)){this.raise(p.EscapedCharNotAnIdentifier,e)}t+=String.fromCodePoint(i)}s=this.state.pos}else{break}}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e);const r=g.get(t);if(r!==undefined){this.finishToken(r,tokenLabelName(r))}else{this.finishToken(132,t)}}checkKeywordEscapes(){const{type:e}=this.state;if(tokenIsKeyword(e)&&this.state.containsEsc){this.raise(p.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}}raise(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const n=e(s,r);if(!this.options.errorRecovery)throw n;if(!this.isLookahead)this.state.errors.push(n);return n}raiseOverwrite(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const n=s.index;const i=this.state.errors;for(let t=i.length-1;t>=0;t--){const a=i[t];if(a.loc.index===n){return i[t]=e(s,r)}if(a.loc.index<n)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(p.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?tokenLabelName(t):null})}expectPlugin(e,t){if(this.hasPlugin(e)){return true}throw this.raise(p.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e)))){throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}}errorBuilder(e){return(t,r,s)=>{this.raise(e,buildPosition(t,r,s))}}}class ClassScope{constructor(){this.privateNames=new Set;this.loneAccessors=new Map;this.undefinedPrivateNames=new Map}}class ClassScopeHandler{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 ClassScope)}exit(){const e=this.stack.pop();const t=this.current();for(const[r,s]of Array.from(e.undefinedPrivateNames)){if(t){if(!t.undefinedPrivateNames.has(r)){t.undefinedPrivateNames.set(r,s)}}else{this.parser.raise(p.InvalidPrivateFieldResolution,s,{identifierName:r})}}}declarePrivateName(e,t,r){const{privateNames:s,loneAccessors:n,undefinedPrivateNames:i}=this.current();let a=s.has(e);if(t&3){const r=a&&n.get(e);if(r){const s=r&4;const i=t&4;const o=r&3;const l=t&3;a=o===l||s!==i;if(!a)n.delete(e)}else if(!a){n.set(e,t)}}if(a){this.parser.raise(p.PrivateNameRedeclaration,r,{identifierName:e})}s.add(e);i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack){if(r.privateNames.has(e))return}if(r){r.undefinedPrivateNames.set(e,t)}else{this.parser.raise(p.InvalidPrivateFieldResolution,t,{identifierName:e})}}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0;this.stack=[new ExpressionScope];this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start;const{stack:s}=this;let n=s.length-1;let i=s[n];while(!i.isCertainlyParameterDeclaration()){if(i.canBeArrowParameterDeclaration()){i.recordDeclarationError(e,r)}else{return}i=s[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this;const s=r[r.length-1];const n=t.loc.start;if(s.isCertainlyParameterDeclaration()){this.parser.raise(e,n)}else if(s.canBeArrowParameterDeclaration()){s.recordDeclarationError(e,n)}else{return}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1;let s=t[r];while(s.canBeArrowParameterDeclaration()){if(s.type===2){s.recordDeclarationError(p.AwaitBindingIdentifier,e)}s=t[--r]}}validateAsPattern(){const{stack:e}=this;const t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let s=e.length-2;let n=e[s];while(n.canBeArrowParameterDeclaration()){n.clearDeclarationError(r.index);n=e[--s]}}))}}function newParameterDeclarationScope(){return new ExpressionScope(3)}function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}function newExpressionScope(){return new ExpressionScope}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function functionFlags(e,t){return(e?2:0)|(t?1:0)}class UtilParser extends Tokenizer{addExtra(e,t,r,s=true){if(!e)return;let{extra:n}=e;if(n==null){n={};e.extra=n}if(s){n[t]=r}else{Object.defineProperty(n,t,{enumerable:s,value:r})}}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(isIdentifierChar(e)||(e&64512)===55296)}return false}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e)){this.next();return true}return false}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null){throw this.raise(t,this.state.startLoc)}this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=true){if(e?this.isLineTerminator():this.eat(13))return;this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e)){this.unexpected(t,e)}}tryParse(e,t=this.state.clone()){const r={node:null};try{const s=e(((e=null)=>{r.node=e;throw r}));if(this.state.errors.length>t.errors.length){const e=this.state;this.state=t;this.state.tokensLength=e.tokensLength;return{node:s,error:e.errors[t.errors.length],thrown:false,aborted:false,failState:e}}return{node:s,error:null,thrown:false,aborted:false,failState:null}}catch(e){const s=this.state;this.state=t;if(e instanceof SyntaxError){return{node:null,error:e,thrown:true,aborted:false,failState:s}}if(e===r){return{node:r.node,error:null,thrown:false,aborted:true,failState:s}}throw e}}checkExpressionErrors(e,t){if(!e)return false;const{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:i}=e;const a=!!r||!!s||!!i||!!n;if(!t){return a}if(r!=null){this.raise(p.InvalidCoverInitializedName,r)}if(s!=null){this.raise(p.DuplicateProto,s)}if(n!=null){this.raise(p.UnexpectedPrivateField,n)}if(i!=null){this.unexpected(i)}}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const n=this.scope;const i=this.getScopeHandler();this.scope=new i(this,e);const a=this.prodParam;this.prodParam=new ProductionParameterHandler;const o=this.classScope;this.classScope=new ClassScopeHandler(this);const l=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this);return()=>{this.state.labels=t;this.exportedIdentifiers=r;this.inModule=s;this.scope=n;this.prodParam=a;this.classScope=o;this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule){e|=2}this.scope.enter(1);this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;if(t!==null){this.expectPlugin("destructuringPrivate",t)}}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null;this.doubleProtoLoc=null;this.privateKeyLoc=null;this.optionalParametersLoc=null}}class Node{constructor(e,t,r){this.type="";this.start=t;this.end=0;this.loc=new SourceLocation(r);if(e!=null&&e.options.ranges)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}const H=Node.prototype;{H.__clone=function(){const e=new Node(undefined,this.start,this.loc.start);const t=Object.keys(this);for(let r=0,s=t.length;r<s;r++){const s=t[r];if(s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"){e[s]=this[s]}}return e}}function clonePlaceholder(e){return cloneIdentifier(e)}function cloneIdentifier(e){const{type:t,start:r,end:s,loc:n,range:i,extra:a,name:o}=e;const l=Object.create(H);l.type=t;l.start=r;l.end=s;l.loc=n;l.range=i;l.extra=a;l.name=o;if(t==="Placeholder"){l.expectedNode=e.expectedNode}return l}function cloneStringLiteral(e){const{type:t,start:r,end:s,loc:n,range:i,extra:a}=e;if(t==="Placeholder"){return clonePlaceholder(e)}const o=Object.create(H);o.type=t;o.start=r;o.end=s;o.loc=n;o.range=i;if(e.raw!==undefined){o.raw=e.raw}else{o.extra=a}o.value=e.value;return o}class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(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,r){e.type=t;e.end=r.index;e.loc.end=r;if(this.options.ranges)e.range[1]=r.index;if(this.options.attachComment)this.processComment(e);return e}resetStartLocation(e,t){e.start=t.index;e.loc.start=t;if(this.options.ranges)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;e.loc.end=t;if(this.options.ranges)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const Y=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]);const G=ParseErrorEnum`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:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} 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:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, 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 isEsModuleType(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(e){return e.importKind==="type"||e.importKind==="typeof"}const $={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(e,t){const r=[];const s=[];for(let n=0;n<e.length;n++){(t(e[n],n,e)?r:s).push(e[n])}return[r,s]}const z=/\*?\s*@((?:no)?flow)\b/;var flow=e=>class FlowParserMixin extends e{constructor(...e){super(...e);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,t){if(e!==134&&e!==13&&e!==28){if(this.flowPragma===undefined){this.flowPragma=null}}super.finishToken(e,t)}addComment(e){if(this.flowPragma===undefined){const t=z.exec(e.value);if(!t);else if(t[1]==="flow"){this.flowPragma="flow"}else if(t[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=true;this.expect(e||14);const r=this.flowParseType();this.state.inType=t;return r}flowParsePredicate(){const e=this.startNode();const t=this.state.startLoc;this.next();this.expectContextual(110);if(this.state.lastTokStartLoc.index>t.index+1){this.raise(G.UnexpectedSpaceBetweenModuloChecks,t)}if(this.eat(10)){e.value=super.parseExpression();this.expect(11);return this.finishNode(e,"DeclaredPredicate")}else{return this.finishNode(e,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=true;this.expect(14);let t=null;let r=null;if(this.match(54)){this.state.inType=e;r=this.flowParsePredicate()}else{t=this.flowParseType();this.state.inType=e;if(this.match(54)){r=this.flowParsePredicate()}}return[t,r]}flowParseDeclareClass(e){this.next();this.flowParseInterfaceish(e,true);return this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier();const r=this.startNode();const s=this.startNode();if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}this.expect(10);const n=this.flowParseFunctionTypeParams();r.params=n.params;r.rest=n.rest;r.this=n._this;this.expect(11);[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser();s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation");t.typeAnnotation=this.finishNode(s,"TypeAnnotation");this.resetEndLocation(t);this.semicolon();this.scope.declareName(e.id.name,2048,e.id.loc.start);return this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80)){return this.flowParseDeclareClass(e)}else if(this.match(68)){return this.flowParseDeclareFunction(e)}else if(this.match(74)){return this.flowParseDeclareVariable(e)}else if(this.eatContextual(127)){if(this.match(16)){return this.flowParseDeclareModuleExports(e)}else{if(t){this.raise(G.NestedDeclareModule,this.state.lastTokStartLoc)}return this.flowParseDeclareModule(e)}}else 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)}else{this.unexpected()}}flowParseDeclareVariable(e){this.next();e.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(e.id.name,5,e.id.loc.start);this.semicolon();return this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0);if(this.match(134)){e.id=super.parseExprAtom()}else{e.id=this.parseIdentifier()}const t=e.body=this.startNode();const r=t.body=[];this.expect(5);while(!this.match(8)){let e=this.startNode();if(this.match(83)){this.next();if(!this.isContextual(130)&&!this.match(87)){this.raise(G.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc)}super.parseImport(e)}else{this.expectContextual(125,G.UnsupportedStatementInDeclareModule);e=this.flowParseDeclare(e,true)}r.push(e)}this.scope.exit();this.expect(8);this.finishNode(t,"BlockStatement");let s=null;let n=false;r.forEach((e=>{if(isEsModuleType(e)){if(s==="CommonJS"){this.raise(G.AmbiguousDeclareModuleKind,e)}s="ES"}else if(e.type==="DeclareModuleExports"){if(n){this.raise(G.DuplicateDeclareModuleExports,e)}if(s==="ES"){this.raise(G.AmbiguousDeclareModuleKind,e)}s="CommonJS";n=true}}));e.kind=s||"CommonJS";return this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){this.expect(82);if(this.eat(65)){if(this.match(68)||this.match(80)){e.declaration=this.flowParseDeclare(this.startNode())}else{e.declaration=this.flowParseType();this.semicolon()}e.default=true;return this.finishNode(e,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(G.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:$[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)){e.declaration=this.flowParseDeclare(this.startNode());e.default=false;return this.finishNode(e,"DeclareExportDeclaration")}else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){e=this.parseExport(e,null);if(e.type==="ExportNamedDeclaration"){e.type="ExportDeclaration";e.default=false;delete e.exportKind}e.type="Declare"+e.type;return e}}this.unexpected()}flowParseDeclareModuleExports(e){this.next();this.expectContextual(111);e.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);t.type="DeclareTypeAlias";return t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,true);t.type="DeclareOpaqueType";return t}flowParseDeclareInterface(e){this.next();this.flowParseInterfaceish(e,false);return this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){e.id=this.flowParseRestrictedIdentifier(!t,true);this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12))}if(t){e.implements=[];e.mixins=[];if(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:false,allowSpread:false,allowProto:t,allowInexact:false})}flowParseInterfaceExtends(){const e=this.startNode();e.id=this.flowParseQualifiedTypeIdentifier();if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}return this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){this.flowParseInterfaceish(e,false);return this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if(e==="_"){this.raise(G.UnexpectedReservedUnderscore,this.state.startLoc)}}checkReservedType(e,t,r){if(!Y.has(e))return;this.raise(r?G.AssignReservedType:G.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){this.checkReservedType(this.state.value,this.state.startLoc,t);return this.parseIdentifier(e)}flowParseTypeAlias(e){e.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.right=this.flowParseTypeInitialiser(29);this.semicolon();return this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){this.expectContextual(130);e.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.supertype=null;if(this.match(14)){e.supertype=this.flowParseTypeInitialiser(14)}e.impltype=null;if(!t){e.impltype=this.flowParseTypeInitialiser(29)}this.semicolon();return this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=false){const t=this.state.startLoc;const r=this.startNode();const s=this.flowParseVariance();const n=this.flowParseTypeAnnotatableIdentifier();r.name=n.name;r.variance=s;r.bound=n.typeAnnotation;if(this.match(29)){this.eat(29);r.default=this.flowParseType()}else{if(e){this.raise(G.MissingTypeParamDefault,t)}}return this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType;const t=this.startNode();t.params=[];this.state.inType=true;if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}let r=false;do{const e=this.flowParseTypeParameter(r);t.params.push(e);if(e.default){r=true}if(!this.match(48)){this.expect(12)}}while(!this.match(48));this.expect(48);this.state.inType=e;return this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expect(47);const r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.match(48)){e.params.push(this.flowParseType());if(!this.match(48)){this.expect(12)}}this.state.noAnonFunctionType=r;this.expect(48);this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expect(47);while(!this.match(48)){e.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.match(48)){this.expect(12)}}this.expect(48);this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();this.expectContextual(129);e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(e,t,r){e.static=t;if(this.lookahead().type===14){e.id=this.flowParseObjectPropertyKey();e.key=this.flowParseTypeInitialiser()}else{e.id=null;e.key=this.flowParseType()}this.expect(3);e.value=this.flowParseTypeInitialiser();e.variance=r;return this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){e.static=t;e.id=this.flowParseObjectPropertyKey();this.expect(3);this.expect(3);if(this.match(47)||this.match(10)){e.method=true;e.optional=false;e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))}else{e.method=false;if(this.eat(17)){e.optional=true}e.value=this.flowParseTypeInitialiser()}return this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){e.params=[];e.rest=null;e.typeParameters=null;e.this=null;if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(10);if(this.match(78)){e.this=this.flowParseFunctionTypeParam(true);e.this.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){e.rest=this.flowParseFunctionTypeParam(false)}this.expect(11);e.returnType=this.flowParseTypeInitialiser();return this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();e.static=t;e.value=this.flowParseObjectTypeMethodish(r);return this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:s,allowInexact:n}){const i=this.state.inType;this.state.inType=true;const a=this.startNode();a.callProperties=[];a.properties=[];a.indexers=[];a.internalSlots=[];let o;let l;let c=false;if(t&&this.match(6)){this.expect(6);o=9;l=true}else{this.expect(5);o=8;l=false}a.exact=l;while(!this.match(o)){let t=false;let i=null;let o=null;const p=this.startNode();if(s&&this.isContextual(118)){const t=this.lookahead();if(t.type!==14&&t.type!==17){this.next();i=this.state.startLoc;e=false}}if(e&&this.isContextual(106)){const e=this.lookahead();if(e.type!==14&&e.type!==17){this.next();t=true}}const u=this.flowParseVariance();if(this.eat(0)){if(i!=null){this.unexpected(i)}if(this.eat(0)){if(u){this.unexpected(u.loc.start)}a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))}else{a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u))}}else if(this.match(10)||this.match(47)){if(i!=null){this.unexpected(i)}if(u){this.unexpected(u.loc.start)}a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t))}else{let e="init";if(this.isContextual(99)||this.isContextual(104)){const t=this.lookahead();if(tokenIsLiteralPropertyName(t.type)){e=this.state.value;this.next()}}const s=this.flowParseObjectTypeProperty(p,t,i,u,e,r,n!=null?n:!l);if(s===null){c=true;o=this.state.lastTokStartLoc}else{a.properties.push(s)}}this.flowObjectTypeSemicolon();if(o&&!this.match(8)&&!this.match(9)){this.raise(G.UnexpectedExplicitInexactInObject,o)}}this.expect(o);if(r){a.inexact=c}const p=this.finishNode(a,"ObjectTypeAnnotation");this.state.inType=i;return p}flowParseObjectTypeProperty(e,t,r,s,n,i,a){if(this.eat(21)){const t=this.match(12)||this.match(13)||this.match(8)||this.match(9);if(t){if(!i){this.raise(G.InexactInsideNonObject,this.state.lastTokStartLoc)}else if(!a){this.raise(G.InexactInsideExact,this.state.lastTokStartLoc)}if(s){this.raise(G.InexactVariance,s)}return null}if(!i){this.raise(G.UnexpectedSpreadType,this.state.lastTokStartLoc)}if(r!=null){this.unexpected(r)}if(s){this.raise(G.SpreadVariance,s)}e.argument=this.flowParseType();return this.finishNode(e,"ObjectTypeSpreadProperty")}else{e.key=this.flowParseObjectPropertyKey();e.static=t;e.proto=r!=null;e.kind=n;let a=false;if(this.match(47)||this.match(10)){e.method=true;if(r!=null){this.unexpected(r)}if(s){this.unexpected(s.loc.start)}e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start));if(n==="get"||n==="set"){this.flowCheckGetterSetterParams(e)}if(!i&&e.key.name==="constructor"&&e.value.this){this.raise(G.ThisParamBannedInConstructor,e.value.this)}}else{if(n!=="init")this.unexpected();e.method=false;if(this.eat(17)){a=true}e.value=this.flowParseTypeInitialiser();e.variance=s}e.optional=a;return this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1;const r=e.value.params.length+(e.value.rest?1:0);if(e.value.this){this.raise(e.kind==="get"?G.GetterMayNotHaveThisParam:G.SetterMayNotHaveThisParam,e.value.this)}if(r!==t){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&e.value.rest){this.raise(p.BadSetterRestParameter,e)}}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)){this.unexpected()}}flowParseQualifiedTypeIdentifier(e,t){var r;(r=e)!=null?r:e=this.state.startLoc;let s=t||this.flowParseRestrictedIdentifier(true);while(this.eat(16)){const t=this.startNodeAt(e);t.qualification=s;t.id=this.flowParseRestrictedIdentifier(true);s=this.finishNode(t,"QualifiedTypeIdentifier")}return s}flowParseGenericType(e,t){const r=this.startNodeAt(e);r.typeParameters=null;r.id=this.flowParseQualifiedTypeIdentifier(e,t);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();this.expect(87);e.argument=this.flowParsePrimaryType();return this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();e.types=[];this.expect(0);while(this.state.pos<this.length&&!this.match(3)){e.types.push(this.flowParseType());if(this.match(3))break;this.expect(12)}this.expect(3);return this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null;let r=false;let s=null;const n=this.startNode();const i=this.lookahead();const a=this.state.type===78;if(i.type===14||i.type===17){if(a&&!e){this.raise(G.ThisParamMustBeFirst,n)}t=this.parseIdentifier(a);if(this.eat(17)){r=true;if(a){this.raise(G.ThisParamMayNotBeOptional,n)}}s=this.flowParseTypeInitialiser()}else{s=this.flowParseType()}n.name=t;n.optional=r;n.typeAnnotation=s;return this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);t.name=null;t.optional=false;t.typeAnnotation=e;return this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;let r=null;if(this.match(78)){r=this.flowParseFunctionTypeParam(true);r.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){t=this.flowParseFunctionTypeParam(false)}return{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.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:this.checkNotUnderscore(r.name);return this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc;const t=this.startNode();let r;let s;let n=false;const i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:this.state.noAnonFunctionType=false;s=this.flowParseTupleType();this.state.noAnonFunctionType=i;return s;case 47:{const e=this.startNode();e.typeParameters=this.flowParseTypeParameterDeclaration();this.expect(10);r=this.flowParseFunctionTypeParams();e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();return this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();this.next();if(!this.match(11)&&!this.match(21)){if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;n=e!==17&&e!==14}else{n=true}}if(n){this.state.noAnonFunctionType=false;s=this.flowParseType();this.state.noAnonFunctionType=i;if(this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19)){this.expect(11);return s}else{this.eat(12)}}if(s){r=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)])}else{r=this.flowParseFunctionTypeParams()}e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();e.typeParameters=null;return this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:t.value=this.match(85);this.next();return this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){this.next();if(this.match(135)){return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t)}if(this.match(136)){return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t)}throw this.raise(G.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:this.next();return this.finishNode(t,"VoidTypeAnnotation");case 84:this.next();return this.finishNode(t,"NullLiteralTypeAnnotation");case 78:this.next();return this.finishNode(t,"ThisTypeAnnotation");case 55:this.next();return this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);this.next();return super.createIdentifier(t,e)}else if(tokenIsIdentifier(this.state.type)){if(this.isContextual(129)){return this.flowParseInterfaceType()}return this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType();let r=false;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const s=this.startNodeAt(e);const n=this.eat(18);r=r||n;this.expect(0);if(!n&&this.match(3)){s.elementType=t;this.next();t=this.finishNode(s,"ArrayTypeAnnotation")}else{s.objectType=t;s.indexType=this.flowParseType();this.expect(3);if(r){s.optional=n;t=this.finishNode(s,"OptionalIndexedAccessType")}else{t=this.finishNode(s,"IndexedAccessType")}}}return t}flowParsePrefixType(){const e=this.startNode();if(this.eat(17)){e.typeAnnotation=this.flowParsePrefixType();return this.finishNode(e,"NullableTypeAnnotation")}else{return this.flowParsePostfixType()}}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);t.params=[this.reinterpretTypeAsFunctionTypeParam(e)];t.rest=null;t.this=null;t.returnType=this.flowParseType();t.typeParameters=null;return this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();e.types=[t];while(this.eat(45)){e.types.push(this.flowParseAnonFunctionWithoutParens())}return e.types.length===1?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();e.types=[t];while(this.eat(43)){e.types.push(this.flowParseIntersectionType())}return e.types.length===1?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=true;const t=this.flowParseUnionType();this.state.inType=e;return t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const e=this.state.startLoc;const t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else{return this.flowParseType()}}flowParseTypeAnnotation(){const e=this.startNode();e.typeAnnotation=this.flowParseTypeInitialiser();return this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14)){t.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(t)}return t}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}flowParseVariance(){let e=null;if(this.match(53)){e=this.startNode();if(this.state.value==="+"){e.kind="plus"}else{e.kind="minus"}this.next();return this.finishNode(e,"Variance")}return e}parseFunctionBody(e,t,r=false){if(t){this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,true,r)));return}super.parseFunctionBody(e,false,r)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){const e=this.lookahead();if(tokenIsKeywordOrIdentifier(e.type)){const e=this.startNode();this.next();return this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);if(this.flowPragma===undefined&&!this.isValidDirective(t)){this.flowPragma=null}return t}parseExpressionStatement(e,t,r){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82)){return this.flowParseDeclare(e)}}else if(tokenIsIdentifier(this.state.type)){if(t.name==="interface"){return this.flowParseInterface(e)}else if(t.name==="type"){return this.flowParseTypeAlias(e)}else if(t.name==="opaque"){return this.flowParseOpaqueType(e,false)}}}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return!this.state.containsEsc}return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return this.state.containsEsc}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}this.expect(17);const s=this.state.clone();const n=this.state.noArrowAt;const i=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent();let[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...n];if(c.length>0){this.state=s;this.state.noArrowAt=e;for(let t=0;t<c.length;t++){e.push(c[t].start)}({consequent:a,failed:o}=this.tryParseConditionalConsequent());[l,c]=this.getArrowLikeExpressions(a)}if(o&&l.length>1){this.raise(G.AmbiguousConditionalArrow,s.startLoc)}if(o&&l.length===1){this.state=s;e.push(l[0].start);this.state.noArrowAt=e;({consequent:a,failed:o}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(a,true);this.state.noArrowAt=n;this.expect(14);i.test=e;i.consequent=a;i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(undefined,undefined)));return this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn();const t=!this.match(14);this.state.noArrowParamsConversionAt.pop();return{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e];const s=[];while(r.length!==0){const e=r.pop();if(e.type==="ArrowFunctionExpression"&&e.body.type!=="BlockStatement"){if(e.typeParameters||!e.returnType){this.finishArrowValidation(e)}else{s.push(e)}r.push(e.body)}else if(e.type==="ConditionalExpression"){r.push(e.consequent);r.push(e.alternate)}}if(t){s.forEach((e=>this.finishArrowValidation(e)));return[s,[]]}return partition(s,(e=>e.params.every((e=>this.isAssignable(e,true)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingCommaLoc,false);this.scope.enter(2|4);super.checkParams(e,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){this.state.noArrowParamsConversionAt.push(this.state.start);r=t();this.state.noArrowParamsConversionAt.pop()}else{r=t()}return r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const e=this.startNodeAt(t);e.expression=r;e.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){if(e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"){return}super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();this.next();if(this.match(5)){e.specifiers=this.parseExportSpecifiers(true);super.parseExportFrom(e);return null}else{return this.flowParseTypeAlias(t)}}else if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseOpaqueType(t,false)}else if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();this.next();return this.flowParseEnumDeclaration(t)}else{return super.parseExportDeclaration(e)}}eatExportStar(e){if(super.eatExportStar(e))return true;if(this.isContextual(130)&&this.lookahead().type===55){e.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state;const r=super.maybeParseExportNamespaceSpecifier(e);if(r&&e.exportKind==="type"){this.unexpected(t)}return r}parseClassId(e,t,r){super.parseClassId(e,t,r);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(e,t,r){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t)){return}t.declare=true}super.parseClassMember(e,t,r);if(t.declare){if(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"){this.raise(G.DeclareClassElement,s)}else if(t.value){this.raise(G.DeclareClassFieldInitializer,t.value)}}}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1();const t="@@"+e;if(!this.isIterator(e)||!this.state.inType){this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:t})}this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===123&&t===124){this.finishOp(6,2)}else if(this.state.inType&&(e===62||e===60)){this.finishOp(e===62?48:47,1)}else if(this.state.inType&&e===63){if(t===46){this.finishOp(18,2)}else{this.finishOp(17,1)}}else if(isIteratorStart(e,t,this.input.charCodeAt(this.state.pos+2))){this.state.pos+=2;this.readIterator()}else{super.getTokenFromCode(e)}}isAssignable(e,t){if(e.type==="TypeCastExpression"){return this.isAssignable(e.expression,t)}else{return super.isAssignable(e,t)}}toAssignable(e,t=false){if(!t&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"){e.left=this.typeCastToParameter(e.left)}super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];if((r==null?void 0:r.type)==="TypeCastExpression"){e[t]=this.typeCastToParameter(r)}}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var r;const n=e[s];if(n&&n.type==="TypeCastExpression"&&!((r=n.extra)!=null&&r.parenthesized)&&(e.length>1||!t)){this.raise(G.TypeCastInPattern,n.typeAnnotation)}}return e}parseArrayLike(e,t,r,s){const n=super.parseArrayLike(e,t,r,s);if(t&&!this.state.maybeInArrowParameters){this.toReferencedList(n.elements)}return n}isValidLVal(e,t,r){return e==="TypeCastExpression"||super.isValidLVal(e,t,r)}parseClassProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return 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,r,s,n,i){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(e,t,r,s,n,i);if(t.params&&n){const e=t.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(G.ThisParamBannedInConstructor,t)}}else if(t.type==="MethodDefinition"&&n&&t.value.params){const e=t.value.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(G.ThisParamBannedInConstructor,t)}}}pushClassPrivateMethod(e,t,r,s){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(e,t,r,s)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&this.match(47)){e.superTypeParameters=this.flowParseTypeParameterInstantiation()}if(this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(true);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];if(this.isThisParam(r)&&e.kind==="get"){this.raise(G.GetterMayNotHaveThisParam,r)}else if(this.isThisParam(r)){this.raise(G.SetterMayNotHaveThisParam,r)}}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,s,n,i,a){if(e.variance){this.unexpected(e.variance.loc.start)}delete e.variance;let o;if(this.match(47)&&!i){o=this.flowParseTypeParameterDeclaration();if(!this.match(10))this.unexpected()}const l=super.parseObjPropValue(e,t,r,s,n,i,a);if(o){(l.value||l).typeParameters=o}return l}parseFunctionParamType(e){if(this.eat(17)){if(e.type!=="Identifier"){this.raise(G.PatternIsOptional,e)}if(this.isThisParam(e)){this.raise(G.ThisParamMayNotBeOptional,e)}e.optional=true}if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(e)){this.raise(G.ThisParamAnnotationRequired,e)}if(this.match(29)&&this.isThisParam(e)){this.raise(G.ThisParamNoDefault,e)}this.resetEndLocation(e);return e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(G.TypeBeforeInitializer,r.typeAnnotation)}return r}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(G.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}parseImportSpecifierLocal(e,t,r){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){if(!e)return true;const t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){if(!r&&this.match(65)){return}e.exportKind=r==="type"?r:"value"}else{if(r==="type"&&this.match(55))this.unexpected();e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImportSpecifier(e,t,r,s,n){const i=e.imported;let a=null;if(i.type==="Identifier"){if(i.name==="type"){a="type"}else if(i.name==="typeof"){a="typeof"}}let o=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(true);if(a!==null&&!tokenIsKeywordOrIdentifier(this.state.type)){e.imported=t;e.importKind=a;e.local=cloneIdentifier(t)}else{e.imported=i;e.importKind=null;e.local=this.parseIdentifier()}}else{if(a!==null&&tokenIsKeywordOrIdentifier(this.state.type)){e.imported=this.parseIdentifier(true);e.importKind=a}else{if(t){throw this.raise(p.ImportBindingIsString,e,{importName:i.value})}e.imported=i;e.importKind=null}if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{o=true;e.local=cloneIdentifier(e.imported)}}const l=hasTypeImportKind(e);if(r&&l){this.raise(G.ImportTypeShorthandOnlyInPureImport,e)}if(r||l){this.checkReservedType(e.local.name,e.local.loc.start,true)}if(o&&!r&&!l){this.checkReservedWord(e.local.name,e.loc.start,true,true)}return this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){const r=e.kind;if(r!=="get"&&r!=="set"&&this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(this.match(14)){e.id.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;e.returnType=this.flowParseTypeAnnotation();this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let s=null;let n;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){s=this.state.clone();n=this.tryParse((()=>super.parseMaybeAssign(e,t)),s);if(!n.error)return n.node;const{context:r}=this.state;const i=r[r.length-1];if(i===f.j_oTag||i===f.j_expr){r.pop()}}if((r=n)!=null&&r.error||this.match(47)){var i,a;s=s||this.state.clone();let r;const o=this.tryParse((s=>{var n;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,(()=>{const s=super.parseMaybeAssign(e,t);this.resetStartLocationFromNode(s,r);return s}));if((n=i.extra)!=null&&n.parenthesized)s();const a=this.maybeUnwrapTypeCastExpression(i);if(a.type!=="ArrowFunctionExpression")s();a.typeParameters=r;this.resetStartLocationFromNode(a,r);return i}),s);let l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted){if(o.node.async){this.raise(G.UnexpectedTypeParameterBeforeAsyncArrowFunction,r)}return o.node}l=o.node}if((i=n)!=null&&i.node){this.state=n.failState;return n.node}if(l){this.state=o.failState;return l}if((a=n)!=null&&a.thrown)throw n.error;if(o.thrown)throw o.error;throw this.raise(G.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=t;if(this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return r}));if(t.thrown)return null;if(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){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){e.params=t}else{super.setArrowFunctionParameters(e,t)}}checkParams(e,t,r,s=true){if(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){return}for(let t=0;t<e.params.length;t++){if(this.isThisParam(e.params[t])&&t>0){this.raise(G.ThisParamMustBeFirst,e.params[t])}}super.checkParams(e,t,r,s)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e;r.arguments=super.parseCallExpressionArguments(11);e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){const s=this.state.clone();const n=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),s);if(!n.error&&!n.aborted)return n.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,r)),s);if(i.node&&!i.error)return i.node;if(n.node){this.state=n.failState;return n.node}if(i.node){this.state=i.failState;return i.node}throw n.error||i.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){s.optionalChainMember=true;if(r){s.stop=true;return e}this.next();const n=this.startNodeAt(t);n.callee=e;n.typeArguments=this.flowParseTypeParameterInstantiation();this.expect(10);n.arguments=this.parseCallExpressionArguments(11);n.optional=true;return this.finishCallExpression(n,true)}else if(!r&&this.shouldParseTypes()&&this.match(47)){const r=this.startNodeAt(t);r.callee=e;const n=this.tryParse((()=>{r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(10);r.arguments=super.parseCallExpressionArguments(11);if(s.optionalChainMember){r.optional=false}return this.finishCallExpression(r,s.optionalChainMember)}));if(n.node){if(n.error)this.state=n.failState;return n.node}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){super.parseNewCallee(e);let t=null;if(this.shouldParseTypes()&&this.match(47)){t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node}e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);this.parseFunctionParams(t,false);if(!this.parseArrow(t))return;return super.parseArrowExpression(t,undefined,true)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);if(this.state.hasFlowComment){this.raise(G.UnterminatedFlowComment,this.state.curPosition())}return r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){throw this.raise(G.NestedFlowComment,this.state.startLoc)}this.hasFlowCommentCompletion();const e=this.skipFlowComment();if(e){this.state.pos+=e;this.state.hasFlowComment=true}return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;while([32,9].includes(this.input.charCodeAt(e+t))){t++}const r=this.input.charCodeAt(t+e);const s=this.input.charCodeAt(t+e+1);if(r===58&&s===58){return t+2}if(this.input.slice(t+e,t+e+12)==="flow-include"){return t+12}if(r===58&&s!==58){return t}return false}hasFlowCommentCompletion(){const e=this.input.indexOf("*/",this.state.pos);if(e===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(G.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(!t.explicitType?G.EnumInvalidMemberInitializerUnknownType:t.explicitType==="symbol"?G.EnumInvalidMemberInitializerSymbolType:G.EnumInvalidMemberInitializerPrimaryType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(G.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(G.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc;const endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const t=this.parseNumericLiteral(this.state.value);if(endOfInit()){return{type:"number",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 134:{const t=this.parseStringLiteral(this.state.value);if(endOfInit()){return{type:"string",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 85:case 86:{const t=this.parseBooleanLiteral(this.match(85));if(endOfInit()){return{type:"boolean",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;const t=this.parseIdentifier(true);const r=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:t,init:r}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:s}=t;if(s===null){return}if(s!==r){this.flowEnumErrorInvalidMemberInitializer(e,t)}}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set;const s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=false;while(!this.match(8)){if(this.eat(21)){n=true;break}const i=this.startNode();const{id:a,init:o}=this.flowEnumMemberRaw();const l=a.name;if(l===""){continue}if(/^[a-z]/.test(l)){this.raise(G.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e})}if(r.has(l)){this.raise(G.EnumDuplicateMemberName,a,{memberName:l,enumName:e})}r.add(l);const c={enumName:e,explicitType:t,memberName:l};i.id=a;switch(o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean");i.init=o.value;s.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number");i.init=o.value;s.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string");i.init=o.value;s.stringMembers.push(this.finishNode(i,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c)}case"none":{switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:s.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}}if(!this.match(8)){this.expect(12)}}return{members:s,hasUnknownMembers:n}}flowEnumStringMembers(e,t,{enumName:r}){if(e.length===0){return t}else if(t.length===0){return e}else if(t.length>e.length){for(const t of e){this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r})}return t}else{for(const e of t){this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r})}return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type)){throw this.raise(G.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e})}const{value:t}=this.state;this.next();if(t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"){this.raise(G.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t})}return t}flowEnumBody(e,t){const r=t.name;const s=t.loc.start;const n=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:n});e.hasUnknownMembers=a;switch(n){case"boolean":e.explicitType=true;e.members=i.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody");case"number":e.explicitType=true;e.members=i.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody");case"string":e.explicitType=true;e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody");case"symbol":e.members=i.defaultedMembers;this.expect(8);return this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>{e.members=[];this.expect(8);return this.finishNode(e,"EnumStringBody")};e.explicitType=false;const t=i.booleanMembers.length;const n=i.numberMembers.length;const a=i.stringMembers.length;const o=i.defaultedMembers.length;if(!t&&!n&&!a&&!o){return empty()}else if(!t&&!n){e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody")}else if(!n&&!a&&t>=o){for(const e of i.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=i.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody")}else if(!t&&!a&&n>=o){for(const e of i.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=i.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody")}else{this.raise(G.EnumInconsistentMemberValues,s,{enumName:r});return empty()}}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();e.id=t;e.body=this.flowEnumBody(this.startNode(),t);return this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return false}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const Q={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const Z=ParseErrorEnum`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 isFragment(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}function getQualifiedJSXName(e){if(e.type==="JSXIdentifier"){return e.name}if(e.type==="JSXNamespacedName"){return e.namespace.name+":"+e.name.name}if(e.type==="JSXMemberExpression"){return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property)}throw new Error("Node had unexpected type: "+e.type)}var jsx=e=>class JSXParserMixin extends e{jsxReadToken(){let e="";let t=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(Z.UnterminatedJsxContent,this.state.startLoc)}const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){if(r===60&&this.state.canStartJSXElement){++this.state.pos;this.finishToken(143)}else{super.getTokenFromCode(r)}return}e+=this.input.slice(t,this.state.pos);this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos);e+=this.jsxReadEntity();t=this.state.pos;break;case 62:case 125:default:if(isNewLine(r)){e+=this.input.slice(t,this.state.pos);e+=this.jsxReadNewLine(true);t=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;++this.state.pos;if(t===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;r=e?"\n":"\r\n"}else{r=String.fromCharCode(t)}++this.state.curLine;this.state.lineStart=this.state.pos;return r}jsxReadString(e){let t="";let r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(p.UnterminatedString,this.state.startLoc)}const s=this.input.charCodeAt(this.state.pos);if(s===e)break;if(s===38){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadEntity();r=this.state.pos}else if(isNewLine(s)){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadNewLine(false);r=this.state.pos}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;if(this.codePointAtPos(this.state.pos)===120){e=16;++this.state.pos}const t=this.readInt(e,undefined,false,"bail");if(t!==null&&this.codePointAtPos(this.state.pos)===59){++this.state.pos;return String.fromCodePoint(t)}}else{let t=0;let r=false;while(t++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)===59)){++this.state.pos}if(r){const t=this.input.slice(e,this.state.pos);const r=Q[t];++this.state.pos;if(r){return r}}}this.state.pos=e;return"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();if(this.match(141)){e.name=this.state.value}else if(tokenIsKeyword(this.state.type)){e.name=tokenLabelName(this.state.type)}else{this.unexpected()}this.next();return this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc;const t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);r.namespace=t;r.name=this.jsxParseIdentifier();return this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if(t.type==="JSXNamespacedName"){return t}while(this.eat(16)){const r=this.startNodeAt(e);r.object=t;r.property=this.jsxParseIdentifier();t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:e=this.startNode();this.setContext(f.brace);this.next();e=this.jsxParseExpressionContainer(e,f.j_oTag);if(e.expression.type==="JSXEmptyExpression"){this.raise(Z.AttributeIsEmpty,e)}return e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Z.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){this.next();e.expression=this.parseExpression();this.setContext(f.j_expr);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8)){e.expression=this.jsxParseEmptyExpression()}else{const t=this.parseExpression();e.expression=t}this.setContext(t);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();if(this.match(5)){this.setContext(f.brace);this.next();this.expect(21);e.argument=this.parseMaybeAssignAllowIn();this.setContext(f.j_oTag);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadAttribute")}e.name=this.jsxParseNamespacedName();e.value=this.eat(29)?this.jsxParseAttributeValue():null;return this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXOpeningFragment")}t.name=this.jsxParseElementName();return this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){const t=[];while(!this.match(56)&&!this.match(144)){t.push(this.jsxParseAttribute())}e.attributes=t;e.selfClosing=this.eat(56);this.expect(144);return this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXClosingFragment")}t.name=this.jsxParseElementName();this.expect(144);return this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){const t=this.startNodeAt(e);const r=[];const s=this.jsxParseOpeningElementAt(e);let n=null;if(!s.selfClosing){e:for(;;){switch(this.state.type){case 143:e=this.state.startLoc;this.next();if(this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(f.brace);this.next();if(this.match(21)){r.push(this.jsxParseSpreadChild(e))}else{r.push(this.jsxParseExpressionContainer(e,f.j_expr))}break}default:this.unexpected()}}if(isFragment(s)&&!isFragment(n)&&n!==null){this.raise(Z.MissingClosingTagFragment,n)}else if(!isFragment(s)&&isFragment(n)){this.raise(Z.MissingClosingTagElement,n,{openingTagName:getQualifiedJSXName(s.name)})}else if(!isFragment(s)&&!isFragment(n)){if(getQualifiedJSXName(n.name)!==getQualifiedJSXName(s.name)){this.raise(Z.MissingClosingTagElement,n,{openingTagName:getQualifiedJSXName(s.name)})}}}if(isFragment(s)){t.openingFragment=s;t.closingFragment=n}else{t.openingElement=s;t.closingElement=n}t.children=r;if(this.match(47)){throw this.raise(Z.UnwrappedAdjacentJSXElements,this.state.startLoc)}return isFragment(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;this.next();return this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){if(this.match(143)){return this.jsxParseElement()}else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33){this.replaceToken(143);return this.jsxParseElement()}else{return super.parseExprAtom(e)}}skipSpace(){const e=this.curContext();if(!e.preserveSpace)super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t===f.j_expr){this.jsxReadToken();return}if(t===f.j_oTag||t===f.j_cTag){if(isIdentifierStart(e)){this.jsxReadWord();return}if(e===62){++this.state.pos;this.finishToken(144);return}if((e===34||e===39)&&t===f.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos;this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){const{context:t,type:r}=this.state;if(r===56&&e===143){t.splice(-2,2,f.j_cTag);this.state.canStartJSXElement=false}else if(r===143){t.push(f.j_oTag)}else if(r===144){const r=t[t.length-1];if(r===f.j_oTag&&e===56||r===f.j_cTag){t.pop();this.state.canStartJSXElement=t[t.length-1]===f.j_expr}else{this.setContext(f.j_expr);this.state.canStartJSXElement=true}}else{this.state.canStartJSXElement=tokenComesBeforeExpression(r)}}};class TypeScriptScope extends Scope{constructor(...e){super(...e);this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e);this.importsStack=[]}createScope(e){this.importsStack.push(new Set);return new TypeScriptScope(e)}enter(e){if(e===256){this.importsStack.push(new Set)}super.enter(e)}exit(){const e=super.exit();if(e===256){this.importsStack.pop()}return e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e)){return true}if(!t&&r>1){for(let t=0;t<r-1;t++){if(this.importsStack[t].has(e))return true}}return false}declareName(e,t,r){if(t&4096){if(this.hasImport(e,true)){this.parser.raise(p.VarRedeclaration,r,{identifierName:e})}this.importsStack[this.importsStack.length-1].add(e);return}const s=this.currentScope();let n=s.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(s,e);s.tsNames.set(e,n|16);return}super.declareName(e,t,r);if(t&2){if(!(t&1)){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e)}n=n|1}if(t&256){n=n|2}if(t&512){n=n|4}if(t&128){n=n|8}if(n)s.tsNames.set(e,n)}isRedeclaredInScope(e,t,r){const s=e.tsNames.get(t);if((s&2)>0){if(r&256){const e=!!(r&512);const t=(s&4)>0;return e!==t}return true}if(r&128&&(s&8)>0){if(e.names.get(t)&2){return!!(r&1)}else{return false}}if(r&2&&(s&1)>0){return true}return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;const r=this.scopeStack.length;for(let e=r-1;e>=0;e--){const r=this.scopeStack[e];const s=r.tsNames.get(t);if((s&1)>0||(s&16)>0){return}}super.checkLocalExport(e)}}const unwrapParenthesizedExpression=e=>e.type==="ParenthesizedExpression"?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,t=false){var r,s;let n=undefined;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized){n=unwrapParenthesizedExpression(e);if(t){if(n.type==="Identifier"){this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,e)}else if(n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)){this.raise(p.InvalidParenthesizedAssignment,e)}}else{this.raise(p.InvalidParenthesizedAssignment,e)}}switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,s=e.properties.length,n=s-1;r<s;r++){var i;const s=e.properties[r];const a=r===n;this.toAssignableObjectExpressionProp(s,a,t);if(a&&s.type==="RestElement"&&(i=e.extra)!=null&&i.trailingCommaLoc){this.raise(p.RestTrailingComma,e.extra.trailingCommaLoc)}}break;case"ObjectProperty":{const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t);break}case"SpreadElement":{throw new Error("Internal @babel/parser error (this is a bug, please report it)."+" SpreadElement should be converted by .toAssignable's caller.")}case"ArrayExpression":e.type="ArrayPattern";this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="="){this.raise(p.MissingEqInAssignment,e.left.loc.end)}e.type="AssignmentPattern";delete e.operator;this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod"){this.raise(e.kind==="get"||e.kind==="set"?p.PatternHasAccessor:p.PatternHasMethod,e.key)}else if(e.type==="SpreadElement"){e.type="RestElement";const s=e.argument;this.checkToRestConversion(s,false);this.toAssignable(s,r);if(!t){this.raise(p.RestTrailingComma,e)}}else{this.toAssignable(e,r)}}toAssignableList(e,t,r){const s=e.length-1;for(let n=0;n<=s;n++){const i=e[n];if(!i)continue;if(i.type==="SpreadElement"){i.type="RestElement";const e=i.argument;this.checkToRestConversion(e,true);this.toAssignable(e,r)}else{this.toAssignable(i,r)}if(i.type==="RestElement"){if(n<s){this.raise(p.RestTrailingComma,i)}else if(t){this.raise(p.RestTrailingComma,t)}}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return true;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,r)=>e.type!=="ObjectMethod"&&(r===t||e.type!=="SpreadElement")&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>e===null||this.isAssignable(e)));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return false}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e){if((t==null?void 0:t.type)==="ArrayExpression"){this.toReferencedListDeep(t.elements)}}}parseSpread(e){const t=this.startNode();this.next();t.argument=this.parseMaybeAssignAllowIn(e,undefined);return this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();this.next();e.elements=this.parseBindingList(3,93,1);return this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,true)}return this.parseIdentifier()}parseBindingList(e,t,r){const s=r&1;const n=[];let i=true;while(!this.eat(e)){if(i){i=false}else{this.expect(12)}if(s&&this.match(12)){n.push(null)}else if(this.eat(e)){break}else if(this.match(21)){let s=this.parseRestBinding();if(this.hasPlugin("flow")||r&2){s=this.parseFunctionParamType(s)}n.push(s);if(!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(this.match(26)&&this.hasPlugin("decorators")){this.raise(p.UnsupportedParameterDecorator,this.state.startLoc)}while(this.match(26)){e.push(this.parseDecorator())}n.push(this.parseAssignableListItem(r,e))}}return n}parseBindingRestProperty(e){this.next();e.argument=this.parseIdentifier();this.checkCommaAfterRest(125);return this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(e===21){return this.parseBindingRestProperty(this.startNode())}const r=this.startNode();if(e===139){this.expectPlugin("destructuringPrivate",t);this.classScope.usePrivateName(this.state.value,t);r.key=this.parsePrivateName()}else{this.parsePropertyName(r)}r.method=false;return this.parseObjPropValue(r,t,false,false,true,false)}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2){this.parseFunctionParamType(r)}const s=this.parseMaybeDefault(r.loc.start,r);if(t.length){r.decorators=t}return s}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){var r,s;(r=e)!=null?r:e=this.state.startLoc;t=(s=t)!=null?s:this.parseBindingAtom();if(!this.eat(29))return t;const n=this.startNodeAt(e);n.left=t;n.right=this.parseMaybeAssignAllowIn();return this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,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"}return false}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=false,n=false,i=false){var a;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||o==="MemberExpression"){if(l){this.expectPlugin("optionalChainingAssign",e.loc.start);if(t.type!=="AssignmentExpression"){this.raise(p.InvalidLhsOptionalChaining,e,{ancestor:t})}}if(r!==64){this.raise(p.InvalidPropertyBindingPattern,e)}return}if(o==="Identifier"){this.checkIdentifier(e,r,n);const{name:t}=e;if(s){if(s.has(t)){this.raise(p.ParamDupe,e)}else{s.add(t)}}return}const c=this.isValidLVal(o,!(i||(a=e.extra)!=null&&a.parenthesized)&&t.type==="AssignmentExpression",r);if(c===true)return;if(c===false){const s=r===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(s,e,{ancestor:t});return}let u,f;if(typeof c==="string"){u=c;f=o==="ParenthesizedExpression"}else{[u,f]=c}const d=o==="ArrayPattern"||o==="ObjectPattern"?{type:o}:t;const h=e[u];if(Array.isArray(h)){for(const e of h){if(e){this.checkLVal(e,d,r,s,n,f)}}}else if(h){this.checkLVal(h,d,r,s,n,f)}}checkIdentifier(e,t,r=false){if(this.state.strict&&(r?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))){if(t===64){this.raise(p.StrictEvalArguments,e,{referenceName:e.name})}else{this.raise(p.StrictEvalArgumentsBinding,e,{bindingName:e.name})}}if(t&8192&&e.name==="let"){this.raise(p.LetInLexicalBinding,e)}if(!(t&64)){this.declareNameFromIdentifier(e,t)}}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(p.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12)){return false}this.raise(this.lookaheadCharCode()===e?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc);return true}}function nonNull(e){if(e==null){throw new Error(`Unexpected ${e} value.`)}return e}function assert(e){if(!e){throw new Error("Assert fail")}}const ee=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. "+"You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function keywordTypeFromName(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 undefined}}function tsIsAccessModifier(e){return e==="private"||e==="public"||e==="protected"}function tsIsVarianceAnnotations(e){return e==="in"||e==="out"}var typescript=e=>class TypeScriptParserMixin 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:ee.InvalidModifierOnTypeParameter});this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ee.InvalidModifierOnTypeParameterPositions});this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ee.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){this.next();if(this.hasPrecedingLineBreak()){return false}return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106)){this.next();return this.tsTokenCanFollowModifier()}return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t){if(!tokenIsIdentifier(this.state.type)&&this.state.type!==58&&this.state.type!==75){return undefined}const r=this.state.value;if(e.includes(r)){if(t&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return r}}return undefined}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:s=ee.InvalidModifierOnTypeMember},n){const enforceOrder=(e,t,r,s)=>{if(t===r&&n[s]){this.raise(ee.InvalidModifiersOrder,e,{orderedModifiers:[r,s]})}};const incompatible=(e,t,r,s)=>{if(n[r]&&t===s||n[s]&&t===r){this.raise(ee.IncompatibleModifiers,e,{modifiers:[r,s]})}};for(;;){const{startLoc:i}=this.state;const a=this.tsParseModifier(e.concat(t!=null?t:[]),r);if(!a)break;if(tsIsAccessModifier(a)){if(n.accessibility){this.raise(ee.DuplicateAccessibilityModifier,i,{modifier:a})}else{enforceOrder(i,a,a,"override");enforceOrder(i,a,a,"static");enforceOrder(i,a,a,"readonly");n.accessibility=a}}else if(tsIsVarianceAnnotations(a)){if(n[a]){this.raise(ee.DuplicateModifier,i,{modifier:a})}n[a]=true;enforceOrder(i,a,"in","out")}else{if(hasOwnProperty.call(n,a)){this.raise(ee.DuplicateModifier,i,{modifier:a})}else{enforceOrder(i,a,"static","readonly");enforceOrder(i,a,"static","override");enforceOrder(i,a,"override","readonly");enforceOrder(i,a,"abstract","override");incompatible(i,a,"declare","override");incompatible(i,a,"static","abstract")}n[a]=true}if(t!=null&&t.includes(a)){this.raise(s,i,{modifier:a})}}}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){const r=[];while(!this.tsIsListTerminator(e)){r.push(t())}return r}tsParseDelimitedList(e,t,r){return nonNull(this.tsParseDelimitedListWorker(e,t,true,r))}tsParseDelimitedListWorker(e,t,r,s){const n=[];let i=-1;for(;;){if(this.tsIsListTerminator(e)){break}i=-1;const s=t();if(s==null){return undefined}n.push(s);if(this.eat(12)){i=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e)){break}if(r){this.expect(12)}return undefined}if(s){s.value=i}return n}tsParseBracketedList(e,t,r,s,n){if(!s){if(r){this.expect(0)}else{this.expect(47)}}const i=this.tsParseDelimitedList(e,t,n);if(r){this.expect(3)}else{this.expect(48)}return i}tsParseImportType(){const e=this.startNode();this.expect(83);this.expect(10);if(!this.match(134)){this.raise(ee.UnsupportedImportTypeArgument,this.state.startLoc)}e.argument=super.parseExprAtom();if(this.eat(12)&&!this.match(11)){e.options=super.parseMaybeAssignAllowIn();this.eat(12)}else{e.options=null}this.expect(11);if(this.eat(16)){e.qualifier=this.tsParseEntityName()}if(this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSImportType")}tsParseEntityName(e=true){let t=this.parseIdentifier(e);while(this.eat(16)){const r=this.startNodeAtNode(t);r.left=t;r.right=this.parseIdentifier(e);t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();e.typeName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);t.parameterName=e;t.typeAnnotation=this.tsParseTypeAnnotation(false);t.asserts=false;return this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();this.next();return this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();this.expect(87);if(this.match(83)){e.exprName=this.tsParseImportType()}else{e.exprName=this.tsParseEntityName()}if(!this.hasPrecedingLineBreak()&&this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();e(t);t.name=this.tsParseTypeParameterName();t.constraint=this.tsEatThenParseType(81);t.default=this.tsEatThenParseType(29);return this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47)){return this.tsParseTypeParameters(e)}}tsParseTypeParameters(e){const t=this.startNode();if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}const r={value:-1};t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),false,true,r);if(t.params.length===0){this.raise(ee.EmptyTypeParameters,t)}if(r.value!==-1){this.addExtra(t,"trailingComma",r.value)}return this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=e===19;const s="parameters";const n="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier);this.expect(10);t[s]=this.tsParseBindingListForSignature();if(r){t[n]=this.tsParseTypeOrTypePredicateAnnotation(e)}else if(this.match(e)){t[n]=this.tsParseTypeOrTypePredicateAnnotation(e)}}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;if(e==="AssignmentPattern"||e==="TSParameterProperty"){this.raise(ee.UnsupportedSignatureParameterKind,t,{type:e})}}return e}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator()){this.expect(13)}}tsParseSignatureMember(e,t){this.tsFillSignature(14,t);this.tsParseTypeMemberSemicolon();return this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){this.next();if(tokenIsIdentifier(this.state.type)){this.next();return this.match(14)}return false}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return}this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(t);this.expect(3);e.parameters=[t];const r=this.tsTryParseTypeAnnotation();if(r)e.typeAnnotation=r;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17))e.optional=true;const r=e;if(this.match(10)||this.match(47)){if(t){this.raise(ee.ReadonlyForMethodSignature,e)}const s=r;if(s.kind&&this.match(47)){this.raise(ee.AccessorCannotHaveTypeParameters,this.state.curPosition())}this.tsFillSignature(14,s);this.tsParseTypeMemberSemicolon();const n="parameters";const i="typeAnnotation";if(s.kind==="get"){if(s[n].length>0){this.raise(p.BadGetterArity,this.state.curPosition());if(this.isThisParam(s[n][0])){this.raise(ee.AccessorCannotDeclareThisParameter,this.state.curPosition())}}}else if(s.kind==="set"){if(s[n].length!==1){this.raise(p.BadSetterArity,this.state.curPosition())}else{const e=s[n][0];if(this.isThisParam(e)){this.raise(ee.AccessorCannotDeclareThisParameter,this.state.curPosition())}if(e.type==="Identifier"&&e.optional){this.raise(ee.SetAccessorCannotHaveOptionalParameter,this.state.curPosition())}if(e.type==="RestElement"){this.raise(ee.SetAccessorCannotHaveRestParameter,this.state.curPosition())}}if(s[i]){this.raise(ee.SetAccessorCannotHaveReturnType,s[i])}}else{s.kind="method"}return this.finishNode(s,"TSMethodSignature")}else{const e=r;if(t)e.readonly=true;const s=this.tsTryParseTypeAnnotation();if(s)e.typeAnnotation=s;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSCallSignatureDeclaration",e)}if(this.match(77)){const t=this.startNode();this.next();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",e)}else{e.key=this.createIdentifier(t,"new");return this.tsParsePropertyOrMethodSignature(e,false)}}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);if(t){return t}super.parsePropertyName(e);if(!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()){e.kind=e.key.name;super.parsePropertyName(e)}return this.tsParsePropertyOrMethodSignature(e,!!e.readonly)}tsParseTypeLiteral(){const e=this.startNode();e.members=this.tsParseObjectTypeMembers();return this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(8);return e}tsIsStartOfMappedType(){this.next();if(this.eat(53)){return this.isContextual(122)}if(this.isContextual(122)){this.next()}if(!this.match(0)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(58)}tsParseMappedType(){const e=this.startNode();this.expect(5);if(this.match(53)){e.readonly=this.state.value;this.next();this.expectContextual(122)}else if(this.eatContextual(122)){e.readonly=true}this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsExpectThenParseType(58);e.typeParameter=this.finishNode(t,"TSTypeParameter")}e.nameType=this.eatContextual(93)?this.tsParseType():null;this.expect(3);if(this.match(53)){e.optional=this.state.value;this.next();this.expect(17)}else if(this.eat(17)){e.optional=true}e.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(8);return this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let t=false;e.elementTypes.forEach((e=>{const{type:r}=e;if(t&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&e.optional)){this.raise(ee.OptionalTypeBeforeRequired,e)}t||(t=r==="TSNamedTupleMember"&&e.optional||r==="TSOptionalType")}));return this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state;const t=this.eat(21);let r;let s;let n;let i;const a=tokenIsKeywordOrIdentifier(this.state.type);const o=a?this.lookaheadCharCode():null;if(o===58){r=true;n=false;s=this.parseIdentifier(true);this.expect(14);i=this.tsParseType()}else if(o===63){n=true;const e=this.state.startLoc;const t=this.state.value;const a=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58){r=true;s=this.createIdentifier(this.startNodeAt(e),t);this.expect(17);this.expect(14);i=this.tsParseType()}else{r=false;i=a;this.expect(17)}}else{i=this.tsParseType();n=this.eat(17);r=this.eat(14)}if(r){let e;if(s){e=this.startNodeAtNode(s);e.optional=n;e.label=s;e.elementType=i;if(this.eat(17)){e.optional=true;this.raise(ee.TupleOptionalAfterType,this.state.lastTokStartLoc)}}else{e=this.startNodeAtNode(i);e.optional=n;this.raise(ee.InvalidTupleMemberLabel,i);e.label=i;e.elementType=this.tsParseType()}i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i;i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i;i=this.finishNode(t,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();this.expect(10);e.typeAnnotation=this.tsParseType();this.expect(11);return this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();if(e==="TSConstructorType"){r.abstract=!!t;if(t)this.next();this.next()}this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r)));return this.finishNode(r,e)}tsParseLiteralTypeNode(){const 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(){const e=this.startNode();e.literal=super.parseTemplate(false);return this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(e)}else{return 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==="-"){const e=this.startNode();const t=this.lookahead();if(t.type!==135&&t.type!==136){this.unexpected()}e.literal=this.parseMaybeUnary();return 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:{const{type:e}=this.state;if(tokenIsIdentifier(e)||e===88||e===84){const t=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":keywordTypeFromName(this.state.value);if(t!==undefined&&this.lookaheadCharCode()!==46){const e=this.startNode();this.next();return this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0)){if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e;this.expect(3);e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e;t.indexType=this.tsParseType();this.expect(3);e=this.finishNode(t,"TSIndexedAccessType")}}return e}tsParseTypeOperator(){const e=this.startNode();const t=this.state.value;this.next();e.operator=t;e.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(t==="readonly"){this.tsCheckTypeAnnotationForReadOnly(e)}return this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ee.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType()));e.typeParameter=this.finishNode(t,"TSTypeParameter");return this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17)){return e}}}tsParseTypeOperatorOrHigher(){const e=tokenIsTSTypeOperator(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){const s=this.startNode();const n=this.eat(r);const i=[];do{i.push(t())}while(this.eat(r));if(i.length===1&&!n){return i[0]}s.types=i;return this.finishNode(s,e)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47)){return true}return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78)){this.next();return true}if(this.match(5)){const{errors:e}=this.state;const t=e.length;try{this.parseObjectLike(8,true);return e.length===t}catch(e){return false}}if(this.match(0)){this.next();const{errors:e}=this.state;const t=e.length;try{super.parseBindingList(3,93,1);return e.length===t}catch(e){return false}}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(11)||this.match(21)){return true}if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29)){return true}if(this.match(11)){this.next();if(this.match(19)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode();const s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();if(e.type==="TSThisType"){r.parameterName=e;r.asserts=true;r.typeAnnotation=null;e=this.finishNode(r,"TSTypePredicate")}else{this.resetStartLocationFromNode(e,r);e.asserts=true}t.typeAnnotation=e;return this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n){if(!s){return this.tsParseTypeAnnotation(false,t)}r.parameterName=this.parseIdentifier();r.asserts=s;r.typeAnnotation=null;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}const i=this.tsParseTypeAnnotation(false);r.parameterName=n;r.typeAnnotation=i;r.asserts=s;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return 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(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){this.next();return e}}tsParseTypePredicateAsserts(){if(this.state.type!==109){return false}const e=this.state.containsEsc;this.next();if(!tokenIsIdentifier(this.state.type)&&!this.match(78)){return false}if(e){this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"})}return true}tsParseTypeAnnotation(e=true,t=this.startNode()){this.tsInType((()=>{if(e)this.expect(14);t.typeAnnotation=this.tsParseType()}));return this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81)){return e}const t=this.startNodeAtNode(e);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()));return this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(77)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(ee.ReservedTypeAssertion,this.state.startLoc)}const e=this.startNode();e.typeAnnotation=this.tsInType((()=>{this.next();return this.match(75)?this.tsParseTypeReference():this.tsParseType()}));this.expect(48);e.expression=this.parseMaybeUnary();return this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc;const r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();e.expression=this.tsParseEntityName();if(this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSExpressionWithTypeArguments")}));if(!r.length){this.raise(ee.EmptyHeritageClauseType,t,{token:e})}return r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129);if(t.declare)e.declare=true;if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();this.checkIdentifier(e.id,130)}else{e.id=null;this.raise(ee.MissingInterfaceName,this.state.startLoc)}e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(this.eat(81)){e.extends=this.tsParseHeritageClause("extends")}const r=this.startNode();r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));e.body=this.finishNode(r,"TSInterfaceBody");return this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){e.id=this.parseIdentifier();this.checkIdentifier(e.id,2);e.typeAnnotation=this.tsInType((()=>{e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers);this.expect(29);if(this.isContextual(114)&&this.lookahead().type!==16){const e=this.startNode();this.next();return this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}));this.semicolon();return this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=true;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;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);return this.tsParseType()}))}tsNextThenParseType(){return this.tsInType((()=>{this.next();return this.tsParseType()}))}tsParseEnumMember(){const e=this.startNode();e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(true);if(this.eat(29)){e.initializer=super.parseMaybeAssignAllowIn()}return this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){if(t.const)e.const=true;if(t.declare)e.declare=true;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);return this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();this.scope.enter(0);this.expect(5);super.parseBlockOrModuleBlockBody(e.body=[],undefined,true,8);this.scope.exit();return this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=false){e.id=this.parseIdentifier();if(!t){this.checkIdentifier(e.id,1024)}if(this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,true);e.body=t}else{this.scope.enter(256);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){if(this.isContextual(112)){e.kind="global";{e.global=true}e.id=this.parseIdentifier()}else if(this.match(134)){e.kind="module";e.id=super.parseStringLiteral(this.state.value)}else{this.unexpected()}if(this.match(5)){this.scope.enter(256);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||false;e.id=t||this.parseIdentifier();this.checkIdentifier(e.id,4096);this.expect(29);const s=this.tsParseModuleReference();if(e.importKind==="type"&&s.type!=="TSExternalModuleReference"){this.raise(ee.ImportAliasHasImportType,s)}e.moduleReference=s;this.semicolon();return this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(false)}tsParseExternalModuleReference(){const e=this.startNode();this.expectContextual(119);this.expect(10);if(!this.match(134)){this.unexpected()}e.expression=super.parseExprAtom();this.expect(11);this.sawUnambiguousESM=true;return this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone();const r=e();this.state=t;return r}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(t.aborted||!t.node)return;if(t.error)this.state=t.failState;return t.node}tsTryParse(e){const t=this.state.clone();const r=e();if(r!==undefined&&r!==false){return r}this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator()){return}let t=this.state.type;let r;if(this.isContextual(100)){t=74;r="let"}return this.tsInAmbientContext((()=>{switch(t){case 68:e.declare=true;return super.parseFunctionStatement(e,false,false);case 80:e.declare=true;return this.parseClass(e,true,false);case 126:return this.tsParseEnumDeclaration(e,{declare:true});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum")){e.declare=true;return this.parseVarStatement(e,r||this.state.value,true)}this.expect(75);return this.tsParseEnumDeclaration(e,{const:true,declare:true});case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:true});if(t)return t}default:if(tokenIsIdentifier(t)){return this.tsParseDeclaration(e,this.state.value,true,null)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t){t.declare=true}return t}case"global":if(this.match(5)){this.scope.enter(256);this.prodParam.enter(0);const r=e;r.kind="global";{e.global=true}r.id=t;r.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,false,r)}}tsParseDeclaration(e,t,r,s){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||tokenIsIdentifier(this.state.type))){return this.tsParseAbstractDeclaration(e,s)}break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134)){return this.tsParseAmbientExternalModuleDeclaration(e)}else if(tokenIsIdentifier(this.state.type)){e.kind="module";return this.tsParseModuleOrNamespaceDeclaration(e)}}break;case"namespace":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){e.kind="namespace";return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"type":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){return this.tsParseTypeAliasDeclaration(e)}break}}tsCheckLineTerminator(e){if(e){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const r=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier);super.parseFunctionParams(t);t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(19);return t}));this.state.maybeInArrowParameters=t;if(!r)return;return super.parseArrowExpression(r,null,true)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();e.params=this.tsInType((()=>this.tsInNoContext((()=>{this.expect(47);return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}))));if(e.params.length===0){this.raise(ee.EmptyTypeArguments,e)}else if(!this.state.inType&&this.curContext()===f.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tokenIsTSDeclarationStart(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.startLoc;const s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const n=s.accessibility;const i=s.override;const a=s.readonly;if(!(e&4)&&(n||a||i)){this.raise(ee.UnexpectedParameterModifier,r)}const o=this.parseMaybeDefault();if(e&2){this.parseFunctionParamType(o)}const l=this.parseMaybeDefault(o.loc.start,o);if(n||a||i){const e=this.startNodeAt(r);if(t.length){e.decorators=t}if(n)e.accessibility=n;if(a)e.readonly=a;if(i)e.override=i;if(l.type!=="Identifier"&&l.type!=="AssignmentPattern"){this.raise(ee.UnsupportedParameterPropertyKind,e)}e.parameter=l;return this.finishNode(e,"TSParameterProperty")}if(t.length){o.decorators=t}return l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params){if(t.type!=="Identifier"&&t.optional&&!this.state.isAmbientContext){this.raise(ee.PatternIsOptional,t)}}}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r);this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14)}const s=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"||t==="ClassPrivateMethod"?"TSDeclareMethod":undefined;if(s&&!this.match(5)&&this.isLineTerminator()){return this.finishNode(e,s)}if(s==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(ee.DeclareFunctionHasImplementation,e);if(e.declare){return super.parseFunctionBodyAndFinish(e,s,r)}}this.tsDisallowOptionalPattern(e);return super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){if(!e.body&&e.id){this.checkIdentifier(e.id,1024)}else{super.registerFunctionStatementId(e)}}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{if((e==null?void 0:e.type)==="TSTypeCastExpression"){this.raise(ee.UnexpectedTypeAnnotation,e.typeAnnotation)}}))}toReferencedList(e,t){this.tsCheckForInvalidTypeCasts(e);return e}parseArrayLike(e,t,r,s){const n=super.parseArrayLike(e,t,r,s);if(n.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(n.elements)}return n}parseSubscript(e,t,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=false;this.next();const r=this.startNodeAt(t);r.expression=e;return this.finishNode(r,"TSNonNullExpression")}let n=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(r){s.stop=true;return e}s.optionalChainMember=n=true;this.next()}if(this.match(47)||this.match(51)){let i;const a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e){return e}}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(n&&!this.match(10)){i=this.state.curPosition();return}if(tokenIsTemplate(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,s);r.typeParameters=a;return r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.tsCheckForInvalidTypeCasts(r.arguments);r.typeParameters=a;if(s.optionalChainMember){r.optional=n}return this.finishCallExpression(r,s.optionalChainMember)}const o=this.state.type;if(o===48||o===52||o!==10&&tokenCanStartExpression(o)&&!this.hasPrecedingLineBreak()){return}const l=this.startNodeAt(t);l.expression=e;l.typeParameters=a;return this.finishNode(l,"TSInstantiationExpression")}));if(i){this.unexpected(i,10)}if(a){if(a.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)){this.raise(ee.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc)}return a}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;if(r.type==="TSInstantiationExpression"&&!((t=r.extra)!=null&&t.parenthesized)){e.typeParameters=r.typeParameters;e.callee=r.expression}}parseExprOp(e,t,r){let s;if(tokenOperatorPrecedence(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const n=this.startNodeAt(t);n.expression=e;n.typeAnnotation=this.tsInType((()=>{this.next();if(this.match(75)){if(s){this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"})}return this.tsParseTypeReference()}return this.tsParseType()}));this.finishNode(n,s?"TSSatisfiesExpression":"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(n,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,s){if(!this.state.isAmbientContext){super.checkReservedWord(e,t,r,s)}}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(ee.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){e.exportKind=r==="type"?"type":"value"}else{e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImport(e){if(this.match(134)){e.importKind="value";return super.parseImport(e)}let t;if(tokenIsIdentifier(this.state.type)&&this.lookaheadCharCode()===61){e.importKind="value";return this.tsParseImportEqualsDeclaration(e)}else if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,false);if(this.lookaheadCharCode()===61){return this.tsParseImportEqualsDeclaration(e,r)}else{t=super.parseImportSpecifiersAndAfter(e,r)}}else{t=super.parseImport(e)}if(t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(ee.TypeImportCannotSpecifyDefaultAndNamed,t)}return t}parseExport(e,t){if(this.match(83)){this.next();const t=e;let r=null;if(this.isContextual(130)&&this.isPotentialImportPhase(false)){r=this.parseMaybeImportPhase(t,false)}else{t.importKind="value"}return this.tsParseImportEqualsDeclaration(t,r,true)}else if(this.eat(29)){const t=e;t.expression=super.parseExpression();this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual(93)){const t=e;this.expectContextual(128);t.id=this.parseIdentifier();this.semicolon();return this.finishNode(t,"TSNamespaceExportDeclaration")}else{return super.parseExport(e,t)}}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();this.next();e.abstract=true;return this.parseClass(e,true,true)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=false){const{isAmbientContext:s}=this.state;const n=super.parseVarStatement(e,t,r||s);if(!s)return n;for(const{id:e,init:r}of n.declarations){if(!r)continue;if(t!=="const"||!!e.typeAnnotation){this.raise(ee.InitializerNotAllowedInAmbientContext,r)}else if(!isValidAmbientConstInitializer(r,this.hasPlugin("estree"))){this.raise(ee.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r)}}return n}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();this.expect(75);return this.tsParseEnumDeclaration(e,{const:true})}if(this.isContextual(126)){return this.tsParseEnumDeclaration(this.startNode())}if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>{if(tsIsAccessModifier(t)){return e.accessibility===t}return!!e[t]}))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,r){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:true,errorTemplate:ee.InvalidModifierOnTypeParameterPositions},t);const callParseClassMemberWithIsStatic=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(t,s)){this.raise(ee.StaticBlockCannotHaveModifier,this.state.curPosition())}super.parseClassStaticBlock(e,t)}else{this.parseClassMemberWithIsStatic(e,t,r,!!t.static)}};if(t.declare){this.tsInAmbientContext(callParseClassMemberWithIsStatic)}else{callParseClassMemberWithIsStatic()}}parseClassMemberWithIsStatic(e,t,r,s){const n=this.tsTryParseIndexSignature(t);if(n){e.body.push(n);if(t.abstract){this.raise(ee.IndexSignatureHasAbstract,t)}if(t.accessibility){this.raise(ee.IndexSignatureHasAccessibility,t,{modifier:t.accessibility})}if(t.declare){this.raise(ee.IndexSignatureHasDeclare,t)}if(t.override){this.raise(ee.IndexSignatureHasOverride,t)}return}if(!this.state.inAbstractClass&&t.abstract){this.raise(ee.NonAbstractClassHasAbstractMethod,t)}if(t.override){if(!r.hadSuperClass){this.raise(ee.OverrideNotInSubClass,t)}}super.parseClassMemberWithIsStatic(e,t,r,s)}parsePostMemberNameModifiers(e){const t=this.eat(17);if(t)e.optional=true;if(e.readonly&&this.match(10)){this.raise(ee.ClassMethodHasReadonly,e)}if(e.declare&&this.match(10)){this.raise(ee.ClassMethodHasDeclare,e)}}parseExpressionStatement(e,t,r){const s=t.type==="Identifier"?this.tsParseExpressionStatement(e,t,r):undefined;return s||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17)){return super.parseConditional(e,t,r)}const s=this.tryParse((()=>super.parseConditional(e,t)));if(!s.node){if(s.error){super.setOptionalParametersError(r,s.error)}return e}if(s.error)this.state=s.failState;return s.node}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const r=this.startNodeAt(t);r.expression=e;r.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125)){return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)))}const t=this.state.startLoc;const r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration())){throw this.raise(ee.ExpectedAmbientAfterExportDeclare,this.state.startLoc)}const s=tokenIsIdentifier(this.state.type);const n=s&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);if(!n)return null;if(n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||r){e.exportKind="type"}if(r){this.resetStartLocation(n,t);n.declare=true}return n}parseClassId(e,t,r,s){if((!t||r)&&this.isContextual(113)){return}super.parseClassId(e,t,r,e.declare?1024:8331);const n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(n)e.typeParameters=n}parseClassPropertyAnnotation(e){if(!e.optional){if(this.eat(35)){e.definite=true}else if(this.eat(17)){e.optional=true}}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t}parseClassProperty(e){this.parseClassPropertyAnnotation(e);if(this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)){this.raise(ee.DeclareClassFieldHasInitializer,this.state.startLoc)}if(e.abstract&&this.match(29)){const{key:t}=e;this.raise(ee.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(e.abstract){this.raise(ee.PrivateElementHasAbstract,e)}if(e.accessibility){this.raise(ee.PrivateElementHasAccessibility,e,{modifier:e.accessibility})}this.parseClassPropertyAnnotation(e);return super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){this.parseClassPropertyAnnotation(e);if(e.optional){this.raise(ee.AccessorCannotBeOptional,e)}return super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,s,n,i){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a&&n){this.raise(ee.ConstructorHasTypeParameters,a)}const{declare:o=false,kind:l}=t;if(o&&(l==="get"||l==="set")){this.raise(ee.DeclareAccessor,t,{kind:l})}if(a)t.typeParameters=a;super.pushClassMethod(e,t,r,s,n,i)}pushClassPrivateMethod(e,t,r,s){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(n)t.typeParameters=n;super.pushClassPrivateMethod(e,t,r,s)}declareClassPrivateMethodInScope(e,t){if(e.type==="TSDeclareMethod")return;if(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")){return}super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){e.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113)){e.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(e,t,r,s,n,i,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(o)e.typeParameters=o;return super.parseObjPropValue(e,t,r,s,n,i,a)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r)e.typeParameters=r;super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)){e.definite=true}const r=this.tsTryParseTypeAnnotation();if(r){e.id.typeAnnotation=r;this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){e.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,s,n,i,a;let o;let l;let c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){o=this.state.clone();l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!l.error)return l.node;const{context:r}=this.state;const s=r[r.length-1];if(s===f.j_oTag||s===f.j_expr){r.pop()}}if(!((r=l)!=null&&r.error)&&!this.match(47)){return super.parseMaybeAssign(e,t)}if(!o||o===this.state)o=this.state.clone();let p;const u=this.tryParse((r=>{var s,n;p=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);if(i.type!=="ArrowFunctionExpression"||(s=i.extra)!=null&&s.parenthesized){r()}if(((n=p)==null?void 0:n.params.length)!==0){this.resetStartLocationFromNode(i,p)}i.typeParameters=p;return i}),o);if(!u.error&&!u.aborted){if(p)this.reportReservedArrowTypeParam(p);return u.node}if(!l){assert(!this.hasPlugin("jsx"));c=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!c.error)return c.node}if((s=l)!=null&&s.node){this.state=l.failState;return l.node}if(u.node){this.state=u.failState;if(p)this.reportReservedArrowTypeParam(p);return u.node}if((n=c)!=null&&n.node){this.state=c.failState;return c.node}throw((i=l)==null?void 0:i.error)||u.error||((a=c)==null?void 0:a.error)}reportReservedArrowTypeParam(e){var t;if(e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(ee.ReservedArrowTypeParam,e)}}parseMaybeUnary(e,t){if(!this.hasPlugin("jsx")&&this.match(47)){return this.tsParseTypeAssertion()}return super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))e();return t}));if(t.aborted)return;if(!t.thrown){if(t.error)this.state=t.failState;e.returnType=t.node}}return super.parseArrow(e)}parseFunctionParamType(e){if(this.eat(17)){e.optional=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t;this.resetEndLocation(e);return e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return true;default:return super.isAssignable(e,t)}}toAssignable(e,t=false){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(t){this.expressionScope.recordArrowParameterBindingError(ee.UnexpectedTypeCastInParameter,e)}else{this.raise(ee.UnexpectedTypeCastInParameter,e)}this.toAssignable(e.expression,t);break;case"AssignmentExpression":if(!t&&e.left.type==="TSTypeCastExpression"){e.left=this.typeCastToParameter(e.left)}default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,false);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){switch(e){case"TSTypeCastExpression":return true;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(r!==64||!t)&&["expression",true];default:return super.isValidLVal(e,t,r)}}parseBindingAtom(){if(this.state.type===78){return this.parseIdentifier(true)}return super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(e);r.typeParameters=t;return r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e){this.next();return false}return super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(ee.TypeAnnotationAfterAssign,r.typeAnnotation)}return r}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];if((r==null?void 0:r.type)==="TSTypeCastExpression"){e[t]=this.typeCastToParameter(r)}}super.toAssignableList(e,t,r)}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}shouldParseArrow(e){if(this.match(14)){return e.every((e=>this.isAssignable(e,true)))}return 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)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));if(t)e.typeParameters=t}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e);const r=this.getObjectOrClassMethodParams(e);const s=r[0];const n=s&&this.isThisParam(s);return n?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam();const t=this.tsTryParseTypeAnnotation();if(t){e.typeAnnotation=t;this.resetEndLocation(e)}return e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=true;this.state.strict=false;try{return e()}finally{this.state.isAmbientContext=t;this.state.strict=r}}parseClass(e,t,r){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(e,t){if(this.match(80)){e.abstract=true;return this.maybeTakeDecorators(t,this.parseClass(e,true,false))}else if(this.isContextual(129)){if(!this.hasFollowingLineBreak()){e.abstract=true;this.raise(ee.NonClassMethodPropertyHasAbstractModifer,e);return this.tsParseInterfaceDeclaration(e)}}else{this.unexpected(null,80)}}parseMethod(e,t,r,s,n,i,a){const o=super.parseMethod(e,t,r,s,n,i,a);if(o.abstract){const e=this.hasPlugin("estree")?!!o.value.body:!!o.body;if(e){const{key:e}=o;this.raise(ee.AbstractMethodHasImplementation,o,{methodName:e.type==="Identifier"&&!o.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}}return o}tsParseTypeParameterName(){const e=this.parseIdentifier();return e.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}parseExportSpecifier(e,t,r,s){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,false,r);return this.finishNode(e,"ExportSpecifier")}e.exportKind="value";return super.parseExportSpecifier(e,t,r,s)}parseImportSpecifier(e,t,r,s,n){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,true,r);return this.finishNode(e,"ImportSpecifier")}e.importKind="value";return super.parseImportSpecifier(e,t,r,s,r?4098:4096)}parseTypeOnlyImportExportSpecifier(e,t,r){const s=t?"imported":"local";const n=t?"local":"exported";let i=e[s];let a;let o=false;let l=true;const c=i.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;i=e;a=t?this.parseIdentifier():this.parseModuleExportName();l=false}else{a=r;l=false}}else if(tokenIsKeywordOrIdentifier(this.state.type)){l=false;a=t?this.parseIdentifier():this.parseModuleExportName()}else{o=true;i=e}}else if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;if(t){i=this.parseIdentifier(true);if(!this.isContextual(93)){this.checkReservedWord(i.name,i.loc.start,true,true)}}else{i=this.parseModuleExportName()}}if(o&&r){this.raise(t?ee.TypeModifierIsUsedInTypeImports:ee.TypeModifierIsUsedInTypeExports,c)}e[s]=i;e[n]=a;const p=t?"importKind":"exportKind";e[p]=o?"type":"value";if(l&&this.eatContextual(93)){e[n]=t?this.parseIdentifier():this.parseModuleExportName()}if(!e[n]){e[n]=cloneIdentifier(e[s])}if(t){this.checkIdentifier(e[n],o?4098:4096)}}};function isPossiblyLiteralEnum(e){if(e.type!=="MemberExpression")return false;const{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)){return false}return isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,t){var r;const{type:s}=e;if((r=e.extra)!=null&&r.parenthesized){return false}if(t){if(s==="Literal"){const{value:t}=e;if(typeof t==="string"||typeof t==="boolean"){return true}}}else{if(s==="StringLiteral"||s==="BooleanLiteral"){return true}}if(isNumber(e,t)||isNegativeNumber(e,t)){return true}if(s==="TemplateLiteral"&&e.expressions.length===0){return true}if(isPossiblyLiteralEnum(e)){return true}return false}function isNumber(e,t){if(t){return e.type==="Literal"&&(typeof e.value==="number"||"bigint"in e)}return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function isNegativeNumber(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:s}=e;if(r==="-"&&isNumber(s,t)){return true}}return false}function isUncomputedMemberExpressionChain(e){if(e.type==="Identifier")return true;if(e.type!=="MemberExpression"||e.computed){return false}return isUncomputedMemberExpressionChain(e.object)}const te=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var placeholders=e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();this.next();this.assertNoSpace();t.name=super.parseIdentifier(true);this.assertNoSpace();this.expect(133);return this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;if(!r.expectedNode||!r.type){r=this.finishNode(r,"Placeholder")}r.expectedNode=t;return r}getTokenFromCode(e){if(e===37&&this.input.charCodeAt(this.state.pos+1)===37){this.finishOp(133,2)}else{super.getTokenFromCode(e)}}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,s){if(e!==undefined){super.checkReservedWord(e,t,r,s)}}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return e==="Placeholder"||super.isValidLVal(e,t,r)}toAssignable(e,t){if(e&&e.type==="Placeholder"&&e.expectedNode==="Expression"){e.expectedNode="Pattern"}else{super.toAssignable(e,t)}}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t)){return true}const r=this.lookahead();if(r.type===133){return true}return false}verifyBreakContinue(e,t){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if(t.type!=="Placeholder"||(r=t.extra)!=null&&r.parenthesized){return super.parseExpressionStatement(e,t)}if(this.match(14)){const r=e;r.label=this.finishPlaceholder(t,"Identifier");this.next();r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration();return this.finishNode(r,"LabeledStatement")}this.semicolon();const s=e;s.name=t.name;return this.finishPlaceholder(s,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const s=t?"ClassDeclaration":"ClassExpression";this.next();const n=this.state.strict;const i=this.parsePlaceholder("Identifier");if(i){if(this.match(81)||this.match(133)||this.match(5)){e.id=i}else if(r||!t){e.id=null;e.body=this.finishPlaceholder(i,"ClassBody");return this.finishNode(e,s)}else{throw this.raise(te.ClassNameIsRequired,this.state.startLoc)}}else{this.parseClassId(e,t,r)}super.parseClassSuper(e);e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n);return this.finishNode(e,s)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const s=e;if(!this.isContextual(98)&&!this.match(12)){s.specifiers=[];s.source=null;s.declaration=this.finishPlaceholder(r,"Declaration");return this.finishNode(s,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const n=this.startNode();n.exported=r;s.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")];return super.parseExport(s,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")){if(this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;if((r=e.specifiers)!=null&&r.length){return true}return super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;if(t!=null&&t.length){e.specifiers=t.filter((e=>e.exported.type==="Placeholder"))}super.checkExport(e);e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);e.specifiers=[];if(!this.isContextual(98)&&!this.match(12)){e.source=this.finishPlaceholder(t,"StringLiteral");this.semicolon();return this.finishNode(e,"ImportDeclaration")}const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier"));if(this.eat(12)){const t=this.maybeParseStarImportSpecifier(e);if(!t)this.parseNamedImportSpecifiers(e)}this.expectContextual(98);e.source=this.parseImportSource();this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)){this.raise(te.UnexpectedSpace,this.state.lastTokEndLoc)}}};var v8intrinsic=e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc;const t=this.startNode();this.next();if(tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName();const r=this.createIdentifier(t,e);r.type="V8IntrinsicIdentifier";if(this.match(10)){return r}}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};const re=["minimal","fsharp","hack","smart"];const se=["^^","@@","^","%","#"];function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.")}const r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!=="boolean"){throw new Error("'allowCallParenthesized' must be a boolean.")}}if(e.has("flow")&&e.has("typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(e.has("placeholders")&&e.has("v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!re.includes(r)){const e=re.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const s=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(e.has("v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const t=e.get("pipelineOperator").topicToken;if(!se.includes(t)){const e=se.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t==="#"&&s){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}else if(r==="smart"&&s){throw new 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 new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.")}const t=e.get("moduleAttributes").version;if(t!=="may-2020"){throw new 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")){if(e.has("deprecatedImportAssert")){throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}}if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax){{e.set("deprecatedImportAssert",{})}}if(e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(t!=null){{const e=["hash","bar"];if(!e.includes(t)){throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");e.missingPlugins="doExpressions";throw e}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07"){throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is '2023-07'.")}}const ne={estree:estree,jsx:jsx,flow:flow,typescript:typescript,v8intrinsic:v8intrinsic,placeholders:placeholders};const ie=Object.keys(ne);function createDefaultOptions(){return{sourceType:"script",sourceFilename:undefined,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,plugins:[],strictMode:null,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function getOptions(e){const t=createDefaultOptions();if(e==null){return t}if(e.annexB!=null&&e.annexB!==false){throw new Error("The `annexB` option can only be set to `false`.")}for(const r of Object.keys(t)){if(e[r]!=null)t[r]=e[r]}if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0){t.startIndex=t.startColumn}else if(e.startColumn==null&&t.startIndex>0){t.startColumn=t.startIndex}}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null){throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}}return t}class ExpressionParser extends LValParser{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand){return}const n=e.key;const i=n.type==="Identifier"?n.name:n.value;if(i==="__proto__"){if(t){this.raise(p.RecordNoProto,n);return}if(r.used){if(s){if(s.doubleProtoLoc===null){s.doubleProtoLoc=n.loc.start}}else{this.raise(p.DuplicateProto,n)}}r.used=true}}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes();this.nextToken();const e=this.parseExpression();if(!this.match(140)){this.unexpected()}this.finalizeRemainingComments();e.comments=this.comments;e.errors=this.state.errors;if(this.options.tokens){e.tokens=this.tokens}return e}parseExpression(e,t){if(e){return this.disallowInAnd((()=>this.parseExpressionBase(t)))}return this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc;const r=this.parseMaybeAssign(e);if(this.match(12)){const s=this.startNodeAt(t);s.expressions=[r];while(this.eat(12)){s.expressions.push(this.parseMaybeAssign(e))}this.toReferencedList(s.expressions);return this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=(r=t==null?void 0:t.loc)!=null?r:this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;if(this.isContextual(108)){if(this.prodParam.hasYield){let e=this.parseYield();if(t){e=t.call(this,e,r)}return e}}let s;if(e){s=false}else{e=new ExpressionErrors;s=true}const{type:n}=this.state;if(n===10||tokenIsIdentifier(n)){this.state.potentialArrowAt=this.state.start}let i=this.parseMaybeConditional(e);if(t){i=t.call(this,i,r)}if(tokenIsAssignment(this.state.type)){const t=this.startNodeAt(r);const s=this.state.value;t.operator=s;if(this.match(29)){this.toAssignable(i,true);t.left=i;const s=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=s){e.doubleProtoLoc=null}if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=s){e.shorthandAssignLoc=null}if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=s){this.checkDestructuringPrivate(e);e.privateKeyLoc=null}}else{t.left=i}this.next();t.right=this.parseMaybeAssign();this.checkLVal(i,this.finishNode(t,"AssignmentExpression"));return t}else if(s){this.checkExpressionErrors(e,true)}return i}parseMaybeConditional(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprOps(e);if(this.shouldExitDescending(s,r)){return s}return this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);r.test=e;r.consequent=this.parseMaybeAssignAllowIn();this.expect(14);r.alternate=this.parseMaybeAssign();return this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(s,r)){return s}return this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);if(r>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58)){this.raise(p.PrivateInExpectedIn,e,{identifierName:t})}this.classScope.usePrivateName(t,e.loc.start)}const s=this.state.type;if(tokenIsOperator(s)&&(this.prodParam.hasIn||!this.match(58))){let n=tokenOperatorPrecedence(s);if(n>r){if(s===39){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return e}this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e;i.operator=this.state.value;const a=s===41||s===42;const o=s===40;if(o){n=tokenOperatorPrecedence(42)}this.next();if(s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait){throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}}i.right=this.parseExprOpRightExpr(s,n);const l=this.finishNode(i,a||o?"LogicalExpression":"BinaryExpression");const c=this.state.type;if(o&&(c===41||c===42)||a&&c===40){throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc)}return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108)){throw this.raise(p.PipeBodyIsTighter,this.state.startLoc)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,tokenIsRightAssociative(e)?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state;const r=this.parseMaybeAssign();const s=o.has(r.type);if(s&&!((e=r.extra)!=null&&e.parenthesized)){this.raise(p.PipeUnparenthesizedBody,t,{type:r.type})}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipeTopicUnused,t)}return r}checkExponentialAfterUnary(e){if(this.match(57)){this.raise(p.UnexpectedTokenUnaryExponentiation,e.argument)}}parseMaybeUnary(e,t){const r=this.state.startLoc;const s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(e);return e}const n=this.match(34);const i=this.startNode();if(tokenIsPrefix(this.state.type)){i.operator=this.state.value;i.prefix=true;if(this.match(72)){this.expectPlugin("throwExpressions")}const r=this.match(89);this.next();i.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(this.state.strict&&r){const e=i.argument;if(e.type==="Identifier"){this.raise(p.StrictDelete,i)}else if(this.hasPropertyAsPrivateName(e)){this.raise(p.DeletePrivateField,i)}}if(!n){if(!t){this.checkExponentialAfterUnary(i)}return this.finishNode(i,"UnaryExpression")}}const a=this.parseUpdate(i,n,e);if(s){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousAwait()){this.raiseOverwrite(p.AwaitNotInAsyncContext,r);return this.parseAwait(r)}}return a}parseUpdate(e,t,r){if(t){const t=e;this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression"));return e}const s=this.state.startLoc;let n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,false))return n;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const e=this.startNodeAt(s);e.operator=this.state.value;e.prefix=false;e.argument=n;this.next();this.checkLVal(n,n=this.finishNode(e,"UpdateExpression"))}return n}parseExprSubscripts(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprAtom(e);if(this.shouldExitDescending(s,r)){return s}return this.parseSubscripts(s,t)}parseSubscripts(e,t,r){const s={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:false};do{e=this.parseSubscript(e,t,r,s);s.maybeAsyncArrow=false}while(!s.stop);return e}parseSubscript(e,t,r,s){const{type:n}=this.state;if(!r&&n===15){return this.parseBind(e,t,r,s)}else if(tokenIsTemplate(n)){return this.parseTaggedTemplateExpression(e,t,s)}let i=false;if(n===18){if(r){this.raise(p.OptionalChainingNoNew,this.state.startLoc);if(this.lookaheadCharCode()===40){s.stop=true;return e}}s.optionalChainMember=i=true;this.next()}if(!r&&this.match(10)){return this.parseCoverCallAndAsyncArrowHead(e,t,s,i)}else{const r=this.eat(0);if(r||i||this.eat(16)){return this.parseMember(e,t,s,r,i)}else{s.stop=true;return e}}}parseMember(e,t,r,s,n){const i=this.startNodeAt(t);i.object=e;i.computed=s;if(s){i.property=this.parseExpression();this.expect(3)}else if(this.match(139)){if(e.type==="Super"){this.raise(p.SuperPrivateField,t)}this.classScope.usePrivateName(this.state.value,this.state.startLoc);i.property=this.parsePrivateName()}else{i.property=this.parseIdentifier(true)}if(r.optionalChainMember){i.optional=n;return this.finishNode(i,"OptionalMemberExpression")}else{return this.finishNode(i,"MemberExpression")}}parseBind(e,t,r,s){const n=this.startNodeAt(t);n.object=e;this.next();n.callee=this.parseNoCallExpr();s.stop=true;return this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,s){const n=this.state.maybeInArrowParameters;let i=null;this.state.maybeInArrowParameters=true;this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o){this.expressionScope.enter(newAsyncArrowScope());i=new ExpressionErrors}if(l){a.optional=s}if(s){a.arguments=this.parseCallExpressionArguments(11)}else{a.arguments=this.parseCallExpressionArguments(11,e.type!=="Super",a,i)}let c=this.finishCallExpression(a,l);if(o&&this.shouldParseAsyncArrow()&&!s){r.stop=true;this.checkDestructuringPrivate(i);this.expressionScope.validateAsPattern();this.expressionScope.exit();c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)}else{if(o){this.checkExpressionErrors(i,true);this.expressionScope.exit()}this.toReferencedArguments(c)}this.state.maybeInArrowParameters=n;return c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const s=this.startNodeAt(t);s.tag=e;s.quasi=this.parseTemplate(true);if(r.optionalChainMember){this.raise(p.OptionalChainingNoTemplate,t)}return this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2){this.raise(p.ImportCallArity,e)}else{for(const t of e.arguments){if(t.type==="SpreadElement"){this.raise(p.ImportCallSpreadArgument,t)}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,s){const n=[];let i=true;const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){if(r){this.addTrailingCommaExtraToNode(r)}this.next();break}}n.push(this.parseExprListItem(false,s,t))}this.state.inFSharpPipelineDirectBody=a;return n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;this.resetPreviousNodeTrailingComments(t);this.expect(19);this.parseArrowExpression(e,t.arguments,true,(r=t.extra)==null?void 0:r.trailingCommaLoc);if(t.innerComments){setInnerComments(e,t.innerComments)}if(t.callee.trailingComments){setInnerComments(e,t.callee.trailingComments)}return e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,true)}parseExprAtom(e){let t;let r=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:t=this.startNode();this.next();if(this.match(16)){return this.parseImportMetaProperty(t)}if(this.match(10)){if(this.options.createImportExpressions){return this.parseImportCall(t)}else{return this.finishNode(t,"Import")}}else{this.raise(p.UnsupportedImport,this.state.lastTokStartLoc);return this.finishNode(t,"Import")}case 78:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case 90:{return this.parseDo(this.startNode(),false)}case 56:case 31:{this.readRegexp();return 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(true);case 86:return this.parseBooleanLiteral(false);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:{return this.parseArrayLike(this.state.type===2?4:3,false,true)}case 0:{return this.parseArrayLike(3,true,false,e)}case 6:case 7:{return this.parseObjectLike(this.state.type===6?9:8,false,true)}case 5:{return this.parseObjectLike(8,false,false,e)}case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);case 15:{t=this.startNode();this.next();t.object=null;const e=t.callee=this.parseNoCallExpr();if(e.type==="MemberExpression"){return this.finishNode(t,"BindExpression")}else{throw this.raise(p.UnsupportedBind,e)}}case 139:{this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value});return 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:{const e=this.getPluginOption("pipelineOperator","proposal");if(e){return this.parseTopicReference(e)}this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||e===62){this.expectOnePlugin(["jsx","flow","typescript"])}else{this.unexpected()}break}default:if(s===137){return this.parseDecimalLiteral(this.state.value)}if(tokenIsIdentifier(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123){return this.parseModuleExpression()}const e=this.state.potentialArrowAt===this.state.start;const t=this.state.containsEsc;const r=this.parseIdentifier();if(!t&&r.name==="async"&&!this.canInsertSemicolon()){const{type:e}=this.state;if(e===68){this.resetPreviousNodeTrailingComments(r);this.next();return this.parseAsyncFunctionExpression(this.startNodeAtNode(r))}else if(tokenIsIdentifier(e)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r))}else{return r}}else if(e===90){this.resetPreviousNodeTrailingComments(r);return this.parseDo(this.startNodeAtNode(r),true)}}if(e&&this.match(19)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(r),[r],false)}return r}else{this.unexpected()}}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r){this.state.type=e;this.state.value=t;this.state.pos--;this.state.end--;this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1);return this.parseTopicReference(r)}else{this.unexpected()}}parseTopicReference(e){const t=this.startNode();const r=this.state.startLoc;const s=this.state.type;this.next();return this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s)){const s=r==="smart"?"PipelinePrimaryTopicReference":"TopicReference";if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(r==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,t)}this.registerTopicReference();return this.finishNode(e,s)}else{throw this.raise(p.PipeTopicUnconfiguredToken,t,{token:tokenLabelName(s)})}}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":{return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(r)}])}case"smart":return r===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const t=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition())}this.expect(19);return this.parseArrowExpression(e,t,true)}parseDo(e,t){this.expectPlugin("doExpressions");if(t){this.expectPlugin("asyncDoExpressions")}e.async=t;this.next();const r=this.state.labels;this.state.labels=[];if(t){this.prodParam.enter(2);e.body=this.parseBlock();this.prodParam.exit()}else{e.body=this.parseBlock()}this.state.labels=r;return this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();this.next();if(this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod){this.raise(p.SuperNotAllowed,e)}else if(!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod){this.raise(p.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16)){this.raise(p.UnsupportedSuper,e)}return this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode();const t=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1));const r=this.state.value;this.next();e.id=this.createIdentifier(t,r);return this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");this.next();if(this.match(103)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const s=this.state.containsEsc;e.property=this.parseIdentifier(true);if(e.property.name!==r||s){this.raise(p.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r})}return this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");this.next();if(this.isContextual(101)){if(!this.inModule){this.raise(p.ImportMetaOutsideModule,t)}this.sawUnambiguousESM=true}else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(!t)this.unexpected();this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation");if(!this.options.createImportExpressions){throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value})}this.next();e.phase=t?"source":"defer";return this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){this.addExtra(r,"rawValue",e);this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end));r.value=e;this.next();return this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}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){const t=this.startNode();this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end));t.pattern=e.pattern;t.flags=e.flags;this.next();return this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();t.value=e;this.next();return this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();this.next();return this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next();this.expressionScope.enter(newArrowHeadScope());const s=this.state.maybeInArrowParameters;const n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const i=this.state.startLoc;const a=[];const o=new ExpressionErrors;let l=true;let c;let p;while(!this.match(11)){if(l){l=false}else{this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc);if(this.match(11)){p=this.state.startLoc;break}}if(this.match(21)){const e=this.state.startLoc;c=this.state.startLoc;a.push(this.parseParenItem(this.parseRestBinding(),e));if(!this.checkCommaAfterRest(41)){break}}else{a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}}const u=this.state.lastTokEndLoc;this.expect(11);this.state.maybeInArrowParameters=s;this.state.inFSharpPipelineDirectBody=n;let f=this.startNodeAt(t);if(e&&this.shouldParseArrow(a)&&(f=this.parseArrow(f))){this.checkDestructuringPrivate(o);this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(f,a,false);return f}this.expressionScope.exit();if(!a.length){this.unexpected(this.state.lastTokStartLoc)}if(p)this.unexpected(p);if(c)this.unexpected(c);this.checkExpressionErrors(o,true);this.toReferencedListDeep(a,true);if(a.length>1){r=this.startNodeAt(i);r.expressions=a;this.finishNode(r,"SequenceExpression");this.resetEndLocation(r,u)}else{r=a[0]}return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions){this.addExtra(t,"parenthesized",true);this.addExtra(t,"parenStart",e.index);this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index);return t}const r=this.startNodeAt(e);r.expression=t;return this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19)){return e}}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();this.next();if(this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction){this.raise(p.UnexpectedNewTarget,r)}return r}return this.parseNew(e)}parseNew(e){this.parseNewCallee(e);if(this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t);e.arguments=t}else{e.arguments=[]}return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83);const r=this.parseNoCallExpr();e.callee=r;if(t&&(r.type==="Import"||r.type==="ImportExpression")){this.raise(p.ImportCallNotNewExpression,r)}}parseTemplateElement(e){const{start:t,startLoc:r,end:s,value:n}=this.state;const i=t+1;const a=this.startNodeAt(createPositionWithColumnOffset(r,1));if(n===null){if(!e){this.raise(p.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1))}}const o=this.match(24);const l=o?-1:-2;const c=s+l;a.value={raw:this.input.slice(i,c).replace(/\r\n?/g,"\n"),cooked:n===null?null:n.slice(1,l)};a.tail=o;this.next();const u=this.finishNode(a,"TemplateElement");this.resetEndLocation(u,createPositionWithColumnOffset(this.state.lastTokEndLoc,l));return u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const s=[r];const n=[];while(!r.tail){n.push(this.parseTemplateSubstitution());this.readTemplateContinuation();s.push(r=this.parseTemplateElement(e))}t.expressions=n;t.quasis=s;return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const i=Object.create(null);let a=true;const o=this.startNode();o.properties=[];this.next();while(!this.match(e)){if(a){a=false}else{this.expect(12);if(this.match(e)){this.addTrailingCommaExtraToNode(o);break}}let n;if(t){n=this.parseBindingProperty()}else{n=this.parsePropertyDefinition(s);this.checkProto(n,r,i,s)}if(r&&!this.isObjectProperty(n)&&n.type!=="SpreadElement"){this.raise(p.InvalidRecordProperty,n)}{if(n.shorthand){this.addExtra(n,"shorthand",true)}}o.properties.push(n)}this.next();this.state.inFSharpPipelineDirectBody=n;let l="ObjectExpression";if(t){l="ObjectPattern"}else if(r){l="RecordExpression"}return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index);this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,false)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators")){this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc)}while(this.match(26)){t.push(this.parseDecorator())}}const r=this.startNode();let s=false;let n=false;let i;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length){r.decorators=t;t=[]}r.method=false;if(e){i=this.state.startLoc}let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;this.parsePropertyName(r,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r;const t=e.name;if(t==="async"&&!this.hasPrecedingLineBreak()){s=true;this.resetPreviousNodeTrailingComments(e);a=this.eat(55);this.parsePropertyName(r)}if(t==="get"||t==="set"){n=true;this.resetPreviousNodeTrailingComments(e);r.kind=t;if(this.match(55)){a=true;this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:t});this.next()}this.parsePropertyName(r)}}return this.parseObjPropValue(r,i,a,s,false,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e);const s=this.getObjectOrClassMethodParams(e);if(s.length!==r){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement"){this.raise(p.BadSetterRestParameter,e)}}parseObjectMethod(e,t,r,s,n){if(n){const r=this.parseMethod(e,t,false,false,false,"ObjectMethod");this.checkGetterSetterParams(r);return r}if(r||t||this.match(10)){if(s)this.unexpected();e.kind="method";e.method=true;return this.parseMethod(e,t,r,false,false,"ObjectMethod")}}parseObjectProperty(e,t,r,s){e.shorthand=false;if(this.eat(14)){e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s);return this.finishNode(e,"ObjectProperty")}if(!e.computed&&e.key.type==="Identifier"){this.checkReservedWord(e.key.name,e.key.loc.start,true,false);if(r){e.value=this.parseMaybeDefault(t,cloneIdentifier(e.key))}else if(this.match(29)){const r=this.state.startLoc;if(s!=null){if(s.shorthandAssignLoc===null){s.shorthandAssignLoc=r}}else{this.raise(p.InvalidCoverInitializedName,r)}e.value=this.parseMaybeDefault(t,cloneIdentifier(e.key))}else{e.value=cloneIdentifier(e.key)}e.shorthand=true;return this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,s,n,i,a){const o=this.parseObjectMethod(e,r,s,n,i)||this.parseObjectProperty(e,t,n,a);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0)){e.computed=true;e.key=this.parseMaybeAssignAllowIn();this.expect(3)}else{const{type:r,value:s}=this.state;let n;if(tokenIsKeywordOrIdentifier(r)){n=this.parseIdentifier(true)}else{switch(r){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{const e=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null){t.privateKeyLoc=e}}else{this.raise(p.UnexpectedPrivateField,e)}n=this.parsePrivateName();break}default:if(r===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}}e.key=n;if(r!==139){e.computed=false}}}initFunction(e,t){e.id=null;e.generator=false;e.async=t}parseMethod(e,t,r,s,n,i,a=false){this.initFunction(e,r);e.generator=t;this.scope.enter(2|16|(a?64:0)|(n?32:0));this.prodParam.enter(functionFlags(r,e.generator));this.parseFunctionParams(e,s);const o=this.parseFunctionBodyAndFinish(e,i,true);this.prodParam.exit();this.scope.exit();return o}parseArrayLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const i=this.startNode();this.next();i.elements=this.parseExprList(e,!r,s,i);this.state.inFSharpPipelineDirectBody=n;return this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(2|4);let n=functionFlags(r,false);if(!this.match(5)&&this.prodParam.hasIn){n|=8}this.prodParam.enter(n);this.initFunction(e,r);const i=this.state.maybeInArrowParameters;if(t){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(e,t,s)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(e,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=i;return this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,false);e.params=t}parseFunctionBodyAndFinish(e,t,r=false){this.parseFunctionBody(e,false,r);return this.finishNode(e,t)}parseFunctionBody(e,t,r=false){const s=t&&!this.match(5);this.expressionScope.enter(newExpressionScope());if(s){e.body=this.parseMaybeAssign();this.checkParams(e,false,t,false)}else{const s=this.state.strict;const n=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|4);e.body=this.parseBlock(true,false,(n=>{const i=!this.isSimpleParamList(e.params);if(n&&i){this.raise(p.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e)}const a=!s&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!i,t,a);if(this.state.strict&&e.id){this.checkIdentifier(e.id,65,a)}}));this.prodParam.exit();this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++){if(!this.isSimpleParameter(e[t]))return false}return true}checkParams(e,t,r,s=true){const n=!t&&new Set;const i={type:"FormalParameters"};for(const t of e.params){this.checkLVal(t,i,5,n,s)}}parseExprList(e,t,r,s){const n=[];let i=true;while(!this.eat(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){if(s){this.addTrailingCommaExtraToNode(s)}this.next();break}}n.push(this.parseExprListItem(t,r))}return n}parseExprListItem(e,t,r){let s;if(this.match(12)){if(!e){this.raise(p.UnexpectedToken,this.state.curPosition(),{unexpected:","})}s=null}else if(this.match(21)){const e=this.state.startLoc;s=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication");if(!r){this.raise(p.UnexpectedArgumentPlaceholder,this.state.startLoc)}const e=this.startNode();this.next();s=this.finishNode(e,"ArgumentPlaceholder")}else{s=this.parseMaybeAssignAllowIn(t,this.parseParenItem)}return s}parseIdentifier(e){const t=this.startNode();const r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){e.name=t;e.loc.identifierName=t;return this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:r,type:s}=this.state;if(tokenIsKeywordOrIdentifier(s)){t=this.state.value}else{this.unexpected()}const n=tokenKeywordOrIdentifierIsKeyword(s);if(e){if(n){this.replaceToken(132)}}else{this.checkReservedWord(t,r,n,false)}this.next();return t}checkReservedWord(e,t,r,s){if(e.length>10){return}if(!canBeReservedWord(e)){return}if(r&&isKeyword(e)){this.raise(p.UnexpectedKeyword,t,{keyword:e});return}const n=!this.state.strict?isReservedWord:s?isStrictBindReservedWord:isStrictReservedWord;if(n(e,this.inModule)){this.raise(p.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;if(e&&!this.scope.inFunction){this.state.hasTopLevelAwait=true}return e}parseAwait(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,t);if(this.eat(55)){this.raise(p.ObsoleteAwaitStar,t)}if(!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction){if(this.isAmbiguousAwait()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){t.argument=this.parseMaybeUnary(null,true)}return this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return true;const{type:e}=this.state;return e===53||e===10||e===0||tokenIsTemplate(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,e);this.next();let t=false;let r=null;if(!this.hasPrecedingLineBreak()){t=this.eat(55);switch(this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}}e.delegate=t;e.argument=r;return this.finishNode(e,"YieldExpression")}parseImportCall(e){this.next();e.source=this.parseMaybeAssignAllowIn();e.options=null;if(this.eat(12)){if(!this.match(11)){e.options=this.parseMaybeAssignAllowIn();if(this.eat(12)&&!this.match(11)){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,e)}}}this.expect(11);return this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression"){this.raise(p.PipelineHeadSequenceExpression,t)}}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);r.callee=e;return this.finishNode(r,"PipelineBareFunction")}else{const r=this.startNodeAt(t);this.checkSmartPipeTopicBodyEarlyErrors(t);r.expression=e;return this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19)){throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc)}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipelineTopicUnused,e)}}withTopicBindingContext(e){const 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"}])){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else{return e()}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=true;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();const r=8&~t;if(r){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();const r=8&t;if(r){this.prodParam.enter(t&~8);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);this.state.inFSharpPipelineDirectBody=r;return s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next();if(!this.match(5)){this.unexpected(null,5)}const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(true);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const ae={kind:1},oe={kind:2};const le=/[\uD800-\uDFFF]/u;const ce=/in(?:stanceof)?/y;function babel7CompatTokens(e,t,r){for(let s=0;s<e.length;s++){const n=e[s];const{type:i}=n;if(typeof i==="number"){{if(i===139){const{loc:t,start:r,value:i,end:a}=n;const o=r+1;const l=createPositionWithColumnOffset(t.start,1);e.splice(s,1,new Token({type:getExportedToken(27),value:"#",start:r,end:o,startLoc:t.start,endLoc:l}),new Token({type:getExportedToken(132),value:i,start:o,end:a,startLoc:l,endLoc:t.end}));s++;continue}if(tokenIsTemplate(i)){const{loc:a,start:o,value:l,end:c}=n;const p=o+1;const u=createPositionWithColumnOffset(a.start,1);let f;if(t.charCodeAt(o-r)===96){f=new Token({type:getExportedToken(22),value:"`",start:o,end:p,startLoc:a.start,endLoc:u})}else{f=new Token({type:getExportedToken(8),value:"}",start:o,end:p,startLoc:a.start,endLoc:u})}let d,h,m,y;if(i===24){h=c-1;m=createPositionWithColumnOffset(a.end,-1);d=l===null?null:l.slice(1,-1);y=new Token({type:getExportedToken(22),value:"`",start:h,end:c,startLoc:m,endLoc:a.end})}else{h=c-2;m=createPositionWithColumnOffset(a.end,-2);d=l===null?null:l.slice(1,-2);y=new Token({type:getExportedToken(23),value:"${",start:h,end:c,startLoc:m,endLoc:a.end})}e.splice(s,1,f,new Token({type:getExportedToken(20),value:d,start:p,end:h,startLoc:u,endLoc:m}),y);s+=2;continue}}n.type=getExportedToken(i)}}return e}class StatementParser extends ExpressionParser{parseTopLevel(e,t){e.program=this.parseProgram(t);e.comments=this.comments;if(this.options.tokens){e.tokens=babel7CompatTokens(this.tokens,this.input,this.startIndex)}return this.finishNode(e,"File")}parseProgram(e,t=140,r=this.options.sourceType){e.sourceType=r;e.interpreter=this.parseInterpreterDirective();this.parseBlockBody(e,true,true,t);if(this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0){for(const[e,t]of Array.from(this.scope.undefinedExports)){this.raise(p.ModuleExportUndefined,t,{localName:e})}}this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;if(t===140){s=this.finishNode(e,"Program")}else{s=this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1))}return s}stmtToDirective(e){const t=e;t.type="Directive";t.value=t.expression;delete t.expression;const r=t.value;const s=r.value;const n=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end));const i=r.value=n.slice(1,-1);this.addExtra(r,"raw",n);this.addExtra(r,"rawValue",i);this.addExtra(r,"expressionValue",s);r.type="DirectiveLiteral";return t}parseInterpreterDirective(){if(!this.match(28)){return null}const e=this.startNode();e.value=this.state.value;this.next();return this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100)){return false}return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(isIdentifierStart(e)){ce.lastIndex=t;if(ce.test(this.input)){const e=this.codePointAtPos(ce.lastIndex);if(!isIdentifierChar(e)&&e!==92){return false}}return true}else if(e===92){return true}else{return false}}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){const e=this.nextTokenStart();const t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t){return false}else if(tokenIsIdentifier(e)&&!this.hasFollowingLineBreak()){this.expectPlugin("explicitResourceManagement");return true}}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e)){this.expectPlugin("explicitResourceManagement");return true}}return false}parseModuleItem(){return this.parseStatementLike(1|2|4|8)}parseStatementListItem(){return this.parseStatementLike(2|4|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=false){let t=0;if(this.options.annexB&&!this.state.strict){t|=4;if(e){t|=8}}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26)){t=this.parseDecorators(true)}return this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type;const s=this.startNode();const n=!!(e&2);const i=!!(e&4);const a=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,true);case 63:return this.parseBreakContinueStatement(s,false);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;if(!i){this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc)}return this.parseFunctionStatement(s,false,!n&&i);case 80:if(!n)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,s),true);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,s)}else if(!n){this.raise(p.UnexpectedLexicalDeclaration,s)}this.next();return this.parseVarStatement(s,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace()){break}this.expectPlugin("explicitResourceManagement");if(!this.scope.inModule&&this.scope.inTopLevel){this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc)}else if(!n){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}return this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc){break}const e=this.nextTokenStart();const t=this.codePointAtPos(e);if(t!==91){if(!n&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&t!==123){break}}}case 75:{if(!n){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}}case 74:{const e=this.state.value;return this.parseVarStatement(s,e)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{const e=this.lookaheadCharCode();if(e===40||e===46){break}}case 82:{if(!this.options.allowImportExportEverywhere&&!a){this.raise(p.UnexpectedImportExport,this.state.startLoc)}this.next();let e;if(r===83){e=this.parseImport(s);if(e.type==="ImportDeclaration"&&(!e.importKind||e.importKind==="value")){this.sawUnambiguousESM=true}}else{e=this.parseExport(s,t);if(e.type==="ExportNamedDeclaration"&&(!e.exportKind||e.exportKind==="value")||e.type==="ExportAllDeclaration"&&(!e.exportKind||e.exportKind==="value")||e.type==="ExportDefaultDeclaration"){this.sawUnambiguousESM=true}}this.assertModuleNodeAllowed(e);return e}default:{if(this.isAsyncFunction()){if(!n){this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc)}this.next();return this.parseFunctionStatement(s,true,!n&&i)}}}const o=this.state.value;const l=this.parseExpression();if(tokenIsIdentifier(r)&&l.type==="Identifier"&&this.eat(14)){return this.parseLabeledStatement(s,o,l,e)}else{return this.parseExpressionStatement(s,l,t)}}assertModuleNodeAllowed(e){if(!this.options.allowImportExportEverywhere&&!this.inModule){this.raise(p.ImportOutsideModule,e)}}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return true;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}maybeTakeDecorators(e,t,r){if(e){if(t.decorators&&t.decorators.length>0){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean"){this.raise(p.DecoratorsBeforeAfterExport,t.decorators[0])}t.decorators.unshift(...e)}else{t.decorators=e}this.resetStartLocationFromNode(t,e[0]);if(r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82)){if(!e){this.unexpected()}if(!this.decoratorsEnabledBeforeExport()){this.raise(p.DecoratorExportClass,this.state.startLoc)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc)}return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();this.next();if(this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next();r=this.parseExpression();this.expect(11);r=this.wrapParenthesis(t,r);const s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r);if(this.getPluginOption("decorators","allowCallParenthesized")===false&&e.expression!==r){this.raise(p.DecoratorArgumentsOutsideParentheses,s)}}else{r=this.parseIdentifier(false);while(this.eat(16)){const e=this.startNodeAt(t);e.object=r;if(this.match(139)){this.classScope.usePrivateName(this.state.value,this.state.startLoc);e.property=this.parsePrivateName()}else{e.property=this.parseIdentifier(true)}e.computed=false;r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r)}}else{e.expression=this.parseExprSubscripts()}return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);t.callee=e;t.arguments=this.parseCallExpressionArguments(11);this.toReferencedList(t.arguments);return this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){this.next();if(this.isLineTerminator()){e.label=null}else{e.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(e,t);return this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const s=this.state.labels[r];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(t||s.kind===1)){break}if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(p.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();this.expect(11);return e}parseDoWhileStatement(e){this.next();this.state.labels.push(ae);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();this.expect(92);e.test=this.parseHeaderExpression();this.eat(13);return this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next();this.state.labels.push(ae);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()){t=this.state.startLoc;this.next()}this.scope.enter(0);this.expect(10);if(this.match(13)){if(t!==null){this.unexpected(t)}return this.parseFor(e,null)}const r=this.isContextual(100);{const s=this.isContextual(96)&&this.startsAwaitUsing();const n=s||this.isContextual(107)&&this.startsUsingForOf();const i=r&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;if(s){i="await using";if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc)}this.next()}else{i=this.state.value}this.next();this.parseVar(r,true,i);const a=this.finishNode(r,"VariableDeclaration");const o=this.match(58);if(o&&n){this.raise(p.ForInUsing,a)}if((o||this.isContextual(102))&&a.declarations.length===1){return this.parseForIn(e,a,t)}if(t!==null){this.unexpected(t)}return this.parseFor(e,a)}}const s=this.isContextual(95);const n=new ExpressionErrors;const i=this.parseExpression(true,n);const a=this.isContextual(102);if(a){if(r){this.raise(p.ForOfLet,i)}if(t===null&&s&&i.type==="Identifier"){this.raise(p.ForOfAsync,i)}}if(a||this.match(58)){this.checkDestructuringPrivate(n);this.toAssignable(i,true);const r=a?"ForOfStatement":"ForInStatement";this.checkLVal(i,{type:r});return this.parseForIn(e,i,t)}else{this.checkExpressionErrors(n,true)}if(t!==null){this.unexpected(t)}return this.parseFor(e,i)}parseFunctionStatement(e,t,r){this.next();return this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){this.next();e.test=this.parseHeaderExpression();e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration();e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null;return this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction){this.raise(p.IllegalReturn,this.state.startLoc)}this.next();if(this.isLineTerminator()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next();e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(5);this.state.labels.push(oe);this.scope.enter(0);let r;for(let e;!this.match(8);){if(this.match(61)||this.match(65)){const s=this.match(61);if(r)this.finishNode(r,"SwitchCase");t.push(r=this.startNode());r.consequent=[];this.next();if(s){r.test=this.parseExpression()}else{if(e){this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc)}e=true;r.test=null}this.expect(14)}else{if(r){r.consequent.push(this.parseStatementListItem())}else{this.unexpected()}}}this.scope.exit();if(r)this.finishNode(r,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){this.next();if(this.hasPrecedingLineBreak()){this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc)}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0);this.checkLVal(e,{type:"CatchClause"},9);return e}parseTryStatement(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.match(62)){const t=this.startNode();this.next();if(this.match(10)){this.expect(10);t.param=this.parseCatchClauseParam();this.expect(11)}else{t.param=null;this.scope.enter(0)}t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(false,false)));this.scope.exit();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(67)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(p.NoCatchOrFinally,e)}return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=false){this.next();this.parseVar(e,false,t,r);this.semicolon();return this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){this.next();e.test=this.parseHeaderExpression();this.state.labels.push(ae);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();return this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict){this.raise(p.StrictWith,this.state.startLoc)}this.next();e.object=this.parseHeaderExpression();e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));return this.finishNode(e,"WithStatement")}parseEmptyStatement(e){this.next();return this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,s){for(const e of this.state.labels){if(e.name===t){this.raise(p.LabelRedeclaration,r,{labelName:t})}}const n=tokenIsLoop(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart===e.start){r.statementStart=this.sourceToOffsetPos(this.state.start);r.kind=n}else{break}}this.state.labels.push({name:t,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)});e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(true):this.parseStatement();this.state.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")}parseBlock(e=false,t=true,r){const s=this.startNode();if(e){this.state.strictErrors.clear()}this.expect(5);if(t){this.scope.enter(0)}this.parseBlockBody(s,e,false,8,r);if(t){this.scope.exit()}return this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,n){const i=e.body=[];const a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:undefined,r,s,n)}parseBlockOrModuleBlockBody(e,t,r,s,n){const i=this.state.strict;let a=false;let o=false;while(!this.match(s)){const s=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(s)){const e=this.stmtToDirective(s);t.push(e);if(!a&&e.value.value==="use strict"){a=true;this.setStrict(true)}continue}o=true;this.state.strictErrors.clear()}e.push(s)}n==null||n.call(this,a);if(!i){this.setStrict(false)}this.next()}parseFor(e,t){e.init=t;this.semicolon(false);e.test=this.match(13)?null:this.parseExpression();this.semicolon(false);e.update=this.match(11)?null:this.parseExpression();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const s=this.match(58);this.next();if(s){if(r!==null)this.unexpected(r)}else{e.await=r!==null}if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(p.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"})}if(t.type==="AssignmentPattern"){this.raise(p.InvalidLhs,t,{ancestor:{type:"ForStatement"}})}e.left=t;e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=false){const n=e.declarations=[];e.kind=r;for(;;){const e=this.startNode();this.parseVarId(e,r);e.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn();if(e.init===null&&!s){if(e.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})}else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}}n.push(this.finishNode(e,"VariableDeclarator"));if(!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern"){this.raise(p.UsingDeclarationHasBindingPattern,r.loc.start)}}this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201);e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=t&2;const s=!!(t&1);const n=s&&!(t&4);const i=!!(t&8);this.initFunction(e,i);if(this.match(55)){if(r){this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc)}this.next();e.generator=true}if(s){e.id=this.parseFunctionId(n)}const a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(2);this.prodParam.enter(functionFlags(i,e.generator));if(!s){e.id=this.parseFunctionId()}this.parseFunctionParams(e,false);this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}));this.prodParam.exit();this.scope.exit();if(s&&!r){this.registerFunctionStatementId(e)}this.state.maybeInArrowParameters=a;return e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10);this.expressionScope.enter(newParameterDeclarationScope());e.params=this.parseBindingList(11,41,2|(t?4:0));this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;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,r){this.next();const s=this.state.strict;this.state.strict=true;this.parseClassId(e,t,r);this.parseClassSuper(e);e.body=this.parseClassBody(!!e.superClass,s);return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:false,hadSuperClass:e};let s=[];const n=this.startNode();n.body=[];this.expect(5);this.withSmartMixTopicForbiddingContext((()=>{while(!this.match(8)){if(this.eat(13)){if(s.length>0){throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc)}continue}if(this.match(26)){s.push(this.parseDecorator());continue}const e=this.startNode();if(s.length){e.decorators=s;this.resetStartLocationFromNode(e,s[0]);s=[]}this.parseClassMember(n,e,r);if(e.kind==="constructor"&&e.decorators&&e.decorators.length>0){this.raise(p.DecoratorConstructor,e)}}}));this.state.strict=t;this.next();if(s.length){throw this.raise(p.TrailingDecorator,this.state.startLoc)}this.classScope.exit();return this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(true);if(this.isClassMethod()){const s=t;s.kind="method";s.computed=false;s.key=r;s.static=false;this.pushClassMethod(e,s,false,false,false,false);return true}else if(this.isClassProperty()){const s=t;s.computed=false;s.key=r;s.static=false;e.body.push(this.parseClassProperty(s));return true}this.resetPreviousNodeTrailingComments(r);return false}parseClassMember(e,t,r){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t)){return}if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){const n=t;const i=t;const a=t;const o=t;const l=t;const c=n;const u=n;t.static=s;this.parsePropertyNamePrefixOperator(t);if(this.eat(55)){c.kind="method";const t=this.match(139);this.parseClassElementName(c);if(t){this.pushClassPrivateMethod(e,i,true,false);return}if(this.isNonstaticConstructor(n)){this.raise(p.ConstructorIsGenerator,n.key)}this.pushClassMethod(e,n,true,false,false,false);return}const f=!this.state.containsEsc&&tokenIsIdentifier(this.state.type);const d=this.parseClassElementName(t);const h=f?d.name:null;const m=this.isPrivateName(d);const y=this.state.startLoc;this.parsePostMemberNameModifiers(u);if(this.isClassMethod()){c.kind="method";if(m){this.pushClassPrivateMethod(e,i,false,false);return}const s=this.isNonstaticConstructor(n);let a=false;if(s){n.kind="constructor";if(r.hadConstructor&&!this.hasPlugin("typescript")){this.raise(p.DuplicateConstructor,d)}if(s&&this.hasPlugin("typescript")&&t.override){this.raise(p.OverrideOnConstructor,d)}r.hadConstructor=true;a=r.hadSuperClass}this.pushClassMethod(e,n,false,false,s,a)}else if(this.isClassProperty()){if(m){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,a)}}else if(h==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);const t=this.eat(55);if(u.optional){this.unexpected(y)}c.kind="method";const r=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(u);if(r){this.pushClassPrivateMethod(e,i,t,true)}else{if(this.isNonstaticConstructor(n)){this.raise(p.ConstructorIsAsync,n.key)}this.pushClassMethod(e,n,t,true,false,false)}}else if((h==="get"||h==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d);c.kind=h;const t=this.match(139);this.parseClassElementName(n);if(t){this.pushClassPrivateMethod(e,i,false,false)}else{if(this.isNonstaticConstructor(n)){this.raise(p.ConstructorIsAccessor,n.key)}this.pushClassMethod(e,n,false,false,false,false)}this.checkGetterSetterParams(n)}else if(h==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors");this.resetPreviousNodeTrailingComments(d);const t=this.match(139);this.parseClassElementName(a);this.pushClassAccessorProperty(e,l,t)}else if(this.isLineTerminator()){if(m){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,a)}}else{this.unexpected()}}parseClassElementName(e){const{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"){this.raise(p.StaticPrototype,this.state.startLoc)}if(t===139){if(r==="constructor"){this.raise(p.ConstructorClassPrivateField,this.state.startLoc)}const t=this.parsePrivateName();e.key=t;return t}this.parsePropertyName(e);return e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(64|128|16);const s=this.state.labels;this.state.labels=[];this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,undefined,false,8);this.prodParam.exit();this.scope.exit();this.state.labels=s;e.body.push(this.finishNode(t,"StaticBlock"));if((r=t.decorators)!=null&&r.length){this.raise(p.DecoratorStaticBlock,t)}}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r);this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}const s=this.parseClassAccessorProperty(t);e.body.push(s);if(r){this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}}pushClassMethod(e,t,r,s,n,i){e.body.push(this.parseMethod(t,r,s,n,i,"ClassMethod",true))}pushClassPrivateMethod(e,t,r,s){const n=this.parseMethod(t,r,s,false,false,"ClassPrivateMethod",true);e.body.push(n);const i=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,i)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(64|16);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(0);e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(e,t,r,s=8331){if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();if(t){this.declareNameFromIdentifier(e.id,s)}}else{if(r||!t){e.id=null}else{throw this.raise(p.MissingClassName,this.state.startLoc)}}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,true);const s=this.maybeParseExportDefaultSpecifier(e,r);const n=!s||this.eat(12);const i=n&&this.eatExportStar(e);const a=i&&this.maybeParseExportNamespaceSpecifier(e);const o=n&&(!a||this.eat(12));const l=s||i;if(i&&!a){if(s)this.unexpected();if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,true);return this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);if(s&&n&&!i&&!c){this.unexpected(null,5)}if(a&&o){this.unexpected(null,98)}let u;if(l||c){u=false;if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,l)}else{u=this.maybeParseExportDeclaration(e)}if(l||c||u){var f;const r=e;this.checkExport(r,true,false,!!r.source);if(((f=r.declaration)==null?void 0:f.type)==="ClassDeclaration"){this.maybeTakeDecorators(t,r.declaration,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e;const s=this.parseExportDefaultExpression();r.declaration=s;if(s.type==="ClassDeclaration"){this.maybeTakeDecorators(t,s,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.checkExport(r,true,true);return this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);const r=t||this.parseIdentifier(true);const s=this.startNodeAtNode(r);s.exported=r;e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null?r:t.specifiers=[];const s=this.startNodeAt(this.state.lastTokStartLoc);this.next();s.exported=this.parseModuleExportName();e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;if(!t.specifiers)t.specifiers=[];const r=t.exportKind==="type";t.specifiers.push(...this.parseExportSpecifiers(r));t.source=null;t.declaration=null;if(this.hasPlugin("importAssertions")){t.assertions=[]}return true}return false}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){e.specifiers=[];e.source=null;if(this.hasPlugin("importAssertions")){e.assertions=[]}e.declaration=this.parseExportDeclaration(e);return true}return false}isAsyncFunction(){if(!this.isContextual(95))return false;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68)){this.next();return this.parseFunction(e,1|4)}else if(this.isAsyncFunction()){this.next();this.next();return this.parseFunction(e,1|4|8)}if(this.match(80)){return this.parseClass(e,true,true)}if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true)}if(this.match(75)||this.match(74)||this.isLet()){throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc)}const t=this.parseMaybeAssignAllowIn();this.semicolon();return t}parseExportDeclaration(e){if(this.match(80)){const e=this.parseClass(this.startNode(),true,false);return e}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(e===95&&!this.state.containsEsc||e===100){return false}if((e===130||e===129)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(tokenIsIdentifier(e)&&e!==98||e===5){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(65)){return false}const t=this.nextTokenStart();const r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||tokenIsIdentifier(this.state.type)&&r){return true}if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return false}parseExportFrom(e,t){if(this.eatContextual(98)){e.source=this.parseImportSource();this.checkExport(e);this.maybeParseImportAttributes(e);this.checkJSONModuleImport(e)}else if(t){this.unexpected()}this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===26){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return true}}if(this.isContextual(107)){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}if(this.isContextual(96)&&this.startsAwaitUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){var n;if(r){this.checkDuplicateExports(e,"default");if(this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;if(t.type==="Identifier"&&t.name==="from"&&t.end-t.start===4&&!((i=t.extra)!=null&&i.parenthesized)){this.raise(p.ExportDefaultFromAsIdentifier,t)}}}else if((n=e.specifiers)!=null&&n.length){for(const t of e.specifiers){const{exported:e}=t;const r=e.type==="Identifier"?e.name:e.value;this.checkDuplicateExports(t,r);if(!s&&t.local){const{local:e}=t;if(e.type!=="Identifier"){this.raise(p.ExportBindingIsString,t,{localName:e.value,exportName:r})}else{this.checkReservedWord(e.name,e.loc.start,true,false);this.scope.checkLocalExport(e)}}}}else if(e.declaration){const t=e.declaration;if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if(t.type==="VariableDeclaration"){for(const e of t.declarations){this.checkDeclaration(e.id)}}}}}checkDeclaration(e){if(e.type==="Identifier"){this.checkDuplicateExports(e,e.name)}else if(e.type==="ObjectPattern"){for(const t of e.properties){this.checkDeclaration(t)}}else if(e.type==="ArrayPattern"){for(const t of e.elements){if(t){this.checkDeclaration(t)}}}else if(e.type==="ObjectProperty"){this.checkDeclaration(e.value)}else if(e.type==="RestElement"){this.checkDeclaration(e.argument)}else if(e.type==="AssignmentPattern"){this.checkDeclaration(e.left)}}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t)){if(t==="default"){this.raise(p.DuplicateDefaultExport,e)}else{this.raise(p.DuplicateExport,e,{exportName:t})}}this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=true;this.expect(5);while(!this.eat(8)){if(r){r=false}else{this.expect(12);if(this.eat(8))break}const s=this.isContextual(130);const n=this.match(134);const i=this.startNode();i.local=this.parseModuleExportName();t.push(this.parseExportSpecifier(i,n,e,s))}return t}parseExportSpecifier(e,t,r,s){if(this.eatContextual(93)){e.exported=this.parseModuleExportName()}else if(t){e.exported=cloneStringLiteral(e.local)}else if(!e.exported){e.exported=cloneIdentifier(e.local)}return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value);const t=le.exec(e.value);if(t){this.raise(p.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)})}return e}return this.parseIdentifier(true)}isJSONModuleImport(e){if(e.assertions!=null){return e.assertions.some((({key:e,value:t})=>t.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")))}return false}checkImportReflection(e){const{specifiers:t}=e;const r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier"){this.raise(p.SourcePhaseImportRequiresDefault,t[0].loc.start)}}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier"){this.raise(p.DeferImportRequiresNamespace,t[0].loc.start)}}else if(e.module){var s;if(r!=="ImportDefaultSpecifier"){this.raise(p.ImportReflectionNotBinding,t[0].loc.start)}if(((s=e.assertions)==null?void 0:s.length)>0){this.raise(p.ImportReflectionHasAssertion,t[0].loc.start)}}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){const{specifiers:t}=e;if(t!=null){const e=t.find((e=>{let t;if(e.type==="ExportSpecifier"){t=e.local}else if(e.type==="ImportSpecifier"){t=e.imported}if(t!==undefined){return t.type==="Identifier"?t.name!=="default":t.value!=="default"}}));if(e!==undefined){this.raise(p.ImportJSONBindingNotDefault,e.loc.start)}}}}isPotentialImportPhase(e){if(e)return false;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,s){if(t){return}if(r==="module"){this.expectPlugin("importReflection",s);e.module=true}else if(this.hasPlugin("importReflection")){e.module=false}if(r==="source"){this.expectPlugin("sourcePhaseImports",s);e.phase="source"}else if(r==="defer"){this.expectPlugin("deferredImportEvaluation",s);e.phase="defer"}else if(this.hasPlugin("sourcePhaseImports")){e.phase=null}}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t)){this.applyImportPhase(e,t,null);return null}const r=this.parseIdentifier(true);const{type:s}=this.state;const n=tokenIsKeywordOrIdentifier(s)?s!==98||this.lookaheadCharCode()===102:s!==12;if(n){this.resetPreviousIdentifierLeadingComments(r);this.applyImportPhase(e,t,r.name,r.loc.start);return null}else{this.applyImportPhase(e,t,null);return r}}isPrecedingIdImportPhase(e){const{type:t}=this.state;return tokenIsIdentifier(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134)){return this.parseImportSourceAndAttributes(e)}return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,false))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=this.maybeParseDefaultImportSpecifier(e,t);const s=!r||this.eat(12);const n=s&&this.maybeParseStarImportSpecifier(e);if(s&&!n)this.parseNamedImportSpecifiers(e);this.expectContextual(98);return this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;(t=e.specifiers)!=null?t:e.specifiers=[];e.source=this.parseImportSource();this.maybeParseImportAttributes(e);this.checkImportReflection(e);this.checkJSONModuleImport(e);this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){this.checkLVal(e.local,{type:t},r);return this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[];const t=new Set;do{if(this.match(8)){break}const r=this.startNode();const s=this.state.value;if(t.has(s)){this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s})}t.add(s);if(this.match(134)){r.key=this.parseStringLiteral(s)}else{r.key=this.parseIdentifier(true)}this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));this.expect(8);return e}parseModuleAttributes(){const e=[];const t=new Set;do{const r=this.startNode();r.key=this.parseIdentifier(true);if(r.key.name!=="type"){this.raise(p.ModuleAttributeDifferentFromType,r.key)}if(t.has(r.key.name)){this.raise(p.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name})}t.add(r.key.name);this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;{var r=false}if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40){return}this.next();if(this.hasPlugin("moduleAttributes")){t=this.parseModuleAttributes()}else{t=this.parseImportAttributes()}{r=true}}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")){this.raise(p.ImportAttributesUseAssert,this.state.startLoc)}if(!this.hasPlugin("importAssertions")){this.addExtra(e,"deprecatedAssertSyntax",true)}this.next();t=this.parseImportAttributes()}else{t=[]}if(!r&&this.hasPlugin("importAssertions")){e.assertions=t}else{e.attributes=t}}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier"));return true}else if(tokenIsKeywordOrIdentifier(this.state.type)){this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier");return true}return false}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();this.next();this.expectContextual(93);this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier");return true}return false}parseNamedImportSpecifiers(e){let t=true;this.expect(5);while(!this.eat(8)){if(t){t=false}else{if(this.eat(14)){throw this.raise(p.DestructureNamedImport,this.state.startLoc)}this.expect(12);if(this.eat(8))break}const r=this.startNode();const s=this.match(134);const n=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",n,undefined);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,s,n){if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{const{imported:r}=e;if(t){throw this.raise(p.ImportBindingIsString,e,{importName:r.value})}this.checkReservedWord(r.name,e.loc.start,true,true);if(!e.local){e.local=cloneIdentifier(r)}}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class Parser extends StatementParser{constructor(e,t,r){e=getOptions(e);super(e,t);this.options=e;this.initializeScopes();this.plugins=r;this.filename=e.sourceFilename;this.startIndex=e.startIndex}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode();const t=this.startNode();this.nextToken();e.errors=null;this.parseTopLevel(e,t);e.errors=this.state.errors;e.comments.length=this.state.commentsLen;return e}}function parse(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e);const s=r.parse();if(r.sawUnambiguousESM){return s}if(r.ambiguousScriptDifferentAst){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}}else{s.program.sourceType="script"}return s}catch(r){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}throw r}}else{return getParser(t,e).parse()}}function parseExpression(e,t){const r=getParser(t,e);if(r.options.strictMode){r.state.strict=true}return r.getExpression()}function generateExportedTokenTypes(e){const t={};for(const r of Object.keys(e)){t[r]=getExportedToken(e[r])}return t}const pe=generateExportedTokenTypes(C);function getParser(e,t){let r=Parser;const s=new Map;if(e!=null&&e.plugins){for(const t of e.plugins){let e,r;if(typeof t==="string"){e=t}else{[e,r]=t}if(!s.has(e)){s.set(e,r||{})}}validatePlugins(s);r=getParserClass(s)}return new r(e,t,s)}const ue=new Map;function getParserClass(e){const t=[];for(const r of ie){if(e.has(r)){t.push(r)}}const r=t.join("|");let s=ue.get(r);if(!s){s=Parser;for(const e of t){s=ne[e](s)}ue.set(r,s)}return s}t.parse=parse;t.parseExpression=parseExpression;t.tokTypes=pe},5629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createTemplateBuilder;var s=r(8396);var n=r(7401);var i=r(5997);const a=(0,s.validate)({placeholderPattern:false});function createTemplateBuilder(e,t){const r=new WeakMap;const o=new WeakMap;const l=t||(0,s.validate)(null);return Object.assign(((t,...a)=>{if(typeof t==="string"){if(a.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,n.default)(e,t,(0,s.merge)(l,(0,s.validate)(a[0]))))}else if(Array.isArray(t)){let s=r.get(t);if(!s){s=(0,i.default)(e,t,l);r.set(t,s)}return extendedTrace(s(a))}else if(typeof t==="object"&&t){if(a.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,s.merge)(l,(0,s.validate)(t)))}throw new Error(`Unexpected template param ${typeof t}`)}),{ast:(t,...r)=>{if(typeof t==="string"){if(r.length>1)throw new Error("Unexpected extra params.");return(0,n.default)(e,t,(0,s.merge)((0,s.merge)(l,(0,s.validate)(r[0])),a))()}else if(Array.isArray(t)){let n=o.get(t);if(!n){n=(0,i.default)(e,t,(0,s.merge)(l,a));o.set(t,n)}return n(r)()}throw new Error(`Unexpected template param ${typeof t}`)}})}function extendedTrace(e){let t="";try{throw new Error}catch(e){if(e.stack){t=e.stack.split("\n").slice(3).join("\n")}}return r=>{try{return e(r)}catch(e){e.stack+=`\n =============\n${t}`;throw e}}}},459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statements=t.statement=t.smart=t.program=t.expression=void 0;var s=r(9175);const{assertExpressionStatement:n}=s;function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const i=t.smart=makeStatementFormatter((e=>{if(e.length>1){return e}else{return e[0]}}));const a=t.statements=makeStatementFormatter((e=>e));const o=t.statement=makeStatementFormatter((e=>{if(e.length===0){throw new Error("Found nothing to return.")}if(e.length>1){throw new Error("Found multiple statements but wanted one")}return e[0]}));const l=t.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1){throw new Error("Found multiple statements but wanted one")}if(l.unwrap(e).start===0){throw new Error("Parse result included parens.")}},unwrap:({program:e})=>{const[t]=e.body;n(t);return t.expression}};const c=t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},3954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statements=t.statement=t.smart=t.program=t.expression=t["default"]=void 0;var s=r(459);var n=r(5629);const i=t.smart=(0,n.default)(s.smart);const a=t.statement=(0,n.default)(s.statement);const o=t.statements=(0,n.default)(s.statements);const l=t.expression=(0,n.default)(s.expression);const c=t.program=(0,n.default)(s.program);var p=t["default"]=Object.assign(i.bind(undefined),{smart:i,statement:a,statements:o,expression:l,program:c,ast:i.ast})},5997:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=literalTemplate;var s=r(8396);var n=r(4097);var i=r(8710);function literalTemplate(e,t,r){const{metadata:n,names:a}=buildLiteralData(e,t,r);return t=>{const r={};t.forEach(((e,t)=>{r[a[t]]=e}));return t=>{const a=(0,s.normalizeReplacements)(t);if(a){Object.keys(a).forEach((e=>{if(hasOwnProperty.call(r,e)){throw new Error("Unexpected replacement overlap.")}}))}return e.unwrap((0,i.default)(n,a?Object.assign(a,r):r))}}}function buildLiteralData(e,t,r){let s="BABEL_TPL$";const i=t.join("");do{s="$$"+s}while(i.includes(s));const{names:a,code:o}=buildTemplateCode(t,s);const l=(0,n.default)(e,e.code(o),{parser:r.parser,placeholderWhitelist:new Set(a.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders});return{metadata:l,names:a}}function buildTemplateCode(e,t){const r=[];let s=e[0];for(let n=1;n<e.length;n++){const i=`${t}${n-1}`;r.push(i);s+=i+e[n]}return{names:r,code:s}}},8396:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=merge;t.normalizeReplacements=normalizeReplacements;t.validate=validate;const r=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;r[s]=e[s]}return r}function merge(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:s=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:i}}function validate(e){if(e!=null&&typeof e!=="object"){throw new Error("Unknown template options.")}const t=e||{},{placeholderWhitelist:s,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:a}=t,o=_objectWithoutPropertiesLoose(t,r);if(s!=null&&!(s instanceof Set)){throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined")}if(n!=null&&!(n instanceof RegExp)&&n!==false){throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined")}if(i!=null&&typeof i!=="boolean"){throw new Error("'.preserveComments' must be a boolean, null, or undefined")}if(a!=null&&typeof a!=="boolean"){throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined")}if(a===true&&(s!=null||n!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}return{parser:o,placeholderWhitelist:s||undefined,placeholderPattern:n==null?undefined:n,preserveComments:i==null?undefined:i,syntacticPlaceholders:a==null?undefined:a}}function normalizeReplacements(e){if(Array.isArray(e)){return e.reduce(((e,t,r)=>{e["$"+r]=t;return e}),{})}else if(typeof e==="object"||e==null){return e||undefined}throw new Error("Template replacements must be an array, object, null, or undefined")}},4097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=parseAndBuildMetadata;var s=r(9175);var n=r(1243);var i=r(2562);const{isCallExpression:a,isExpressionStatement:o,isFunction:l,isIdentifier:c,isJSXIdentifier:p,isNewExpression:u,isPlaceholder:f,isStatement:d,isStringLiteral:h,removePropertiesDeep:m,traverse:y}=s;const T=/^[_$A-Z0-9]+$/;function parseAndBuildMetadata(e,t,r){const{placeholderWhitelist:s,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:a}=r;const o=parseWithCodeFrame(t,r.parser,a);m(o,{preserveComments:i});e.validate(o);const l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:n,syntacticPlaceholders:a};y(o,placeholderVisitorHandler,l);return Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function placeholderVisitorHandler(e,t,r){var s;let n;let i=r.syntactic.placeholders.length>0;if(f(e)){if(r.syntacticPlaceholders===false){throw new Error("%%foo%%-style placeholders can't be used when "+"'.syntacticPlaceholders' is false.")}n=e.name.name;i=true}else if(i||r.syntacticPlaceholders){return}else if(c(e)||p(e)){n=e.name}else if(h(e)){n=e.value}else{return}if(i&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}if(!i&&(r.placeholderPattern===false||!(r.placeholderPattern||T).test(n))&&!((s=r.placeholderWhitelist)!=null&&s.has(n))){return}t=t.slice();const{node:m,key:y}=t[t.length-1];let S;if(h(e)||f(e,{expectedNode:"StringLiteral"})){S="string"}else if(u(m)&&y==="arguments"||a(m)&&y==="arguments"||l(m)&&y==="params"){S="param"}else if(o(m)&&!f(e)){S="statement";t=t.slice(0,-1)}else if(d(e)&&f(e)){S="statement"}else{S="other"}const{placeholders:g,placeholderNames:x}=!i?r.legacy:r.syntactic;g.push({name:n,type:S,resolve:e=>resolveAncestors(e,t),isDuplicate:x.has(n)});x.add(n)}function resolveAncestors(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:s,index:n}=t[e];if(n===undefined){r=r[s]}else{r=r[s][n]}}const{key:s,index:n}=t[t.length-1];return{parent:r,key:s,index:n}}function parseWithCodeFrame(e,t,r){const s=(t.plugins||[]).slice();if(r!==false){s.push("placeholders")}t=Object.assign({allowReturnOutsideFunction:true,allowSuperOutsideMethod:true,sourceType:"module"},t,{plugins:s});try{return(0,n.parse)(e,t)}catch(t){const r=t.loc;if(r){t.message+="\n"+(0,i.codeFrameColumns)(e,{start:r});t.code="BABEL_TEMPLATE_PARSE_ERROR"}throw t}}},8710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=populatePlaceholders;var s=r(9175);const{blockStatement:n,cloneNode:i,emptyStatement:a,expressionStatement:o,identifier:l,isStatement:c,isStringLiteral:p,stringLiteral:u,validate:f}=s;function populatePlaceholders(e,t){const r=i(e.ast);if(t){e.placeholders.forEach((e=>{if(!hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}}));Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t)){throw new Error(`Unknown substitution "${t}" given`)}}))}e.placeholders.slice().reverse().forEach((e=>{try{applyReplacement(e,r,t&&t[e.name]||null)}catch(t){t.message=`@babel/template placeholder "${e.name}": ${t.message}`;throw t}}));return r}function applyReplacement(e,t,r){if(e.isDuplicate){if(Array.isArray(r)){r=r.map((e=>i(e)))}else if(typeof r==="object"){r=i(r)}}const{parent:s,key:d,index:h}=e.resolve(t);if(e.type==="string"){if(typeof r==="string"){r=u(r)}if(!r||!p(r)){throw new Error("Expected string substitution")}}else if(e.type==="statement"){if(h===undefined){if(!r){r=a()}else if(Array.isArray(r)){r=n(r)}else if(typeof r==="string"){r=o(l(r))}else if(!c(r)){r=o(r)}}else{if(r&&!Array.isArray(r)){if(typeof r==="string"){r=l(r)}if(!c(r)){r=o(r)}}}}else if(e.type==="param"){if(typeof r==="string"){r=l(r)}if(h===undefined)throw new Error("Assertion failure.")}else{if(typeof r==="string"){r=l(r)}if(Array.isArray(r)){throw new Error("Cannot replace single expression with an array.")}}function set(e,t,r){const s=e[t];e[t]=r;if(s.type==="Identifier"||s.type==="Placeholder"){if(s.typeAnnotation){r.typeAnnotation=s.typeAnnotation}if(s.optional){r.optional=s.optional}if(s.decorators){r.decorators=s.decorators}}}if(h===undefined){f(s,d,r);set(s,d,r)}else{const t=s[d].slice();if(e.type==="statement"||e.type==="param"){if(r==null){t.splice(h,1)}else if(Array.isArray(r)){t.splice(h,1,...r)}else{set(t,h,r)}}else{set(t,h,r)}f(s,d,t);s[d]=t}}},7401:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=stringTemplate;var s=r(8396);var n=r(4097);var i=r(8710);function stringTemplate(e,t,r){t=e.code(t);let a;return o=>{const l=(0,s.normalizeReplacements)(o);if(!a)a=(0,n.default)(e,t,r);return e.unwrap((0,i.default)(a,l))}}},1665:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clear=clear;t.clearPath=clearPath;t.clearScope=clearScope;t.getCachedPaths=getCachedPaths;t.getOrCreateCachedPaths=getOrCreateCachedPaths;t.scope=t.path=void 0;let r=t.path=new WeakMap;let s=t.scope=new WeakMap;function clear(){clearPath();clearScope()}function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=s=new WeakMap}const n=Object.freeze({});function getCachedPaths(e,t){var s,i;{e=null}return(s=r.get((i=e)!=null?i:n))==null?void 0:s.get(t)}function getOrCreateCachedPaths(e,t){var s,i;{e=null}let a=r.get((s=e)!=null?s:n);if(!a)r.set((i=e)!=null?i:n,a=new WeakMap);let o=a.get(t);if(!o)a.set(t,o=new Map);return o}},3964:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(8287);var n=r(9175);var i=r(1444);const{VISITOR_KEYS:a}=n;class TraversalContext{constructor(e,t,r,s){this.queue=null;this.priorityQueue=null;this.parentPath=s;this.scope=e;this.state=r;this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return true;if(t[e.type])return true;const r=a[e.type];if(!(r!=null&&r.length))return false;for(const t of r){if(e[t]){return true}}return false}create(e,t,r,n){return s.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:n})}maybeQueue(e,t){if(this.queue){if(t){this.queue.push(e)}else{this.priorityQueue.push(e)}}}visitMultiple(e,t,r){if(e.length===0)return false;const s=[];for(let n=0;n<e.length;n++){const i=e[n];if(i&&this.shouldVisit(i)){s.push(this.create(t,e,n,r))}}return this.visitQueue(s)}visitSingle(e,t){if(this.shouldVisit(e[t])){return this.visitQueue([this.create(e,e,t)])}else{return false}}visitQueue(e){this.queue=e;this.priorityQueue=[];const t=new WeakSet;let r=false;let s=0;for(;s<e.length;){const n=e[s];s++;i.resync.call(n);if(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this){i.pushContext.call(n,this)}if(n.key===null)continue;const{node:a}=n;if(t.has(a))continue;if(a)t.add(a);if(n.visit()){r=true;break}if(this.priorityQueue.length){r=this.visitQueue(this.priorityQueue);this.priorityQueue=[];this.queue=e;if(r)break}}for(let t=0;t<s;t++){i.popContext.call(e[t])}this.queue=null;return r}visit(e,t){const r=e[t];if(!r)return false;if(Array.isArray(r)){return this.visitMultiple(r,e,t)}else{return this.visitSingle(e,t)}}}t["default"]=TraversalContext},1936:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Hub{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}t["default"]=Hub},4967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"Hub",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"NodePath",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return l.default}});t.visitors=t["default"]=void 0;r(1444);var s=r(9780);t.visitors=s;var n=r(9175);var i=r(1665);var a=r(2894);var o=r(8287);var l=r(1784);var c=r(1936);const{VISITOR_KEYS:p,removeProperties:u,traverseFast:f}=n;function traverse(e,t={},r,n,i,o){if(!e)return;if(!t.noScope&&!r){if(e.type!=="Program"&&e.type!=="File"){throw new Error("You must pass a scope and parentPath unless traversing a Program/File. "+`Instead of that you tried to traverse a ${e.type} node without `+"passing scope and parentPath.")}}if(!i&&o){throw new Error("visitSelf can only be used when providing a NodePath.")}if(!p[e.type]){return}s.explode(t);(0,a.traverseNode)(e,t,r,n,i,null,o)}var d=t["default"]=traverse;traverse.visitors=s;traverse.verify=s.verify;traverse.explode=s.explode;traverse.cheap=function(e,t){f(e,t);return};traverse.node=function(e,t,r,s,n,i){(0,a.traverseNode)(e,t,r,s,n,i)};traverse.clearNode=function(e,t){u(e,t)};traverse.removeProperties=function(e,t){f(e,traverse.clearNode,t);return e};function hasDenylistedType(e,t){if(e.node.type===t.type){t.has=true;e.stop()}}traverse.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return false;if(e.type===t)return true;const s={has:false,type:t};traverse(e,{noScope:true,denylist:r,enter:hasDenylistedType},null,s);return s.has};traverse.cache=i},6934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.find=find;t.findParent=findParent;t.getAncestry=getAncestry;t.getDeepestCommonAncestorFrom=getDeepestCommonAncestorFrom;t.getEarliestCommonAncestorFrom=getEarliestCommonAncestorFrom;t.getFunctionParent=getFunctionParent;t.getStatementParent=getStatementParent;t.inType=inType;t.isAncestor=isAncestor;t.isDescendant=isDescendant;var s=r(9175);const{VISITOR_KEYS:n}=s;function findParent(e){let t=this;while(t=t.parentPath){if(e(t))return t}return null}function find(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null}function getFunctionParent(){return this.findParent((e=>e.isFunction()))}function getStatementParent(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()){break}else{e=e.parentPath}}while(e);if(e&&(e.isProgram()||e.isFile())){throw new Error("File/Program node, we can't possibly find a statement parent to this")}return e}function getEarliestCommonAncestorFrom(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){let s;const i=n[e.type];for(const e of r){const r=e[t+1];if(!s){s=r;continue}if(r.listKey&&s.listKey===r.listKey){if(r.key<s.key){s=r;continue}}const n=i.indexOf(s.parentKey);const a=i.indexOf(r.parentKey);if(n>a){s=r}}return s}))}function getDeepestCommonAncestorFrom(e,t){if(!e.length){return this}if(e.length===1){return e[0]}let r=Infinity;let s,n;const i=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);if(t.length<r){r=t.length}return t}));const a=i[0];e:for(let e=0;e<r;e++){const t=a[e];for(const r of i){if(r[e]!==t){break e}}s=e;n=t}if(n){if(t){return t(n,s,i)}else{return n}}else{throw new Error("Couldn't find intersection")}}function getAncestry(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t}function isAncestor(e){return e.isDescendant(this)}function isDescendant(e){return!!this.findParent((t=>t===e))}function inType(...e){let t=this;while(t){for(const r of e){if(t.node.type===r)return true}t=t.parentPath}return false}},9233:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addComment=addComment;t.addComments=addComments;t.shareCommentsWithSiblings=shareCommentsWithSiblings;var s=r(9175);const{addComment:n,addComments:i}=s;function shareCommentsWithSiblings(){if(typeof this.key==="string")return;const e=this.node;if(!e)return;const t=e.trailingComments;const r=e.leadingComments;if(!t&&!r)return;const s=this.getSibling(this.key-1);const n=this.getSibling(this.key+1);const i=Boolean(s.node);const a=Boolean(n.node);if(i){if(r){s.addComments("trailing",removeIfExisting(r,s.node.trailingComments))}if(t&&!a)s.addComments("trailing",t)}if(a){if(t){n.addComments("leading",removeIfExisting(t,n.node.leadingComments))}if(r&&!i)n.addComments("leading",r)}}function removeIfExisting(e,t){if(!(t!=null&&t.length))return e;const r=new Set(t);return e.filter((e=>!r.has(e)))}function addComment(e,t,r){n(this.node,e,t,r)}function addComments(e,t){i(this.node,e,t)}},1444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._call=_call;t._getQueueContexts=_getQueueContexts;t._resyncKey=_resyncKey;t._resyncList=_resyncList;t._resyncParent=_resyncParent;t._resyncRemoved=_resyncRemoved;t.call=call;t.isDenylisted=isDenylisted;t.popContext=popContext;t.pushContext=pushContext;t.requeue=requeue;t.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;t.resync=resync;t.setContext=setContext;t.setKey=setKey;t.setScope=setScope;t.setup=setup;t.skip=skip;t.skipKey=skipKey;t.stop=stop;t.visit=visit;var s=r(2894);var n=r(8287);var i=r(19);var a=r(9175);function call(e){const t=this.opts;this.debug(e);if(this.node){if(_call.call(this,t[e]))return true}if(this.node){var r;return _call.call(this,(r=t[this.node.type])==null?void 0:r[e])}return false}function _call(e){if(!e)return false;for(const t of e){if(!t)continue;const e=this.node;if(!e)return true;const r=t.call(this.state,this,this.state);if(r&&typeof r==="object"&&typeof r.then==="function"){throw new Error(`You appear to be using a plugin with an async traversal visitor, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}if(r){throw new Error(`Unexpected return value from visitor method ${t}`)}if(this.node!==e)return true;if(this._traverseFlags>0)return true}return false}function isDenylisted(){var e;const t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t==null?void 0:t.includes(this.node.type)}{t.isBlacklisted=isDenylisted}function restoreContext(e,t){if(e.context!==t){e.context=t;e.state=t.state;e.opts=t.opts}}function visit(){var e,t;if(!this.node){return false}if(this.isDenylisted()){return false}if((e=(t=this.opts).shouldSkip)!=null&&e.call(t,this)){return false}const r=this.context;if(this.shouldSkip||call.call(this,"enter")){this.debug("Skip...");return this.shouldStop}restoreContext(this,r);this.debug("Recursing into...");this.shouldStop=(0,s.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys);restoreContext(this,r);call.call(this,"exit");return this.shouldStop}function skip(){this.shouldSkip=true}function skipKey(e){if(this.skipKeys==null){this.skipKeys={}}this.skipKeys[e]=true}function stop(){this._traverseFlags|=n.SHOULD_SKIP|n.SHOULD_STOP}function setScope(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement()){r=r.parentPath}let s;while(r&&!s){var n;if((n=r.opts)!=null&&n.noScope)return;s=r.scope;r=r.parentPath}this.scope=this.getScope(s);(t=this.scope)==null||t.init()}function setContext(e){if(this.skipKeys!=null){this.skipKeys={}}this._traverseFlags=0;if(e){this.context=e;this.state=e.state;this.opts=e.opts}setScope.call(this);return this}function resync(){if(this.removed)return;_resyncParent.call(this);_resyncList.call(this);_resyncKey.call(this)}function _resyncParent(){if(this.parentPath){this.parent=this.parentPath.node}}function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key]){return}if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++){if(this.container[e]===this.node){setKey.call(this,e);return}}}else{for(const e of Object.keys(this.container)){if(this.container[e]===this.node){setKey.call(this,e);return}}}this.key=null}function _resyncList(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null}function _resyncRemoved(){if(this.key==null||!this.container||this.container[this.key]!==this.node){i._markRemoved.call(this)}}function popContext(){this.contexts.pop();if(this.contexts.length>0){this.setContext(this.contexts[this.contexts.length-1])}else{this.setContext(undefined)}}function pushContext(e){this.contexts.push(e);this.setContext(e)}function setup(e,t,r,s){this.listKey=r;this.container=t;this.parentPath=e||this.parentPath;setKey.call(this,s)}function setKey(e){var t;this.key=e;this.node=this.container[this.key];this.type=(t=this.node)==null?void 0:t.type}function requeue(e=this){if(e.removed)return;const t=this.contexts;for(const r of t){r.maybeQueue(e)}}function requeueComputedKeyAndDecorators(){const{context:e,node:t}=this;if(!a.isPrivate(t)&&t.computed){e.maybeQueue(this.get("key"))}if(t.decorators){for(const t of this.get("decorators")){e.maybeQueue(t)}}}function _getQueueContexts(){let e=this;let t=this.contexts;while(!t.length){e=e.parentPath;if(!e)break;t=e.contexts}return t}},5107:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arrowFunctionToExpression=arrowFunctionToExpression;t.ensureBlock=ensureBlock;t.ensureFunctionName=ensureFunctionName;t.splitExportDeclaration=splitExportDeclaration;t.toComputedKey=toComputedKey;t.unwrapFunctionEnvironment=unwrapFunctionEnvironment;var s=r(9175);var n=r(3954);var i=r(9780);var a=r(1444);const{arrowFunctionExpression:o,assignmentExpression:l,binaryExpression:c,blockStatement:p,callExpression:u,conditionalExpression:f,expressionStatement:d,identifier:h,isIdentifier:m,jsxIdentifier:y,logicalExpression:T,LOGICAL_OPERATORS:S,memberExpression:g,metaProperty:x,numericLiteral:b,objectExpression:E,restElement:P,returnStatement:A,sequenceExpression:v,spreadElement:I,stringLiteral:C,super:w,thisExpression:O,toExpression:N,unaryExpression:k,toBindingIdentifierName:D,isFunction:L,isAssignmentPattern:M,isRestElement:_,getFunctionName:B,cloneNode:F,variableDeclaration:j,variableDeclarator:R,exportNamedDeclaration:K,exportSpecifier:U,inherits:V}=s;function toComputedKey(){let e;if(this.isMemberExpression()){e=this.node.property}else if(this.isProperty()||this.isMethod()){e=this.node.key}else{throw new ReferenceError("todo")}if(!this.node.computed){if(m(e))e=C(e.name)}return e}function ensureBlock(){const e=this.get("body");const t=e.node;if(Array.isArray(e)){throw new Error("Can't convert array path to a block statement")}if(!t){throw new Error("Can't convert node without a body")}if(e.isBlockStatement()){return t}const r=[];let s="body";let n;let i;if(e.isStatement()){i="body";n=0;r.push(e.node)}else{s+=".body.0";if(this.isFunction()){n="argument";r.push(A(e.node))}else{n="expression";r.push(d(e.node))}}this.node.body=p(r);const o=this.get(s);a.setup.call(e,o,i?o.node[i]:o.node,i,n);return this.node}{t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()}}function unwrapFunctionEnvironment(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration()){throw this.buildCodeFrameError("Can only unwrap the environment of a function.")}hoistFunctionEnvironment(this)}function setType(e,t){e.node.type=t}function arrowFunctionToExpression({allowInsertArrow:e=true,allowInsertArrowWithRest:t=e,noNewArrows:r=!(e=>(e=arguments[0])==null?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression()){throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.")}let s=this;if(!r){var n;s=(n=s.ensureFunctionName(false))!=null?n:s}const{thisBinding:i,fnPath:a}=hoistFunctionEnvironment(s,r,e,t);a.ensureBlock();setType(a,"FunctionExpression");if(!r){const e=i?null:a.scope.generateUidIdentifier("arrowCheckId");if(e){a.parentPath.scope.push({id:e,init:E([])})}a.get("body").unshiftContainer("body",d(u(this.hub.addHelper("newArrowCheck"),[O(),e?h(e.name):h(i)])));a.replaceWith(u(g(a.node,h("bind")),[e?h(e.name):O()]));return a.get("callee.object")}return a}const W=(0,i.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){if(!e.get("callee").isSuper())return;t.push(e)}});function hoistFunctionEnvironment(e,t=true,r=true,s=true){let n;let i=e.findParent((e=>{if(e.isArrowFunctionExpression()){var t;(t=n)!=null?t:n=e;return false}return e.isFunction()||e.isProgram()||e.isClassProperty({static:false})||e.isClassPrivateProperty({static:false})}));const a=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty()){if(n){i=n}else if(r){e.replaceWith(u(o([],N(e.node)),[]));i=e.get("callee");e=i.get("body")}else{throw e.buildCodeFrameError("Unable to transform arrow inside class property")}}const{thisPaths:l,argumentsPaths:p,newTargetPaths:d,superProps:m,superCalls:T}=getScopeInformation(e);if(a&&T.length>0){if(!r){throw T[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super()` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}if(!s){throw T[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', "+"it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const e=[];i.traverse(W,{allSuperCalls:e});const t=getSuperBinding(i);e.forEach((e=>{const r=h(t);r.loc=e.node.callee.loc;e.get("callee").replaceWith(r)}))}if(p.length>0){const e=getBinding(i,"arguments",(()=>{const args=()=>h("arguments");if(i.scope.path.isProgram()){return f(c("===",k("typeof",args()),C("undefined")),i.scope.buildUndefinedNode(),args())}else{return args()}}));p.forEach((t=>{const r=h(e);r.loc=t.node.loc;t.replaceWith(r)}))}if(d.length>0){const e=getBinding(i,"newtarget",(()=>x(h("new"),h("target"))));d.forEach((t=>{const r=h(e);r.loc=t.node.loc;t.replaceWith(r)}))}if(m.length>0){if(!r){throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super.prop` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const e=m.reduce(((e,t)=>e.concat(standardizeSuperProperty(t))),[]);e.forEach((e=>{const t=e.node.computed?"":e.get("property").node.name;const r=e.parentPath;const s=r.isAssignmentExpression({left:e.node});const n=r.isCallExpression({callee:e.node});const a=r.isTaggedTemplateExpression({tag:e.node});const o=getSuperPropBinding(i,s,t);const c=[];if(e.node.computed){c.push(e.get("property").node)}if(s){const e=r.node.right;c.push(e)}const p=u(h(o),c);if(n){r.unshiftContainer("arguments",O());e.replaceWith(g(p,h("call")));l.push(r.get("arguments.0"))}else if(s){r.replaceWith(p)}else if(a){e.replaceWith(u(g(p,h("bind"),false),[O()]));l.push(e.get("arguments.0"))}else{e.replaceWith(p)}}))}let S;if(l.length>0||!t){S=getThisBinding(i,a);if(t||a&&hasSuperClass(i)){l.forEach((e=>{const t=e.isJSX()?y(S):h(S);t.loc=e.node.loc;e.replaceWith(t)}));if(!t)S=null}}return{thisBinding:S,fnPath:e}}function isLogicalOp(e){return S.includes(e)}function standardizeSuperProperty(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){const t=e.parentPath;const r=t.node.operator.slice(0,-1);const s=t.node.right;const n=isLogicalOp(r);if(e.node.computed){const i=e.scope.generateDeclaredUidIdentifier("tmp");const a=e.node.object;const o=e.node.property;t.get("left").replaceWith(g(a,l("=",i,o),true));t.get("right").replaceWith(rightExpression(n?"=":r,g(a,h(i.name),true),s))}else{const i=e.node.object;const a=e.node.property;t.get("left").replaceWith(g(i,a));t.get("right").replaceWith(rightExpression(n?"=":r,g(i,h(a.name)),s))}if(n){t.replaceWith(T(r,t.node.left,t.node.right))}else{t.node.operator="="}return[t.get("left"),t.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){const t=e.parentPath;const r=e.scope.generateDeclaredUidIdentifier("tmp");const s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null;const n=[l("=",r,g(e.node.object,s?l("=",s,e.node.property):e.node.property,e.node.computed)),l("=",g(e.node.object,s?h(s.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],h(r.name),b(1)))];if(!e.parentPath.node.prefix){n.push(h(r.name))}t.replaceWith(v(n));const i=t.get("expressions.0.right");const a=t.get("expressions.1.left");return[i,a]}return[e];function rightExpression(e,t,r){if(e==="="){return l("=",t,r)}else{return c(e,t,r)}}}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const q=(0,i.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){if(!e.get("callee").isSuper())return;if(t.has(e.node))return;t.add(e.node);e.replaceWithMultiple([e.node,l("=",h(r),h("this"))])}});function getThisBinding(e,t){return getBinding(e,"this",(r=>{if(!t||!hasSuperClass(e))return O();e.traverse(q,{supers:new WeakSet,thisBinding:r})}))}function getSuperBinding(e){return getBinding(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return o([P(t)],u(w(),[I(h(t.name))]))}))}function getSuperPropBinding(e,t,r){const s=t?"set":"get";return getBinding(e,`superprop_${s}:${r||""}`,(()=>{const s=[];let n;if(r){n=g(w(),h(r))}else{const t=e.scope.generateUidIdentifier("prop");s.unshift(t);n=g(w(),h(t.name),true)}if(t){const t=e.scope.generateUidIdentifier("value");s.push(t);n=l("=",n,h(t.name))}return o(s,n)}))}function getBinding(e,t,r){const s="binding:"+t;let n=e.getData(s);if(!n){const i=e.scope.generateUidIdentifier(t);n=i.name;e.setData(s,n);e.scope.push({id:i,init:r(n)})}return n}const J=(0,i.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){if(e.node.name!=="this")return;if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})){return}t.push(e)},CallExpression(e,{superCalls:t}){if(e.get("callee").isSuper())t.push(e)},MemberExpression(e,{superProps:t}){if(e.get("object").isSuper())t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression()){break}}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){if(!e.get("meta").isIdentifier({name:"new"}))return;if(!e.get("property").isIdentifier({name:"target"}))return;t.push(e)}});function getScopeInformation(e){const t=[];const r=[];const s=[];const n=[];const i=[];e.traverse(J,{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:n,superCalls:i});return{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:n,superCalls:i}}function splitExportDeclaration(){if(!this.isExportDeclaration()||this.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration();const r=e.isFunctionExpression()||e.isClassExpression();const s=e.isScope()?e.scope.parent:e.scope;let n=e.node.id;let i=false;if(!n){i=true;n=s.generateUidIdentifier("default");if(t||r){e.node.id=F(n)}}else if(r&&s.hasBinding(n.name)){i=true;n=s.generateUidIdentifier(n.name)}const a=t?e.node:j("var",[R(F(n),e.node)]);const o=K(null,[U(F(n),h("default"))]);this.insertAfter(o);this.replaceWith(a);if(i){s.registerDeclaration(this)}return this}else if(this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const t=e.getOuterBindingIdentifiers();const r=Object.keys(t).map((e=>U(h(e),h(e))));const s=K(null,r);this.insertAfter(s);this.replaceWith(e.node);return this}const X={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;t.needsRename=true;e.stop()},Scope(e,t){if(e.scope.hasOwnBinding(t.name)){e.skip()}}};function ensureFunctionName(e){if(this.node.id)return this;const t=B(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)){return null}if(r.startsWith("get ")||r.startsWith("set ")){return null}r=D(r.replace(/[/ ]/g,"_"));const s=h(r);V(s,t.originalNode);const i={needsRename:false,name:r};const{scope:a}=this;const o=a.getOwnBinding(r);if(o){if(o.kind==="param"){i.needsRename=true}else{}}else if(a.parent.hasBinding(r)||a.hasGlobal(r)){this.traverse(X,i)}if(!i.needsRename){this.node.id=s;a.getProgramParent().references[s.name]=true;return this}if(a.hasBinding(s.name)&&!a.hasGlobal(s.name)){a.rename(s.name);this.node.id=s;a.getProgramParent().references[s.name]=true;return this}if(!L(this.node))return null;const l=a.generateUidIdentifier(s.name);const c=[];for(let e=0,t=getFunctionArity(this.node);e<t;e++){c.push(a.generateUidIdentifier("x"))}const p=n.default.expression.ast`
2
+ (function (${l}) {
3
+ function ${s}(${c}) {
4
+ return ${F(l)}.apply(this, arguments);
5
+ }
6
+
7
+ ${F(s)}.toString = function () {
8
+ return ${F(l)}.toString();
9
+ }
10
+
11
+ return ${F(s)};
12
+ })(${N(this.node)})
13
+ `;return this.replaceWith(p)[0].get("arguments.0")}function getFunctionArity(e){const t=e.params.findIndex((e=>M(e)||_(e)));return t===-1?e.params.length:t}},2401:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluate=evaluate;t.evaluateTruthy=evaluateTruthy;const r=["Number","String","Math"];const s=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null];const n=["random"];function isValidObjectCallee(e){return r.includes(e)}function isValidIdentifierCallee(e){return s.includes(e)}function isInvalidMethod(e){return n.includes(e)}function evaluateTruthy(){const e=this.evaluate();if(e.confident)return!!e.value}function deopt(e,t){if(!t.confident)return;t.deoptPath=e;t.confident=false}const i=new Map([["undefined",undefined],["Infinity",Infinity],["NaN",NaN]]);function evaluateCached(e,t){const{node:r}=e;const{seen:s}=t;if(s.has(r)){const n=s.get(r);if(n.resolved){return n.value}else{deopt(e,t);return}}else{const n={resolved:false};s.set(r,n);const i=_evaluate(e,t);if(t.confident){n.resolved=true;n.value=i}return i}}function _evaluate(e,t){if(!t.confident)return;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral()){return e.node.value}if(e.isNullLiteral()){return null}if(e.isTemplateLiteral()){return evaluateQuasis(e,e.node.quasis,t)}if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object");const{node:{name:s}}=r;const n=e.get("tag.property");if(r.isIdentifier()&&s==="String"&&!e.scope.getBinding(s)&&n.isIdentifier()&&n.node.name==="raw"){return evaluateQuasis(e,e.node.quasi.quasis,t,true)}}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;if(r){return evaluateCached(e.get("consequent"),t)}else{return evaluateCached(e.get("alternate"),t)}}if(e.isExpressionWrapper()){return evaluateCached(e.get("expression"),t)}if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property");const s=e.get("object");if(s.isLiteral()){const n=s.node.value;const i=typeof n;let a=null;if(e.node.computed){a=evaluateCached(r,t);if(!t.confident)return}else if(r.isIdentifier()){a=r.node.name}if((i==="number"||i==="string")&&a!=null&&(typeof a==="number"||typeof a==="string")){return n[a]}}}if(e.isReferencedIdentifier()){const r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end){deopt(r.path,t);return}if(r.hasValue){return r.value}}const s=e.node.name;if(i.has(s)){if(!r){return i.get(s)}deopt(r.path,t);return}const n=e.resolve();if(n===e){deopt(e,t);return}else{return evaluateCached(n,t)}}if(e.isUnaryExpression({prefix:true})){if(e.node.operator==="void"){return undefined}const r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass())){return"function"}const s=evaluateCached(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"~":return~s;case"typeof":return typeof s}}if(e.isArrayExpression()){const r=[];const s=e.get("elements");for(const e of s){const s=e.evaluate();if(s.confident){r.push(s.value)}else{deopt(s.deopt,t);return}}return r}if(e.isObjectExpression()){const r={};const s=e.get("properties");for(const e of s){if(e.isObjectMethod()||e.isSpreadElement()){deopt(e,t);return}const s=e.get("key");let n;if(e.node.computed){n=s.evaluate();if(!n.confident){deopt(n.deopt,t);return}n=n.value}else if(s.isIdentifier()){n=s.node.name}else{n=s.node.value}const i=e.get("value");let a=i.evaluate();if(!a.confident){deopt(a.deopt,t);return}a=a.value;r[n]=a}return r}if(e.isLogicalExpression()){const r=t.confident;const s=evaluateCached(e.get("left"),t);const n=t.confident;t.confident=r;const i=evaluateCached(e.get("right"),t);const a=t.confident;switch(e.node.operator){case"||":t.confident=n&&(!!s||a);if(!t.confident)return;return s||i;case"&&":t.confident=n&&(!s||a);if(!t.confident)return;return s&&i;case"??":t.confident=n&&(s!=null||a);if(!t.confident)return;return s!=null?s:i}}if(e.isBinaryExpression()){const r=evaluateCached(e.get("left"),t);if(!t.confident)return;const s=evaluateCached(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-s;case"+":return r+s;case"/":return r/s;case"*":return r*s;case"%":return r%s;case"**":return Math.pow(r,s);case"<":return r<s;case">":return r>s;case"<=":return r<=s;case">=":return r>=s;case"==":return r==s;case"!=":return r!=s;case"===":return r===s;case"!==":return r!==s;case"|":return r|s;case"&":return r&s;case"^":return r^s;case"<<":return r<<s;case">>":return r>>s;case">>>":return r>>>s}}if(e.isCallExpression()){const r=e.get("callee");let s;let n;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(isValidObjectCallee(r.node.name)||isValidIdentifierCallee(r.node.name))){n=global[r.node.name]}if(r.isMemberExpression()){const e=r.get("object");const t=r.get("property");if(e.isIdentifier()&&t.isIdentifier()&&isValidObjectCallee(e.node.name)&&!isInvalidMethod(t.node.name)){s=global[e.node.name];const r=t.node.name;if(hasOwnProperty.call(s,r)){n=s[r]}}if(e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;if(r==="string"||r==="number"){s=e.node.value;n=s[t.node.name]}}}if(n){const r=e.get("arguments").map((e=>evaluateCached(e,t)));if(!t.confident)return;return n.apply(s,r)}}deopt(e,t)}function evaluateQuasis(e,t,r,s=false){let n="";let i=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!r.confident)break;n+=s?e.value.raw:e.value.cooked;const t=a[i++];if(t)n+=String(evaluateCached(t,r))}if(!r.confident)return;return n}function evaluate(){const e={confident:true,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);if(!e.confident)t=undefined;return{confident:e.confident,deopt:e.deoptPath,value:t}}},9563:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._getKey=_getKey;t._getPattern=_getPattern;t.get=get;t.getAllNextSiblings=getAllNextSiblings;t.getAllPrevSiblings=getAllPrevSiblings;t.getAssignmentIdentifiers=getAssignmentIdentifiers;t.getBindingIdentifierPaths=getBindingIdentifierPaths;t.getBindingIdentifiers=getBindingIdentifiers;t.getCompletionRecords=getCompletionRecords;t.getNextSibling=getNextSibling;t.getOpposite=getOpposite;t.getOuterBindingIdentifierPaths=getOuterBindingIdentifierPaths;t.getOuterBindingIdentifiers=getOuterBindingIdentifiers;t.getPrevSibling=getPrevSibling;t.getSibling=getSibling;var s=r(8287);var n=r(9175);const{getAssignmentIdentifiers:i,getBindingIdentifiers:a,getOuterBindingIdentifiers:o,numericLiteral:l,unaryExpression:c}=n;const p=0;const u=1;function NormalCompletion(e){return{type:p,path:e}}function BreakCompletion(e){return{type:u,path:e}}function getOpposite(){if(this.key==="left"){return this.getSibling("right")}else if(this.key==="right"){return this.getSibling("left")}return null}function addCompletionRecords(e,t,r){if(e){t.push(..._getCompletionRecords(e,r))}return t}function completionRecordForSwitch(e,t,r){let s=[];for(let n=0;n<e.length;n++){const i=e[n];const a=_getCompletionRecords(i,r);const o=[];const l=[];for(const e of a){if(e.type===p){o.push(e)}if(e.type===u){l.push(e)}}if(o.length){s=o}t.push(...l)}t.push(...s);return t}function normalCompletionToBreak(e){e.forEach((e=>{e.type=u}))}function replaceBreakStatementInBreakCompletion(e,t){e.forEach((e=>{if(e.path.isBreakStatement({label:null})){if(t){e.path.replaceWith(c("void",l(0)))}else{e.path.remove()}}}))}function getStatementListCompletion(e,t){const r=[];if(t.canHaveBreak){let s=[];for(let n=0;n<e.length;n++){const i=e[n];const a=Object.assign({},t,{inCaseClause:false});if(i.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)){a.shouldPopulateBreak=true}else{a.shouldPopulateBreak=false}const o=_getCompletionRecords(i,a);if(o.length>0&&o.every((e=>e.type===u))){if(s.length>0&&o.every((e=>e.path.isBreakStatement({label:null})))){normalCompletionToBreak(s);r.push(...s);if(s.some((e=>e.path.isDeclaration()))){r.push(...o);replaceBreakStatementInBreakCompletion(o,true)}replaceBreakStatementInBreakCompletion(o,false)}else{r.push(...o);if(!t.shouldPopulateBreak){replaceBreakStatementInBreakCompletion(o,true)}}break}if(n===e.length-1){r.push(...o)}else{s=[];for(let e=0;e<o.length;e++){const t=o[e];if(t.type===u){r.push(t)}if(t.type===p){s.push(t)}}}}}else if(e.length){for(let s=e.length-1;s>=0;s--){const n=_getCompletionRecords(e[s],t);if(n.length>1||n.length===1&&!n[0].path.isVariableDeclaration()){r.push(...n);break}}}return r}function _getCompletionRecords(e,t){let r=[];if(e.isIfStatement()){r=addCompletionRecords(e.get("consequent"),r,t);r=addCompletionRecords(e.get("alternate"),r,t)}else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isProgram()||e.isBlockStatement()){return getStatementListCompletion(e.get("body"),t)}else if(e.isFunction()){return _getCompletionRecords(e.get("body"),t)}else if(e.isTryStatement()){r=addCompletionRecords(e.get("block"),r,t);r=addCompletionRecords(e.get("handler"),r,t)}else if(e.isCatchClause()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isSwitchStatement()){return completionRecordForSwitch(e.get("cases"),r,t)}else if(e.isSwitchCase()){return getStatementListCompletion(e.get("consequent"),{canHaveBreak:true,shouldPopulateBreak:false,inCaseClause:true})}else if(e.isBreakStatement()){r.push(BreakCompletion(e))}else{r.push(NormalCompletion(e))}return r}function getCompletionRecords(){const e=_getCompletionRecords(this,{canHaveBreak:false,shouldPopulateBreak:false,inCaseClause:false});return e.map((e=>e.path))}function getSibling(e){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function getPrevSibling(){return this.getSibling(this.key-1)}function getNextSibling(){return this.getSibling(this.key+1)}function getAllNextSiblings(){let e=this.key;let t=this.getSibling(++e);const r=[];while(t.node){r.push(t);t=this.getSibling(++e)}return r}function getAllPrevSiblings(){let e=this.key;let t=this.getSibling(--e);const r=[];while(t.node){r.push(t);t=this.getSibling(--e)}return r}function get(e,t=true){if(t===true)t=this.context;const r=e.split(".");if(r.length===1){return _getKey.call(this,e,t)}else{return _getPattern.call(this,r,t)}}function _getKey(e,t){const r=this.node;const n=r[e];if(Array.isArray(n)){return n.map(((i,a)=>s.default.get({listKey:e,parentPath:this,parent:r,container:n,key:a}).setContext(t)))}else{return s.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}}function _getPattern(e,t){let r=this;for(const s of e){if(s==="."){r=r.parentPath}else{if(Array.isArray(r)){r=r[s]}else{r=r.get(s,t)}}}return r}function getAssignmentIdentifiers(){return i(this.node)}function getBindingIdentifiers(e){return a(this.node,e)}function getOuterBindingIdentifiers(e){return o(this.node,e)}function getBindingIdentifierPaths(e=false,t=false){const r=this;const s=[r];const n=Object.create(null);while(s.length){const r=s.shift();if(!r)continue;if(!r.node)continue;const i=a.keys[r.node.type];if(r.isIdentifier()){if(e){const e=n[r.node.name]=n[r.node.name]||[];e.push(r)}else{n[r.node.name]=r}continue}if(r.isExportDeclaration()){const e=r.get("declaration");if(e.isDeclaration()){s.push(e)}continue}if(t){if(r.isFunctionDeclaration()){s.push(r.get("id"));continue}if(r.isFunctionExpression()){continue}}if(i){for(let e=0;e<i.length;e++){const t=i[e];const n=r.get(t);if(Array.isArray(n)){s.push(...n)}else if(n.node){s.push(n)}}}}return n}function getOuterBindingIdentifierPaths(e=false){return this.getBindingIdentifierPaths(e,true)}},8287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var s=r(2244);var n=r(2366);var i=r(4967);var a=r(1784);var o=r(9175);var l=o;var c=r(1665);var p=r(2327);var u=r(6934);var f=r(7559);var d=r(8223);var h=r(2401);var m=r(5107);var y=r(7296);var T=r(1444);var S=T;var g=r(19);var x=r(3247);var b=r(9563);var E=r(9233);var P=r(2587);const{validate:A}=o;const v=n("babel");const I=t.REMOVED=1<<0;const C=t.SHOULD_STOP=1<<1;const w=t.SHOULD_SKIP=1<<2;const O=t["default"]=class NodePath{constructor(e,t){this.contexts=[];this.state=null;this.opts=null;this._traverseFlags=0;this.skipKeys=null;this.parentPath=null;this.container=null;this.listKey=null;this.key=null;this.node=null;this.type=null;this.parent=t;this.hub=e;this.data=null;this.context=null;this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){if(e)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){if(e)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){if(e)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:e,parentPath:t,parent:r,container:s,listKey:n,key:i}){if(!e&&t){e=t.hub}if(!r){throw new Error("To get a node path the parent needs to exist")}const a=s[i];const o=c.getOrCreateCachedPaths(e,r);let l=o.get(a);if(!l){l=new NodePath(e,r);if(a)o.set(a,l)}T.setup.call(l,t,s,n,i);return l}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){if(this.data==null){this.data=Object.create(null)}return this.data[e]=t}getData(e,t){if(this.data==null){this.data=Object.create(null)}let r=this.data[e];if(r===undefined&&t!==undefined)r=this.data[e]=t;return r}hasNode(){return this.node!=null}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,i.default)(this.node,e,this.scope,t,this)}set(e,t){A(this.node,e,t);this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;if(t.inList)r=`${t.listKey}[${r}]`;e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){if(!v.enabled)return;v(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,p.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){if(!e){this.listKey=null}}get parentKey(){return this.listKey||this.key}};const N={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:f.getTypeAnnotation,isBaseType:f.isBaseType,couldBeBaseType:f.couldBeBaseType,baseTypeStrictlyMatches:f.baseTypeStrictlyMatches,isGenericType:f.isGenericType,replaceWithMultiple:d.replaceWithMultiple,replaceWithSourceString:d.replaceWithSourceString,replaceWith:d.replaceWith,replaceExpressionWithStatements:d.replaceExpressionWithStatements,replaceInline:d.replaceInline,evaluateTruthy:h.evaluateTruthy,evaluate:h.evaluate,toComputedKey:m.toComputedKey,ensureBlock:m.ensureBlock,unwrapFunctionEnvironment:m.unwrapFunctionEnvironment,arrowFunctionToExpression:m.arrowFunctionToExpression,splitExportDeclaration:m.splitExportDeclaration,ensureFunctionName:m.ensureFunctionName,matchesPattern:y.matchesPattern,isStatic:y.isStatic,isNodeType:y.isNodeType,canHaveVariableDeclarationOrExpression:y.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:y.canSwapBetweenExpressionAndStatement,isCompletionRecord:y.isCompletionRecord,isStatementOrBlock:y.isStatementOrBlock,referencesImport:y.referencesImport,getSource:y.getSource,willIMaybeExecuteBefore:y.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:y._guessExecutionStatusRelativeTo,resolve:y.resolve,isConstantExpression:y.isConstantExpression,isInStrictMode:y.isInStrictMode,isDenylisted:S.isDenylisted,visit:S.visit,skip:S.skip,skipKey:S.skipKey,stop:S.stop,setContext:S.setContext,requeue:S.requeue,requeueComputedKeyAndDecorators:S.requeueComputedKeyAndDecorators,remove:g.remove,insertBefore:x.insertBefore,insertAfter:x.insertAfter,unshiftContainer:x.unshiftContainer,pushContainer:x.pushContainer,getOpposite:b.getOpposite,getCompletionRecords:b.getCompletionRecords,getSibling:b.getSibling,getPrevSibling:b.getPrevSibling,getNextSibling:b.getNextSibling,getAllNextSiblings:b.getAllNextSiblings,getAllPrevSiblings:b.getAllPrevSiblings,get:b.get,getAssignmentIdentifiers:b.getAssignmentIdentifiers,getBindingIdentifiers:b.getBindingIdentifiers,getOuterBindingIdentifiers:b.getOuterBindingIdentifiers,getBindingIdentifierPaths:b.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:b.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:E.shareCommentsWithSiblings,addComment:E.addComment,addComments:E.addComments};Object.assign(O.prototype,N);{O.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")];Object.assign(O.prototype,{has:y[String("has")],is:y[String("is")],isnt:y[String("isnt")],equals:y[String("equals")],hoist:x[String("hoist")],updateSiblingKeys:x.updateSiblingKeys,call:S.call,isBlacklisted:S[String("isBlacklisted")],setScope:S.setScope,resync:S.resync,popContext:S.popContext,pushContext:S.pushContext,setup:S.setup,setKey:S.setKey})}{O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;Object.assign(O.prototype,{_getTypeAnnotation:f._getTypeAnnotation,_replaceWith:d._replaceWith,_resolve:y._resolve,_call:S._call,_resyncParent:S._resyncParent,_resyncKey:S._resyncKey,_resyncList:S._resyncList,_resyncRemoved:S._resyncRemoved,_getQueueContexts:S._getQueueContexts,_removeFromScope:g._removeFromScope,_callRemovalHooks:g._callRemovalHooks,_remove:g._remove,_markRemoved:g._markRemoved,_assertUnremoved:g._assertUnremoved,_containerInsert:x._containerInsert,_containerInsertBefore:x._containerInsertBefore,_containerInsertAfter:x._containerInsertAfter,_verifyNodeList:x._verifyNodeList,_getKey:b._getKey,_getPattern:b._getPattern})}for(const e of l.TYPES){const t=`is${e}`;const r=l[t];O.prototype[t]=function(e){return r(this.node,e)};O.prototype[`assert${e}`]=function(t){if(!r(this.node,t)){throw new TypeError(`Expected node path of type ${e}`)}}}Object.assign(O.prototype,P);for(const e of Object.keys(s)){if(e[0]==="_")continue;if(!l.TYPES.includes(e))l.TYPES.push(e)}},7559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._getTypeAnnotation=_getTypeAnnotation;t.baseTypeStrictlyMatches=baseTypeStrictlyMatches;t.couldBeBaseType=couldBeBaseType;t.getTypeAnnotation=getTypeAnnotation;t.isBaseType=isBaseType;t.isGenericType=isGenericType;var s=r(2095);var n=r(9175);const{anyTypeAnnotation:i,isAnyTypeAnnotation:a,isArrayTypeAnnotation:o,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:p,isGenericTypeAnnotation:u,isIdentifier:f,isMixedTypeAnnotation:d,isNumberTypeAnnotation:h,isStringTypeAnnotation:m,isTSArrayType:y,isTSTypeAnnotation:T,isTSTypeReference:S,isTupleTypeAnnotation:g,isTypeAnnotation:x,isUnionTypeAnnotation:b,isVoidTypeAnnotation:E,stringTypeAnnotation:P,voidTypeAnnotation:A}=n;function getTypeAnnotation(){let e=this.getData("typeAnnotation");if(e!=null){return e}e=_getTypeAnnotation.call(this)||i();if(x(e)||T(e)){e=e.typeAnnotation}this.setData("typeAnnotation",e);return e}const v=new WeakSet;function _getTypeAnnotation(){const e=this.node;if(!e){if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath;const t=e.parentPath;if(e.key==="left"&&t.isForInStatement()){return P()}if(e.key==="left"&&t.isForOfStatement()){return i()}return A()}else{return}}if(e.typeAnnotation){return e.typeAnnotation}if(v.has(e)){return}v.add(e);try{var t;let r=s[e.type];if(r){return r.call(this,e)}r=s[this.parentPath.type];if((t=r)!=null&&t.validParent){return this.parentPath.getTypeAnnotation()}}finally{v.delete(e)}}function isBaseType(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)}function _isBaseType(e,t,r){if(e==="string"){return m(t)}else if(e==="number"){return h(t)}else if(e==="boolean"){return l(t)}else if(e==="any"){return a(t)}else if(e==="mixed"){return d(t)}else if(e==="empty"){return c(t)}else if(e==="void"){return E(t)}else{if(r){return false}else{throw new Error(`Unknown base type ${e}`)}}}function couldBeBaseType(e){const t=this.getTypeAnnotation();if(a(t))return true;if(b(t)){for(const r of t.types){if(a(r)||_isBaseType(e,r,true)){return true}}return false}else{return _isBaseType(e,t,true)}}function baseTypeStrictlyMatches(e){const t=this.getTypeAnnotation();const r=e.getTypeAnnotation();if(!a(t)&&p(t)){return r.type===t.type}return false}function isGenericType(e){const t=this.getTypeAnnotation();if(e==="Array"){if(y(t)||o(t)||g(t)){return true}}return u(t)&&f(t.id,{name:e})||S(t)&&f(t.typeName,{name:e})}},4236:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;var s=r(9175);var n=r(8919);const{BOOLEAN_NUMBER_BINARY_OPERATORS:i,createTypeAnnotationBasedOnTypeof:a,numberTypeAnnotation:o,voidTypeAnnotation:l}=s;function _default(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t){if(t.identifier.typeAnnotation){return t.identifier.typeAnnotation}else{return getTypeAnnotationBindingConstantViolations(t,this,e.name)}}if(e.name==="undefined"){return l()}else if(e.name==="NaN"||e.name==="Infinity"){return o()}else if(e.name==="arguments"){}}function getTypeAnnotationBindingConstantViolations(e,t,r){const s=[];const i=[];let a=getConstantViolationsBefore(e,t,i);const o=getConditionalAnnotation(e,t,r);if(o){const t=getConstantViolationsBefore(e,o.ifStatement);a=a.filter((e=>!t.includes(e)));s.push(o.typeAnnotation)}if(a.length){a.push(...i);for(const e of a){s.push(e.getTypeAnnotation())}}if(!s.length){return}return(0,n.createUnionType)(s)}function getConstantViolationsBefore(e,t,r){const s=e.constantViolations.slice();s.unshift(e.path);return s.filter((e=>{e=e.resolve();const s=e._guessExecutionStatusRelativeTo(t);if(r&&s==="unknown")r.push(e);return s==="before"}))}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator;const s=t.get("right").resolve();const n=t.get("left").resolve();let l;if(n.isIdentifier({name:e})){l=s}else if(s.isIdentifier({name:e})){l=n}if(l){if(r==="==="){return l.getTypeAnnotation()}if(i.includes(r)){return o()}return}if(r!=="==="&&r!=="==")return;let c;let p;if(n.isUnaryExpression({operator:"typeof"})){c=n;p=s}else if(s.isUnaryExpression({operator:"typeof"})){c=s;p=n}if(!c)return;if(!c.get("argument").isIdentifier({name:e}))return;p=p.resolve();if(!p.isLiteral())return;const u=p.node.value;if(typeof u!=="string")return;return a(u)}function getParentConditionalPath(e,t,r){let s;while(s=t.parentPath){if(s.isIfStatement()||s.isConditionalExpression()){if(t.key==="test"){return}return s}if(s.isFunction()){if(s.parentPath.scope.getBinding(r)!==e)return}t=s}}function getConditionalAnnotation(e,t,r){const s=getParentConditionalPath(e,t,r);if(!s)return;const i=s.get("test");const a=[i];const o=[];for(let e=0;e<a.length;e++){const t=a[e];if(t.isLogicalExpression()){if(t.node.operator==="&&"){a.push(t.get("left"));a.push(t.get("right"))}}else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(r,t);if(e)o.push(e)}}if(o.length){return{typeAnnotation:(0,n.createUnionType)(o),ifStatement:s}}return getConditionalAnnotation(e,s,r)}},2095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrayExpression=ArrayExpression;t.AssignmentExpression=AssignmentExpression;t.BinaryExpression=BinaryExpression;t.BooleanLiteral=BooleanLiteral;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=Func;Object.defineProperty(t,"Identifier",{enumerable:true,get:function(){return n.default}});t.LogicalExpression=LogicalExpression;t.NewExpression=NewExpression;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectExpression=ObjectExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.RegExpLiteral=RegExpLiteral;t.RestElement=RestElement;t.SequenceExpression=SequenceExpression;t.StringLiteral=StringLiteral;t.TSAsExpression=TSAsExpression;t.TSNonNullExpression=TSNonNullExpression;t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateLiteral=TemplateLiteral;t.TypeCastExpression=TypeCastExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.VariableDeclarator=VariableDeclarator;var s=r(9175);var n=r(4236);var i=r(8919);const{BOOLEAN_BINARY_OPERATORS:a,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:c,STRING_UNARY_OPERATORS:p,anyTypeAnnotation:u,arrayTypeAnnotation:f,booleanTypeAnnotation:d,buildMatchMemberExpression:h,genericTypeAnnotation:m,identifier:y,nullLiteralTypeAnnotation:T,numberTypeAnnotation:S,stringTypeAnnotation:g,tupleTypeAnnotation:x,unionTypeAnnotation:b,voidTypeAnnotation:E,isIdentifier:P}=s;function VariableDeclarator(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function TypeCastExpression(e){return e.typeAnnotation}TypeCastExpression.validParent=true;function TSAsExpression(e){return e.typeAnnotation}TSAsExpression.validParent=true;function TSNonNullExpression(){return this.get("expression").getTypeAnnotation()}function NewExpression(e){if(e.callee.type==="Identifier"){return m(e.callee)}}function TemplateLiteral(){return g()}function UnaryExpression(e){const t=e.operator;if(t==="void"){return E()}else if(c.includes(t)){return S()}else if(p.includes(t)){return g()}else if(o.includes(t)){return d()}}function BinaryExpression(e){const t=e.operator;if(l.includes(t)){return S()}else if(a.includes(t)){return d()}else if(t==="+"){const e=this.get("right");const t=this.get("left");if(t.isBaseType("number")&&e.isBaseType("number")){return S()}else if(t.isBaseType("string")||e.isBaseType("string")){return g()}return b([g(),S()])}}function LogicalExpression(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,i.createUnionType)(e)}function ConditionalExpression(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,i.createUnionType)(e)}function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()}function ParenthesizedExpression(){return this.get("expression").getTypeAnnotation()}function AssignmentExpression(){return this.get("right").getTypeAnnotation()}function UpdateExpression(e){const t=e.operator;if(t==="++"||t==="--"){return S()}}function StringLiteral(){return g()}function NumericLiteral(){return S()}function BooleanLiteral(){return d()}function NullLiteral(){return T()}function RegExpLiteral(){return m(y("RegExp"))}function ObjectExpression(){return m(y("Object"))}function ArrayExpression(){return m(y("Array"))}function RestElement(){return ArrayExpression()}RestElement.validParent=true;function Func(){return m(y("Function"))}const A=h("Array.from");const v=h("Object.keys");const I=h("Object.values");const C=h("Object.entries");function CallExpression(){const{callee:e}=this.node;if(v(e)){return f(g())}else if(A(e)||I(e)||P(e,{name:"Array"})){return f(u())}else if(C(e)){return f(x([g(),u()]))}return resolveCall(this.get("callee"))}function TaggedTemplateExpression(){return resolveCall(this.get("tag"))}function resolveCall(e){e=e.resolve();if(e.isFunction()){const{node:t}=e;if(t.async){if(t.generator){return m(y("AsyncIterator"))}else{return m(y("Promise"))}}else{if(t.generator){return m(y("Iterator"))}else if(e.node.returnType){return e.node.returnType}else{}}}}},8919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createUnionType=createUnionType;var s=r(9175);const{createFlowUnionType:n,createTSUnionType:i,createUnionTypeAnnotation:a,isFlowType:o,isTSType:l}=s;function createUnionType(e){{if(e.every((e=>o(e)))){if(n){return n(e)}return a(e)}else if(e.every((e=>l(e)))){if(i){return i(e)}}}}},7296:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._guessExecutionStatusRelativeTo=_guessExecutionStatusRelativeTo;t._resolve=_resolve;t.canHaveVariableDeclarationOrExpression=canHaveVariableDeclarationOrExpression;t.canSwapBetweenExpressionAndStatement=canSwapBetweenExpressionAndStatement;t.getSource=getSource;t.isCompletionRecord=isCompletionRecord;t.isConstantExpression=isConstantExpression;t.isInStrictMode=isInStrictMode;t.isNodeType=isNodeType;t.isStatementOrBlock=isStatementOrBlock;t.isStatic=isStatic;t.matchesPattern=matchesPattern;t.referencesImport=referencesImport;t.resolve=resolve;t.willIMaybeExecuteBefore=willIMaybeExecuteBefore;var s=r(9175);const{STATEMENT_OR_BLOCK_KEYS:n,VISITOR_KEYS:i,isBlockStatement:a,isExpression:o,isIdentifier:l,isLiteral:c,isStringLiteral:p,isType:u,matchesPattern:f}=s;function matchesPattern(e,t){return f(this.node,e,t)}{t.has=function has(e){var t;const r=(t=this.node)==null?void 0:t[e];if(r&&Array.isArray(r)){return!!r.length}else{return!!r}}}function isStatic(){return this.scope.isStatic(this.node)}{t.is=t.has;t.isnt=function isnt(e){return!this.has(e)};t.equals=function equals(e,t){return this.node[e]===t}}function isNodeType(e){return u(this.type,e)}function canHaveVariableDeclarationOrExpression(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function canSwapBetweenExpressionAndStatement(e){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression()){return false}if(this.isExpression()){return a(e)}else if(this.isBlockStatement()){return o(e)}return false}function isCompletionRecord(e){let t=this;let r=true;do{const{type:s,container:n}=t;if(!r&&(t.isFunction()||s==="StaticBlock")){return!!e}r=false;if(Array.isArray(n)&&t.key!==n.length-1){return false}}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return true}function isStatementOrBlock(){if(this.parentPath.isLabeledStatement()||a(this.container)){return false}else{return n.includes(this.key)}}function referencesImport(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?p(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return false}const r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return false;const s=r.path;const n=s.parentPath;if(!n.isImportDeclaration())return false;if(n.node.source.value===e){if(!t)return true}else{return false}if(s.isImportDefaultSpecifier()&&t==="default"){return true}if(s.isImportNamespaceSpecifier()&&t==="*"){return true}if(s.isImportSpecifier()&&l(s.node.imported,{name:t})){return true}return false}function getSource(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function willIMaybeExecuteBefore(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function getOuterFunction(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return false}}function isExecutionUncertainInList(e,t){for(let r=0;r<t;r++){const t=e[r];if(isExecutionUncertain(t.parent.type,t.parentKey)){return true}}return false}const d=Symbol();function _guessExecutionStatusRelativeTo(e){return _guessExecutionStatusRelativeToCached(this,e,new Map)}function _guessExecutionStatusRelativeToCached(e,t,r){const s={this:getOuterFunction(e),target:getOuterFunction(t)};if(s.target.node!==s.this.node){return _guessExecutionStatusRelativeToDifferentFunctionsCached(e,s.target,r)}const n={target:t.getAncestry(),this:e.getAncestry()};if(n.target.includes(e))return"after";if(n.this.includes(t))return"before";let a;const o={target:0,this:0};while(!a&&o.this<n.this.length){const e=n.this[o.this];o.target=n.target.indexOf(e);if(o.target>=0){a=e}else{o.this++}}if(!a){throw new Error("Internal Babel error - The two compared nodes"+" don't appear to belong to the same program.")}if(isExecutionUncertainInList(n.this,o.this-1)||isExecutionUncertainInList(n.target,o.target-1)){return"unknown"}const l={this:n.this[o.this-1],target:n.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container){return l.target.key>l.this.key?"before":"after"}const c=i[a.type];const p={this:c.indexOf(l.this.parentKey),target:c.indexOf(l.target.parentKey)};return p.target>p.this?"before":"after"}function _guessExecutionStatusRelativeToDifferentFunctionsInternal(e,t,r){if(!t.isFunctionDeclaration()){if(_guessExecutionStatusRelativeToCached(e,t,r)==="before"){return"before"}return"unknown"}else if(t.parentPath.isExportDeclaration()){return"unknown"}const s=t.scope.getBinding(t.node.id.name);if(!s.references)return"before";const n=s.referencePaths;let i;for(const s of n){const n=!!s.find((e=>e.node===t.node));if(n)continue;if(s.key!=="callee"||!s.parentPath.isCallExpression()){return"unknown"}const a=_guessExecutionStatusRelativeToCached(e,s,r);if(i&&i!==a){return"unknown"}else{i=a}}return i}function _guessExecutionStatusRelativeToDifferentFunctionsCached(e,t,r){let s=r.get(e.node);let n;if(!s){r.set(e.node,s=new Map)}else if(n=s.get(t.node)){if(n===d){return"unknown"}return n}s.set(t.node,d);const i=_guessExecutionStatusRelativeToDifferentFunctionsInternal(e,t,r);s.set(t.node,i);return i}function resolve(e,t){return _resolve.call(this,e,t)||this}function _resolve(e,t){var r;if((r=t)!=null&&r.includes(this))return;t=t||[];t.push(this);if(this.isVariableDeclarator()){if(this.get("id").isIdentifier()){return this.get("init").resolve(e,t)}else{}}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if(r.kind==="module")return;if(r.path!==this){const s=r.path.resolve(e,t);if(this.find((e=>e.node===s.node)))return;return s}}else if(this.isTypeCastExpression()){return this.get("expression").resolve(e,t)}else if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!c(r))return;const s=r.value;const n=this.get("object").resolve(e,t);if(n.isObjectExpression()){const r=n.get("properties");for(const n of r){if(!n.isProperty())continue;const r=n.get("key");let i=n.isnt("computed")&&r.isIdentifier({name:s});i=i||r.isLiteral({value:s});if(i)return n.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){const r=n.get("elements");const i=r[s];if(i)return i.resolve(e,t)}}}function isConstantExpression(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);if(!e)return false;return e.constant}if(this.isLiteral()){if(this.isRegExpLiteral()){return false}if(this.isTemplateLiteral()){return this.get("expressions").every((e=>e.isConstantExpression()))}return true}if(this.isUnaryExpression()){if(this.node.operator!=="void"){return false}return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){const{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression()){return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:true})}if(this.isCallExpression()){return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:true})&&this.get("arguments")[0].isStringLiteral()}return false}function isInStrictMode(){const e=this.isProgram()?this:this.parentPath;const t=e.find((e=>{if(e.isProgram({sourceType:"module"}))return true;if(e.isClass())return true;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement()){return false}let t;if(e.isFunction()){t=e.node.body}else if(e.isProgram()){t=e.node}else{return false}for(const e of t.directives){if(e.value.value==="use strict"){return true}}}));return!!t}},9467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(9175);var n=s;const{react:i}=s;const{cloneNode:a,jsxExpressionContainer:o,variableDeclaration:l,variableDeclarator:c}=n;const p={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&i.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression()){return}if(e.node.name==="this"){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression()){break}}while(r=r.parent);if(r)t.breakOnScopePaths.push(r.path)}const r=e.scope.getBinding(e.node.name);if(!r)return;for(const s of r.constantViolations){if(s.scope!==r.path.scope){t.mutableBinding=true;e.stop();return}}if(r!==t.scope.getBinding(e.node.name))return;t.bindings[e.node.name]=r}};class PathHoister{constructor(e,t){this.breakOnScopePaths=void 0;this.bindings=void 0;this.mutableBinding=void 0;this.scopes=void 0;this.scope=void 0;this.path=void 0;this.attachAfter=void 0;this.breakOnScopePaths=[];this.bindings={};this.mutableBinding=false;this.scopes=[];this.scope=t;this.path=e;this.attachAfter=false}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier)){return false}}return true}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e)){this.scopes.push(e)}else{break}if(this.breakOnScopePaths.includes(e.path)){break}}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e){t=e.scope.parent}if(t.path.isProgram()||t.path.isFunction()){for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const s=this.bindings[r];if(s.kind==="param"||s.path.parentKey==="params"){continue}const n=this.getAttachmentParentForPath(s.path);if(n.key>=e.key){this.attachAfter=true;e=s.path;for(const t of s.constantViolations){if(this.getAttachmentParentForPath(t).key>e.key){e=t}}}}}return e}_getAttachmentPath(){const e=this.scopes;const t=e.pop();if(!t)return;if(t.path.isFunction()){if(this.hasOwnParamBindings(t)){if(this.scope===t)return;const e=t.path.get("body").get("body");for(let t=0;t<e.length;t++){if(e[t].node._blockHoist)continue;return e[t]}}else{return this.getNextScopeAttachmentParent()}}else if(t.path.isProgram()){return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()){return e}}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if(r.kind==="param"&&r.constant)return true}return false}run(){this.path.traverse(p,this);if(this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=c(t,this.path.node);const s=this.attachAfter?"insertAfter":"insertBefore";const[n]=e[s]([e.isVariableDeclarator()?r:l("var",[r])]);const i=this.path.parentPath;if(i.isJSXElement()&&this.path.container===i.node.children){t=o(t)}this.path.replaceWith(a(t));return e.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}}t["default"]=PathHoister},2374:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hooks=void 0;const r=t.hooks=[function(e,t){const r=e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement();if(r){t.remove();return true}},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1){t.replaceWith(t.node.expressions[0]);return true}},function(e,t){if(t.isBinary()){if(e.key==="left"){t.replaceWith(t.node.right)}else{t.replaceWith(t.node.left)}return true}},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression())){e.replaceWith({type:"BlockStatement",body:[]});return true}}]},2587:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBindingIdentifier=isBindingIdentifier;t.isBlockScoped=isBlockScoped;t.isExpression=isExpression;t.isFlow=isFlow;t.isForAwaitStatement=isForAwaitStatement;t.isGenerated=isGenerated;t.isPure=isPure;t.isReferenced=isReferenced;t.isReferencedIdentifier=isReferencedIdentifier;t.isReferencedMemberExpression=isReferencedMemberExpression;t.isRestProperty=isRestProperty;t.isScope=isScope;t.isSpreadProperty=isSpreadProperty;t.isStatement=isStatement;t.isUser=isUser;t.isVar=isVar;var s=r(9175);const{isBinding:n,isBlockScoped:i,isExportDeclaration:a,isExpression:o,isFlow:l,isForStatement:c,isForXStatement:p,isIdentifier:u,isImportDeclaration:f,isImportSpecifier:d,isJSXIdentifier:h,isJSXMemberExpression:m,isMemberExpression:y,isRestElement:T,isReferenced:S,isScope:g,isStatement:x,isVar:b,isVariableDeclaration:E,react:P,isForOfStatement:A}=s;const{isCompatTag:v}=P;function isReferencedIdentifier(e){const{node:t,parent:r}=this;if(!u(t,e)&&!m(r,e)){if(h(t,e)){if(v(t.name))return false}else{return false}}return S(t,r,this.parentPath.parent)}function isReferencedMemberExpression(){const{node:e,parent:t}=this;return y(e)&&S(e,t)}function isBindingIdentifier(){const{node:e,parent:t}=this;const r=this.parentPath.parent;return u(e)&&n(e,t,r)}function isStatement(){const{node:e,parent:t}=this;if(x(e)){if(E(e)){if(p(t,{left:e}))return false;if(c(t,{init:e}))return false}return true}else{return false}}function isExpression(){if(this.isIdentifier()){return this.isReferencedIdentifier()}else{return o(this.node)}}function isScope(){return g(this.node,this.parent)}function isReferenced(){return S(this.node,this.parent)}function isBlockScoped(){return i(this.node)}function isVar(){return b(this.node)}function isUser(){return this.node&&!!this.node.loc}function isGenerated(){return!this.isUser()}function isPure(e){return this.scope.isPure(this.node,e)}function isFlow(){const{node:e}=this;if(l(e)){return true}else if(f(e)){return e.importKind==="type"||e.importKind==="typeof"}else if(a(e)){return e.exportKind==="type"}else if(d(e)){return e.importKind==="type"||e.importKind==="typeof"}else{return false}}function isRestProperty(){var e;return T(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function isSpreadProperty(){var e;return T(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function isForAwaitStatement(){return A(this.node,{await:true})}{t.isExistentialTypeParam=function isExistentialTypeParam(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};t.isNumericLiteralTypeAnnotation=function isNumericLiteralTypeAnnotation(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}}},2244:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0;const r=t.ReferencedIdentifier=["Identifier","JSXIdentifier"];const s=t.ReferencedMemberExpression=["MemberExpression"];const n=t.BindingIdentifier=["Identifier"];const i=t.Statement=["Statement"];const a=t.Expression=["Expression"];const o=t.Scope=["Scopable","Pattern"];const l=t.Referenced=null;const c=t.BlockScoped=null;const p=t.Var=["VariableDeclaration"];const u=t.User=null;const f=t.Generated=null;const d=t.Pure=null;const h=t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];const m=t.RestProperty=["RestElement"];const y=t.SpreadProperty=["RestElement"];const T=t.ExistentialTypeParam=["ExistsTypeAnnotation"];const S=t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];const g=t.ForAwaitStatement=["ForOfStatement"]},3247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._containerInsert=_containerInsert;t._containerInsertAfter=_containerInsertAfter;t._containerInsertBefore=_containerInsertBefore;t._verifyNodeList=_verifyNodeList;t.insertAfter=insertAfter;t.insertBefore=insertBefore;t.pushContainer=pushContainer;t.unshiftContainer=unshiftContainer;t.updateSiblingKeys=updateSiblingKeys;var s=r(1665);var n=r(9467);var i=r(8287);var a=r(1444);var o=r(19);var l=r(9175);const{arrowFunctionExpression:c,assertExpression:p,assignmentExpression:u,blockStatement:f,callExpression:d,cloneNode:h,expressionStatement:m,isAssignmentExpression:y,isCallExpression:T,isExportNamedDeclaration:S,isExpression:g,isIdentifier:x,isSequenceExpression:b,isSuper:E,thisExpression:P}=l;function insertBefore(e){o._assertUnremoved.call(this);const t=_verifyNodeList.call(this,e);const{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||S(s)||r.isExportDefaultDeclaration()&&this.isDeclaration()){return r.insertBefore(t)}else if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node)t.push(this.node);return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return _containerInsertBefore.call(this,t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(f(r?[e]:[]));return this.unshiftContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function _containerInsert(e,t){updateSiblingKeys.call(this,e,t.length);const r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var s;const t=e+n;const i=this.getSibling(t);r.push(i);if((s=this.context)!=null&&s.queue){a.pushContext.call(i,this.context)}}const n=a._getQueueContexts.call(this);for(const e of r){a.setScope.call(e);e.debug("Inserted.");for(const t of n){t.maybeQueue(e,true)}}return r}function _containerInsertBefore(e){return _containerInsert.call(this,this.key,e)}function _containerInsertAfter(e){return _containerInsert.call(this,this.key+1,e)}const last=e=>e[e.length-1];function isHiddenInSequenceExpression(e){return b(e.parent)&&(last(e.parent.expressions)!==e.node||isHiddenInSequenceExpression(e.parentPath))}function isAlmostConstantAssignment(e,t){if(!y(e)||!x(e.left)){return false}const r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function insertAfter(e){o._assertUnremoved.call(this);if(this.isSequenceExpression()){return last(this.get("expressions")).insertAfter(e)}const t=_verifyNodeList.call(this,e);const{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||S(s)||r.isExportDefaultDeclaration()&&this.isDeclaration()){return r.insertAfter(t.map((e=>g(e)?m(e):e)))}else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){const e=this;if(e.node){const s=e.node;let{scope:n}=this;if(n.path.isPattern()){p(s);e.replaceWith(d(c([],s),[]));e.get("callee.body").insertAfter(t);return[e]}if(isHiddenInSequenceExpression(e)){t.unshift(s)}else if(T(s)&&E(s.callee)){t.unshift(s);t.push(P())}else if(isAlmostConstantAssignment(s,n)){t.unshift(s);t.push(h(s.left))}else if(n.isPure(s,true)){t.push(s)}else{if(r.isMethod({computed:true,key:s})){n=n.parent}const e=n.generateDeclaredUidIdentifier();t.unshift(m(u("=",h(e),s)));t.push(m(h(e)))}}return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return _containerInsertAfter.call(this,t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(f(r?[e]:[]));return this.pushContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function updateSiblingKeys(e,t){if(!this.parent)return;const r=(0,s.getCachedPaths)(this.hub,this.parent)||[];for(const[,s]of r){if(typeof s.key==="number"&&s.container===this.container&&s.key>=e){s.key+=t}}}function _verifyNodeList(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}for(let t=0;t<e.length;t++){const r=e[t];let s;if(!r){s="has falsy node"}else if(typeof r!=="object"){s="contains a non-object node"}else if(!r.type){s="without a type"}else if(r instanceof i.default){s="has a NodePath when it expected a raw object"}if(s){const e=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${s} with the index of ${t} and type of ${e}`)}}return e}function unshiftContainer(e,t){o._assertUnremoved.call(this);t=_verifyNodeList.call(this,t);const r=i.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return _containerInsertBefore.call(r,t)}function pushContainer(e,t){o._assertUnremoved.call(this);const r=_verifyNodeList.call(this,t);const s=this.node[e];const n=i.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context);return n.replaceWithMultiple(r)}{t.hoist=function hoist(e=this.scope){const t=new n.default(this,e);return t.run()}}},19:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._assertUnremoved=_assertUnremoved;t._callRemovalHooks=_callRemovalHooks;t._markRemoved=_markRemoved;t._remove=_remove;t._removeFromScope=_removeFromScope;t.remove=remove;var s=r(2374);var n=r(1665);var i=r(8223);var a=r(8287);var o=r(9175);var l=r(3247);var c=r(1444);const{getBindingIdentifiers:p}=o;function remove(){var e;_assertUnremoved.call(this);c.resync.call(this);if(_callRemovalHooks.call(this)){_markRemoved.call(this);return}if(!((e=this.opts)!=null&&e.noScope)){_removeFromScope.call(this)}this.shareCommentsWithSiblings();_remove.call(this);_markRemoved.call(this)}function _removeFromScope(){const e=p(this.node,false,false,true);Object.keys(e).forEach((e=>this.scope.removeBinding(e)))}function _callRemovalHooks(){if(this.parentPath){for(const e of s.hooks){if(e(this,this.parentPath))return true}}}function _remove(){if(Array.isArray(this.container)){this.container.splice(this.key,1);l.updateSiblingKeys.call(this,this.key,-1)}else{i._replaceWith.call(this,null)}}function _markRemoved(){this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED;if(this.parent){(0,n.getCachedPaths)(this.hub,this.parent).delete(this.node)}this.node=null}function _assertUnremoved(){if(this.removed){throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}},8223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._replaceWith=_replaceWith;t.replaceExpressionWithStatements=replaceExpressionWithStatements;t.replaceInline=replaceInline;t.replaceWith=replaceWith;t.replaceWithMultiple=replaceWithMultiple;t.replaceWithSourceString=replaceWithSourceString;var s=r(2562);var n=r(4967);var i=r(8287);var a=r(1665);var o=r(3247);var l=r(1243);var c=r(9175);var p=r(1444);const{FUNCTION_TYPES:u,arrowFunctionExpression:f,assignmentExpression:d,awaitExpression:h,blockStatement:m,buildUndefinedNode:y,callExpression:T,cloneNode:S,conditionalExpression:g,expressionStatement:x,getBindingIdentifiers:b,identifier:E,inheritLeadingComments:P,inheritTrailingComments:A,inheritsComments:v,isBlockStatement:I,isEmptyStatement:C,isExpression:w,isExpressionStatement:O,isIfStatement:N,isProgram:k,isStatement:D,isVariableDeclaration:L,removeComments:M,returnStatement:_,sequenceExpression:B,validate:F,yieldExpression:j}=c;function replaceWithMultiple(e){var t;p.resync.call(this);e=o._verifyNodeList.call(this,e);P(e[0],this.node);A(e[e.length-1],this.node);(t=(0,a.getCachedPaths)(this.hub,this.parent))==null||t.delete(this.node);this.node=this.container[this.key]=null;const r=this.insertAfter(e);if(this.node){this.requeue()}else{this.remove()}return r}function replaceWithSourceString(e){p.resync.call(this);let t;try{e=`(${e})`;t=(0,l.parse)(e)}catch(t){const r=t.loc;if(r){t.message+=" - make sure this is an expression.\n"+(0,s.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}});t.code="BABEL_REPLACE_SOURCE_ERROR"}throw t}const r=t.program.body[0].expression;n.default.removeProperties(r);return this.replaceWith(r)}function replaceWith(e){p.resync.call(this);if(this.removed){throw new Error("You can't replace this node, we've already removed it")}let t=e instanceof i.default?e.node:e;if(!t){throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead")}if(this.node===t){return[this]}if(this.isProgram()&&!k(t)){throw new Error("You can only replace a Program root node with another Program node")}if(Array.isArray(t)){throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`")}if(typeof t==="string"){throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`")}let r="";if(this.isNodeType("Statement")&&w(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()){t=x(t);r="expression"}}if(this.isNodeType("Expression")&&D(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)){return this.replaceExpressionWithStatements([t])}}const s=this.node;if(s){v(t,s);M(s)}_replaceWith.call(this,t);this.type=t.type;p.setScope.call(this);this.requeue();return[r?this.get(r):this]}function _replaceWith(e){var t;if(!this.container){throw new ReferenceError("Container is falsy")}if(this.inList){F(this.parent,this.key,[e])}else{F(this.parent,this.key,e)}this.debug(`Replace with ${e==null?void 0:e.type}`);(t=(0,a.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node);this.node=this.container[this.key]=e}function replaceExpressionWithStatements(e){p.resync.call(this);const t=[];const r=gatherSequenceExpressions(e,t);if(r){for(const e of t)this.scope.push({id:e});return this.replaceWith(r)[0].get("expressions")}const s=this.getFunctionParent();const i=s==null?void 0:s.node.async;const a=s==null?void 0:s.node.generator;const o=f([],m(e));this.replaceWith(T(o,[]));const l=this.get("callee");l.get("body").scope.hoistVariables((e=>this.scope.push({id:e})));const c=l.getCompletionRecords();for(const e of c){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let r=t.getData("expressionReplacementReturnUid");if(!r){r=l.scope.generateDeclaredUidIdentifier("ret");l.get("body").pushContainer("body",_(S(r)));t.setData("expressionReplacementReturnUid",r)}else{r=E(r.name)}e.get("expression").replaceWith(d("=",S(r),e.node.expression))}else{e.replaceWith(_(e.node.expression))}}l.arrowFunctionToExpression();const y=l;const g=i&&n.default.hasType(this.get("callee.body").node,"AwaitExpression",u);const x=a&&n.default.hasType(this.get("callee.body").node,"YieldExpression",u);if(g){y.set("async",true);if(!x){this.replaceWith(h(this.node))}}if(x){y.set("generator",true);this.replaceWith(j(this.node,true))}return y.get("body.body")}function gatherSequenceExpressions(e,t){const r=[];let s=true;for(const n of e){if(!C(n)){s=false}if(w(n)){r.push(n)}else if(O(n)){r.push(n.expression)}else if(L(n)){if(n.kind!=="var")return;for(const e of n.declarations){const s=b(e);for(const e of Object.keys(s)){t.push(S(s[e]))}if(e.init){r.push(d("=",e.id,e.init))}}s=true}else if(N(n)){const e=n.consequent?gatherSequenceExpressions([n.consequent],t):y();const s=n.alternate?gatherSequenceExpressions([n.alternate],t):y();if(!e||!s)return;r.push(g(n.test,e,s))}else if(I(n)){const e=gatherSequenceExpressions(n.body,t);if(!e)return;r.push(e)}else if(C(n)){if(e.indexOf(n)===0){s=true}}else{return}}if(s)r.push(y());if(r.length===1){return r[0]}else{return B(r)}}function replaceInline(e){p.resync.call(this);if(Array.isArray(e)){if(Array.isArray(this.container)){e=o._verifyNodeList.call(this,e);const t=o._containerInsertAfter.call(this,e);this.remove();return t}else{return this.replaceWithMultiple(e)}}else{return this.replaceWith(e)}}},5717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Binding{constructor({identifier:e,scope:t,path:r,kind:s}){this.identifier=void 0;this.scope=void 0;this.path=void 0;this.kind=void 0;this.constantViolations=[];this.constant=true;this.referencePaths=[];this.referenced=false;this.references=0;this.identifier=e;this.scope=t;this.path=r;this.kind=s;if((s==="var"||s==="hoisted")&&isDeclaredInLoop(r)){this.reassign(r)}this.clearValue()}deoptValue(){this.clearValue();this.hasDeoptedValue=true}setValue(e){if(this.hasDeoptedValue)return;this.hasValue=true;this.value=e}clearValue(){this.hasDeoptedValue=false;this.hasValue=false;this.value=null}reassign(e){this.constant=false;if(this.constantViolations.includes(e)){return}this.constantViolations.push(e)}reference(e){if(this.referencePaths.includes(e)){return}this.referenced=true;this.references++;this.referencePaths.push(e)}dereference(){this.references--;this.referenced=!!this.references}}t["default"]=Binding;function isDeclaredInLoop(e){for(let{parentPath:t,key:r}=e;t;({parentPath:t,key:r}=t)){if(t.isFunctionParent())return false;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&r==="body"){return true}}return false}},1784:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(2668);var n=r(4967);var i=r(5717);var a=r(4321);var o=r(9175);var l=o;var c=r(1665);var p=r(9780);const{NOT_LOCAL_BINDING:u,assignmentExpression:f,callExpression:d,cloneNode:h,getBindingIdentifiers:m,identifier:y,isArrayExpression:T,isBinary:S,isCallExpression:g,isClass:x,isClassBody:b,isClassDeclaration:E,isExportAllDeclaration:P,isExportDefaultDeclaration:A,isExportNamedDeclaration:v,isFunctionDeclaration:I,isIdentifier:C,isImportDeclaration:w,isLiteral:O,isMemberExpression:N,isMethod:k,isModuleSpecifier:D,isNullLiteral:L,isObjectExpression:M,isProperty:_,isPureish:B,isRegExpLiteral:F,isSuper:j,isTaggedTemplateExpression:R,isTemplateLiteral:K,isThisExpression:U,isUnaryExpression:V,isVariableDeclaration:W,expressionStatement:q,matchesPattern:J,memberExpression:X,numericLiteral:H,toIdentifier:Y,variableDeclaration:G,variableDeclarator:$,isRecordExpression:z,isTupleExpression:Q,isObjectProperty:Z,isTopicReference:ee,isMetaProperty:te,isPrivateName:re,isExportDeclaration:se,buildUndefinedNode:ne,sequenceExpression:ie}=o;function gatherNodeParts(e,t){switch(e==null?void 0:e.type){default:if(w(e)||se(e)){var r;if((P(e)||v(e)||w(e))&&e.source){gatherNodeParts(e.source,t)}else if((v(e)||w(e))&&(r=e.specifiers)!=null&&r.length){for(const r of e.specifiers)gatherNodeParts(r,t)}else if((A(e)||v(e))&&e.declaration){gatherNodeParts(e.declaration,t)}}else if(D(e)){gatherNodeParts(e.local,t)}else if(O(e)&&!L(e)&&!F(e)&&!K(e)){t.push(e.value)}break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t);gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties){gatherNodeParts(r,t)}break;case"SpreadElement":case"RestElement":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield");gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await");gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":gatherNodeParts(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":gatherNodeParts(e.id,t);break;case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"MetaProperty":gatherNodeParts(e.meta,t);gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXOpeningElement":gatherNodeParts(e.name,t);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t);gatherNodeParts(e.name,t);break}}const ae={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:r}=e;const s=r.getFunctionParent()||r.getProgramParent();s.registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;const t=e.scope.getFunctionParent()||e.scope.getProgramParent();t.registerDeclaration(e)},ImportDeclaration(e){const t=e.scope.getBlockParent();t.registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){const r=e.get("left");if(r.isPattern()||r.isIdentifier()){t.constantViolations.push(e)}else if(r.isVar()){const{scope:t}=e;const s=t.getFunctionParent()||t.getProgramParent();s.registerBinding("var",r)}},ExportDeclaration:{exit(e){const{node:t,scope:r}=e;if(P(t))return;const s=t.declaration;if(E(s)||I(s)){const t=s.id;if(!t)return;const n=r.getBinding(t.name);n==null||n.reference(e)}else if(W(s)){for(const t of s.declarations){for(const s of Object.keys(m(t))){const t=r.getBinding(s);t==null||t.reference(e)}}}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){if(e.node.operator==="delete"){t.constantViolations.push(e)}},BlockScoped(e){let t=e.scope;if(t.path===e)t=t.parent;const r=t.getBlockParent();r.registerDeclaration(e);if(e.isClassDeclaration()&&e.node.id){const t=e.node.id;const r=t.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const r of t){e.scope.registerBinding("param",r)}if(e.isFunctionExpression()&&e.node.id&&!e.node.id[u]){e.scope.registerBinding("local",e.get("id"),e)}},ClassExpression(e){if(e.node.id&&!e.node.id[u]){e.scope.registerBinding("local",e.get("id"),e)}},TSTypeAnnotation(e){e.skip()}};let oe=0;class Scope{constructor(e){this.uid=void 0;this.path=void 0;this.block=void 0;this.inited=void 0;this.labels=void 0;this.bindings=void 0;this.references=void 0;this.globals=void 0;this.uids=void 0;this.data=void 0;this.crawling=void 0;const{node:t}=e;const r=c.scope.get(t);if((r==null?void 0:r.path)===e){return r}c.scope.set(t,this);this.uid=oe++;this.block=t;this.path=e;this.labels=new Map;this.inited=false}get parent(){var e;let t,r=this.path;do{var s;const e=r.key==="key"||r.listKey==="decorators";r=r.parentPath;if(e&&r.isMethod())r=r.parentPath;if((s=r)!=null&&s.isScope())t=r}while(r&&!t);return(e=t)==null?void 0:e.scope}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);this.push({id:t});return h(t)}generateUidIdentifier(e){return y(this.generateUid(e))}generateUid(e="temp"){e=Y(e).replace(/^_+/,"").replace(/\d+$/g,"");let t;let r=1;do{t=`_${e}`;if(r>1)t+=r;r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const s=this.getProgramParent();s.references[t]=true;s.uids[t]=true;return t}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let s=r.join("$");s=s.replace(/^_/,"")||t||"ref";return this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return y(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||j(e)||ee(e)){return true}if(C(e)){const t=this.getBinding(e.name);if(t){return t.constant}else{return this.hasBinding(e.name)}}return false}maybeGenerateMemoised(e,t){if(this.isStatic(e)){return null}else{const r=this.generateUidIdentifierBasedOnNode(e);if(!t){this.push({id:r});return h(r)}return r}}checkBlockScopedCollisions(e,t,r,s){if(t==="param")return;if(e.kind==="local")return;const n=t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&t==="const";if(n){throw this.path.hub.buildError(s,`Duplicate declaration "${r}"`,TypeError)}}rename(e,t){const r=this.getBinding(e);if(r){t||(t=this.generateUidIdentifier(e).name);const n=new s.default(r,e,t);{n.rename(arguments[2])}}}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement()){this.registerLabel(e)}else if(e.isFunctionDeclaration()){this.registerBinding("hoisted",e.get("id"),e)}else if(e.isVariableDeclaration()){const t=e.get("declarations");const{kind:r}=e.node;for(const e of t){this.registerBinding(r==="using"||r==="await using"?"const":r,e)}}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t=e.node.importKind==="type"||e.node.importKind==="typeof";const r=e.get("specifiers");for(const e of r){const r=t||e.isImportSpecifier()&&(e.node.importKind==="type"||e.node.importKind==="typeof");this.registerBinding(r?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");if(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration()){this.registerDeclaration(t)}}else{this.registerBinding("unknown",e)}}buildUndefinedNode(){return ne()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t)){var r;(r=this.getBinding(s))==null||r.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r){this.registerBinding(e,t)}return}const s=this.getProgramParent();const n=t.getOuterBindingIdentifiers(true);for(const t of Object.keys(n)){s.references[t]=true;for(const s of n[t]){const n=this.getOwnBinding(t);if(n){if(n.identifier===s)continue;this.checkBlockScopedCollisions(n,e,t,s)}if(n){n.reassign(r)}else{this.bindings[t]=new i.default({identifier:s,scope:this,path:r,kind:e})}}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return true}while(t=t.parent);return false}hasGlobal(e){let t=this;do{if(t.globals[e])return true}while(t=t.parent);return false}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(C(e)){const r=this.getBinding(e.name);if(!r)return false;if(t)return r.constant;return true}else if(U(e)||te(e)||ee(e)||re(e)){return true}else if(x(e)){var r;if(e.superClass&&!this.isPure(e.superClass,t)){return false}if(((r=e.decorators)==null?void 0:r.length)>0){return false}return this.isPure(e.body,t)}else if(b(e)){for(const r of e.body){if(!this.isPure(r,t))return false}return true}else if(S(e)){return this.isPure(e.left,t)&&this.isPure(e.right,t)}else if(T(e)||Q(e)){for(const r of e.elements){if(r!==null&&!this.isPure(r,t))return false}return true}else if(M(e)||z(e)){for(const r of e.properties){if(!this.isPure(r,t))return false}return true}else if(k(e)){var s;if(e.computed&&!this.isPure(e.key,t))return false;if(((s=e.decorators)==null?void 0:s.length)>0){return false}return true}else if(_(e)){var n;if(e.computed&&!this.isPure(e.key,t))return false;if(((n=e.decorators)==null?void 0:n.length)>0){return false}if(Z(e)||e.static){if(e.value!==null&&!this.isPure(e.value,t)){return false}}return true}else if(V(e)){return this.isPure(e.argument,t)}else if(K(e)){for(const r of e.expressions){if(!this.isPure(r,t))return false}return true}else if(R(e)){return J(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:true})&&this.isPure(e.quasi,t)}else if(N(e)){return!e.computed&&C(e.object)&&e.object.name==="Symbol"&&C(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:true})}else if(g(e)){return J(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:true})&&e.arguments.length===1&&l.isStringLiteral(e.arguments[0])}else{return B(e)}}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(r!=null)return r}while(t=t.parent)}removeData(e){let t=this;do{const r=t.data[e];if(r!=null)t.data[e]=null}while(t=t.parent)}init(){if(!this.inited){this.inited=true;this.crawl()}}crawl(){const e=this.path;this.references=Object.create(null);this.bindings=Object.create(null);this.globals=Object.create(null);this.uids=Object.create(null);this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram()){break}}while(t=t.parent);const r=t;const s={references:[],constantViolations:[],assignments:[]};this.crawling=true;if(e.type!=="Program"&&(0,p.isExplodedVisitor)(ae)){for(const t of ae.enter){t.call(s,e,s)}const t=ae[e.type];if(t){for(const r of t.enter){r.call(s,e,s)}}}e.traverse(ae,s);this.crawling=false;for(const e of s.assignments){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t)){if(e.scope.getBinding(s))continue;r.addGlobal(t[s])}e.scope.registerConstantViolation(e)}for(const e of s.references){const t=e.scope.getBinding(e.node.name);if(t){t.reference(e)}else{r.addGlobal(e.node)}}for(const e of s.constantViolations){e.scope.registerConstantViolation(e)}}push(e){let t=this.path;if(t.isPattern()){t=this.getPatternParent().path}else if(!t.isBlockStatement()&&!t.isProgram()){t=this.getBlockParent().path}if(t.isSwitchStatement()){t=(this.getFunctionParent()||this.getProgramParent()).path}const{init:r,unique:s,kind:n="var",id:i}=e;if(!r&&!s&&(n==="var"||n==="let")&&t.isFunction()&&!t.node.name&&g(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&C(i)){t.pushContainer("params",i);t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);return}if(t.isLoop()||t.isCatchClause()||t.isFunction()){t.ensureBlock();t=t.get("body")}const a=e._blockHoist==null?2:e._blockHoist;const o=`declaration:${n}:${a}`;let l=!s&&t.getData(o);if(!l){const e=G(n,[]);e._blockHoist=a;[l]=t.unshiftContainer("body",[e]);if(!s)t.setData(o,l)}const c=$(i,r);const p=l.node.declarations.push(c);t.scope.registerBinding(n,l.get("declarations")[p-1])}getProgramParent(){let e=this;do{if(e.path.isProgram()){return e}}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent()){return e}}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent()){return e}}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern()){return e.getBlockParent()}}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings)){if(r in e===false){e[r]=t.bindings[r]}}t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this;let r;do{const n=t.getOwnBinding(e);if(n){var s;if((s=r)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"){}else{return n}}else if(!n&&e==="arguments"&&t.path.isFunction()&&!t.path.isArrowFunctionExpression()){break}r=t.path}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return(t=this.getBinding(e))==null?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return t==null?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return false;let r=this;do{if(r.hasOwnBinding(e)){return true}}while(r=r.parent);let s;let n;if(typeof t==="object"){s=t.noGlobals;n=t.noUids}else if(typeof t==="boolean"){s=t}if(!n&&this.hasUid(e))return true;if(!s&&Scope.globals.includes(e))return true;if(!s&&Scope.contextVariables.includes(e))return true;return false}parentHasBinding(e,t){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);if(r){r.scope.removeOwnBinding(e);r.scope=t;t.bindings[e]=r}}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;(t=this.getBinding(e))==null||t.scope.removeOwnBinding(e);let r=this;do{if(r.uids[e]){r.uids[e]=false}}while(r=r.parent)}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const s of Object.keys(this.bindings)){const n=this.bindings[s];if(!n)continue;const{path:i}=n;if(!i.isVariableDeclarator())continue;const{parent:a,parentPath:o}=i;if(a.kind!=="var"||t.has(a))continue;t.add(i.parent);let l;const c=[];for(const t of a.declarations){var r;(r=l)!=null?r:l=t.id;if(t.init){c.push(f("=",t.id,t.init))}const s=Object.keys(m(t,false,true,true));for(const r of s){e(y(r),t.init!=null)}}if(o.parentPath.isFor({left:a})){o.replaceWith(l)}else if(c.length===0){o.remove()}else{const e=c.length===1?c[0]:ie(c);if(o.parentPath.isForStatement({init:a})){o.replaceWith(e)}else{o.replaceWith(q(e))}}}}}t["default"]=Scope;Scope.globals=Object.keys(a.builtin);Scope.contextVariables=["arguments","undefined","Infinity","NaN"];{Scope.prototype._renameFromMap=function _renameFromMap(e,t,r,s){if(e[t]){e[r]=s;e[t]=null}};Scope.prototype.traverse=function(e,t,r){(0,n.default)(e,t,this,r,this.path)};Scope.prototype._generateUid=function _generateUid(e,t){let r=e;if(t>1)r+=t;return`_${r}`};Scope.prototype.toArray=function toArray(e,t,r){if(C(e)){const t=this.getBinding(e.name);if(t!=null&&t.constant&&t.path.isGenericType("Array")){return e}}if(T(e)){return e}if(C(e,{name:"arguments"})){return d(X(X(X(y("Array"),y("prototype")),y("slice")),y("call")),[e])}let s;const n=[e];if(t===true){s="toConsumableArray"}else if(typeof t==="number"){n.push(H(t));s="slicedToArray"}else{s="toArray"}if(r){n.unshift(this.path.hub.addHelper(s));s="maybeArrayLike"}return d(this.path.hub.addHelper(s),n)};Scope.prototype.getAllBindingsOfKind=function getAllBindingsOfKind(...e){const t=Object.create(null);for(const r of e){let e=this;do{for(const s of Object.keys(e.bindings)){const n=e.bindings[s];if(n.kind===r)t[s]=n}e=e.parent}while(e)}return t};Object.defineProperties(Scope.prototype,{parentBlock:{configurable:true,enumerable:true,get(){return this.path.parent}},hub:{configurable:true,enumerable:true,get(){return this.path.hub}}})}},2668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(9175);var n=s;var i=r(2894);var a=r(9780);var o=r(1444);const{getAssignmentIdentifiers:l}=n;const c={ReferencedIdentifier({node:e},t){if(e.name===t.oldName){e.name=t.newName}},Scope(e,t){if(!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)){e.skip();if(e.isMethod()){if(!e.requeueComputedKeyAndDecorators){o.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}}},ObjectProperty({node:e,scope:t},r){const{name:s}=e.key;if(e.shorthand&&(s===r.oldName||s===r.newName)&&t.getBindingIdentifier(s)===r.binding.identifier){e.shorthand=false;{var n;if((n=e.extra)!=null&&n.shorthand)e.extra.shorthand=false}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in r){if(e===t.oldName)r[e].name=t.newName}}};class Renamer{constructor(e,t,r){this.newName=r;this.oldName=t;this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(!t.isExportDeclaration()){return}if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(s.isDeclaration(e)&&!e.id){return}}if(t.isExportAllDeclaration()){return}t.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:r}=this;const{scope:n,path:o}=e;const l=o.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));if(l){const r=l.getOuterBindingIdentifiers();if(r[t]===e.identifier){this.maybeConvertFromExportDeclaration(l)}}const p=arguments[0]||n.block;const u={discriminant:true};if(s.isMethod(p)){if(p.computed){u.key=true}if(!s.isObjectMethod(p)){u.decorators=true}}(0,i.traverseNode)(p,(0,a.explode)(c),n,this,n.path,u);if(!arguments[0]){n.removeOwnBinding(t);n.bindings[r]=e;this.binding.identifier.name=r}if(l){this.maybeConvertFromClassFunctionDeclaration(o);this.maybeConvertFromClassFunctionExpression(o)}}}t["default"]=Renamer},2894:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.traverseNode=traverseNode;var s=r(3964);var n=r(9175);const{VISITOR_KEYS:i}=n;function traverseNode(e,t,r,n,a,o,l){const c=i[e.type];if(!c)return false;const p=new s.default(r,t,n,a);if(l){if(o!=null&&o[a.parentKey])return false;return p.visitQueue([a])}for(const t of c){if(o!=null&&o[t])continue;if(p.visit(e,t)){return true}}return false}},9780:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.environmentVisitor=environmentVisitor;t.explode=explode$1;t.isExplodedVisitor=isExplodedVisitor;t.merge=merge;t.verify=verify$1;var s=r(2244);var n=r(2587);var i=r(9175);var a=r(1444);const{DEPRECATED_KEYS:o,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:p,__internal__deprecationWarning:u}=i;function isVirtualType(e){return e in s}function isExplodedVisitor(e){return e==null?void 0:e._exploded}function explode$1(e){if(isExplodedVisitor(e))return e;e._exploded=true;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=t.split("|");if(r.length===1)continue;const s=e[t];delete e[t];for(const t of r){e[t]=s}}verify$1(e);delete e.__esModule;ensureEntranceObjects(e);ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;if(!isVirtualType(t))continue;const r=e[t];for(const e of Object.keys(r)){r[e]=wrapCheck(t,r[e])}delete e[t];const n=s[t];if(n!==null){for(const t of n){if(e[t]){mergePair(e[t],r)}else{e[t]=r}}}else{mergePair(e,r)}}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;let r=c[t];if(t in o){const e=o[t];u(t,e,"Visitor ");r=[e]}else if(t in l){const e=l[t];u(t,e,"Visitor ");r=c[e]}if(!r)continue;const s=e[t];delete e[t];for(const t of r){const r=e[t];if(r){mergePair(r,s)}else{e[t]=Object.assign({},s)}}}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;ensureCallbackArrays(e[t])}return e}function verify$1(e){if(e._verified)return;if(typeof e==="function"){throw new Error("You passed `traverse()` a function when it expected a visitor object, "+"are you sure you didn't mean `{ enter: Function }`?")}for(const t of Object.keys(e)){if(t==="enter"||t==="exit"){validateVisitorMethods(t,e[t])}if(shouldIgnoreKey(t))continue;if(!p.includes(t)){throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse ${"7.26.4"}`)}const r=e[t];if(typeof r==="object"){for(const e of Object.keys(r)){if(e==="enter"||e==="exit"){validateVisitorMethods(`${t}.${e}`,r[e])}else{throw new Error("You passed `traverse()` a visitor object with the property "+`${t} that has the invalid property ${e}`)}}}}e._verified=true}function validateVisitorMethods(e,t){const r=[].concat(t);for(const t of r){if(typeof t!=="function"){throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}}}function merge(e,t=[],r){const s={_verified:true,_exploded:true};{Object.defineProperty(s,"_exploded",{enumerable:false});Object.defineProperty(s,"_verified",{enumerable:false})}for(let n=0;n<e.length;n++){const i=explode$1(e[n]);const a=t[n];let o=i;if(a||r){o=wrapWithStateOrWrapper(o,a,r)}mergePair(s,o);for(const e of Object.keys(i)){if(shouldIgnoreKey(e))continue;let t=i[e];if(a||r){t=wrapWithStateOrWrapper(t,a,r)}const n=s[e]||(s[e]={});mergePair(n,t)}}return s}function wrapWithStateOrWrapper(e,t,r){const s={};for(const n of["enter","exit"]){let i=e[n];if(!Array.isArray(i))continue;i=i.map((function(e){let s=e;if(t){s=function(r){e.call(t,r,t)}}if(r){s=r(t==null?void 0:t.key,n,s)}if(s!==e){s.toString=()=>e.toString()}return s}));s[n]=i}return s}function ensureEntranceObjects(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];if(typeof r==="function"){e[t]={enter:r}}}}function ensureCallbackArrays(e){if(e.enter&&!Array.isArray(e.enter))e.enter=[e.enter];if(e.exit&&!Array.isArray(e.exit))e.exit=[e.exit]}function wrapCheck(e,t){const r=`is${e}`;const s=n[r];const newFn=function(e){if(s.call(e)){return t.apply(this,arguments)}};newFn.toString=()=>t.toString();return newFn}function shouldIgnoreKey(e){if(e[0]==="_")return true;if(e==="enter"||e==="exit"||e==="shouldSkip")return true;if(e==="denylist"||e==="noScope"||e==="skipKeys"){return true}{if(e==="blacklist"){return true}}return false}function mergePair(e,t){for(const r of["enter","exit"]){if(!t[r])continue;e[r]=[].concat(e[r]||[],t[r])}}const f={FunctionParent(e){if(e.isArrowFunctionExpression())return;e.skip();if(e.isMethod()){if(!e.requeueComputedKeyAndDecorators){a.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}},Property(e){if(e.isObjectProperty())return;e.skip();if(!e.requeueComputedKeyAndDecorators){a.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}};function environmentVisitor(e){return merge([f,e])}},169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=assertNode;var s=r(55);function assertNode(e){if(!(0,s.default)(e)){var t;const r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}},6553:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertAccessor=assertAccessor;t.assertAnyTypeAnnotation=assertAnyTypeAnnotation;t.assertArgumentPlaceholder=assertArgumentPlaceholder;t.assertArrayExpression=assertArrayExpression;t.assertArrayPattern=assertArrayPattern;t.assertArrayTypeAnnotation=assertArrayTypeAnnotation;t.assertArrowFunctionExpression=assertArrowFunctionExpression;t.assertAssignmentExpression=assertAssignmentExpression;t.assertAssignmentPattern=assertAssignmentPattern;t.assertAwaitExpression=assertAwaitExpression;t.assertBigIntLiteral=assertBigIntLiteral;t.assertBinary=assertBinary;t.assertBinaryExpression=assertBinaryExpression;t.assertBindExpression=assertBindExpression;t.assertBlock=assertBlock;t.assertBlockParent=assertBlockParent;t.assertBlockStatement=assertBlockStatement;t.assertBooleanLiteral=assertBooleanLiteral;t.assertBooleanLiteralTypeAnnotation=assertBooleanLiteralTypeAnnotation;t.assertBooleanTypeAnnotation=assertBooleanTypeAnnotation;t.assertBreakStatement=assertBreakStatement;t.assertCallExpression=assertCallExpression;t.assertCatchClause=assertCatchClause;t.assertClass=assertClass;t.assertClassAccessorProperty=assertClassAccessorProperty;t.assertClassBody=assertClassBody;t.assertClassDeclaration=assertClassDeclaration;t.assertClassExpression=assertClassExpression;t.assertClassImplements=assertClassImplements;t.assertClassMethod=assertClassMethod;t.assertClassPrivateMethod=assertClassPrivateMethod;t.assertClassPrivateProperty=assertClassPrivateProperty;t.assertClassProperty=assertClassProperty;t.assertCompletionStatement=assertCompletionStatement;t.assertConditional=assertConditional;t.assertConditionalExpression=assertConditionalExpression;t.assertContinueStatement=assertContinueStatement;t.assertDebuggerStatement=assertDebuggerStatement;t.assertDecimalLiteral=assertDecimalLiteral;t.assertDeclaration=assertDeclaration;t.assertDeclareClass=assertDeclareClass;t.assertDeclareExportAllDeclaration=assertDeclareExportAllDeclaration;t.assertDeclareExportDeclaration=assertDeclareExportDeclaration;t.assertDeclareFunction=assertDeclareFunction;t.assertDeclareInterface=assertDeclareInterface;t.assertDeclareModule=assertDeclareModule;t.assertDeclareModuleExports=assertDeclareModuleExports;t.assertDeclareOpaqueType=assertDeclareOpaqueType;t.assertDeclareTypeAlias=assertDeclareTypeAlias;t.assertDeclareVariable=assertDeclareVariable;t.assertDeclaredPredicate=assertDeclaredPredicate;t.assertDecorator=assertDecorator;t.assertDirective=assertDirective;t.assertDirectiveLiteral=assertDirectiveLiteral;t.assertDoExpression=assertDoExpression;t.assertDoWhileStatement=assertDoWhileStatement;t.assertEmptyStatement=assertEmptyStatement;t.assertEmptyTypeAnnotation=assertEmptyTypeAnnotation;t.assertEnumBody=assertEnumBody;t.assertEnumBooleanBody=assertEnumBooleanBody;t.assertEnumBooleanMember=assertEnumBooleanMember;t.assertEnumDeclaration=assertEnumDeclaration;t.assertEnumDefaultedMember=assertEnumDefaultedMember;t.assertEnumMember=assertEnumMember;t.assertEnumNumberBody=assertEnumNumberBody;t.assertEnumNumberMember=assertEnumNumberMember;t.assertEnumStringBody=assertEnumStringBody;t.assertEnumStringMember=assertEnumStringMember;t.assertEnumSymbolBody=assertEnumSymbolBody;t.assertExistsTypeAnnotation=assertExistsTypeAnnotation;t.assertExportAllDeclaration=assertExportAllDeclaration;t.assertExportDeclaration=assertExportDeclaration;t.assertExportDefaultDeclaration=assertExportDefaultDeclaration;t.assertExportDefaultSpecifier=assertExportDefaultSpecifier;t.assertExportNamedDeclaration=assertExportNamedDeclaration;t.assertExportNamespaceSpecifier=assertExportNamespaceSpecifier;t.assertExportSpecifier=assertExportSpecifier;t.assertExpression=assertExpression;t.assertExpressionStatement=assertExpressionStatement;t.assertExpressionWrapper=assertExpressionWrapper;t.assertFile=assertFile;t.assertFlow=assertFlow;t.assertFlowBaseAnnotation=assertFlowBaseAnnotation;t.assertFlowDeclaration=assertFlowDeclaration;t.assertFlowPredicate=assertFlowPredicate;t.assertFlowType=assertFlowType;t.assertFor=assertFor;t.assertForInStatement=assertForInStatement;t.assertForOfStatement=assertForOfStatement;t.assertForStatement=assertForStatement;t.assertForXStatement=assertForXStatement;t.assertFunction=assertFunction;t.assertFunctionDeclaration=assertFunctionDeclaration;t.assertFunctionExpression=assertFunctionExpression;t.assertFunctionParent=assertFunctionParent;t.assertFunctionTypeAnnotation=assertFunctionTypeAnnotation;t.assertFunctionTypeParam=assertFunctionTypeParam;t.assertGenericTypeAnnotation=assertGenericTypeAnnotation;t.assertIdentifier=assertIdentifier;t.assertIfStatement=assertIfStatement;t.assertImmutable=assertImmutable;t.assertImport=assertImport;t.assertImportAttribute=assertImportAttribute;t.assertImportDeclaration=assertImportDeclaration;t.assertImportDefaultSpecifier=assertImportDefaultSpecifier;t.assertImportExpression=assertImportExpression;t.assertImportNamespaceSpecifier=assertImportNamespaceSpecifier;t.assertImportOrExportDeclaration=assertImportOrExportDeclaration;t.assertImportSpecifier=assertImportSpecifier;t.assertIndexedAccessType=assertIndexedAccessType;t.assertInferredPredicate=assertInferredPredicate;t.assertInterfaceDeclaration=assertInterfaceDeclaration;t.assertInterfaceExtends=assertInterfaceExtends;t.assertInterfaceTypeAnnotation=assertInterfaceTypeAnnotation;t.assertInterpreterDirective=assertInterpreterDirective;t.assertIntersectionTypeAnnotation=assertIntersectionTypeAnnotation;t.assertJSX=assertJSX;t.assertJSXAttribute=assertJSXAttribute;t.assertJSXClosingElement=assertJSXClosingElement;t.assertJSXClosingFragment=assertJSXClosingFragment;t.assertJSXElement=assertJSXElement;t.assertJSXEmptyExpression=assertJSXEmptyExpression;t.assertJSXExpressionContainer=assertJSXExpressionContainer;t.assertJSXFragment=assertJSXFragment;t.assertJSXIdentifier=assertJSXIdentifier;t.assertJSXMemberExpression=assertJSXMemberExpression;t.assertJSXNamespacedName=assertJSXNamespacedName;t.assertJSXOpeningElement=assertJSXOpeningElement;t.assertJSXOpeningFragment=assertJSXOpeningFragment;t.assertJSXSpreadAttribute=assertJSXSpreadAttribute;t.assertJSXSpreadChild=assertJSXSpreadChild;t.assertJSXText=assertJSXText;t.assertLVal=assertLVal;t.assertLabeledStatement=assertLabeledStatement;t.assertLiteral=assertLiteral;t.assertLogicalExpression=assertLogicalExpression;t.assertLoop=assertLoop;t.assertMemberExpression=assertMemberExpression;t.assertMetaProperty=assertMetaProperty;t.assertMethod=assertMethod;t.assertMiscellaneous=assertMiscellaneous;t.assertMixedTypeAnnotation=assertMixedTypeAnnotation;t.assertModuleDeclaration=assertModuleDeclaration;t.assertModuleExpression=assertModuleExpression;t.assertModuleSpecifier=assertModuleSpecifier;t.assertNewExpression=assertNewExpression;t.assertNoop=assertNoop;t.assertNullLiteral=assertNullLiteral;t.assertNullLiteralTypeAnnotation=assertNullLiteralTypeAnnotation;t.assertNullableTypeAnnotation=assertNullableTypeAnnotation;t.assertNumberLiteral=assertNumberLiteral;t.assertNumberLiteralTypeAnnotation=assertNumberLiteralTypeAnnotation;t.assertNumberTypeAnnotation=assertNumberTypeAnnotation;t.assertNumericLiteral=assertNumericLiteral;t.assertObjectExpression=assertObjectExpression;t.assertObjectMember=assertObjectMember;t.assertObjectMethod=assertObjectMethod;t.assertObjectPattern=assertObjectPattern;t.assertObjectProperty=assertObjectProperty;t.assertObjectTypeAnnotation=assertObjectTypeAnnotation;t.assertObjectTypeCallProperty=assertObjectTypeCallProperty;t.assertObjectTypeIndexer=assertObjectTypeIndexer;t.assertObjectTypeInternalSlot=assertObjectTypeInternalSlot;t.assertObjectTypeProperty=assertObjectTypeProperty;t.assertObjectTypeSpreadProperty=assertObjectTypeSpreadProperty;t.assertOpaqueType=assertOpaqueType;t.assertOptionalCallExpression=assertOptionalCallExpression;t.assertOptionalIndexedAccessType=assertOptionalIndexedAccessType;t.assertOptionalMemberExpression=assertOptionalMemberExpression;t.assertParenthesizedExpression=assertParenthesizedExpression;t.assertPattern=assertPattern;t.assertPatternLike=assertPatternLike;t.assertPipelineBareFunction=assertPipelineBareFunction;t.assertPipelinePrimaryTopicReference=assertPipelinePrimaryTopicReference;t.assertPipelineTopicExpression=assertPipelineTopicExpression;t.assertPlaceholder=assertPlaceholder;t.assertPrivate=assertPrivate;t.assertPrivateName=assertPrivateName;t.assertProgram=assertProgram;t.assertProperty=assertProperty;t.assertPureish=assertPureish;t.assertQualifiedTypeIdentifier=assertQualifiedTypeIdentifier;t.assertRecordExpression=assertRecordExpression;t.assertRegExpLiteral=assertRegExpLiteral;t.assertRegexLiteral=assertRegexLiteral;t.assertRestElement=assertRestElement;t.assertRestProperty=assertRestProperty;t.assertReturnStatement=assertReturnStatement;t.assertScopable=assertScopable;t.assertSequenceExpression=assertSequenceExpression;t.assertSpreadElement=assertSpreadElement;t.assertSpreadProperty=assertSpreadProperty;t.assertStandardized=assertStandardized;t.assertStatement=assertStatement;t.assertStaticBlock=assertStaticBlock;t.assertStringLiteral=assertStringLiteral;t.assertStringLiteralTypeAnnotation=assertStringLiteralTypeAnnotation;t.assertStringTypeAnnotation=assertStringTypeAnnotation;t.assertSuper=assertSuper;t.assertSwitchCase=assertSwitchCase;t.assertSwitchStatement=assertSwitchStatement;t.assertSymbolTypeAnnotation=assertSymbolTypeAnnotation;t.assertTSAnyKeyword=assertTSAnyKeyword;t.assertTSArrayType=assertTSArrayType;t.assertTSAsExpression=assertTSAsExpression;t.assertTSBaseType=assertTSBaseType;t.assertTSBigIntKeyword=assertTSBigIntKeyword;t.assertTSBooleanKeyword=assertTSBooleanKeyword;t.assertTSCallSignatureDeclaration=assertTSCallSignatureDeclaration;t.assertTSConditionalType=assertTSConditionalType;t.assertTSConstructSignatureDeclaration=assertTSConstructSignatureDeclaration;t.assertTSConstructorType=assertTSConstructorType;t.assertTSDeclareFunction=assertTSDeclareFunction;t.assertTSDeclareMethod=assertTSDeclareMethod;t.assertTSEntityName=assertTSEntityName;t.assertTSEnumDeclaration=assertTSEnumDeclaration;t.assertTSEnumMember=assertTSEnumMember;t.assertTSExportAssignment=assertTSExportAssignment;t.assertTSExpressionWithTypeArguments=assertTSExpressionWithTypeArguments;t.assertTSExternalModuleReference=assertTSExternalModuleReference;t.assertTSFunctionType=assertTSFunctionType;t.assertTSImportEqualsDeclaration=assertTSImportEqualsDeclaration;t.assertTSImportType=assertTSImportType;t.assertTSIndexSignature=assertTSIndexSignature;t.assertTSIndexedAccessType=assertTSIndexedAccessType;t.assertTSInferType=assertTSInferType;t.assertTSInstantiationExpression=assertTSInstantiationExpression;t.assertTSInterfaceBody=assertTSInterfaceBody;t.assertTSInterfaceDeclaration=assertTSInterfaceDeclaration;t.assertTSIntersectionType=assertTSIntersectionType;t.assertTSIntrinsicKeyword=assertTSIntrinsicKeyword;t.assertTSLiteralType=assertTSLiteralType;t.assertTSMappedType=assertTSMappedType;t.assertTSMethodSignature=assertTSMethodSignature;t.assertTSModuleBlock=assertTSModuleBlock;t.assertTSModuleDeclaration=assertTSModuleDeclaration;t.assertTSNamedTupleMember=assertTSNamedTupleMember;t.assertTSNamespaceExportDeclaration=assertTSNamespaceExportDeclaration;t.assertTSNeverKeyword=assertTSNeverKeyword;t.assertTSNonNullExpression=assertTSNonNullExpression;t.assertTSNullKeyword=assertTSNullKeyword;t.assertTSNumberKeyword=assertTSNumberKeyword;t.assertTSObjectKeyword=assertTSObjectKeyword;t.assertTSOptionalType=assertTSOptionalType;t.assertTSParameterProperty=assertTSParameterProperty;t.assertTSParenthesizedType=assertTSParenthesizedType;t.assertTSPropertySignature=assertTSPropertySignature;t.assertTSQualifiedName=assertTSQualifiedName;t.assertTSRestType=assertTSRestType;t.assertTSSatisfiesExpression=assertTSSatisfiesExpression;t.assertTSStringKeyword=assertTSStringKeyword;t.assertTSSymbolKeyword=assertTSSymbolKeyword;t.assertTSThisType=assertTSThisType;t.assertTSTupleType=assertTSTupleType;t.assertTSType=assertTSType;t.assertTSTypeAliasDeclaration=assertTSTypeAliasDeclaration;t.assertTSTypeAnnotation=assertTSTypeAnnotation;t.assertTSTypeAssertion=assertTSTypeAssertion;t.assertTSTypeElement=assertTSTypeElement;t.assertTSTypeLiteral=assertTSTypeLiteral;t.assertTSTypeOperator=assertTSTypeOperator;t.assertTSTypeParameter=assertTSTypeParameter;t.assertTSTypeParameterDeclaration=assertTSTypeParameterDeclaration;t.assertTSTypeParameterInstantiation=assertTSTypeParameterInstantiation;t.assertTSTypePredicate=assertTSTypePredicate;t.assertTSTypeQuery=assertTSTypeQuery;t.assertTSTypeReference=assertTSTypeReference;t.assertTSUndefinedKeyword=assertTSUndefinedKeyword;t.assertTSUnionType=assertTSUnionType;t.assertTSUnknownKeyword=assertTSUnknownKeyword;t.assertTSVoidKeyword=assertTSVoidKeyword;t.assertTaggedTemplateExpression=assertTaggedTemplateExpression;t.assertTemplateElement=assertTemplateElement;t.assertTemplateLiteral=assertTemplateLiteral;t.assertTerminatorless=assertTerminatorless;t.assertThisExpression=assertThisExpression;t.assertThisTypeAnnotation=assertThisTypeAnnotation;t.assertThrowStatement=assertThrowStatement;t.assertTopicReference=assertTopicReference;t.assertTryStatement=assertTryStatement;t.assertTupleExpression=assertTupleExpression;t.assertTupleTypeAnnotation=assertTupleTypeAnnotation;t.assertTypeAlias=assertTypeAlias;t.assertTypeAnnotation=assertTypeAnnotation;t.assertTypeCastExpression=assertTypeCastExpression;t.assertTypeParameter=assertTypeParameter;t.assertTypeParameterDeclaration=assertTypeParameterDeclaration;t.assertTypeParameterInstantiation=assertTypeParameterInstantiation;t.assertTypeScript=assertTypeScript;t.assertTypeofTypeAnnotation=assertTypeofTypeAnnotation;t.assertUnaryExpression=assertUnaryExpression;t.assertUnaryLike=assertUnaryLike;t.assertUnionTypeAnnotation=assertUnionTypeAnnotation;t.assertUpdateExpression=assertUpdateExpression;t.assertUserWhitespacable=assertUserWhitespacable;t.assertV8IntrinsicIdentifier=assertV8IntrinsicIdentifier;t.assertVariableDeclaration=assertVariableDeclaration;t.assertVariableDeclarator=assertVariableDeclarator;t.assertVariance=assertVariance;t.assertVoidTypeAnnotation=assertVoidTypeAnnotation;t.assertWhile=assertWhile;t.assertWhileStatement=assertWhileStatement;t.assertWithStatement=assertWithStatement;t.assertYieldExpression=assertYieldExpression;var s=r(2819);var n=r(3479);function assert(e,t,r){if(!(0,s.default)(e,t,r)){throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, `+`but instead got "${t.type}".`)}}function assertArrayExpression(e,t){assert("ArrayExpression",e,t)}function assertAssignmentExpression(e,t){assert("AssignmentExpression",e,t)}function assertBinaryExpression(e,t){assert("BinaryExpression",e,t)}function assertInterpreterDirective(e,t){assert("InterpreterDirective",e,t)}function assertDirective(e,t){assert("Directive",e,t)}function assertDirectiveLiteral(e,t){assert("DirectiveLiteral",e,t)}function assertBlockStatement(e,t){assert("BlockStatement",e,t)}function assertBreakStatement(e,t){assert("BreakStatement",e,t)}function assertCallExpression(e,t){assert("CallExpression",e,t)}function assertCatchClause(e,t){assert("CatchClause",e,t)}function assertConditionalExpression(e,t){assert("ConditionalExpression",e,t)}function assertContinueStatement(e,t){assert("ContinueStatement",e,t)}function assertDebuggerStatement(e,t){assert("DebuggerStatement",e,t)}function assertDoWhileStatement(e,t){assert("DoWhileStatement",e,t)}function assertEmptyStatement(e,t){assert("EmptyStatement",e,t)}function assertExpressionStatement(e,t){assert("ExpressionStatement",e,t)}function assertFile(e,t){assert("File",e,t)}function assertForInStatement(e,t){assert("ForInStatement",e,t)}function assertForStatement(e,t){assert("ForStatement",e,t)}function assertFunctionDeclaration(e,t){assert("FunctionDeclaration",e,t)}function assertFunctionExpression(e,t){assert("FunctionExpression",e,t)}function assertIdentifier(e,t){assert("Identifier",e,t)}function assertIfStatement(e,t){assert("IfStatement",e,t)}function assertLabeledStatement(e,t){assert("LabeledStatement",e,t)}function assertStringLiteral(e,t){assert("StringLiteral",e,t)}function assertNumericLiteral(e,t){assert("NumericLiteral",e,t)}function assertNullLiteral(e,t){assert("NullLiteral",e,t)}function assertBooleanLiteral(e,t){assert("BooleanLiteral",e,t)}function assertRegExpLiteral(e,t){assert("RegExpLiteral",e,t)}function assertLogicalExpression(e,t){assert("LogicalExpression",e,t)}function assertMemberExpression(e,t){assert("MemberExpression",e,t)}function assertNewExpression(e,t){assert("NewExpression",e,t)}function assertProgram(e,t){assert("Program",e,t)}function assertObjectExpression(e,t){assert("ObjectExpression",e,t)}function assertObjectMethod(e,t){assert("ObjectMethod",e,t)}function assertObjectProperty(e,t){assert("ObjectProperty",e,t)}function assertRestElement(e,t){assert("RestElement",e,t)}function assertReturnStatement(e,t){assert("ReturnStatement",e,t)}function assertSequenceExpression(e,t){assert("SequenceExpression",e,t)}function assertParenthesizedExpression(e,t){assert("ParenthesizedExpression",e,t)}function assertSwitchCase(e,t){assert("SwitchCase",e,t)}function assertSwitchStatement(e,t){assert("SwitchStatement",e,t)}function assertThisExpression(e,t){assert("ThisExpression",e,t)}function assertThrowStatement(e,t){assert("ThrowStatement",e,t)}function assertTryStatement(e,t){assert("TryStatement",e,t)}function assertUnaryExpression(e,t){assert("UnaryExpression",e,t)}function assertUpdateExpression(e,t){assert("UpdateExpression",e,t)}function assertVariableDeclaration(e,t){assert("VariableDeclaration",e,t)}function assertVariableDeclarator(e,t){assert("VariableDeclarator",e,t)}function assertWhileStatement(e,t){assert("WhileStatement",e,t)}function assertWithStatement(e,t){assert("WithStatement",e,t)}function assertAssignmentPattern(e,t){assert("AssignmentPattern",e,t)}function assertArrayPattern(e,t){assert("ArrayPattern",e,t)}function assertArrowFunctionExpression(e,t){assert("ArrowFunctionExpression",e,t)}function assertClassBody(e,t){assert("ClassBody",e,t)}function assertClassExpression(e,t){assert("ClassExpression",e,t)}function assertClassDeclaration(e,t){assert("ClassDeclaration",e,t)}function assertExportAllDeclaration(e,t){assert("ExportAllDeclaration",e,t)}function assertExportDefaultDeclaration(e,t){assert("ExportDefaultDeclaration",e,t)}function assertExportNamedDeclaration(e,t){assert("ExportNamedDeclaration",e,t)}function assertExportSpecifier(e,t){assert("ExportSpecifier",e,t)}function assertForOfStatement(e,t){assert("ForOfStatement",e,t)}function assertImportDeclaration(e,t){assert("ImportDeclaration",e,t)}function assertImportDefaultSpecifier(e,t){assert("ImportDefaultSpecifier",e,t)}function assertImportNamespaceSpecifier(e,t){assert("ImportNamespaceSpecifier",e,t)}function assertImportSpecifier(e,t){assert("ImportSpecifier",e,t)}function assertImportExpression(e,t){assert("ImportExpression",e,t)}function assertMetaProperty(e,t){assert("MetaProperty",e,t)}function assertClassMethod(e,t){assert("ClassMethod",e,t)}function assertObjectPattern(e,t){assert("ObjectPattern",e,t)}function assertSpreadElement(e,t){assert("SpreadElement",e,t)}function assertSuper(e,t){assert("Super",e,t)}function assertTaggedTemplateExpression(e,t){assert("TaggedTemplateExpression",e,t)}function assertTemplateElement(e,t){assert("TemplateElement",e,t)}function assertTemplateLiteral(e,t){assert("TemplateLiteral",e,t)}function assertYieldExpression(e,t){assert("YieldExpression",e,t)}function assertAwaitExpression(e,t){assert("AwaitExpression",e,t)}function assertImport(e,t){assert("Import",e,t)}function assertBigIntLiteral(e,t){assert("BigIntLiteral",e,t)}function assertExportNamespaceSpecifier(e,t){assert("ExportNamespaceSpecifier",e,t)}function assertOptionalMemberExpression(e,t){assert("OptionalMemberExpression",e,t)}function assertOptionalCallExpression(e,t){assert("OptionalCallExpression",e,t)}function assertClassProperty(e,t){assert("ClassProperty",e,t)}function assertClassAccessorProperty(e,t){assert("ClassAccessorProperty",e,t)}function assertClassPrivateProperty(e,t){assert("ClassPrivateProperty",e,t)}function assertClassPrivateMethod(e,t){assert("ClassPrivateMethod",e,t)}function assertPrivateName(e,t){assert("PrivateName",e,t)}function assertStaticBlock(e,t){assert("StaticBlock",e,t)}function assertAnyTypeAnnotation(e,t){assert("AnyTypeAnnotation",e,t)}function assertArrayTypeAnnotation(e,t){assert("ArrayTypeAnnotation",e,t)}function assertBooleanTypeAnnotation(e,t){assert("BooleanTypeAnnotation",e,t)}function assertBooleanLiteralTypeAnnotation(e,t){assert("BooleanLiteralTypeAnnotation",e,t)}function assertNullLiteralTypeAnnotation(e,t){assert("NullLiteralTypeAnnotation",e,t)}function assertClassImplements(e,t){assert("ClassImplements",e,t)}function assertDeclareClass(e,t){assert("DeclareClass",e,t)}function assertDeclareFunction(e,t){assert("DeclareFunction",e,t)}function assertDeclareInterface(e,t){assert("DeclareInterface",e,t)}function assertDeclareModule(e,t){assert("DeclareModule",e,t)}function assertDeclareModuleExports(e,t){assert("DeclareModuleExports",e,t)}function assertDeclareTypeAlias(e,t){assert("DeclareTypeAlias",e,t)}function assertDeclareOpaqueType(e,t){assert("DeclareOpaqueType",e,t)}function assertDeclareVariable(e,t){assert("DeclareVariable",e,t)}function assertDeclareExportDeclaration(e,t){assert("DeclareExportDeclaration",e,t)}function assertDeclareExportAllDeclaration(e,t){assert("DeclareExportAllDeclaration",e,t)}function assertDeclaredPredicate(e,t){assert("DeclaredPredicate",e,t)}function assertExistsTypeAnnotation(e,t){assert("ExistsTypeAnnotation",e,t)}function assertFunctionTypeAnnotation(e,t){assert("FunctionTypeAnnotation",e,t)}function assertFunctionTypeParam(e,t){assert("FunctionTypeParam",e,t)}function assertGenericTypeAnnotation(e,t){assert("GenericTypeAnnotation",e,t)}function assertInferredPredicate(e,t){assert("InferredPredicate",e,t)}function assertInterfaceExtends(e,t){assert("InterfaceExtends",e,t)}function assertInterfaceDeclaration(e,t){assert("InterfaceDeclaration",e,t)}function assertInterfaceTypeAnnotation(e,t){assert("InterfaceTypeAnnotation",e,t)}function assertIntersectionTypeAnnotation(e,t){assert("IntersectionTypeAnnotation",e,t)}function assertMixedTypeAnnotation(e,t){assert("MixedTypeAnnotation",e,t)}function assertEmptyTypeAnnotation(e,t){assert("EmptyTypeAnnotation",e,t)}function assertNullableTypeAnnotation(e,t){assert("NullableTypeAnnotation",e,t)}function assertNumberLiteralTypeAnnotation(e,t){assert("NumberLiteralTypeAnnotation",e,t)}function assertNumberTypeAnnotation(e,t){assert("NumberTypeAnnotation",e,t)}function assertObjectTypeAnnotation(e,t){assert("ObjectTypeAnnotation",e,t)}function assertObjectTypeInternalSlot(e,t){assert("ObjectTypeInternalSlot",e,t)}function assertObjectTypeCallProperty(e,t){assert("ObjectTypeCallProperty",e,t)}function assertObjectTypeIndexer(e,t){assert("ObjectTypeIndexer",e,t)}function assertObjectTypeProperty(e,t){assert("ObjectTypeProperty",e,t)}function assertObjectTypeSpreadProperty(e,t){assert("ObjectTypeSpreadProperty",e,t)}function assertOpaqueType(e,t){assert("OpaqueType",e,t)}function assertQualifiedTypeIdentifier(e,t){assert("QualifiedTypeIdentifier",e,t)}function assertStringLiteralTypeAnnotation(e,t){assert("StringLiteralTypeAnnotation",e,t)}function assertStringTypeAnnotation(e,t){assert("StringTypeAnnotation",e,t)}function assertSymbolTypeAnnotation(e,t){assert("SymbolTypeAnnotation",e,t)}function assertThisTypeAnnotation(e,t){assert("ThisTypeAnnotation",e,t)}function assertTupleTypeAnnotation(e,t){assert("TupleTypeAnnotation",e,t)}function assertTypeofTypeAnnotation(e,t){assert("TypeofTypeAnnotation",e,t)}function assertTypeAlias(e,t){assert("TypeAlias",e,t)}function assertTypeAnnotation(e,t){assert("TypeAnnotation",e,t)}function assertTypeCastExpression(e,t){assert("TypeCastExpression",e,t)}function assertTypeParameter(e,t){assert("TypeParameter",e,t)}function assertTypeParameterDeclaration(e,t){assert("TypeParameterDeclaration",e,t)}function assertTypeParameterInstantiation(e,t){assert("TypeParameterInstantiation",e,t)}function assertUnionTypeAnnotation(e,t){assert("UnionTypeAnnotation",e,t)}function assertVariance(e,t){assert("Variance",e,t)}function assertVoidTypeAnnotation(e,t){assert("VoidTypeAnnotation",e,t)}function assertEnumDeclaration(e,t){assert("EnumDeclaration",e,t)}function assertEnumBooleanBody(e,t){assert("EnumBooleanBody",e,t)}function assertEnumNumberBody(e,t){assert("EnumNumberBody",e,t)}function assertEnumStringBody(e,t){assert("EnumStringBody",e,t)}function assertEnumSymbolBody(e,t){assert("EnumSymbolBody",e,t)}function assertEnumBooleanMember(e,t){assert("EnumBooleanMember",e,t)}function assertEnumNumberMember(e,t){assert("EnumNumberMember",e,t)}function assertEnumStringMember(e,t){assert("EnumStringMember",e,t)}function assertEnumDefaultedMember(e,t){assert("EnumDefaultedMember",e,t)}function assertIndexedAccessType(e,t){assert("IndexedAccessType",e,t)}function assertOptionalIndexedAccessType(e,t){assert("OptionalIndexedAccessType",e,t)}function assertJSXAttribute(e,t){assert("JSXAttribute",e,t)}function assertJSXClosingElement(e,t){assert("JSXClosingElement",e,t)}function assertJSXElement(e,t){assert("JSXElement",e,t)}function assertJSXEmptyExpression(e,t){assert("JSXEmptyExpression",e,t)}function assertJSXExpressionContainer(e,t){assert("JSXExpressionContainer",e,t)}function assertJSXSpreadChild(e,t){assert("JSXSpreadChild",e,t)}function assertJSXIdentifier(e,t){assert("JSXIdentifier",e,t)}function assertJSXMemberExpression(e,t){assert("JSXMemberExpression",e,t)}function assertJSXNamespacedName(e,t){assert("JSXNamespacedName",e,t)}function assertJSXOpeningElement(e,t){assert("JSXOpeningElement",e,t)}function assertJSXSpreadAttribute(e,t){assert("JSXSpreadAttribute",e,t)}function assertJSXText(e,t){assert("JSXText",e,t)}function assertJSXFragment(e,t){assert("JSXFragment",e,t)}function assertJSXOpeningFragment(e,t){assert("JSXOpeningFragment",e,t)}function assertJSXClosingFragment(e,t){assert("JSXClosingFragment",e,t)}function assertNoop(e,t){assert("Noop",e,t)}function assertPlaceholder(e,t){assert("Placeholder",e,t)}function assertV8IntrinsicIdentifier(e,t){assert("V8IntrinsicIdentifier",e,t)}function assertArgumentPlaceholder(e,t){assert("ArgumentPlaceholder",e,t)}function assertBindExpression(e,t){assert("BindExpression",e,t)}function assertImportAttribute(e,t){assert("ImportAttribute",e,t)}function assertDecorator(e,t){assert("Decorator",e,t)}function assertDoExpression(e,t){assert("DoExpression",e,t)}function assertExportDefaultSpecifier(e,t){assert("ExportDefaultSpecifier",e,t)}function assertRecordExpression(e,t){assert("RecordExpression",e,t)}function assertTupleExpression(e,t){assert("TupleExpression",e,t)}function assertDecimalLiteral(e,t){assert("DecimalLiteral",e,t)}function assertModuleExpression(e,t){assert("ModuleExpression",e,t)}function assertTopicReference(e,t){assert("TopicReference",e,t)}function assertPipelineTopicExpression(e,t){assert("PipelineTopicExpression",e,t)}function assertPipelineBareFunction(e,t){assert("PipelineBareFunction",e,t)}function assertPipelinePrimaryTopicReference(e,t){assert("PipelinePrimaryTopicReference",e,t)}function assertTSParameterProperty(e,t){assert("TSParameterProperty",e,t)}function assertTSDeclareFunction(e,t){assert("TSDeclareFunction",e,t)}function assertTSDeclareMethod(e,t){assert("TSDeclareMethod",e,t)}function assertTSQualifiedName(e,t){assert("TSQualifiedName",e,t)}function assertTSCallSignatureDeclaration(e,t){assert("TSCallSignatureDeclaration",e,t)}function assertTSConstructSignatureDeclaration(e,t){assert("TSConstructSignatureDeclaration",e,t)}function assertTSPropertySignature(e,t){assert("TSPropertySignature",e,t)}function assertTSMethodSignature(e,t){assert("TSMethodSignature",e,t)}function assertTSIndexSignature(e,t){assert("TSIndexSignature",e,t)}function assertTSAnyKeyword(e,t){assert("TSAnyKeyword",e,t)}function assertTSBooleanKeyword(e,t){assert("TSBooleanKeyword",e,t)}function assertTSBigIntKeyword(e,t){assert("TSBigIntKeyword",e,t)}function assertTSIntrinsicKeyword(e,t){assert("TSIntrinsicKeyword",e,t)}function assertTSNeverKeyword(e,t){assert("TSNeverKeyword",e,t)}function assertTSNullKeyword(e,t){assert("TSNullKeyword",e,t)}function assertTSNumberKeyword(e,t){assert("TSNumberKeyword",e,t)}function assertTSObjectKeyword(e,t){assert("TSObjectKeyword",e,t)}function assertTSStringKeyword(e,t){assert("TSStringKeyword",e,t)}function assertTSSymbolKeyword(e,t){assert("TSSymbolKeyword",e,t)}function assertTSUndefinedKeyword(e,t){assert("TSUndefinedKeyword",e,t)}function assertTSUnknownKeyword(e,t){assert("TSUnknownKeyword",e,t)}function assertTSVoidKeyword(e,t){assert("TSVoidKeyword",e,t)}function assertTSThisType(e,t){assert("TSThisType",e,t)}function assertTSFunctionType(e,t){assert("TSFunctionType",e,t)}function assertTSConstructorType(e,t){assert("TSConstructorType",e,t)}function assertTSTypeReference(e,t){assert("TSTypeReference",e,t)}function assertTSTypePredicate(e,t){assert("TSTypePredicate",e,t)}function assertTSTypeQuery(e,t){assert("TSTypeQuery",e,t)}function assertTSTypeLiteral(e,t){assert("TSTypeLiteral",e,t)}function assertTSArrayType(e,t){assert("TSArrayType",e,t)}function assertTSTupleType(e,t){assert("TSTupleType",e,t)}function assertTSOptionalType(e,t){assert("TSOptionalType",e,t)}function assertTSRestType(e,t){assert("TSRestType",e,t)}function assertTSNamedTupleMember(e,t){assert("TSNamedTupleMember",e,t)}function assertTSUnionType(e,t){assert("TSUnionType",e,t)}function assertTSIntersectionType(e,t){assert("TSIntersectionType",e,t)}function assertTSConditionalType(e,t){assert("TSConditionalType",e,t)}function assertTSInferType(e,t){assert("TSInferType",e,t)}function assertTSParenthesizedType(e,t){assert("TSParenthesizedType",e,t)}function assertTSTypeOperator(e,t){assert("TSTypeOperator",e,t)}function assertTSIndexedAccessType(e,t){assert("TSIndexedAccessType",e,t)}function assertTSMappedType(e,t){assert("TSMappedType",e,t)}function assertTSLiteralType(e,t){assert("TSLiteralType",e,t)}function assertTSExpressionWithTypeArguments(e,t){assert("TSExpressionWithTypeArguments",e,t)}function assertTSInterfaceDeclaration(e,t){assert("TSInterfaceDeclaration",e,t)}function assertTSInterfaceBody(e,t){assert("TSInterfaceBody",e,t)}function assertTSTypeAliasDeclaration(e,t){assert("TSTypeAliasDeclaration",e,t)}function assertTSInstantiationExpression(e,t){assert("TSInstantiationExpression",e,t)}function assertTSAsExpression(e,t){assert("TSAsExpression",e,t)}function assertTSSatisfiesExpression(e,t){assert("TSSatisfiesExpression",e,t)}function assertTSTypeAssertion(e,t){assert("TSTypeAssertion",e,t)}function assertTSEnumDeclaration(e,t){assert("TSEnumDeclaration",e,t)}function assertTSEnumMember(e,t){assert("TSEnumMember",e,t)}function assertTSModuleDeclaration(e,t){assert("TSModuleDeclaration",e,t)}function assertTSModuleBlock(e,t){assert("TSModuleBlock",e,t)}function assertTSImportType(e,t){assert("TSImportType",e,t)}function assertTSImportEqualsDeclaration(e,t){assert("TSImportEqualsDeclaration",e,t)}function assertTSExternalModuleReference(e,t){assert("TSExternalModuleReference",e,t)}function assertTSNonNullExpression(e,t){assert("TSNonNullExpression",e,t)}function assertTSExportAssignment(e,t){assert("TSExportAssignment",e,t)}function assertTSNamespaceExportDeclaration(e,t){assert("TSNamespaceExportDeclaration",e,t)}function assertTSTypeAnnotation(e,t){assert("TSTypeAnnotation",e,t)}function assertTSTypeParameterInstantiation(e,t){assert("TSTypeParameterInstantiation",e,t)}function assertTSTypeParameterDeclaration(e,t){assert("TSTypeParameterDeclaration",e,t)}function assertTSTypeParameter(e,t){assert("TSTypeParameter",e,t)}function assertStandardized(e,t){assert("Standardized",e,t)}function assertExpression(e,t){assert("Expression",e,t)}function assertBinary(e,t){assert("Binary",e,t)}function assertScopable(e,t){assert("Scopable",e,t)}function assertBlockParent(e,t){assert("BlockParent",e,t)}function assertBlock(e,t){assert("Block",e,t)}function assertStatement(e,t){assert("Statement",e,t)}function assertTerminatorless(e,t){assert("Terminatorless",e,t)}function assertCompletionStatement(e,t){assert("CompletionStatement",e,t)}function assertConditional(e,t){assert("Conditional",e,t)}function assertLoop(e,t){assert("Loop",e,t)}function assertWhile(e,t){assert("While",e,t)}function assertExpressionWrapper(e,t){assert("ExpressionWrapper",e,t)}function assertFor(e,t){assert("For",e,t)}function assertForXStatement(e,t){assert("ForXStatement",e,t)}function assertFunction(e,t){assert("Function",e,t)}function assertFunctionParent(e,t){assert("FunctionParent",e,t)}function assertPureish(e,t){assert("Pureish",e,t)}function assertDeclaration(e,t){assert("Declaration",e,t)}function assertPatternLike(e,t){assert("PatternLike",e,t)}function assertLVal(e,t){assert("LVal",e,t)}function assertTSEntityName(e,t){assert("TSEntityName",e,t)}function assertLiteral(e,t){assert("Literal",e,t)}function assertImmutable(e,t){assert("Immutable",e,t)}function assertUserWhitespacable(e,t){assert("UserWhitespacable",e,t)}function assertMethod(e,t){assert("Method",e,t)}function assertObjectMember(e,t){assert("ObjectMember",e,t)}function assertProperty(e,t){assert("Property",e,t)}function assertUnaryLike(e,t){assert("UnaryLike",e,t)}function assertPattern(e,t){assert("Pattern",e,t)}function assertClass(e,t){assert("Class",e,t)}function assertImportOrExportDeclaration(e,t){assert("ImportOrExportDeclaration",e,t)}function assertExportDeclaration(e,t){assert("ExportDeclaration",e,t)}function assertModuleSpecifier(e,t){assert("ModuleSpecifier",e,t)}function assertAccessor(e,t){assert("Accessor",e,t)}function assertPrivate(e,t){assert("Private",e,t)}function assertFlow(e,t){assert("Flow",e,t)}function assertFlowType(e,t){assert("FlowType",e,t)}function assertFlowBaseAnnotation(e,t){assert("FlowBaseAnnotation",e,t)}function assertFlowDeclaration(e,t){assert("FlowDeclaration",e,t)}function assertFlowPredicate(e,t){assert("FlowPredicate",e,t)}function assertEnumBody(e,t){assert("EnumBody",e,t)}function assertEnumMember(e,t){assert("EnumMember",e,t)}function assertJSX(e,t){assert("JSX",e,t)}function assertMiscellaneous(e,t){assert("Miscellaneous",e,t)}function assertTypeScript(e,t){assert("TypeScript",e,t)}function assertTSTypeElement(e,t){assert("TSTypeElement",e,t)}function assertTSType(e,t){assert("TSType",e,t)}function assertTSBaseType(e,t){assert("TSBaseType",e,t)}function assertNumberLiteral(e,t){(0,n.default)("assertNumberLiteral","assertNumericLiteral");assert("NumberLiteral",e,t)}function assertRegexLiteral(e,t){(0,n.default)("assertRegexLiteral","assertRegExpLiteral");assert("RegexLiteral",e,t)}function assertRestProperty(e,t){(0,n.default)("assertRestProperty","assertRestElement");assert("RestProperty",e,t)}function assertSpreadProperty(e,t){(0,n.default)("assertSpreadProperty","assertSpreadElement");assert("SpreadProperty",e,t)}function assertModuleDeclaration(e,t){(0,n.default)("assertModuleDeclaration","assertImportOrExportDeclaration");assert("ModuleDeclaration",e,t)}},5398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createFlowUnionType;var s=r(5790);var n=r(5322);function createFlowUnionType(e){const t=(0,n.default)(e);if(t.length===1){return t[0]}else{return(0,s.unionTypeAnnotation)(t)}}},6221:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(5790);var n=t["default"]=createTypeAnnotationBasedOnTypeof;function createTypeAnnotationBasedOnTypeof(e){switch(e){case"string":return(0,s.stringTypeAnnotation)();case"number":return(0,s.numberTypeAnnotation)();case"undefined":return(0,s.voidTypeAnnotation)();case"boolean":return(0,s.booleanTypeAnnotation)();case"function":return(0,s.genericTypeAnnotation)((0,s.identifier)("Function"));case"object":return(0,s.genericTypeAnnotation)((0,s.identifier)("Object"));case"symbol":return(0,s.genericTypeAnnotation)((0,s.identifier)("Symbol"));case"bigint":return(0,s.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}},5790:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.anyTypeAnnotation=anyTypeAnnotation;t.argumentPlaceholder=argumentPlaceholder;t.arrayExpression=arrayExpression;t.arrayPattern=arrayPattern;t.arrayTypeAnnotation=arrayTypeAnnotation;t.arrowFunctionExpression=arrowFunctionExpression;t.assignmentExpression=assignmentExpression;t.assignmentPattern=assignmentPattern;t.awaitExpression=awaitExpression;t.bigIntLiteral=bigIntLiteral;t.binaryExpression=binaryExpression;t.bindExpression=bindExpression;t.blockStatement=blockStatement;t.booleanLiteral=booleanLiteral;t.booleanLiteralTypeAnnotation=booleanLiteralTypeAnnotation;t.booleanTypeAnnotation=booleanTypeAnnotation;t.breakStatement=breakStatement;t.callExpression=callExpression;t.catchClause=catchClause;t.classAccessorProperty=classAccessorProperty;t.classBody=classBody;t.classDeclaration=classDeclaration;t.classExpression=classExpression;t.classImplements=classImplements;t.classMethod=classMethod;t.classPrivateMethod=classPrivateMethod;t.classPrivateProperty=classPrivateProperty;t.classProperty=classProperty;t.conditionalExpression=conditionalExpression;t.continueStatement=continueStatement;t.debuggerStatement=debuggerStatement;t.decimalLiteral=decimalLiteral;t.declareClass=declareClass;t.declareExportAllDeclaration=declareExportAllDeclaration;t.declareExportDeclaration=declareExportDeclaration;t.declareFunction=declareFunction;t.declareInterface=declareInterface;t.declareModule=declareModule;t.declareModuleExports=declareModuleExports;t.declareOpaqueType=declareOpaqueType;t.declareTypeAlias=declareTypeAlias;t.declareVariable=declareVariable;t.declaredPredicate=declaredPredicate;t.decorator=decorator;t.directive=directive;t.directiveLiteral=directiveLiteral;t.doExpression=doExpression;t.doWhileStatement=doWhileStatement;t.emptyStatement=emptyStatement;t.emptyTypeAnnotation=emptyTypeAnnotation;t.enumBooleanBody=enumBooleanBody;t.enumBooleanMember=enumBooleanMember;t.enumDeclaration=enumDeclaration;t.enumDefaultedMember=enumDefaultedMember;t.enumNumberBody=enumNumberBody;t.enumNumberMember=enumNumberMember;t.enumStringBody=enumStringBody;t.enumStringMember=enumStringMember;t.enumSymbolBody=enumSymbolBody;t.existsTypeAnnotation=existsTypeAnnotation;t.exportAllDeclaration=exportAllDeclaration;t.exportDefaultDeclaration=exportDefaultDeclaration;t.exportDefaultSpecifier=exportDefaultSpecifier;t.exportNamedDeclaration=exportNamedDeclaration;t.exportNamespaceSpecifier=exportNamespaceSpecifier;t.exportSpecifier=exportSpecifier;t.expressionStatement=expressionStatement;t.file=file;t.forInStatement=forInStatement;t.forOfStatement=forOfStatement;t.forStatement=forStatement;t.functionDeclaration=functionDeclaration;t.functionExpression=functionExpression;t.functionTypeAnnotation=functionTypeAnnotation;t.functionTypeParam=functionTypeParam;t.genericTypeAnnotation=genericTypeAnnotation;t.identifier=identifier;t.ifStatement=ifStatement;t["import"]=_import;t.importAttribute=importAttribute;t.importDeclaration=importDeclaration;t.importDefaultSpecifier=importDefaultSpecifier;t.importExpression=importExpression;t.importNamespaceSpecifier=importNamespaceSpecifier;t.importSpecifier=importSpecifier;t.indexedAccessType=indexedAccessType;t.inferredPredicate=inferredPredicate;t.interfaceDeclaration=interfaceDeclaration;t.interfaceExtends=interfaceExtends;t.interfaceTypeAnnotation=interfaceTypeAnnotation;t.interpreterDirective=interpreterDirective;t.intersectionTypeAnnotation=intersectionTypeAnnotation;t.jSXAttribute=t.jsxAttribute=jsxAttribute;t.jSXClosingElement=t.jsxClosingElement=jsxClosingElement;t.jSXClosingFragment=t.jsxClosingFragment=jsxClosingFragment;t.jSXElement=t.jsxElement=jsxElement;t.jSXEmptyExpression=t.jsxEmptyExpression=jsxEmptyExpression;t.jSXExpressionContainer=t.jsxExpressionContainer=jsxExpressionContainer;t.jSXFragment=t.jsxFragment=jsxFragment;t.jSXIdentifier=t.jsxIdentifier=jsxIdentifier;t.jSXMemberExpression=t.jsxMemberExpression=jsxMemberExpression;t.jSXNamespacedName=t.jsxNamespacedName=jsxNamespacedName;t.jSXOpeningElement=t.jsxOpeningElement=jsxOpeningElement;t.jSXOpeningFragment=t.jsxOpeningFragment=jsxOpeningFragment;t.jSXSpreadAttribute=t.jsxSpreadAttribute=jsxSpreadAttribute;t.jSXSpreadChild=t.jsxSpreadChild=jsxSpreadChild;t.jSXText=t.jsxText=jsxText;t.labeledStatement=labeledStatement;t.logicalExpression=logicalExpression;t.memberExpression=memberExpression;t.metaProperty=metaProperty;t.mixedTypeAnnotation=mixedTypeAnnotation;t.moduleExpression=moduleExpression;t.newExpression=newExpression;t.noop=noop;t.nullLiteral=nullLiteral;t.nullLiteralTypeAnnotation=nullLiteralTypeAnnotation;t.nullableTypeAnnotation=nullableTypeAnnotation;t.numberLiteral=NumberLiteral;t.numberLiteralTypeAnnotation=numberLiteralTypeAnnotation;t.numberTypeAnnotation=numberTypeAnnotation;t.numericLiteral=numericLiteral;t.objectExpression=objectExpression;t.objectMethod=objectMethod;t.objectPattern=objectPattern;t.objectProperty=objectProperty;t.objectTypeAnnotation=objectTypeAnnotation;t.objectTypeCallProperty=objectTypeCallProperty;t.objectTypeIndexer=objectTypeIndexer;t.objectTypeInternalSlot=objectTypeInternalSlot;t.objectTypeProperty=objectTypeProperty;t.objectTypeSpreadProperty=objectTypeSpreadProperty;t.opaqueType=opaqueType;t.optionalCallExpression=optionalCallExpression;t.optionalIndexedAccessType=optionalIndexedAccessType;t.optionalMemberExpression=optionalMemberExpression;t.parenthesizedExpression=parenthesizedExpression;t.pipelineBareFunction=pipelineBareFunction;t.pipelinePrimaryTopicReference=pipelinePrimaryTopicReference;t.pipelineTopicExpression=pipelineTopicExpression;t.placeholder=placeholder;t.privateName=privateName;t.program=program;t.qualifiedTypeIdentifier=qualifiedTypeIdentifier;t.recordExpression=recordExpression;t.regExpLiteral=regExpLiteral;t.regexLiteral=RegexLiteral;t.restElement=restElement;t.restProperty=RestProperty;t.returnStatement=returnStatement;t.sequenceExpression=sequenceExpression;t.spreadElement=spreadElement;t.spreadProperty=SpreadProperty;t.staticBlock=staticBlock;t.stringLiteral=stringLiteral;t.stringLiteralTypeAnnotation=stringLiteralTypeAnnotation;t.stringTypeAnnotation=stringTypeAnnotation;t["super"]=_super;t.switchCase=switchCase;t.switchStatement=switchStatement;t.symbolTypeAnnotation=symbolTypeAnnotation;t.taggedTemplateExpression=taggedTemplateExpression;t.templateElement=templateElement;t.templateLiteral=templateLiteral;t.thisExpression=thisExpression;t.thisTypeAnnotation=thisTypeAnnotation;t.throwStatement=throwStatement;t.topicReference=topicReference;t.tryStatement=tryStatement;t.tSAnyKeyword=t.tsAnyKeyword=tsAnyKeyword;t.tSArrayType=t.tsArrayType=tsArrayType;t.tSAsExpression=t.tsAsExpression=tsAsExpression;t.tSBigIntKeyword=t.tsBigIntKeyword=tsBigIntKeyword;t.tSBooleanKeyword=t.tsBooleanKeyword=tsBooleanKeyword;t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=tsCallSignatureDeclaration;t.tSConditionalType=t.tsConditionalType=tsConditionalType;t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=tsConstructSignatureDeclaration;t.tSConstructorType=t.tsConstructorType=tsConstructorType;t.tSDeclareFunction=t.tsDeclareFunction=tsDeclareFunction;t.tSDeclareMethod=t.tsDeclareMethod=tsDeclareMethod;t.tSEnumDeclaration=t.tsEnumDeclaration=tsEnumDeclaration;t.tSEnumMember=t.tsEnumMember=tsEnumMember;t.tSExportAssignment=t.tsExportAssignment=tsExportAssignment;t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=tsExpressionWithTypeArguments;t.tSExternalModuleReference=t.tsExternalModuleReference=tsExternalModuleReference;t.tSFunctionType=t.tsFunctionType=tsFunctionType;t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=tsImportEqualsDeclaration;t.tSImportType=t.tsImportType=tsImportType;t.tSIndexSignature=t.tsIndexSignature=tsIndexSignature;t.tSIndexedAccessType=t.tsIndexedAccessType=tsIndexedAccessType;t.tSInferType=t.tsInferType=tsInferType;t.tSInstantiationExpression=t.tsInstantiationExpression=tsInstantiationExpression;t.tSInterfaceBody=t.tsInterfaceBody=tsInterfaceBody;t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=tsInterfaceDeclaration;t.tSIntersectionType=t.tsIntersectionType=tsIntersectionType;t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=tsIntrinsicKeyword;t.tSLiteralType=t.tsLiteralType=tsLiteralType;t.tSMappedType=t.tsMappedType=tsMappedType;t.tSMethodSignature=t.tsMethodSignature=tsMethodSignature;t.tSModuleBlock=t.tsModuleBlock=tsModuleBlock;t.tSModuleDeclaration=t.tsModuleDeclaration=tsModuleDeclaration;t.tSNamedTupleMember=t.tsNamedTupleMember=tsNamedTupleMember;t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=tsNamespaceExportDeclaration;t.tSNeverKeyword=t.tsNeverKeyword=tsNeverKeyword;t.tSNonNullExpression=t.tsNonNullExpression=tsNonNullExpression;t.tSNullKeyword=t.tsNullKeyword=tsNullKeyword;t.tSNumberKeyword=t.tsNumberKeyword=tsNumberKeyword;t.tSObjectKeyword=t.tsObjectKeyword=tsObjectKeyword;t.tSOptionalType=t.tsOptionalType=tsOptionalType;t.tSParameterProperty=t.tsParameterProperty=tsParameterProperty;t.tSParenthesizedType=t.tsParenthesizedType=tsParenthesizedType;t.tSPropertySignature=t.tsPropertySignature=tsPropertySignature;t.tSQualifiedName=t.tsQualifiedName=tsQualifiedName;t.tSRestType=t.tsRestType=tsRestType;t.tSSatisfiesExpression=t.tsSatisfiesExpression=tsSatisfiesExpression;t.tSStringKeyword=t.tsStringKeyword=tsStringKeyword;t.tSSymbolKeyword=t.tsSymbolKeyword=tsSymbolKeyword;t.tSThisType=t.tsThisType=tsThisType;t.tSTupleType=t.tsTupleType=tsTupleType;t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=tsTypeAliasDeclaration;t.tSTypeAnnotation=t.tsTypeAnnotation=tsTypeAnnotation;t.tSTypeAssertion=t.tsTypeAssertion=tsTypeAssertion;t.tSTypeLiteral=t.tsTypeLiteral=tsTypeLiteral;t.tSTypeOperator=t.tsTypeOperator=tsTypeOperator;t.tSTypeParameter=t.tsTypeParameter=tsTypeParameter;t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=tsTypeParameterDeclaration;t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=tsTypeParameterInstantiation;t.tSTypePredicate=t.tsTypePredicate=tsTypePredicate;t.tSTypeQuery=t.tsTypeQuery=tsTypeQuery;t.tSTypeReference=t.tsTypeReference=tsTypeReference;t.tSUndefinedKeyword=t.tsUndefinedKeyword=tsUndefinedKeyword;t.tSUnionType=t.tsUnionType=tsUnionType;t.tSUnknownKeyword=t.tsUnknownKeyword=tsUnknownKeyword;t.tSVoidKeyword=t.tsVoidKeyword=tsVoidKeyword;t.tupleExpression=tupleExpression;t.tupleTypeAnnotation=tupleTypeAnnotation;t.typeAlias=typeAlias;t.typeAnnotation=typeAnnotation;t.typeCastExpression=typeCastExpression;t.typeParameter=typeParameter;t.typeParameterDeclaration=typeParameterDeclaration;t.typeParameterInstantiation=typeParameterInstantiation;t.typeofTypeAnnotation=typeofTypeAnnotation;t.unaryExpression=unaryExpression;t.unionTypeAnnotation=unionTypeAnnotation;t.updateExpression=updateExpression;t.v8IntrinsicIdentifier=v8IntrinsicIdentifier;t.variableDeclaration=variableDeclaration;t.variableDeclarator=variableDeclarator;t.variance=variance;t.voidTypeAnnotation=voidTypeAnnotation;t.whileStatement=whileStatement;t.withStatement=withStatement;t.yieldExpression=yieldExpression;var s=r(1549);var n=r(3479);var i=r(111);const{validateInternal:a}=s;const{NODE_FIELDS:o}=i;function arrayExpression(e=[]){const t={type:"ArrayExpression",elements:e};const r=o.ArrayExpression;a(r.elements,t,"elements",e,1);return t}function assignmentExpression(e,t,r){const s={type:"AssignmentExpression",operator:e,left:t,right:r};const n=o.AssignmentExpression;a(n.operator,s,"operator",e);a(n.left,s,"left",t,1);a(n.right,s,"right",r,1);return s}function binaryExpression(e,t,r){const s={type:"BinaryExpression",operator:e,left:t,right:r};const n=o.BinaryExpression;a(n.operator,s,"operator",e);a(n.left,s,"left",t,1);a(n.right,s,"right",r,1);return s}function interpreterDirective(e){const t={type:"InterpreterDirective",value:e};const r=o.InterpreterDirective;a(r.value,t,"value",e);return t}function directive(e){const t={type:"Directive",value:e};const r=o.Directive;a(r.value,t,"value",e,1);return t}function directiveLiteral(e){const t={type:"DirectiveLiteral",value:e};const r=o.DirectiveLiteral;a(r.value,t,"value",e);return t}function blockStatement(e,t=[]){const r={type:"BlockStatement",body:e,directives:t};const s=o.BlockStatement;a(s.body,r,"body",e,1);a(s.directives,r,"directives",t,1);return r}function breakStatement(e=null){const t={type:"BreakStatement",label:e};const r=o.BreakStatement;a(r.label,t,"label",e,1);return t}function callExpression(e,t){const r={type:"CallExpression",callee:e,arguments:t};const s=o.CallExpression;a(s.callee,r,"callee",e,1);a(s.arguments,r,"arguments",t,1);return r}function catchClause(e=null,t){const r={type:"CatchClause",param:e,body:t};const s=o.CatchClause;a(s.param,r,"param",e,1);a(s.body,r,"body",t,1);return r}function conditionalExpression(e,t,r){const s={type:"ConditionalExpression",test:e,consequent:t,alternate:r};const n=o.ConditionalExpression;a(n.test,s,"test",e,1);a(n.consequent,s,"consequent",t,1);a(n.alternate,s,"alternate",r,1);return s}function continueStatement(e=null){const t={type:"ContinueStatement",label:e};const r=o.ContinueStatement;a(r.label,t,"label",e,1);return t}function debuggerStatement(){return{type:"DebuggerStatement"}}function doWhileStatement(e,t){const r={type:"DoWhileStatement",test:e,body:t};const s=o.DoWhileStatement;a(s.test,r,"test",e,1);a(s.body,r,"body",t,1);return r}function emptyStatement(){return{type:"EmptyStatement"}}function expressionStatement(e){const t={type:"ExpressionStatement",expression:e};const r=o.ExpressionStatement;a(r.expression,t,"expression",e,1);return t}function file(e,t=null,r=null){const s={type:"File",program:e,comments:t,tokens:r};const n=o.File;a(n.program,s,"program",e,1);a(n.comments,s,"comments",t,1);a(n.tokens,s,"tokens",r);return s}function forInStatement(e,t,r){const s={type:"ForInStatement",left:e,right:t,body:r};const n=o.ForInStatement;a(n.left,s,"left",e,1);a(n.right,s,"right",t,1);a(n.body,s,"body",r,1);return s}function forStatement(e=null,t=null,r=null,s){const n={type:"ForStatement",init:e,test:t,update:r,body:s};const i=o.ForStatement;a(i.init,n,"init",e,1);a(i.test,n,"test",t,1);a(i.update,n,"update",r,1);a(i.body,n,"body",s,1);return n}function functionDeclaration(e=null,t,r,s=false,n=false){const i={type:"FunctionDeclaration",id:e,params:t,body:r,generator:s,async:n};const l=o.FunctionDeclaration;a(l.id,i,"id",e,1);a(l.params,i,"params",t,1);a(l.body,i,"body",r,1);a(l.generator,i,"generator",s);a(l.async,i,"async",n);return i}function functionExpression(e=null,t,r,s=false,n=false){const i={type:"FunctionExpression",id:e,params:t,body:r,generator:s,async:n};const l=o.FunctionExpression;a(l.id,i,"id",e,1);a(l.params,i,"params",t,1);a(l.body,i,"body",r,1);a(l.generator,i,"generator",s);a(l.async,i,"async",n);return i}function identifier(e){const t={type:"Identifier",name:e};const r=o.Identifier;a(r.name,t,"name",e);return t}function ifStatement(e,t,r=null){const s={type:"IfStatement",test:e,consequent:t,alternate:r};const n=o.IfStatement;a(n.test,s,"test",e,1);a(n.consequent,s,"consequent",t,1);a(n.alternate,s,"alternate",r,1);return s}function labeledStatement(e,t){const r={type:"LabeledStatement",label:e,body:t};const s=o.LabeledStatement;a(s.label,r,"label",e,1);a(s.body,r,"body",t,1);return r}function stringLiteral(e){const t={type:"StringLiteral",value:e};const r=o.StringLiteral;a(r.value,t,"value",e);return t}function numericLiteral(e){const t={type:"NumericLiteral",value:e};const r=o.NumericLiteral;a(r.value,t,"value",e);return t}function nullLiteral(){return{type:"NullLiteral"}}function booleanLiteral(e){const t={type:"BooleanLiteral",value:e};const r=o.BooleanLiteral;a(r.value,t,"value",e);return t}function regExpLiteral(e,t=""){const r={type:"RegExpLiteral",pattern:e,flags:t};const s=o.RegExpLiteral;a(s.pattern,r,"pattern",e);a(s.flags,r,"flags",t);return r}function logicalExpression(e,t,r){const s={type:"LogicalExpression",operator:e,left:t,right:r};const n=o.LogicalExpression;a(n.operator,s,"operator",e);a(n.left,s,"left",t,1);a(n.right,s,"right",r,1);return s}function memberExpression(e,t,r=false,s=null){const n={type:"MemberExpression",object:e,property:t,computed:r,optional:s};const i=o.MemberExpression;a(i.object,n,"object",e,1);a(i.property,n,"property",t,1);a(i.computed,n,"computed",r);a(i.optional,n,"optional",s);return n}function newExpression(e,t){const r={type:"NewExpression",callee:e,arguments:t};const s=o.NewExpression;a(s.callee,r,"callee",e,1);a(s.arguments,r,"arguments",t,1);return r}function program(e,t=[],r="script",s=null){const n={type:"Program",body:e,directives:t,sourceType:r,interpreter:s};const i=o.Program;a(i.body,n,"body",e,1);a(i.directives,n,"directives",t,1);a(i.sourceType,n,"sourceType",r);a(i.interpreter,n,"interpreter",s,1);return n}function objectExpression(e){const t={type:"ObjectExpression",properties:e};const r=o.ObjectExpression;a(r.properties,t,"properties",e,1);return t}function objectMethod(e="method",t,r,s,n=false,i=false,l=false){const c={type:"ObjectMethod",kind:e,key:t,params:r,body:s,computed:n,generator:i,async:l};const p=o.ObjectMethod;a(p.kind,c,"kind",e);a(p.key,c,"key",t,1);a(p.params,c,"params",r,1);a(p.body,c,"body",s,1);a(p.computed,c,"computed",n);a(p.generator,c,"generator",i);a(p.async,c,"async",l);return c}function objectProperty(e,t,r=false,s=false,n=null){const i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:s,decorators:n};const l=o.ObjectProperty;a(l.key,i,"key",e,1);a(l.value,i,"value",t,1);a(l.computed,i,"computed",r);a(l.shorthand,i,"shorthand",s);a(l.decorators,i,"decorators",n,1);return i}function restElement(e){const t={type:"RestElement",argument:e};const r=o.RestElement;a(r.argument,t,"argument",e,1);return t}function returnStatement(e=null){const t={type:"ReturnStatement",argument:e};const r=o.ReturnStatement;a(r.argument,t,"argument",e,1);return t}function sequenceExpression(e){const t={type:"SequenceExpression",expressions:e};const r=o.SequenceExpression;a(r.expressions,t,"expressions",e,1);return t}function parenthesizedExpression(e){const t={type:"ParenthesizedExpression",expression:e};const r=o.ParenthesizedExpression;a(r.expression,t,"expression",e,1);return t}function switchCase(e=null,t){const r={type:"SwitchCase",test:e,consequent:t};const s=o.SwitchCase;a(s.test,r,"test",e,1);a(s.consequent,r,"consequent",t,1);return r}function switchStatement(e,t){const r={type:"SwitchStatement",discriminant:e,cases:t};const s=o.SwitchStatement;a(s.discriminant,r,"discriminant",e,1);a(s.cases,r,"cases",t,1);return r}function thisExpression(){return{type:"ThisExpression"}}function throwStatement(e){const t={type:"ThrowStatement",argument:e};const r=o.ThrowStatement;a(r.argument,t,"argument",e,1);return t}function tryStatement(e,t=null,r=null){const s={type:"TryStatement",block:e,handler:t,finalizer:r};const n=o.TryStatement;a(n.block,s,"block",e,1);a(n.handler,s,"handler",t,1);a(n.finalizer,s,"finalizer",r,1);return s}function unaryExpression(e,t,r=true){const s={type:"UnaryExpression",operator:e,argument:t,prefix:r};const n=o.UnaryExpression;a(n.operator,s,"operator",e);a(n.argument,s,"argument",t,1);a(n.prefix,s,"prefix",r);return s}function updateExpression(e,t,r=false){const s={type:"UpdateExpression",operator:e,argument:t,prefix:r};const n=o.UpdateExpression;a(n.operator,s,"operator",e);a(n.argument,s,"argument",t,1);a(n.prefix,s,"prefix",r);return s}function variableDeclaration(e,t){const r={type:"VariableDeclaration",kind:e,declarations:t};const s=o.VariableDeclaration;a(s.kind,r,"kind",e);a(s.declarations,r,"declarations",t,1);return r}function variableDeclarator(e,t=null){const r={type:"VariableDeclarator",id:e,init:t};const s=o.VariableDeclarator;a(s.id,r,"id",e,1);a(s.init,r,"init",t,1);return r}function whileStatement(e,t){const r={type:"WhileStatement",test:e,body:t};const s=o.WhileStatement;a(s.test,r,"test",e,1);a(s.body,r,"body",t,1);return r}function withStatement(e,t){const r={type:"WithStatement",object:e,body:t};const s=o.WithStatement;a(s.object,r,"object",e,1);a(s.body,r,"body",t,1);return r}function assignmentPattern(e,t){const r={type:"AssignmentPattern",left:e,right:t};const s=o.AssignmentPattern;a(s.left,r,"left",e,1);a(s.right,r,"right",t,1);return r}function arrayPattern(e){const t={type:"ArrayPattern",elements:e};const r=o.ArrayPattern;a(r.elements,t,"elements",e,1);return t}function arrowFunctionExpression(e,t,r=false){const s={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null};const n=o.ArrowFunctionExpression;a(n.params,s,"params",e,1);a(n.body,s,"body",t,1);a(n.async,s,"async",r);return s}function classBody(e){const t={type:"ClassBody",body:e};const r=o.ClassBody;a(r.body,t,"body",e,1);return t}function classExpression(e=null,t=null,r,s=null){const n={type:"ClassExpression",id:e,superClass:t,body:r,decorators:s};const i=o.ClassExpression;a(i.id,n,"id",e,1);a(i.superClass,n,"superClass",t,1);a(i.body,n,"body",r,1);a(i.decorators,n,"decorators",s,1);return n}function classDeclaration(e=null,t=null,r,s=null){const n={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:s};const i=o.ClassDeclaration;a(i.id,n,"id",e,1);a(i.superClass,n,"superClass",t,1);a(i.body,n,"body",r,1);a(i.decorators,n,"decorators",s,1);return n}function exportAllDeclaration(e){const t={type:"ExportAllDeclaration",source:e};const r=o.ExportAllDeclaration;a(r.source,t,"source",e,1);return t}function exportDefaultDeclaration(e){const t={type:"ExportDefaultDeclaration",declaration:e};const r=o.ExportDefaultDeclaration;a(r.declaration,t,"declaration",e,1);return t}function exportNamedDeclaration(e=null,t=[],r=null){const s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r};const n=o.ExportNamedDeclaration;a(n.declaration,s,"declaration",e,1);a(n.specifiers,s,"specifiers",t,1);a(n.source,s,"source",r,1);return s}function exportSpecifier(e,t){const r={type:"ExportSpecifier",local:e,exported:t};const s=o.ExportSpecifier;a(s.local,r,"local",e,1);a(s.exported,r,"exported",t,1);return r}function forOfStatement(e,t,r,s=false){const n={type:"ForOfStatement",left:e,right:t,body:r,await:s};const i=o.ForOfStatement;a(i.left,n,"left",e,1);a(i.right,n,"right",t,1);a(i.body,n,"body",r,1);a(i.await,n,"await",s);return n}function importDeclaration(e,t){const r={type:"ImportDeclaration",specifiers:e,source:t};const s=o.ImportDeclaration;a(s.specifiers,r,"specifiers",e,1);a(s.source,r,"source",t,1);return r}function importDefaultSpecifier(e){const t={type:"ImportDefaultSpecifier",local:e};const r=o.ImportDefaultSpecifier;a(r.local,t,"local",e,1);return t}function importNamespaceSpecifier(e){const t={type:"ImportNamespaceSpecifier",local:e};const r=o.ImportNamespaceSpecifier;a(r.local,t,"local",e,1);return t}function importSpecifier(e,t){const r={type:"ImportSpecifier",local:e,imported:t};const s=o.ImportSpecifier;a(s.local,r,"local",e,1);a(s.imported,r,"imported",t,1);return r}function importExpression(e,t=null){const r={type:"ImportExpression",source:e,options:t};const s=o.ImportExpression;a(s.source,r,"source",e,1);a(s.options,r,"options",t,1);return r}function metaProperty(e,t){const r={type:"MetaProperty",meta:e,property:t};const s=o.MetaProperty;a(s.meta,r,"meta",e,1);a(s.property,r,"property",t,1);return r}function classMethod(e="method",t,r,s,n=false,i=false,l=false,c=false){const p={type:"ClassMethod",kind:e,key:t,params:r,body:s,computed:n,static:i,generator:l,async:c};const u=o.ClassMethod;a(u.kind,p,"kind",e);a(u.key,p,"key",t,1);a(u.params,p,"params",r,1);a(u.body,p,"body",s,1);a(u.computed,p,"computed",n);a(u.static,p,"static",i);a(u.generator,p,"generator",l);a(u.async,p,"async",c);return p}function objectPattern(e){const t={type:"ObjectPattern",properties:e};const r=o.ObjectPattern;a(r.properties,t,"properties",e,1);return t}function spreadElement(e){const t={type:"SpreadElement",argument:e};const r=o.SpreadElement;a(r.argument,t,"argument",e,1);return t}function _super(){return{type:"Super"}}function taggedTemplateExpression(e,t){const r={type:"TaggedTemplateExpression",tag:e,quasi:t};const s=o.TaggedTemplateExpression;a(s.tag,r,"tag",e,1);a(s.quasi,r,"quasi",t,1);return r}function templateElement(e,t=false){const r={type:"TemplateElement",value:e,tail:t};const s=o.TemplateElement;a(s.value,r,"value",e);a(s.tail,r,"tail",t);return r}function templateLiteral(e,t){const r={type:"TemplateLiteral",quasis:e,expressions:t};const s=o.TemplateLiteral;a(s.quasis,r,"quasis",e,1);a(s.expressions,r,"expressions",t,1);return r}function yieldExpression(e=null,t=false){const r={type:"YieldExpression",argument:e,delegate:t};const s=o.YieldExpression;a(s.argument,r,"argument",e,1);a(s.delegate,r,"delegate",t);return r}function awaitExpression(e){const t={type:"AwaitExpression",argument:e};const r=o.AwaitExpression;a(r.argument,t,"argument",e,1);return t}function _import(){return{type:"Import"}}function bigIntLiteral(e){const t={type:"BigIntLiteral",value:e};const r=o.BigIntLiteral;a(r.value,t,"value",e);return t}function exportNamespaceSpecifier(e){const t={type:"ExportNamespaceSpecifier",exported:e};const r=o.ExportNamespaceSpecifier;a(r.exported,t,"exported",e,1);return t}function optionalMemberExpression(e,t,r=false,s){const n={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:s};const i=o.OptionalMemberExpression;a(i.object,n,"object",e,1);a(i.property,n,"property",t,1);a(i.computed,n,"computed",r);a(i.optional,n,"optional",s);return n}function optionalCallExpression(e,t,r){const s={type:"OptionalCallExpression",callee:e,arguments:t,optional:r};const n=o.OptionalCallExpression;a(n.callee,s,"callee",e,1);a(n.arguments,s,"arguments",t,1);a(n.optional,s,"optional",r);return s}function classProperty(e,t=null,r=null,s=null,n=false,i=false){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:n,static:i};const c=o.ClassProperty;a(c.key,l,"key",e,1);a(c.value,l,"value",t,1);a(c.typeAnnotation,l,"typeAnnotation",r,1);a(c.decorators,l,"decorators",s,1);a(c.computed,l,"computed",n);a(c.static,l,"static",i);return l}function classAccessorProperty(e,t=null,r=null,s=null,n=false,i=false){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:n,static:i};const c=o.ClassAccessorProperty;a(c.key,l,"key",e,1);a(c.value,l,"value",t,1);a(c.typeAnnotation,l,"typeAnnotation",r,1);a(c.decorators,l,"decorators",s,1);a(c.computed,l,"computed",n);a(c.static,l,"static",i);return l}function classPrivateProperty(e,t=null,r=null,s=false){const n={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:s};const i=o.ClassPrivateProperty;a(i.key,n,"key",e,1);a(i.value,n,"value",t,1);a(i.decorators,n,"decorators",r,1);a(i.static,n,"static",s);return n}function classPrivateMethod(e="method",t,r,s,n=false){const i={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:s,static:n};const l=o.ClassPrivateMethod;a(l.kind,i,"kind",e);a(l.key,i,"key",t,1);a(l.params,i,"params",r,1);a(l.body,i,"body",s,1);a(l.static,i,"static",n);return i}function privateName(e){const t={type:"PrivateName",id:e};const r=o.PrivateName;a(r.id,t,"id",e,1);return t}function staticBlock(e){const t={type:"StaticBlock",body:e};const r=o.StaticBlock;a(r.body,t,"body",e,1);return t}function anyTypeAnnotation(){return{type:"AnyTypeAnnotation"}}function arrayTypeAnnotation(e){const t={type:"ArrayTypeAnnotation",elementType:e};const r=o.ArrayTypeAnnotation;a(r.elementType,t,"elementType",e,1);return t}function booleanTypeAnnotation(){return{type:"BooleanTypeAnnotation"}}function booleanLiteralTypeAnnotation(e){const t={type:"BooleanLiteralTypeAnnotation",value:e};const r=o.BooleanLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function nullLiteralTypeAnnotation(){return{type:"NullLiteralTypeAnnotation"}}function classImplements(e,t=null){const r={type:"ClassImplements",id:e,typeParameters:t};const s=o.ClassImplements;a(s.id,r,"id",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function declareClass(e,t=null,r=null,s){const n={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:s};const i=o.DeclareClass;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.extends,n,"extends",r,1);a(i.body,n,"body",s,1);return n}function declareFunction(e){const t={type:"DeclareFunction",id:e};const r=o.DeclareFunction;a(r.id,t,"id",e,1);return t}function declareInterface(e,t=null,r=null,s){const n={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:s};const i=o.DeclareInterface;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.extends,n,"extends",r,1);a(i.body,n,"body",s,1);return n}function declareModule(e,t,r=null){const s={type:"DeclareModule",id:e,body:t,kind:r};const n=o.DeclareModule;a(n.id,s,"id",e,1);a(n.body,s,"body",t,1);a(n.kind,s,"kind",r);return s}function declareModuleExports(e){const t={type:"DeclareModuleExports",typeAnnotation:e};const r=o.DeclareModuleExports;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function declareTypeAlias(e,t=null,r){const s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r};const n=o.DeclareTypeAlias;a(n.id,s,"id",e,1);a(n.typeParameters,s,"typeParameters",t,1);a(n.right,s,"right",r,1);return s}function declareOpaqueType(e,t=null,r=null){const s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r};const n=o.DeclareOpaqueType;a(n.id,s,"id",e,1);a(n.typeParameters,s,"typeParameters",t,1);a(n.supertype,s,"supertype",r,1);return s}function declareVariable(e){const t={type:"DeclareVariable",id:e};const r=o.DeclareVariable;a(r.id,t,"id",e,1);return t}function declareExportDeclaration(e=null,t=null,r=null,s=null){const n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:s};const i=o.DeclareExportDeclaration;a(i.declaration,n,"declaration",e,1);a(i.specifiers,n,"specifiers",t,1);a(i.source,n,"source",r,1);a(i.attributes,n,"attributes",s,1);return n}function declareExportAllDeclaration(e,t=null){const r={type:"DeclareExportAllDeclaration",source:e,attributes:t};const s=o.DeclareExportAllDeclaration;a(s.source,r,"source",e,1);a(s.attributes,r,"attributes",t,1);return r}function declaredPredicate(e){const t={type:"DeclaredPredicate",value:e};const r=o.DeclaredPredicate;a(r.value,t,"value",e,1);return t}function existsTypeAnnotation(){return{type:"ExistsTypeAnnotation"}}function functionTypeAnnotation(e=null,t,r=null,s){const n={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:s};const i=o.FunctionTypeAnnotation;a(i.typeParameters,n,"typeParameters",e,1);a(i.params,n,"params",t,1);a(i.rest,n,"rest",r,1);a(i.returnType,n,"returnType",s,1);return n}function functionTypeParam(e=null,t){const r={type:"FunctionTypeParam",name:e,typeAnnotation:t};const s=o.FunctionTypeParam;a(s.name,r,"name",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function genericTypeAnnotation(e,t=null){const r={type:"GenericTypeAnnotation",id:e,typeParameters:t};const s=o.GenericTypeAnnotation;a(s.id,r,"id",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function inferredPredicate(){return{type:"InferredPredicate"}}function interfaceExtends(e,t=null){const r={type:"InterfaceExtends",id:e,typeParameters:t};const s=o.InterfaceExtends;a(s.id,r,"id",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function interfaceDeclaration(e,t=null,r=null,s){const n={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s};const i=o.InterfaceDeclaration;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.extends,n,"extends",r,1);a(i.body,n,"body",s,1);return n}function interfaceTypeAnnotation(e=null,t){const r={type:"InterfaceTypeAnnotation",extends:e,body:t};const s=o.InterfaceTypeAnnotation;a(s.extends,r,"extends",e,1);a(s.body,r,"body",t,1);return r}function intersectionTypeAnnotation(e){const t={type:"IntersectionTypeAnnotation",types:e};const r=o.IntersectionTypeAnnotation;a(r.types,t,"types",e,1);return t}function mixedTypeAnnotation(){return{type:"MixedTypeAnnotation"}}function emptyTypeAnnotation(){return{type:"EmptyTypeAnnotation"}}function nullableTypeAnnotation(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e};const r=o.NullableTypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function numberLiteralTypeAnnotation(e){const t={type:"NumberLiteralTypeAnnotation",value:e};const r=o.NumberLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function numberTypeAnnotation(){return{type:"NumberTypeAnnotation"}}function objectTypeAnnotation(e,t=[],r=[],s=[],n=false){const i={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:s,exact:n};const l=o.ObjectTypeAnnotation;a(l.properties,i,"properties",e,1);a(l.indexers,i,"indexers",t,1);a(l.callProperties,i,"callProperties",r,1);a(l.internalSlots,i,"internalSlots",s,1);a(l.exact,i,"exact",n);return i}function objectTypeInternalSlot(e,t,r,s,n){const i={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:s,method:n};const l=o.ObjectTypeInternalSlot;a(l.id,i,"id",e,1);a(l.value,i,"value",t,1);a(l.optional,i,"optional",r);a(l.static,i,"static",s);a(l.method,i,"method",n);return i}function objectTypeCallProperty(e){const t={type:"ObjectTypeCallProperty",value:e,static:null};const r=o.ObjectTypeCallProperty;a(r.value,t,"value",e,1);return t}function objectTypeIndexer(e=null,t,r,s=null){const n={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:s,static:null};const i=o.ObjectTypeIndexer;a(i.id,n,"id",e,1);a(i.key,n,"key",t,1);a(i.value,n,"value",r,1);a(i.variance,n,"variance",s,1);return n}function objectTypeProperty(e,t,r=null){const s={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null};const n=o.ObjectTypeProperty;a(n.key,s,"key",e,1);a(n.value,s,"value",t,1);a(n.variance,s,"variance",r,1);return s}function objectTypeSpreadProperty(e){const t={type:"ObjectTypeSpreadProperty",argument:e};const r=o.ObjectTypeSpreadProperty;a(r.argument,t,"argument",e,1);return t}function opaqueType(e,t=null,r=null,s){const n={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:s};const i=o.OpaqueType;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.supertype,n,"supertype",r,1);a(i.impltype,n,"impltype",s,1);return n}function qualifiedTypeIdentifier(e,t){const r={type:"QualifiedTypeIdentifier",id:e,qualification:t};const s=o.QualifiedTypeIdentifier;a(s.id,r,"id",e,1);a(s.qualification,r,"qualification",t,1);return r}function stringLiteralTypeAnnotation(e){const t={type:"StringLiteralTypeAnnotation",value:e};const r=o.StringLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function stringTypeAnnotation(){return{type:"StringTypeAnnotation"}}function symbolTypeAnnotation(){return{type:"SymbolTypeAnnotation"}}function thisTypeAnnotation(){return{type:"ThisTypeAnnotation"}}function tupleTypeAnnotation(e){const t={type:"TupleTypeAnnotation",types:e};const r=o.TupleTypeAnnotation;a(r.types,t,"types",e,1);return t}function typeofTypeAnnotation(e){const t={type:"TypeofTypeAnnotation",argument:e};const r=o.TypeofTypeAnnotation;a(r.argument,t,"argument",e,1);return t}function typeAlias(e,t=null,r){const s={type:"TypeAlias",id:e,typeParameters:t,right:r};const n=o.TypeAlias;a(n.id,s,"id",e,1);a(n.typeParameters,s,"typeParameters",t,1);a(n.right,s,"right",r,1);return s}function typeAnnotation(e){const t={type:"TypeAnnotation",typeAnnotation:e};const r=o.TypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function typeCastExpression(e,t){const r={type:"TypeCastExpression",expression:e,typeAnnotation:t};const s=o.TypeCastExpression;a(s.expression,r,"expression",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function typeParameter(e=null,t=null,r=null){const s={type:"TypeParameter",bound:e,default:t,variance:r,name:null};const n=o.TypeParameter;a(n.bound,s,"bound",e,1);a(n.default,s,"default",t,1);a(n.variance,s,"variance",r,1);return s}function typeParameterDeclaration(e){const t={type:"TypeParameterDeclaration",params:e};const r=o.TypeParameterDeclaration;a(r.params,t,"params",e,1);return t}function typeParameterInstantiation(e){const t={type:"TypeParameterInstantiation",params:e};const r=o.TypeParameterInstantiation;a(r.params,t,"params",e,1);return t}function unionTypeAnnotation(e){const t={type:"UnionTypeAnnotation",types:e};const r=o.UnionTypeAnnotation;a(r.types,t,"types",e,1);return t}function variance(e){const t={type:"Variance",kind:e};const r=o.Variance;a(r.kind,t,"kind",e);return t}function voidTypeAnnotation(){return{type:"VoidTypeAnnotation"}}function enumDeclaration(e,t){const r={type:"EnumDeclaration",id:e,body:t};const s=o.EnumDeclaration;a(s.id,r,"id",e,1);a(s.body,r,"body",t,1);return r}function enumBooleanBody(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumBooleanBody;a(r.members,t,"members",e,1);return t}function enumNumberBody(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumNumberBody;a(r.members,t,"members",e,1);return t}function enumStringBody(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumStringBody;a(r.members,t,"members",e,1);return t}function enumSymbolBody(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null};const r=o.EnumSymbolBody;a(r.members,t,"members",e,1);return t}function enumBooleanMember(e){const t={type:"EnumBooleanMember",id:e,init:null};const r=o.EnumBooleanMember;a(r.id,t,"id",e,1);return t}function enumNumberMember(e,t){const r={type:"EnumNumberMember",id:e,init:t};const s=o.EnumNumberMember;a(s.id,r,"id",e,1);a(s.init,r,"init",t,1);return r}function enumStringMember(e,t){const r={type:"EnumStringMember",id:e,init:t};const s=o.EnumStringMember;a(s.id,r,"id",e,1);a(s.init,r,"init",t,1);return r}function enumDefaultedMember(e){const t={type:"EnumDefaultedMember",id:e};const r=o.EnumDefaultedMember;a(r.id,t,"id",e,1);return t}function indexedAccessType(e,t){const r={type:"IndexedAccessType",objectType:e,indexType:t};const s=o.IndexedAccessType;a(s.objectType,r,"objectType",e,1);a(s.indexType,r,"indexType",t,1);return r}function optionalIndexedAccessType(e,t){const r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null};const s=o.OptionalIndexedAccessType;a(s.objectType,r,"objectType",e,1);a(s.indexType,r,"indexType",t,1);return r}function jsxAttribute(e,t=null){const r={type:"JSXAttribute",name:e,value:t};const s=o.JSXAttribute;a(s.name,r,"name",e,1);a(s.value,r,"value",t,1);return r}function jsxClosingElement(e){const t={type:"JSXClosingElement",name:e};const r=o.JSXClosingElement;a(r.name,t,"name",e,1);return t}function jsxElement(e,t=null,r,s=null){const n={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:s};const i=o.JSXElement;a(i.openingElement,n,"openingElement",e,1);a(i.closingElement,n,"closingElement",t,1);a(i.children,n,"children",r,1);a(i.selfClosing,n,"selfClosing",s);return n}function jsxEmptyExpression(){return{type:"JSXEmptyExpression"}}function jsxExpressionContainer(e){const t={type:"JSXExpressionContainer",expression:e};const r=o.JSXExpressionContainer;a(r.expression,t,"expression",e,1);return t}function jsxSpreadChild(e){const t={type:"JSXSpreadChild",expression:e};const r=o.JSXSpreadChild;a(r.expression,t,"expression",e,1);return t}function jsxIdentifier(e){const t={type:"JSXIdentifier",name:e};const r=o.JSXIdentifier;a(r.name,t,"name",e);return t}function jsxMemberExpression(e,t){const r={type:"JSXMemberExpression",object:e,property:t};const s=o.JSXMemberExpression;a(s.object,r,"object",e,1);a(s.property,r,"property",t,1);return r}function jsxNamespacedName(e,t){const r={type:"JSXNamespacedName",namespace:e,name:t};const s=o.JSXNamespacedName;a(s.namespace,r,"namespace",e,1);a(s.name,r,"name",t,1);return r}function jsxOpeningElement(e,t,r=false){const s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r};const n=o.JSXOpeningElement;a(n.name,s,"name",e,1);a(n.attributes,s,"attributes",t,1);a(n.selfClosing,s,"selfClosing",r);return s}function jsxSpreadAttribute(e){const t={type:"JSXSpreadAttribute",argument:e};const r=o.JSXSpreadAttribute;a(r.argument,t,"argument",e,1);return t}function jsxText(e){const t={type:"JSXText",value:e};const r=o.JSXText;a(r.value,t,"value",e);return t}function jsxFragment(e,t,r){const s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r};const n=o.JSXFragment;a(n.openingFragment,s,"openingFragment",e,1);a(n.closingFragment,s,"closingFragment",t,1);a(n.children,s,"children",r,1);return s}function jsxOpeningFragment(){return{type:"JSXOpeningFragment"}}function jsxClosingFragment(){return{type:"JSXClosingFragment"}}function noop(){return{type:"Noop"}}function placeholder(e,t){const r={type:"Placeholder",expectedNode:e,name:t};const s=o.Placeholder;a(s.expectedNode,r,"expectedNode",e);a(s.name,r,"name",t,1);return r}function v8IntrinsicIdentifier(e){const t={type:"V8IntrinsicIdentifier",name:e};const r=o.V8IntrinsicIdentifier;a(r.name,t,"name",e);return t}function argumentPlaceholder(){return{type:"ArgumentPlaceholder"}}function bindExpression(e,t){const r={type:"BindExpression",object:e,callee:t};const s=o.BindExpression;a(s.object,r,"object",e,1);a(s.callee,r,"callee",t,1);return r}function importAttribute(e,t){const r={type:"ImportAttribute",key:e,value:t};const s=o.ImportAttribute;a(s.key,r,"key",e,1);a(s.value,r,"value",t,1);return r}function decorator(e){const t={type:"Decorator",expression:e};const r=o.Decorator;a(r.expression,t,"expression",e,1);return t}function doExpression(e,t=false){const r={type:"DoExpression",body:e,async:t};const s=o.DoExpression;a(s.body,r,"body",e,1);a(s.async,r,"async",t);return r}function exportDefaultSpecifier(e){const t={type:"ExportDefaultSpecifier",exported:e};const r=o.ExportDefaultSpecifier;a(r.exported,t,"exported",e,1);return t}function recordExpression(e){const t={type:"RecordExpression",properties:e};const r=o.RecordExpression;a(r.properties,t,"properties",e,1);return t}function tupleExpression(e=[]){const t={type:"TupleExpression",elements:e};const r=o.TupleExpression;a(r.elements,t,"elements",e,1);return t}function decimalLiteral(e){const t={type:"DecimalLiteral",value:e};const r=o.DecimalLiteral;a(r.value,t,"value",e);return t}function moduleExpression(e){const t={type:"ModuleExpression",body:e};const r=o.ModuleExpression;a(r.body,t,"body",e,1);return t}function topicReference(){return{type:"TopicReference"}}function pipelineTopicExpression(e){const t={type:"PipelineTopicExpression",expression:e};const r=o.PipelineTopicExpression;a(r.expression,t,"expression",e,1);return t}function pipelineBareFunction(e){const t={type:"PipelineBareFunction",callee:e};const r=o.PipelineBareFunction;a(r.callee,t,"callee",e,1);return t}function pipelinePrimaryTopicReference(){return{type:"PipelinePrimaryTopicReference"}}function tsParameterProperty(e){const t={type:"TSParameterProperty",parameter:e};const r=o.TSParameterProperty;a(r.parameter,t,"parameter",e,1);return t}function tsDeclareFunction(e=null,t=null,r,s=null){const n={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:s};const i=o.TSDeclareFunction;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.params,n,"params",r,1);a(i.returnType,n,"returnType",s,1);return n}function tsDeclareMethod(e=null,t,r=null,s,n=null){const i={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:s,returnType:n};const l=o.TSDeclareMethod;a(l.decorators,i,"decorators",e,1);a(l.key,i,"key",t,1);a(l.typeParameters,i,"typeParameters",r,1);a(l.params,i,"params",s,1);a(l.returnType,i,"returnType",n,1);return i}function tsQualifiedName(e,t){const r={type:"TSQualifiedName",left:e,right:t};const s=o.TSQualifiedName;a(s.left,r,"left",e,1);a(s.right,r,"right",t,1);return r}function tsCallSignatureDeclaration(e=null,t,r=null){const s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r};const n=o.TSCallSignatureDeclaration;a(n.typeParameters,s,"typeParameters",e,1);a(n.parameters,s,"parameters",t,1);a(n.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsConstructSignatureDeclaration(e=null,t,r=null){const s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r};const n=o.TSConstructSignatureDeclaration;a(n.typeParameters,s,"typeParameters",e,1);a(n.parameters,s,"parameters",t,1);a(n.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsPropertySignature(e,t=null){const r={type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null};const s=o.TSPropertySignature;a(s.key,r,"key",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsMethodSignature(e,t=null,r,s=null){const n={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:s,kind:null};const i=o.TSMethodSignature;a(i.key,n,"key",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.parameters,n,"parameters",r,1);a(i.typeAnnotation,n,"typeAnnotation",s,1);return n}function tsIndexSignature(e,t=null){const r={type:"TSIndexSignature",parameters:e,typeAnnotation:t};const s=o.TSIndexSignature;a(s.parameters,r,"parameters",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsAnyKeyword(){return{type:"TSAnyKeyword"}}function tsBooleanKeyword(){return{type:"TSBooleanKeyword"}}function tsBigIntKeyword(){return{type:"TSBigIntKeyword"}}function tsIntrinsicKeyword(){return{type:"TSIntrinsicKeyword"}}function tsNeverKeyword(){return{type:"TSNeverKeyword"}}function tsNullKeyword(){return{type:"TSNullKeyword"}}function tsNumberKeyword(){return{type:"TSNumberKeyword"}}function tsObjectKeyword(){return{type:"TSObjectKeyword"}}function tsStringKeyword(){return{type:"TSStringKeyword"}}function tsSymbolKeyword(){return{type:"TSSymbolKeyword"}}function tsUndefinedKeyword(){return{type:"TSUndefinedKeyword"}}function tsUnknownKeyword(){return{type:"TSUnknownKeyword"}}function tsVoidKeyword(){return{type:"TSVoidKeyword"}}function tsThisType(){return{type:"TSThisType"}}function tsFunctionType(e=null,t,r=null){const s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r};const n=o.TSFunctionType;a(n.typeParameters,s,"typeParameters",e,1);a(n.parameters,s,"parameters",t,1);a(n.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsConstructorType(e=null,t,r=null){const s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r};const n=o.TSConstructorType;a(n.typeParameters,s,"typeParameters",e,1);a(n.parameters,s,"parameters",t,1);a(n.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsTypeReference(e,t=null){const r={type:"TSTypeReference",typeName:e,typeParameters:t};const s=o.TSTypeReference;a(s.typeName,r,"typeName",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function tsTypePredicate(e,t=null,r=null){const s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r};const n=o.TSTypePredicate;a(n.parameterName,s,"parameterName",e,1);a(n.typeAnnotation,s,"typeAnnotation",t,1);a(n.asserts,s,"asserts",r);return s}function tsTypeQuery(e,t=null){const r={type:"TSTypeQuery",exprName:e,typeParameters:t};const s=o.TSTypeQuery;a(s.exprName,r,"exprName",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function tsTypeLiteral(e){const t={type:"TSTypeLiteral",members:e};const r=o.TSTypeLiteral;a(r.members,t,"members",e,1);return t}function tsArrayType(e){const t={type:"TSArrayType",elementType:e};const r=o.TSArrayType;a(r.elementType,t,"elementType",e,1);return t}function tsTupleType(e){const t={type:"TSTupleType",elementTypes:e};const r=o.TSTupleType;a(r.elementTypes,t,"elementTypes",e,1);return t}function tsOptionalType(e){const t={type:"TSOptionalType",typeAnnotation:e};const r=o.TSOptionalType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsRestType(e){const t={type:"TSRestType",typeAnnotation:e};const r=o.TSRestType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsNamedTupleMember(e,t,r=false){const s={type:"TSNamedTupleMember",label:e,elementType:t,optional:r};const n=o.TSNamedTupleMember;a(n.label,s,"label",e,1);a(n.elementType,s,"elementType",t,1);a(n.optional,s,"optional",r);return s}function tsUnionType(e){const t={type:"TSUnionType",types:e};const r=o.TSUnionType;a(r.types,t,"types",e,1);return t}function tsIntersectionType(e){const t={type:"TSIntersectionType",types:e};const r=o.TSIntersectionType;a(r.types,t,"types",e,1);return t}function tsConditionalType(e,t,r,s){const n={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:s};const i=o.TSConditionalType;a(i.checkType,n,"checkType",e,1);a(i.extendsType,n,"extendsType",t,1);a(i.trueType,n,"trueType",r,1);a(i.falseType,n,"falseType",s,1);return n}function tsInferType(e){const t={type:"TSInferType",typeParameter:e};const r=o.TSInferType;a(r.typeParameter,t,"typeParameter",e,1);return t}function tsParenthesizedType(e){const t={type:"TSParenthesizedType",typeAnnotation:e};const r=o.TSParenthesizedType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsTypeOperator(e){const t={type:"TSTypeOperator",typeAnnotation:e,operator:null};const r=o.TSTypeOperator;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsIndexedAccessType(e,t){const r={type:"TSIndexedAccessType",objectType:e,indexType:t};const s=o.TSIndexedAccessType;a(s.objectType,r,"objectType",e,1);a(s.indexType,r,"indexType",t,1);return r}function tsMappedType(e,t=null,r=null){const s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r};const n=o.TSMappedType;a(n.typeParameter,s,"typeParameter",e,1);a(n.typeAnnotation,s,"typeAnnotation",t,1);a(n.nameType,s,"nameType",r,1);return s}function tsLiteralType(e){const t={type:"TSLiteralType",literal:e};const r=o.TSLiteralType;a(r.literal,t,"literal",e,1);return t}function tsExpressionWithTypeArguments(e,t=null){const r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t};const s=o.TSExpressionWithTypeArguments;a(s.expression,r,"expression",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function tsInterfaceDeclaration(e,t=null,r=null,s){const n={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s};const i=o.TSInterfaceDeclaration;a(i.id,n,"id",e,1);a(i.typeParameters,n,"typeParameters",t,1);a(i.extends,n,"extends",r,1);a(i.body,n,"body",s,1);return n}function tsInterfaceBody(e){const t={type:"TSInterfaceBody",body:e};const r=o.TSInterfaceBody;a(r.body,t,"body",e,1);return t}function tsTypeAliasDeclaration(e,t=null,r){const s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r};const n=o.TSTypeAliasDeclaration;a(n.id,s,"id",e,1);a(n.typeParameters,s,"typeParameters",t,1);a(n.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsInstantiationExpression(e,t=null){const r={type:"TSInstantiationExpression",expression:e,typeParameters:t};const s=o.TSInstantiationExpression;a(s.expression,r,"expression",e,1);a(s.typeParameters,r,"typeParameters",t,1);return r}function tsAsExpression(e,t){const r={type:"TSAsExpression",expression:e,typeAnnotation:t};const s=o.TSAsExpression;a(s.expression,r,"expression",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsSatisfiesExpression(e,t){const r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t};const s=o.TSSatisfiesExpression;a(s.expression,r,"expression",e,1);a(s.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsTypeAssertion(e,t){const r={type:"TSTypeAssertion",typeAnnotation:e,expression:t};const s=o.TSTypeAssertion;a(s.typeAnnotation,r,"typeAnnotation",e,1);a(s.expression,r,"expression",t,1);return r}function tsEnumDeclaration(e,t){const r={type:"TSEnumDeclaration",id:e,members:t};const s=o.TSEnumDeclaration;a(s.id,r,"id",e,1);a(s.members,r,"members",t,1);return r}function tsEnumMember(e,t=null){const r={type:"TSEnumMember",id:e,initializer:t};const s=o.TSEnumMember;a(s.id,r,"id",e,1);a(s.initializer,r,"initializer",t,1);return r}function tsModuleDeclaration(e,t){const r={type:"TSModuleDeclaration",id:e,body:t,kind:null};const s=o.TSModuleDeclaration;a(s.id,r,"id",e,1);a(s.body,r,"body",t,1);return r}function tsModuleBlock(e){const t={type:"TSModuleBlock",body:e};const r=o.TSModuleBlock;a(r.body,t,"body",e,1);return t}function tsImportType(e,t=null,r=null){const s={type:"TSImportType",argument:e,qualifier:t,typeParameters:r};const n=o.TSImportType;a(n.argument,s,"argument",e,1);a(n.qualifier,s,"qualifier",t,1);a(n.typeParameters,s,"typeParameters",r,1);return s}function tsImportEqualsDeclaration(e,t){const r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null};const s=o.TSImportEqualsDeclaration;a(s.id,r,"id",e,1);a(s.moduleReference,r,"moduleReference",t,1);return r}function tsExternalModuleReference(e){const t={type:"TSExternalModuleReference",expression:e};const r=o.TSExternalModuleReference;a(r.expression,t,"expression",e,1);return t}function tsNonNullExpression(e){const t={type:"TSNonNullExpression",expression:e};const r=o.TSNonNullExpression;a(r.expression,t,"expression",e,1);return t}function tsExportAssignment(e){const t={type:"TSExportAssignment",expression:e};const r=o.TSExportAssignment;a(r.expression,t,"expression",e,1);return t}function tsNamespaceExportDeclaration(e){const t={type:"TSNamespaceExportDeclaration",id:e};const r=o.TSNamespaceExportDeclaration;a(r.id,t,"id",e,1);return t}function tsTypeAnnotation(e){const t={type:"TSTypeAnnotation",typeAnnotation:e};const r=o.TSTypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsTypeParameterInstantiation(e){const t={type:"TSTypeParameterInstantiation",params:e};const r=o.TSTypeParameterInstantiation;a(r.params,t,"params",e,1);return t}function tsTypeParameterDeclaration(e){const t={type:"TSTypeParameterDeclaration",params:e};const r=o.TSTypeParameterDeclaration;a(r.params,t,"params",e,1);return t}function tsTypeParameter(e=null,t=null,r){const s={type:"TSTypeParameter",constraint:e,default:t,name:r};const n=o.TSTypeParameter;a(n.constraint,s,"constraint",e,1);a(n.default,s,"default",t,1);a(n.name,s,"name",r);return s}function NumberLiteral(e){(0,n.default)("NumberLiteral","NumericLiteral","The node type ");return numericLiteral(e)}function RegexLiteral(e,t=""){(0,n.default)("RegexLiteral","RegExpLiteral","The node type ");return regExpLiteral(e,t)}function RestProperty(e){(0,n.default)("RestProperty","RestElement","The node type ");return restElement(e)}function SpreadProperty(e){(0,n.default)("SpreadProperty","SpreadElement","The node type ");return spreadElement(e)}},2902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:true,get:function(){return s.anyTypeAnnotation}});Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:true,get:function(){return s.argumentPlaceholder}});Object.defineProperty(t,"ArrayExpression",{enumerable:true,get:function(){return s.arrayExpression}});Object.defineProperty(t,"ArrayPattern",{enumerable:true,get:function(){return s.arrayPattern}});Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:true,get:function(){return s.arrayTypeAnnotation}});Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:true,get:function(){return s.arrowFunctionExpression}});Object.defineProperty(t,"AssignmentExpression",{enumerable:true,get:function(){return s.assignmentExpression}});Object.defineProperty(t,"AssignmentPattern",{enumerable:true,get:function(){return s.assignmentPattern}});Object.defineProperty(t,"AwaitExpression",{enumerable:true,get:function(){return s.awaitExpression}});Object.defineProperty(t,"BigIntLiteral",{enumerable:true,get:function(){return s.bigIntLiteral}});Object.defineProperty(t,"BinaryExpression",{enumerable:true,get:function(){return s.binaryExpression}});Object.defineProperty(t,"BindExpression",{enumerable:true,get:function(){return s.bindExpression}});Object.defineProperty(t,"BlockStatement",{enumerable:true,get:function(){return s.blockStatement}});Object.defineProperty(t,"BooleanLiteral",{enumerable:true,get:function(){return s.booleanLiteral}});Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:true,get:function(){return s.booleanLiteralTypeAnnotation}});Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:true,get:function(){return s.booleanTypeAnnotation}});Object.defineProperty(t,"BreakStatement",{enumerable:true,get:function(){return s.breakStatement}});Object.defineProperty(t,"CallExpression",{enumerable:true,get:function(){return s.callExpression}});Object.defineProperty(t,"CatchClause",{enumerable:true,get:function(){return s.catchClause}});Object.defineProperty(t,"ClassAccessorProperty",{enumerable:true,get:function(){return s.classAccessorProperty}});Object.defineProperty(t,"ClassBody",{enumerable:true,get:function(){return s.classBody}});Object.defineProperty(t,"ClassDeclaration",{enumerable:true,get:function(){return s.classDeclaration}});Object.defineProperty(t,"ClassExpression",{enumerable:true,get:function(){return s.classExpression}});Object.defineProperty(t,"ClassImplements",{enumerable:true,get:function(){return s.classImplements}});Object.defineProperty(t,"ClassMethod",{enumerable:true,get:function(){return s.classMethod}});Object.defineProperty(t,"ClassPrivateMethod",{enumerable:true,get:function(){return s.classPrivateMethod}});Object.defineProperty(t,"ClassPrivateProperty",{enumerable:true,get:function(){return s.classPrivateProperty}});Object.defineProperty(t,"ClassProperty",{enumerable:true,get:function(){return s.classProperty}});Object.defineProperty(t,"ConditionalExpression",{enumerable:true,get:function(){return s.conditionalExpression}});Object.defineProperty(t,"ContinueStatement",{enumerable:true,get:function(){return s.continueStatement}});Object.defineProperty(t,"DebuggerStatement",{enumerable:true,get:function(){return s.debuggerStatement}});Object.defineProperty(t,"DecimalLiteral",{enumerable:true,get:function(){return s.decimalLiteral}});Object.defineProperty(t,"DeclareClass",{enumerable:true,get:function(){return s.declareClass}});Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:true,get:function(){return s.declareExportAllDeclaration}});Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:true,get:function(){return s.declareExportDeclaration}});Object.defineProperty(t,"DeclareFunction",{enumerable:true,get:function(){return s.declareFunction}});Object.defineProperty(t,"DeclareInterface",{enumerable:true,get:function(){return s.declareInterface}});Object.defineProperty(t,"DeclareModule",{enumerable:true,get:function(){return s.declareModule}});Object.defineProperty(t,"DeclareModuleExports",{enumerable:true,get:function(){return s.declareModuleExports}});Object.defineProperty(t,"DeclareOpaqueType",{enumerable:true,get:function(){return s.declareOpaqueType}});Object.defineProperty(t,"DeclareTypeAlias",{enumerable:true,get:function(){return s.declareTypeAlias}});Object.defineProperty(t,"DeclareVariable",{enumerable:true,get:function(){return s.declareVariable}});Object.defineProperty(t,"DeclaredPredicate",{enumerable:true,get:function(){return s.declaredPredicate}});Object.defineProperty(t,"Decorator",{enumerable:true,get:function(){return s.decorator}});Object.defineProperty(t,"Directive",{enumerable:true,get:function(){return s.directive}});Object.defineProperty(t,"DirectiveLiteral",{enumerable:true,get:function(){return s.directiveLiteral}});Object.defineProperty(t,"DoExpression",{enumerable:true,get:function(){return s.doExpression}});Object.defineProperty(t,"DoWhileStatement",{enumerable:true,get:function(){return s.doWhileStatement}});Object.defineProperty(t,"EmptyStatement",{enumerable:true,get:function(){return s.emptyStatement}});Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:true,get:function(){return s.emptyTypeAnnotation}});Object.defineProperty(t,"EnumBooleanBody",{enumerable:true,get:function(){return s.enumBooleanBody}});Object.defineProperty(t,"EnumBooleanMember",{enumerable:true,get:function(){return s.enumBooleanMember}});Object.defineProperty(t,"EnumDeclaration",{enumerable:true,get:function(){return s.enumDeclaration}});Object.defineProperty(t,"EnumDefaultedMember",{enumerable:true,get:function(){return s.enumDefaultedMember}});Object.defineProperty(t,"EnumNumberBody",{enumerable:true,get:function(){return s.enumNumberBody}});Object.defineProperty(t,"EnumNumberMember",{enumerable:true,get:function(){return s.enumNumberMember}});Object.defineProperty(t,"EnumStringBody",{enumerable:true,get:function(){return s.enumStringBody}});Object.defineProperty(t,"EnumStringMember",{enumerable:true,get:function(){return s.enumStringMember}});Object.defineProperty(t,"EnumSymbolBody",{enumerable:true,get:function(){return s.enumSymbolBody}});Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:true,get:function(){return s.existsTypeAnnotation}});Object.defineProperty(t,"ExportAllDeclaration",{enumerable:true,get:function(){return s.exportAllDeclaration}});Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:true,get:function(){return s.exportDefaultDeclaration}});Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:true,get:function(){return s.exportDefaultSpecifier}});Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:true,get:function(){return s.exportNamedDeclaration}});Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:true,get:function(){return s.exportNamespaceSpecifier}});Object.defineProperty(t,"ExportSpecifier",{enumerable:true,get:function(){return s.exportSpecifier}});Object.defineProperty(t,"ExpressionStatement",{enumerable:true,get:function(){return s.expressionStatement}});Object.defineProperty(t,"File",{enumerable:true,get:function(){return s.file}});Object.defineProperty(t,"ForInStatement",{enumerable:true,get:function(){return s.forInStatement}});Object.defineProperty(t,"ForOfStatement",{enumerable:true,get:function(){return s.forOfStatement}});Object.defineProperty(t,"ForStatement",{enumerable:true,get:function(){return s.forStatement}});Object.defineProperty(t,"FunctionDeclaration",{enumerable:true,get:function(){return s.functionDeclaration}});Object.defineProperty(t,"FunctionExpression",{enumerable:true,get:function(){return s.functionExpression}});Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:true,get:function(){return s.functionTypeAnnotation}});Object.defineProperty(t,"FunctionTypeParam",{enumerable:true,get:function(){return s.functionTypeParam}});Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:true,get:function(){return s.genericTypeAnnotation}});Object.defineProperty(t,"Identifier",{enumerable:true,get:function(){return s.identifier}});Object.defineProperty(t,"IfStatement",{enumerable:true,get:function(){return s.ifStatement}});Object.defineProperty(t,"Import",{enumerable:true,get:function(){return s.import}});Object.defineProperty(t,"ImportAttribute",{enumerable:true,get:function(){return s.importAttribute}});Object.defineProperty(t,"ImportDeclaration",{enumerable:true,get:function(){return s.importDeclaration}});Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:true,get:function(){return s.importDefaultSpecifier}});Object.defineProperty(t,"ImportExpression",{enumerable:true,get:function(){return s.importExpression}});Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:true,get:function(){return s.importNamespaceSpecifier}});Object.defineProperty(t,"ImportSpecifier",{enumerable:true,get:function(){return s.importSpecifier}});Object.defineProperty(t,"IndexedAccessType",{enumerable:true,get:function(){return s.indexedAccessType}});Object.defineProperty(t,"InferredPredicate",{enumerable:true,get:function(){return s.inferredPredicate}});Object.defineProperty(t,"InterfaceDeclaration",{enumerable:true,get:function(){return s.interfaceDeclaration}});Object.defineProperty(t,"InterfaceExtends",{enumerable:true,get:function(){return s.interfaceExtends}});Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:true,get:function(){return s.interfaceTypeAnnotation}});Object.defineProperty(t,"InterpreterDirective",{enumerable:true,get:function(){return s.interpreterDirective}});Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:true,get:function(){return s.intersectionTypeAnnotation}});Object.defineProperty(t,"JSXAttribute",{enumerable:true,get:function(){return s.jsxAttribute}});Object.defineProperty(t,"JSXClosingElement",{enumerable:true,get:function(){return s.jsxClosingElement}});Object.defineProperty(t,"JSXClosingFragment",{enumerable:true,get:function(){return s.jsxClosingFragment}});Object.defineProperty(t,"JSXElement",{enumerable:true,get:function(){return s.jsxElement}});Object.defineProperty(t,"JSXEmptyExpression",{enumerable:true,get:function(){return s.jsxEmptyExpression}});Object.defineProperty(t,"JSXExpressionContainer",{enumerable:true,get:function(){return s.jsxExpressionContainer}});Object.defineProperty(t,"JSXFragment",{enumerable:true,get:function(){return s.jsxFragment}});Object.defineProperty(t,"JSXIdentifier",{enumerable:true,get:function(){return s.jsxIdentifier}});Object.defineProperty(t,"JSXMemberExpression",{enumerable:true,get:function(){return s.jsxMemberExpression}});Object.defineProperty(t,"JSXNamespacedName",{enumerable:true,get:function(){return s.jsxNamespacedName}});Object.defineProperty(t,"JSXOpeningElement",{enumerable:true,get:function(){return s.jsxOpeningElement}});Object.defineProperty(t,"JSXOpeningFragment",{enumerable:true,get:function(){return s.jsxOpeningFragment}});Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:true,get:function(){return s.jsxSpreadAttribute}});Object.defineProperty(t,"JSXSpreadChild",{enumerable:true,get:function(){return s.jsxSpreadChild}});Object.defineProperty(t,"JSXText",{enumerable:true,get:function(){return s.jsxText}});Object.defineProperty(t,"LabeledStatement",{enumerable:true,get:function(){return s.labeledStatement}});Object.defineProperty(t,"LogicalExpression",{enumerable:true,get:function(){return s.logicalExpression}});Object.defineProperty(t,"MemberExpression",{enumerable:true,get:function(){return s.memberExpression}});Object.defineProperty(t,"MetaProperty",{enumerable:true,get:function(){return s.metaProperty}});Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:true,get:function(){return s.mixedTypeAnnotation}});Object.defineProperty(t,"ModuleExpression",{enumerable:true,get:function(){return s.moduleExpression}});Object.defineProperty(t,"NewExpression",{enumerable:true,get:function(){return s.newExpression}});Object.defineProperty(t,"Noop",{enumerable:true,get:function(){return s.noop}});Object.defineProperty(t,"NullLiteral",{enumerable:true,get:function(){return s.nullLiteral}});Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:true,get:function(){return s.nullLiteralTypeAnnotation}});Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:true,get:function(){return s.nullableTypeAnnotation}});Object.defineProperty(t,"NumberLiteral",{enumerable:true,get:function(){return s.numberLiteral}});Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return s.numberLiteralTypeAnnotation}});Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:true,get:function(){return s.numberTypeAnnotation}});Object.defineProperty(t,"NumericLiteral",{enumerable:true,get:function(){return s.numericLiteral}});Object.defineProperty(t,"ObjectExpression",{enumerable:true,get:function(){return s.objectExpression}});Object.defineProperty(t,"ObjectMethod",{enumerable:true,get:function(){return s.objectMethod}});Object.defineProperty(t,"ObjectPattern",{enumerable:true,get:function(){return s.objectPattern}});Object.defineProperty(t,"ObjectProperty",{enumerable:true,get:function(){return s.objectProperty}});Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:true,get:function(){return s.objectTypeAnnotation}});Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:true,get:function(){return s.objectTypeCallProperty}});Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:true,get:function(){return s.objectTypeIndexer}});Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:true,get:function(){return s.objectTypeInternalSlot}});Object.defineProperty(t,"ObjectTypeProperty",{enumerable:true,get:function(){return s.objectTypeProperty}});Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:true,get:function(){return s.objectTypeSpreadProperty}});Object.defineProperty(t,"OpaqueType",{enumerable:true,get:function(){return s.opaqueType}});Object.defineProperty(t,"OptionalCallExpression",{enumerable:true,get:function(){return s.optionalCallExpression}});Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:true,get:function(){return s.optionalIndexedAccessType}});Object.defineProperty(t,"OptionalMemberExpression",{enumerable:true,get:function(){return s.optionalMemberExpression}});Object.defineProperty(t,"ParenthesizedExpression",{enumerable:true,get:function(){return s.parenthesizedExpression}});Object.defineProperty(t,"PipelineBareFunction",{enumerable:true,get:function(){return s.pipelineBareFunction}});Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:true,get:function(){return s.pipelinePrimaryTopicReference}});Object.defineProperty(t,"PipelineTopicExpression",{enumerable:true,get:function(){return s.pipelineTopicExpression}});Object.defineProperty(t,"Placeholder",{enumerable:true,get:function(){return s.placeholder}});Object.defineProperty(t,"PrivateName",{enumerable:true,get:function(){return s.privateName}});Object.defineProperty(t,"Program",{enumerable:true,get:function(){return s.program}});Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:true,get:function(){return s.qualifiedTypeIdentifier}});Object.defineProperty(t,"RecordExpression",{enumerable:true,get:function(){return s.recordExpression}});Object.defineProperty(t,"RegExpLiteral",{enumerable:true,get:function(){return s.regExpLiteral}});Object.defineProperty(t,"RegexLiteral",{enumerable:true,get:function(){return s.regexLiteral}});Object.defineProperty(t,"RestElement",{enumerable:true,get:function(){return s.restElement}});Object.defineProperty(t,"RestProperty",{enumerable:true,get:function(){return s.restProperty}});Object.defineProperty(t,"ReturnStatement",{enumerable:true,get:function(){return s.returnStatement}});Object.defineProperty(t,"SequenceExpression",{enumerable:true,get:function(){return s.sequenceExpression}});Object.defineProperty(t,"SpreadElement",{enumerable:true,get:function(){return s.spreadElement}});Object.defineProperty(t,"SpreadProperty",{enumerable:true,get:function(){return s.spreadProperty}});Object.defineProperty(t,"StaticBlock",{enumerable:true,get:function(){return s.staticBlock}});Object.defineProperty(t,"StringLiteral",{enumerable:true,get:function(){return s.stringLiteral}});Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return s.stringLiteralTypeAnnotation}});Object.defineProperty(t,"StringTypeAnnotation",{enumerable:true,get:function(){return s.stringTypeAnnotation}});Object.defineProperty(t,"Super",{enumerable:true,get:function(){return s.super}});Object.defineProperty(t,"SwitchCase",{enumerable:true,get:function(){return s.switchCase}});Object.defineProperty(t,"SwitchStatement",{enumerable:true,get:function(){return s.switchStatement}});Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:true,get:function(){return s.symbolTypeAnnotation}});Object.defineProperty(t,"TSAnyKeyword",{enumerable:true,get:function(){return s.tsAnyKeyword}});Object.defineProperty(t,"TSArrayType",{enumerable:true,get:function(){return s.tsArrayType}});Object.defineProperty(t,"TSAsExpression",{enumerable:true,get:function(){return s.tsAsExpression}});Object.defineProperty(t,"TSBigIntKeyword",{enumerable:true,get:function(){return s.tsBigIntKeyword}});Object.defineProperty(t,"TSBooleanKeyword",{enumerable:true,get:function(){return s.tsBooleanKeyword}});Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:true,get:function(){return s.tsCallSignatureDeclaration}});Object.defineProperty(t,"TSConditionalType",{enumerable:true,get:function(){return s.tsConditionalType}});Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:true,get:function(){return s.tsConstructSignatureDeclaration}});Object.defineProperty(t,"TSConstructorType",{enumerable:true,get:function(){return s.tsConstructorType}});Object.defineProperty(t,"TSDeclareFunction",{enumerable:true,get:function(){return s.tsDeclareFunction}});Object.defineProperty(t,"TSDeclareMethod",{enumerable:true,get:function(){return s.tsDeclareMethod}});Object.defineProperty(t,"TSEnumDeclaration",{enumerable:true,get:function(){return s.tsEnumDeclaration}});Object.defineProperty(t,"TSEnumMember",{enumerable:true,get:function(){return s.tsEnumMember}});Object.defineProperty(t,"TSExportAssignment",{enumerable:true,get:function(){return s.tsExportAssignment}});Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:true,get:function(){return s.tsExpressionWithTypeArguments}});Object.defineProperty(t,"TSExternalModuleReference",{enumerable:true,get:function(){return s.tsExternalModuleReference}});Object.defineProperty(t,"TSFunctionType",{enumerable:true,get:function(){return s.tsFunctionType}});Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:true,get:function(){return s.tsImportEqualsDeclaration}});Object.defineProperty(t,"TSImportType",{enumerable:true,get:function(){return s.tsImportType}});Object.defineProperty(t,"TSIndexSignature",{enumerable:true,get:function(){return s.tsIndexSignature}});Object.defineProperty(t,"TSIndexedAccessType",{enumerable:true,get:function(){return s.tsIndexedAccessType}});Object.defineProperty(t,"TSInferType",{enumerable:true,get:function(){return s.tsInferType}});Object.defineProperty(t,"TSInstantiationExpression",{enumerable:true,get:function(){return s.tsInstantiationExpression}});Object.defineProperty(t,"TSInterfaceBody",{enumerable:true,get:function(){return s.tsInterfaceBody}});Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:true,get:function(){return s.tsInterfaceDeclaration}});Object.defineProperty(t,"TSIntersectionType",{enumerable:true,get:function(){return s.tsIntersectionType}});Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:true,get:function(){return s.tsIntrinsicKeyword}});Object.defineProperty(t,"TSLiteralType",{enumerable:true,get:function(){return s.tsLiteralType}});Object.defineProperty(t,"TSMappedType",{enumerable:true,get:function(){return s.tsMappedType}});Object.defineProperty(t,"TSMethodSignature",{enumerable:true,get:function(){return s.tsMethodSignature}});Object.defineProperty(t,"TSModuleBlock",{enumerable:true,get:function(){return s.tsModuleBlock}});Object.defineProperty(t,"TSModuleDeclaration",{enumerable:true,get:function(){return s.tsModuleDeclaration}});Object.defineProperty(t,"TSNamedTupleMember",{enumerable:true,get:function(){return s.tsNamedTupleMember}});Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:true,get:function(){return s.tsNamespaceExportDeclaration}});Object.defineProperty(t,"TSNeverKeyword",{enumerable:true,get:function(){return s.tsNeverKeyword}});Object.defineProperty(t,"TSNonNullExpression",{enumerable:true,get:function(){return s.tsNonNullExpression}});Object.defineProperty(t,"TSNullKeyword",{enumerable:true,get:function(){return s.tsNullKeyword}});Object.defineProperty(t,"TSNumberKeyword",{enumerable:true,get:function(){return s.tsNumberKeyword}});Object.defineProperty(t,"TSObjectKeyword",{enumerable:true,get:function(){return s.tsObjectKeyword}});Object.defineProperty(t,"TSOptionalType",{enumerable:true,get:function(){return s.tsOptionalType}});Object.defineProperty(t,"TSParameterProperty",{enumerable:true,get:function(){return s.tsParameterProperty}});Object.defineProperty(t,"TSParenthesizedType",{enumerable:true,get:function(){return s.tsParenthesizedType}});Object.defineProperty(t,"TSPropertySignature",{enumerable:true,get:function(){return s.tsPropertySignature}});Object.defineProperty(t,"TSQualifiedName",{enumerable:true,get:function(){return s.tsQualifiedName}});Object.defineProperty(t,"TSRestType",{enumerable:true,get:function(){return s.tsRestType}});Object.defineProperty(t,"TSSatisfiesExpression",{enumerable:true,get:function(){return s.tsSatisfiesExpression}});Object.defineProperty(t,"TSStringKeyword",{enumerable:true,get:function(){return s.tsStringKeyword}});Object.defineProperty(t,"TSSymbolKeyword",{enumerable:true,get:function(){return s.tsSymbolKeyword}});Object.defineProperty(t,"TSThisType",{enumerable:true,get:function(){return s.tsThisType}});Object.defineProperty(t,"TSTupleType",{enumerable:true,get:function(){return s.tsTupleType}});Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:true,get:function(){return s.tsTypeAliasDeclaration}});Object.defineProperty(t,"TSTypeAnnotation",{enumerable:true,get:function(){return s.tsTypeAnnotation}});Object.defineProperty(t,"TSTypeAssertion",{enumerable:true,get:function(){return s.tsTypeAssertion}});Object.defineProperty(t,"TSTypeLiteral",{enumerable:true,get:function(){return s.tsTypeLiteral}});Object.defineProperty(t,"TSTypeOperator",{enumerable:true,get:function(){return s.tsTypeOperator}});Object.defineProperty(t,"TSTypeParameter",{enumerable:true,get:function(){return s.tsTypeParameter}});Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:true,get:function(){return s.tsTypeParameterDeclaration}});Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:true,get:function(){return s.tsTypeParameterInstantiation}});Object.defineProperty(t,"TSTypePredicate",{enumerable:true,get:function(){return s.tsTypePredicate}});Object.defineProperty(t,"TSTypeQuery",{enumerable:true,get:function(){return s.tsTypeQuery}});Object.defineProperty(t,"TSTypeReference",{enumerable:true,get:function(){return s.tsTypeReference}});Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:true,get:function(){return s.tsUndefinedKeyword}});Object.defineProperty(t,"TSUnionType",{enumerable:true,get:function(){return s.tsUnionType}});Object.defineProperty(t,"TSUnknownKeyword",{enumerable:true,get:function(){return s.tsUnknownKeyword}});Object.defineProperty(t,"TSVoidKeyword",{enumerable:true,get:function(){return s.tsVoidKeyword}});Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:true,get:function(){return s.taggedTemplateExpression}});Object.defineProperty(t,"TemplateElement",{enumerable:true,get:function(){return s.templateElement}});Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return s.templateLiteral}});Object.defineProperty(t,"ThisExpression",{enumerable:true,get:function(){return s.thisExpression}});Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:true,get:function(){return s.thisTypeAnnotation}});Object.defineProperty(t,"ThrowStatement",{enumerable:true,get:function(){return s.throwStatement}});Object.defineProperty(t,"TopicReference",{enumerable:true,get:function(){return s.topicReference}});Object.defineProperty(t,"TryStatement",{enumerable:true,get:function(){return s.tryStatement}});Object.defineProperty(t,"TupleExpression",{enumerable:true,get:function(){return s.tupleExpression}});Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:true,get:function(){return s.tupleTypeAnnotation}});Object.defineProperty(t,"TypeAlias",{enumerable:true,get:function(){return s.typeAlias}});Object.defineProperty(t,"TypeAnnotation",{enumerable:true,get:function(){return s.typeAnnotation}});Object.defineProperty(t,"TypeCastExpression",{enumerable:true,get:function(){return s.typeCastExpression}});Object.defineProperty(t,"TypeParameter",{enumerable:true,get:function(){return s.typeParameter}});Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:true,get:function(){return s.typeParameterDeclaration}});Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:true,get:function(){return s.typeParameterInstantiation}});Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:true,get:function(){return s.typeofTypeAnnotation}});Object.defineProperty(t,"UnaryExpression",{enumerable:true,get:function(){return s.unaryExpression}});Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:true,get:function(){return s.unionTypeAnnotation}});Object.defineProperty(t,"UpdateExpression",{enumerable:true,get:function(){return s.updateExpression}});Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:true,get:function(){return s.v8IntrinsicIdentifier}});Object.defineProperty(t,"VariableDeclaration",{enumerable:true,get:function(){return s.variableDeclaration}});Object.defineProperty(t,"VariableDeclarator",{enumerable:true,get:function(){return s.variableDeclarator}});Object.defineProperty(t,"Variance",{enumerable:true,get:function(){return s.variance}});Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:true,get:function(){return s.voidTypeAnnotation}});Object.defineProperty(t,"WhileStatement",{enumerable:true,get:function(){return s.whileStatement}});Object.defineProperty(t,"WithStatement",{enumerable:true,get:function(){return s.withStatement}});Object.defineProperty(t,"YieldExpression",{enumerable:true,get:function(){return s.yieldExpression}});var s=r(5790)},6536:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildUndefinedNode=buildUndefinedNode;var s=r(5790);function buildUndefinedNode(){return(0,s.unaryExpression)("void",(0,s.numericLiteral)(0),true)}},4455:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=buildChildren;var s=r(277);var n=r(7796);function buildChildren(e){const t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,s.isJSXText)(i)){(0,n.default)(i,t);continue}if((0,s.isJSXExpressionContainer)(i))i=i.expression;if((0,s.isJSXEmptyExpression)(i))continue;t.push(i)}return t}},5910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createTSUnionType;var s=r(5790);var n=r(8395);var i=r(277);function createTSUnionType(e){const t=e.map((e=>(0,i.isTSTypeAnnotation)(e)?e.typeAnnotation:e));const r=(0,n.default)(t);if(r.length===1){return r[0]}else{return(0,s.tsUnionType)(r)}}},6652:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=clone;var s=r(1036);function clone(e){return(0,s.default)(e,false)}},7698:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneDeep;var s=r(1036);function cloneDeep(e){return(0,s.default)(e)}},9192:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneDeepWithoutLoc;var s=r(1036);function cloneDeepWithoutLoc(e){return(0,s.default)(e,true,true)}},1036:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneNode;var s=r(6462);var n=r(277);const{hasOwn:i}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function cloneIfNode(e,t,r,s){if(e&&typeof e.type==="string"){return cloneNodeInternal(e,t,r,s)}return e}function cloneIfNodeOrArray(e,t,r,s){if(Array.isArray(e)){return e.map((e=>cloneIfNode(e,t,r,s)))}return cloneIfNode(e,t,r,s)}function cloneNode(e,t=true,r=false){return cloneNodeInternal(e,t,r,new Map)}function cloneNodeInternal(e,t=true,r=false,a){if(!e)return e;const{type:o}=e;const l={type:e.type};if((0,n.isIdentifier)(e)){l.name=e.name;if(i(e,"optional")&&typeof e.optional==="boolean"){l.optional=e.optional}if(i(e,"typeAnnotation")){l.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,true,r,a):e.typeAnnotation}if(i(e,"decorators")){l.decorators=t?cloneIfNodeOrArray(e.decorators,true,r,a):e.decorators}}else if(!i(s.NODE_FIELDS,o)){throw new Error(`Unknown node type: "${o}"`)}else{for(const c of Object.keys(s.NODE_FIELDS[o])){if(i(e,c)){if(t){l[c]=(0,n.isFile)(e)&&c==="comments"?maybeCloneComments(e.comments,t,r,a):cloneIfNodeOrArray(e[c],true,r,a)}else{l[c]=e[c]}}}}if(i(e,"loc")){if(r){l.loc=null}else{l.loc=e.loc}}if(i(e,"leadingComments")){l.leadingComments=maybeCloneComments(e.leadingComments,t,r,a)}if(i(e,"innerComments")){l.innerComments=maybeCloneComments(e.innerComments,t,r,a)}if(i(e,"trailingComments")){l.trailingComments=maybeCloneComments(e.trailingComments,t,r,a)}if(i(e,"extra")){l.extra=Object.assign({},e.extra)}return l}function maybeCloneComments(e,t,r,s){if(!e||!t){return e}return e.map((e=>{const t=s.get(e);if(t)return t;const{type:n,value:i,loc:a}=e;const o={type:n,value:i,loc:a};if(r){o.loc=null}s.set(e,o);return o}))}},4714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneWithoutLoc;var s=r(1036);function cloneWithoutLoc(e){return(0,s.default)(e,false,true)}},672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=addComment;var s=r(2751);function addComment(e,t,r,n){return(0,s.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}},2751:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=addComments;function addComments(e,t,r){if(!r||!e)return e;const s=`${t}Comments`;if(e[s]){if(t==="leading"){e[s]=r.concat(e[s])}else{e[s].push(...r)}}else{e[s]=r}return e}},3547:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritInnerComments;var s=r(2834);function inheritInnerComments(e,t){(0,s.default)("innerComments",e,t)}},1325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritLeadingComments;var s=r(2834);function inheritLeadingComments(e,t){(0,s.default)("leadingComments",e,t)}},6003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritTrailingComments;var s=r(2834);function inheritTrailingComments(e,t){(0,s.default)("trailingComments",e,t)}},3278:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritsComments;var s=r(6003);var n=r(1325);var i=r(3547);function inheritsComments(e,t){(0,s.default)(e,t);(0,n.default)(e,t);(0,i.default)(e,t);return e}},2274:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeComments;var s=r(3369);function removeComments(e){s.COMMENT_KEYS.forEach((t=>{e[t]=null}));return e}},3559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});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.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 s=r(6462);const n=t.STANDARDIZED_TYPES=s.FLIPPED_ALIAS_KEYS["Standardized"];const i=t.EXPRESSION_TYPES=s.FLIPPED_ALIAS_KEYS["Expression"];const a=t.BINARY_TYPES=s.FLIPPED_ALIAS_KEYS["Binary"];const o=t.SCOPABLE_TYPES=s.FLIPPED_ALIAS_KEYS["Scopable"];const l=t.BLOCKPARENT_TYPES=s.FLIPPED_ALIAS_KEYS["BlockParent"];const c=t.BLOCK_TYPES=s.FLIPPED_ALIAS_KEYS["Block"];const p=t.STATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS["Statement"];const u=t.TERMINATORLESS_TYPES=s.FLIPPED_ALIAS_KEYS["Terminatorless"];const f=t.COMPLETIONSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS["CompletionStatement"];const d=t.CONDITIONAL_TYPES=s.FLIPPED_ALIAS_KEYS["Conditional"];const h=t.LOOP_TYPES=s.FLIPPED_ALIAS_KEYS["Loop"];const m=t.WHILE_TYPES=s.FLIPPED_ALIAS_KEYS["While"];const y=t.EXPRESSIONWRAPPER_TYPES=s.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];const T=t.FOR_TYPES=s.FLIPPED_ALIAS_KEYS["For"];const S=t.FORXSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS["ForXStatement"];const g=t.FUNCTION_TYPES=s.FLIPPED_ALIAS_KEYS["Function"];const x=t.FUNCTIONPARENT_TYPES=s.FLIPPED_ALIAS_KEYS["FunctionParent"];const b=t.PUREISH_TYPES=s.FLIPPED_ALIAS_KEYS["Pureish"];const E=t.DECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS["Declaration"];const P=t.PATTERNLIKE_TYPES=s.FLIPPED_ALIAS_KEYS["PatternLike"];const A=t.LVAL_TYPES=s.FLIPPED_ALIAS_KEYS["LVal"];const v=t.TSENTITYNAME_TYPES=s.FLIPPED_ALIAS_KEYS["TSEntityName"];const I=t.LITERAL_TYPES=s.FLIPPED_ALIAS_KEYS["Literal"];const C=t.IMMUTABLE_TYPES=s.FLIPPED_ALIAS_KEYS["Immutable"];const w=t.USERWHITESPACABLE_TYPES=s.FLIPPED_ALIAS_KEYS["UserWhitespacable"];const O=t.METHOD_TYPES=s.FLIPPED_ALIAS_KEYS["Method"];const N=t.OBJECTMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS["ObjectMember"];const k=t.PROPERTY_TYPES=s.FLIPPED_ALIAS_KEYS["Property"];const D=t.UNARYLIKE_TYPES=s.FLIPPED_ALIAS_KEYS["UnaryLike"];const L=t.PATTERN_TYPES=s.FLIPPED_ALIAS_KEYS["Pattern"];const M=t.CLASS_TYPES=s.FLIPPED_ALIAS_KEYS["Class"];const _=t.IMPORTOREXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"];const B=t.EXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS["ExportDeclaration"];const F=t.MODULESPECIFIER_TYPES=s.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];const j=t.ACCESSOR_TYPES=s.FLIPPED_ALIAS_KEYS["Accessor"];const R=t.PRIVATE_TYPES=s.FLIPPED_ALIAS_KEYS["Private"];const K=t.FLOW_TYPES=s.FLIPPED_ALIAS_KEYS["Flow"];const U=t.FLOWTYPE_TYPES=s.FLIPPED_ALIAS_KEYS["FlowType"];const V=t.FLOWBASEANNOTATION_TYPES=s.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];const W=t.FLOWDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS["FlowDeclaration"];const q=t.FLOWPREDICATE_TYPES=s.FLIPPED_ALIAS_KEYS["FlowPredicate"];const J=t.ENUMBODY_TYPES=s.FLIPPED_ALIAS_KEYS["EnumBody"];const X=t.ENUMMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS["EnumMember"];const H=t.JSX_TYPES=s.FLIPPED_ALIAS_KEYS["JSX"];const Y=t.MISCELLANEOUS_TYPES=s.FLIPPED_ALIAS_KEYS["Miscellaneous"];const G=t.TYPESCRIPT_TYPES=s.FLIPPED_ALIAS_KEYS["TypeScript"];const $=t.TSTYPEELEMENT_TYPES=s.FLIPPED_ALIAS_KEYS["TSTypeElement"];const z=t.TSTYPE_TYPES=s.FLIPPED_ALIAS_KEYS["TSType"];const Q=t.TSBASETYPE_TYPES=s.FLIPPED_ALIAS_KEYS["TSBaseType"];const Z=t.MODULEDECLARATION_TYPES=_},3369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=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.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0;const r=t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];const s=t.FLATTENABLE_KEYS=["body","expressions"];const n=t.FOR_INIT_KEYS=["left","init"];const i=t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const a=t.LOGICAL_OPERATORS=["||","&&","??"];const o=t.UPDATE_OPERATORS=["++","--"];const l=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];const c=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];const p=t.COMPARISON_BINARY_OPERATORS=[...c,"in","instanceof"];const u=t.BOOLEAN_BINARY_OPERATORS=[...p,...l];const f=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];const d=t.BINARY_OPERATORS=["+",...f,...u,"|>"];const h=t.ASSIGNMENT_OPERATORS=["=","+=",...f.map((e=>e+"=")),...a.map((e=>e+"="))];const m=t.BOOLEAN_UNARY_OPERATORS=["delete","!"];const y=t.NUMBER_UNARY_OPERATORS=["+","-","~"];const T=t.STRING_UNARY_OPERATORS=["typeof"];const S=t.UNARY_OPERATORS=["void","throw",...m,...y,...T];const g=t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const x=t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");const b=t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},9753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=ensureBlock;var s=r(1815);function ensureBlock(e,t="body"){const r=(0,s.default)(e[t],e);e[t]=r;return r}},5124:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=gatherSequenceExpressions;var s=r(7812);var n=r(277);var i=r(5790);var a=r(6536);var o=r(1036);function gatherSequenceExpressions(e,t){const r=[];let l=true;for(const c of e){if(!(0,n.isEmptyStatement)(c)){l=false}if((0,n.isExpression)(c)){r.push(c)}else if((0,n.isExpressionStatement)(c)){r.push(c.expression)}else if((0,n.isVariableDeclaration)(c)){if(c.kind!=="var")return;for(const e of c.declarations){const n=(0,s.default)(e);for(const e of Object.keys(n)){t.push({kind:c.kind,id:(0,o.default)(n[e])})}if(e.init){r.push((0,i.assignmentExpression)("=",e.id,e.init))}}l=true}else if((0,n.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t):(0,a.buildUndefinedNode)();const s=c.alternate?gatherSequenceExpressions([c.alternate],t):(0,a.buildUndefinedNode)();if(!e||!s)return;r.push((0,i.conditionalExpression)(c.test,e,s))}else if((0,n.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t);if(!e)return;r.push(e)}else if((0,n.isEmptyStatement)(c)){if(e.indexOf(c)===0){l=true}}else{return}}if(l){r.push((0,a.buildUndefinedNode)())}if(r.length===1){return r[0]}else{return(0,i.sequenceExpression)(r)}}},4407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toBindingIdentifierName;var s=r(7659);function toBindingIdentifierName(e){e=(0,s.default)(e);if(e==="eval"||e==="arguments")e="_"+e;return e}},1815:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toBlock;var s=r(277);var n=r(5790);function toBlock(e,t){if((0,s.isBlockStatement)(e)){return e}let r=[];if((0,s.isEmptyStatement)(e)){r=[]}else{if(!(0,s.isStatement)(e)){if((0,s.isFunction)(t)){e=(0,n.returnStatement)(e)}else{e=(0,n.expressionStatement)(e)}}r=[e]}return(0,n.blockStatement)(r)}},8248:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toComputedKey;var s=r(277);var n=r(5790);function toComputedKey(e,t=e.key||e.property){if(!e.computed&&(0,s.isIdentifier)(t))t=(0,n.stringLiteral)(t.name);return t}},4698:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(277);var n=t["default"]=toExpression;function toExpression(e){if((0,s.isExpressionStatement)(e)){e=e.expression}if((0,s.isExpression)(e)){return e}if((0,s.isClass)(e)){e.type="ClassExpression"}else if((0,s.isFunction)(e)){e.type="FunctionExpression"}if(!(0,s.isExpression)(e)){throw new Error(`cannot turn ${e.type} to an expression`)}return e}},7659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toIdentifier;var s=r(7070);var n=r(8008);function toIdentifier(e){e=e+"";let t="";for(const r of e){t+=(0,n.isIdentifierChar)(r.codePointAt(0))?r:"-"}t=t.replace(/^[-0-9]+/,"");t=t.replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}));if(!(0,s.default)(t)){t=`_${t}`}return t||"_"}},8837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toKeyAlias;var s=r(277);var n=r(1036);var i=r(4270);function toKeyAlias(e,t=e.key){let r;if(e.kind==="method"){return toKeyAlias.increment()+""}else if((0,s.isIdentifier)(t)){r=t.name}else if((0,s.isStringLiteral)(t)){r=JSON.stringify(t.value)}else{r=JSON.stringify((0,i.default)((0,n.default)(t)))}if(e.computed){r=`[${r}]`}if(e.static){r=`static:${r}`}return r}toKeyAlias.uid=0;toKeyAlias.increment=function(){if(toKeyAlias.uid>=Number.MAX_SAFE_INTEGER){return toKeyAlias.uid=0}else{return toKeyAlias.uid++}}},7651:function(e,t,r){"use strict";var s;s={value:true};t["default"]=toSequenceExpression;var n=r(5124);function toSequenceExpression(e,t){if(!(e!=null&&e.length))return;const r=[];const s=(0,n.default)(e,r);if(!s)return;for(const e of r){t.push(e)}return s}},4075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(277);var n=r(5790);var i=t["default"]=toStatement;function toStatement(e,t){if((0,s.isStatement)(e)){return e}let r=false;let i;if((0,s.isClass)(e)){r=true;i="ClassDeclaration"}else if((0,s.isFunction)(e)){r=true;i="FunctionDeclaration"}else if((0,s.isAssignmentExpression)(e)){return(0,n.expressionStatement)(e)}if(r&&!e.id){i=false}if(!i){if(t){return false}else{throw new Error(`cannot turn ${e.type} to a statement`)}}e.type=i;return e}},1461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(7070);var n=r(5790);var i=t["default"]=valueToNode;const a=Function.call.bind(Object.prototype.toString);function isRegExp(e){return a(e)==="[object RegExp]"}function isPlainObject(e){if(typeof e!=="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]"){return false}const t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function valueToNode(e){if(e===undefined){return(0,n.identifier)("undefined")}if(e===true||e===false){return(0,n.booleanLiteral)(e)}if(e===null){return(0,n.nullLiteral)()}if(typeof e==="string"){return(0,n.stringLiteral)(e)}if(typeof e==="number"){let t;if(Number.isFinite(e)){t=(0,n.numericLiteral)(Math.abs(e))}else{let r;if(Number.isNaN(e)){r=(0,n.numericLiteral)(0)}else{r=(0,n.numericLiteral)(1)}t=(0,n.binaryExpression)("/",r,(0,n.numericLiteral)(0))}if(e<0||Object.is(e,-0)){t=(0,n.unaryExpression)("-",t)}return t}if(isRegExp(e)){const t=e.source;const r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,n.regExpLiteral)(t,r)}if(Array.isArray(e)){return(0,n.arrayExpression)(e.map(valueToNode))}if(isPlainObject(e)){const t=[];for(const r of Object.keys(e)){let i;if((0,s.default)(r)){i=(0,n.identifier)(r)}else{i=(0,n.stringLiteral)(r)}t.push((0,n.objectProperty)(i,valueToNode(e[r])))}return(0,n.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}},2643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var s=r(2819);var n=r(7070);var i=r(8008);var a=r(4506);var o=r(3369);var l=r(111);const c=(0,l.defineAliasedType)("Standardized");c("ArrayExpression",{fields:{elements:{validate:(0,l.arrayOf)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:undefined}},visitor:["elements"],aliases:["Expression"]});c("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("string"):Object.assign(function(){const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS);const t=(0,l.assertOneOf)("=");return function(r,n,i){const a=(0,s.default)("Pattern",r.left)?t:e;a(r,n,i)}}(),{type:"string"})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal","OptionalMemberExpression"):(0,l.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});c("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression");const t=(0,l.assertNodeType)("Expression","PrivateName");const r=Object.assign((function(r,s,n){const i=r.operator==="in"?t:e;i(r,s,n)}),{oneOfNodeTypes:["Expression","PrivateName"]});return r}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});c("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}});c("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}});c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}});c("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"]});c("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder")},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,l.assertValueType)("boolean"),optional:true}}:{},{typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});c("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});c("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"]});c("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("DebuggerStatement",{aliases:["Statement"]});c("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"]});c("EmptyStatement",{aliases:["Statement"]});c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});c("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")),optional:true},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:true}}});c("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","LVal"):(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:true},test:{validate:(0,l.assertNodeType)("Expression"),optional:true},update:{validate:(0,l.assertNodeType)("Expression"),optional:true},body:{validate:(0,l.assertNodeType)("Statement")}}});const functionCommon=()=>({params:(0,l.validateArrayOfType)("Identifier","Pattern","RestElement"),generator:{default:false},async:{default:false}});t.functionCommon=functionCommon;const functionTypeAnnotationCommon=()=>({returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true}});t.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=()=>Object.assign({},functionCommon(),{declare:{validate:(0,l.assertValueType)("boolean"),optional:true},id:{validate:(0,l.assertNodeType)("Identifier"),optional:true}});t.functionDeclarationCommon=functionDeclarationCommon;c("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},functionDeclarationCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,n){if(!(0,s.default)("ExportDefaultDeclaration",t)){e(n,"id",n.id)}}}()});c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});const patternLikeCommon=()=>({typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},optional:{validate:(0,l.assertValueType)("boolean"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}});t.patternLikeCommon=patternLikeCommon;c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!(0,n.default)(r,false)){throw new TypeError(`"${r}" is not a valid identifier name`)}}),{type:"string"})):(0,l.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){const n=/\.(\w+)$/.exec(t);if(!n)return;const[,a]=n;const o={computed:false};if(a==="property"){if((0,s.default)("MemberExpression",e,o))return;if((0,s.default)("OptionalMemberExpression",e,o))return}else if(a==="key"){if((0,s.default)("Property",e,o))return;if((0,s.default)("Method",e,o))return}else if(a==="exported"){if((0,s.default)("ExportSpecifier",e))return}else if(a==="imported"){if((0,s.default)("ImportSpecifier",e,{imported:r}))return}else if(a==="meta"){if((0,s.default)("MetaProperty",e,{meta:r}))return}if(((0,i.isKeyword)(r.name)||(0,i.isReservedWord)(r.name,false))&&r.name!=="this"){throw new TypeError(`"${r.name}" is not a valid identifier`)}}:undefined});c("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:true,validate:(0,l.assertNodeType)("Statement")}}});c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.chain)((0,l.assertValueType)("number"),Object.assign((function(e,t,r){if(1/r<0||!Number.isFinite(r)){const e=new Error("NumericLiterals must be non-negative finite numbers. "+`You can use t.valueToNode(${r}) instead.`);{}}}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});c("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("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,r){const s=/[^gimsuy]/.exec(r);if(s){throw new TypeError(`"${s[0]}" is not a valid RegExp flag`)}}),{type:"string"})):(0,l.assertValueType)("string"),default:""}}});c("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}});c("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName");const t=(0,l.assertNodeType)("Expression");const validator=function(r,s,n){const i=r.computed?t:e;i(r,s,n)};validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"];return validator}()},computed:{default:false}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,l.assertValueType)("boolean"),optional:true}}:{})});c("NewExpression",{inherits:"CallExpression"});c("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:true},directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,l.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});c("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:false},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const t=(0,l.assertNodeType)("Expression");const validator=function(r,s,n){const i=r.computed?t:e;i(r,s,n)};validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"];return validator}()},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});c("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:false},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName");const t=(0,l.assertNodeType)("Expression");const r=Object.assign((function(r,s,n){const i=r.computed?t:e;i(r,s,n)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]});return r}()},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,r){if(!r)return;if(e.computed){throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}if(!(0,s.default)("Identifier",e.key)){throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,l.assertValueType)("boolean"),default:false},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion");const t=(0,l.assertNodeType)("Expression");return function(r,n,i){const a=(0,s.default)("ObjectPattern",r)?e:t;a(i,"value",i.value)}}()});c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,s,n]=r;if(e[s].length>+n+1){throw new TypeError(`RestElement must be last element of ${s}`)}}:undefined});c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:true}}});c("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,l.validateArrayOfType)("Expression")},aliases:["Expression"]});c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}});c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:true},consequent:(0,l.validateArrayOfType)("Statement")}});c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:(0,l.validateArrayOfType)("SwitchCase")}});c("ThisExpression",{aliases:["Expression"]});c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("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 new TypeError("TryStatement expects either a handler or finalizer, or both")}}),{oneOfNodeTypes:["BlockStatement"]})):(0,l.assertNodeType)("BlockStatement")},handler:{optional:true,validate:(0,l.assertNodeType)("CatchClause")},finalizer:{optional:true,validate:(0,l.assertNodeType)("BlockStatement")}}});c("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:true},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});c("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:false},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Expression"):(0,l.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});c("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:true},kind:{validate:(0,l.assertOneOf)("var","let","const","using","await using")},declarations:(0,l.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,l.assertNodeType)("Identifier");return function(t,r,n){if((0,s.default)("ForXStatement",t,{left:n})){if(n.declarations.length!==1){throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}}else{n.declarations.forEach((t=>{if(!t.init)e(t,"id",t.id)}))}}})():undefined});c("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:true,validate:(0,l.assertValueType)("boolean")},init:{optional:true,validate:(0,l.assertNodeType)("Expression")}}});c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{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:true}})});c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike","LVal")))}})});c("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});c("ClassBody",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});c("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:true}}});c("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},abstract:{validate:(0,l.assertValueType)("boolean"),optional:true}},validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,n){if(!(0,s.default)("ExportDefaultDeclaration",t)){e(n,"id",n.id)}}}()});const p=t.importAttributes={attributes:{optional:true,validate:(0,l.arrayOfType)("ImportAttribute")},assertions:{deprecated:true,optional:true,validate:(0,l.arrayOfType)("ImportAttribute")}};c("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"))},p)});c("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"))}});c("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:true,validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length){throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}if(r&&e.source){throw new TypeError("Cannot export a declaration from a source")}}),{oneOfNodeTypes:["Declaration"]})):(0,l.assertNodeType)("Declaration")}},p,{specifiers:{default:[],validate:(0,l.arrayOf)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier");const t=(0,l.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return e;return Object.assign((function(r,s,n){const i=r.source?e:t;i(r,s,n)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:true},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))})});c("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:true}}});c("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING){return(0,l.assertNodeType)("VariableDeclaration","LVal")}const e=(0,l.assertNodeType)("VariableDeclaration");const t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,n,i){if((0,s.default)("VariableDeclaration",i)){e(r,n,i)}else{t(r,n,i)}}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:false}}});c("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},p,{module:{optional:true,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:true}})});c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}});c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}});c("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:true}}});c("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:true}}});c("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,r){let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0,s.default)("Identifier",e.property,{name:n})){throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]})):(0,l.assertNodeType)("Identifier")},property:{validate:(0,l.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon=()=>({abstract:{validate:(0,l.assertValueType)("boolean"),optional:true},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:true},static:{default:false},override:{default:false},computed:{default:false},optional:{validate:(0,l.assertValueType)("boolean"),optional:true},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const t=(0,l.assertNodeType)("Expression");return function(r,s,n){const i=r.computed?t:e;i(r,s,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=()=>Object.assign({},functionCommon(),classMethodOrPropertyCommon(),{params:(0,l.validateArrayOfType)("Identifier","Pattern","RestElement","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:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}});t.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon;c("ClassMethod",{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({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")}})});c("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{properties:(0,l.validateArrayOfType)("RestElement","ObjectProperty")})});c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("Super",{aliases:["Expression"]});c("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:true}}});c("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:true}}),(function templateElementCookedValidator(e){const t=e.value.raw;let r=false;const error=()=>{throw new Error("Internal @babel/types error.")};const{str:s,firstInvalidLoc:n}=(0,a.readStringContents)("template",t,0,0,0,{unterminated(){r=true},strictNumericEscape:error,invalidEscapeSequence:error,numericSeparatorInEscapeSequence:error,unexpectedNumericSeparator:error,invalidDigit:error,invalidCodePoint:error});if(!r)throw new Error("Invalid raw");e.value.cooked=n?null:s}))},tail:{default:false}}});c("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,r){if(e.quasis.length!==r.length+1){throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)}}))}}});c("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument){throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}}),{type:"boolean"})):(0,l.assertValueType)("boolean"),default:false},argument:{optional:true,validate:(0,l.assertNodeType)("Expression")}}});c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("Import",{aliases:["Expression"]});c("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}});c("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier");const t=(0,l.assertNodeType)("Expression");const r=Object.assign((function(r,s,n){const i=r.computed?t:e;i(r,s,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:false},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("boolean"):(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)())}}});c("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,l.assertNodeType)("Expression")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("boolean"):(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)())},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:true}}});c("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},classMethodOrPropertyCommon(),{value:{validate:(0,l.assertNodeType)("Expression"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}})});c("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},classMethodOrPropertyCommon(),{key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName");const t=(0,l.assertNodeType)("Expression");return function(r,s,n){const i=r.computed?t:e;i(r,s,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,l.assertNodeType)("Expression"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}})});c("ClassPrivateProperty",{visitor:["decorators","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:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},static:{validate:(0,l.assertValueType)("boolean"),default:false},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}}});c("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{kind:{validate:(0,l.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,l.assertNodeType)("PrivateName")},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")}}});c("StaticBlock",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})},5944:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEPRECATED_ALIASES=void 0;const r=t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},7562:function(e,t,r){"use strict";var s=r(111);(0,s.default)("ArgumentPlaceholder",{});(0,s.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,s.assertNodeType)("Expression")},callee:{validate:(0,s.assertNodeType)("Expression")}}});(0,s.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,s.assertNodeType)("StringLiteral")}}});(0,s.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}});(0,s.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,s.assertNodeType)("BlockStatement")},async:{validate:(0,s.assertValueType)("boolean"),default:false}}});(0,s.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}});(0,s.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,s.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,s.default)("TupleExpression",{fields:{elements:{validate:(0,s.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});{(0,s.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]})}(0,s.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,s.assertNodeType)("Program")}},aliases:["Expression"]});(0,s.default)("TopicReference",{aliases:["Expression"]});(0,s.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression"]});(0,s.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression"]});(0,s.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})},7096:function(e,t,r){"use strict";var s=r(2643);var n=r(111);const i=(0,n.defineAliasedType)("Flow");const defineInterfaceishType=e=>{const t=e==="DeclareClass";i(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),implements:(0,n.validateOptional)((0,n.arrayOfType)("ClassImplements"))}:{},{body:(0,n.validateType)("ObjectTypeAnnotation")})})};i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,n.validateType)("FlowType")}});i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("DeclareClass");i("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),predicate:(0,n.validateOptionalType)("DeclaredPredicate")}});defineInterfaceishType("DeclareInterface");i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("BlockStatement"),kind:(0,n.validateOptional)((0,n.assertOneOf)("CommonJS","ES"))}});i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,n.validateType)("TypeAnnotation")}});i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}});i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateOptionalType)("FlowType")}});i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier")}});i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,n.validateOptionalType)("Flow"),specifiers:(0,n.validateOptional)((0,n.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,n.validateOptionalType)("StringLiteral"),default:(0,n.validateOptional)((0,n.assertValueType)("boolean"))},s.importAttributes)});i("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,n.validateType)("StringLiteral"),exportKind:(0,n.validateOptional)((0,n.assertOneOf)("type","value"))},s.importAttributes)});i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,n.validateType)("Flow")}});i("ExistsTypeAnnotation",{aliases:["FlowType"]});i("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),params:(0,n.validateArrayOfType)("FunctionTypeParam"),rest:(0,n.validateOptionalType)("FunctionTypeParam"),this:(0,n.validateOptionalType)("FunctionTypeParam"),returnType:(0,n.validateType)("FlowType")}});i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,n.validateOptionalType)("Identifier"),typeAnnotation:(0,n.validateType)("FlowType"),optional:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}});i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});i("InferredPredicate",{aliases:["FlowPredicate"]});i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("InterfaceDeclaration");i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),body:(0,n.validateType)("ObjectTypeAnnotation")}});i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}});i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("number"))}});i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,n.validate)((0,n.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,n.arrayOfType)("ObjectTypeIndexer"),optional:true,default:[]},callProperties:{validate:(0,n.arrayOfType)("ObjectTypeCallProperty"),optional:true,default:[]},internalSlots:{validate:(0,n.arrayOfType)("ObjectTypeInternalSlot"),optional:true,default:[]},exact:{validate:(0,n.assertValueType)("boolean"),default:false},inexact:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}});i("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateType)("Identifier"),value:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean")),static:(0,n.validate)((0,n.assertValueType)("boolean")),method:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateOptionalType)("Identifier"),key:(0,n.validateType)("FlowType"),value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance")}});i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,n.validateType)("Identifier","StringLiteral"),value:(0,n.validateType)("FlowType"),kind:(0,n.validate)((0,n.assertOneOf)("init","get","set")),static:(0,n.validate)((0,n.assertValueType)("boolean")),proto:(0,n.validate)((0,n.assertValueType)("boolean")),optional:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance"),method:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,n.validateType)("FlowType")}});i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateType)("FlowType")}});i("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,n.validateType)("Identifier"),qualification:(0,n.validateType)("Identifier","QualifiedTypeIdentifier")}});i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("string"))}});i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,n.validateType)("FlowType")}});i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}});i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}});i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TypeAnnotation")}});i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,n.validate)((0,n.assertValueType)("string")),bound:(0,n.validateOptionalType)("TypeAnnotation"),default:(0,n.validateOptionalType)("FlowType"),variance:(0,n.validateOptionalType)("Variance")}});i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("TypeParameter"))}});i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});i("Variance",{builder:["kind"],fields:{kind:(0,n.validate)((0,n.assertOneOf)("minus","plus"))}});i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,n.validateType)("Identifier"),body:(0,n.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});i("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("BooleanLiteral")}});i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("NumericLiteral")}});i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("StringLiteral")}});i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}});i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType")}});i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean"))}})},6462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ALIAS_KEYS",{enumerable:true,get:function(){return s.ALIAS_KEYS}});Object.defineProperty(t,"BUILDER_KEYS",{enumerable:true,get:function(){return s.BUILDER_KEYS}});Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:true,get:function(){return i.DEPRECATED_ALIASES}});Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:true,get:function(){return s.DEPRECATED_KEYS}});Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:true,get:function(){return s.FLIPPED_ALIAS_KEYS}});Object.defineProperty(t,"NODE_FIELDS",{enumerable:true,get:function(){return s.NODE_FIELDS}});Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:true,get:function(){return s.NODE_PARENT_VALIDATIONS}});Object.defineProperty(t,"PLACEHOLDERS",{enumerable:true,get:function(){return n.PLACEHOLDERS}});Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:true,get:function(){return n.PLACEHOLDERS_ALIAS}});Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:true,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}});t.TYPES=void 0;Object.defineProperty(t,"VISITOR_KEYS",{enumerable:true,get:function(){return s.VISITOR_KEYS}});r(2643);r(7096);r(9803);r(8016);r(7562);r(1903);var s=r(111);var n=r(8302);var i=r(5944);Object.keys(i.DEPRECATED_ALIASES).forEach((e=>{s.FLIPPED_ALIAS_KEYS[e]=s.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[e]]}));const a=t.TYPES=[].concat(Object.keys(s.VISITOR_KEYS),Object.keys(s.FLIPPED_ALIAS_KEYS),Object.keys(s.DEPRECATED_KEYS))},9803:function(e,t,r){"use strict";var s=r(111);const n=(0,s.defineAliasedType)("JSX");n("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:true,validate:(0,s.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});n("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});n("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,s.assertNodeType)("JSXOpeningElement")},closingElement:{optional:true,validate:(0,s.assertNodeType)("JSXClosingElement")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,s.assertValueType)("boolean"),optional:true}})});n("JSXEmptyExpression",{});n("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression","JSXEmptyExpression")}}});n("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}});n("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}});n("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,s.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,s.assertNodeType)("JSXIdentifier")}}});n("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,s.assertNodeType)("JSXIdentifier")},name:{validate:(0,s.assertNodeType)("JSXIdentifier")}}});n("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:false},attributes:(0,s.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true}}});n("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}});n("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}});n("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,s.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,s.assertNodeType)("JSXClosingFragment")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});n("JSXOpeningFragment",{aliases:["Immutable"]});n("JSXClosingFragment",{aliases:["Immutable"]})},8016:function(e,t,r){"use strict";var s=r(111);var n=r(8302);var i=r(2643);const a=(0,s.defineAliasedType)("Miscellaneous");{a("Noop",{visitor:[]})}a("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,s.assertNodeType)("Identifier")},expectedNode:{validate:(0,s.assertOneOf)(...n.PLACEHOLDERS)}},(0,i.patternLikeCommon)())});a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}})},8302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var s=r(111);const n=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];const i=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of n){const t=s.ALIAS_KEYS[e];if(t!=null&&t.length)i[e]=t}const a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(i).forEach((e=>{i[e].forEach((t=>{if(!hasOwnProperty.call(a,t)){a[t]=[]}a[t].push(e)}))}))},1903:function(e,t,r){"use strict";var s=r(111);var n=r(2643);var i=r(2819);const a=(0,s.defineAliasedType)("TypeScript");const o=(0,s.assertValueType)("boolean");const tSFunctionTypeAnnotationCommon=()=>({returnType:{validate:(0,s.assertNodeType)("TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:true}});a("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:true},readonly:{validate:(0,s.assertValueType)("boolean"),optional:true},parameter:{validate:(0,s.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,s.assertValueType)("boolean"),optional:true},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:true}}});a("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,n.functionDeclarationCommon)(),tSFunctionTypeAnnotationCommon())});a("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,n.classMethodOrDeclareMethodCommon)(),tSFunctionTypeAnnotationCommon())});a("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,s.validateType)("TSEntityName"),right:(0,s.validateType)("Identifier")}});const signatureDeclarationCommon=()=>({typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,s.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,s.validateOptionalType)("TSTypeAnnotation")});const l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon()};a("TSCallSignatureDeclaration",l);a("TSConstructSignatureDeclaration",l);const namedTypeElementCommon=()=>({key:(0,s.validateType)("Expression"),computed:{default:false},optional:(0,s.validateOptional)(o)});a("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},namedTypeElementCommon(),{readonly:(0,s.validateOptional)(o),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0,s.assertOneOf)("get","set")}})});a("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon(),namedTypeElementCommon(),{kind:{validate:(0,s.assertOneOf)("method","get","set")}})});a("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,s.validateOptional)(o),static:(0,s.validateOptional)(o),parameters:(0,s.validateArrayOfType)("Identifier"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation")}});const c=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of c){a(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}})}a("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};a("TSFunctionType",Object.assign({},p,{fields:signatureDeclarationCommon()}));a("TSConstructorType",Object.assign({},p,{fields:Object.assign({},signatureDeclarationCommon(),{abstract:(0,s.validateOptional)(o)})}));a("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}});a("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,s.validateType)("Identifier","TSThisType"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),asserts:(0,s.validateOptional)(o)}});a("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,s.validateType)("TSEntityName","TSImportType"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}});a("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,s.validateArrayOfType)("TSTypeElement")}});a("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,s.validateType)("TSType")}});a("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,s.validateArrayOfType)("TSType","TSNamedTupleMember")}});a("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}});a("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}});a("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,s.validateType)("Identifier"),optional:{validate:o,default:false},elementType:(0,s.validateType)("TSType")}});const u={aliases:["TSType"],visitor:["types"],fields:{types:(0,s.validateArrayOfType)("TSType")}};a("TSUnionType",u);a("TSIntersectionType",u);a("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,s.validateType)("TSType"),extendsType:(0,s.validateType)("TSType"),trueType:(0,s.validateType)("TSType"),falseType:(0,s.validateType)("TSType")}});a("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,s.validateType)("TSTypeParameter")}});a("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}});a("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,s.validate)((0,s.assertValueType)("string")),typeAnnotation:(0,s.validateType)("TSType")}});a("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,s.validateType)("TSType"),indexType:(0,s.validateType)("TSType")}});a("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,s.validateType)("TSTypeParameter")},{readonly:(0,s.validateOptional)((0,s.assertOneOf)(true,false,"+","-")),optional:(0,s.validateOptional)((0,s.assertOneOf)(true,false,"+","-")),typeAnnotation:(0,s.validateOptionalType)("TSType"),nameType:(0,s.validateOptionalType)("TSType")})});a("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,s.assertNodeType)("NumericLiteral","BigIntLiteral");const t=(0,s.assertOneOf)("-");const r=(0,s.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function validator(s,n,a){if((0,i.default)("UnaryExpression",a)){t(a,"operator",a.operator);e(a,"argument",a.argument)}else{r(s,n,a)}}validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"];return validator}()}}});const f={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}};{a("TSExpressionWithTypeArguments",f)}a("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,s.validateOptional)(o),id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,s.validateOptional)((0,s.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,s.validateType)("TSInterfaceBody")}});a("TSInterfaceBody",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("TSTypeElement")}});a("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,s.validateOptional)(o),id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,s.validateType)("TSType")}});a("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("Expression"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}});const d={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TSType")}};a("TSAsExpression",d);a("TSSatisfiesExpression",d);a("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,s.validateType)("TSType"),expression:(0,s.validateType)("Expression")}});a("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,s.validateOptional)(o),const:(0,s.validateOptional)(o),id:(0,s.validateType)("Identifier"),members:(0,s.validateArrayOfType)("TSEnumMember"),initializer:(0,s.validateOptionalType)("Expression")}});a("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,s.validateType)("Identifier","StringLiteral"),initializer:(0,s.validateOptionalType)("Expression")}});a("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,s.assertOneOf)("global","module","namespace")},declare:(0,s.validateOptional)(o)},{global:(0,s.validateOptional)(o)},{id:(0,s.validateType)("Identifier","StringLiteral"),body:(0,s.validateType)("TSModuleBlock","TSModuleDeclaration")})});a("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,s.validateArrayOfType)("Statement")}});a("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,s.validateType)("StringLiteral"),qualifier:(0,s.validateOptionalType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,s.assertNodeType)("Expression"),optional:true}}});a("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,s.validate)(o),id:(0,s.validateType)("Identifier"),moduleReference:(0,s.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,s.assertOneOf)("type","value"),optional:true}}});a("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,s.validateType)("StringLiteral")}});a("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,s.validateType)("Expression")}});a("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,s.validateType)("Expression")}});a("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,s.validateType)("Identifier")}});a("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,s.assertNodeType)("TSType")}}});a("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,s.validateArrayOfType)("TSType")}});a("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,s.validateArrayOfType)("TSTypeParameter")}});a("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,s.assertValueType)("string")},in:{validate:(0,s.assertValueType)("boolean"),optional:true},out:{validate:(0,s.assertValueType)("boolean"),optional:true},const:{validate:(0,s.assertValueType)("boolean"),optional:true},constraint:{validate:(0,s.assertNodeType)("TSType"),optional:true},default:{validate:(0,s.assertNodeType)("TSType"),optional:true}}})},111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0;t.arrayOf=arrayOf;t.arrayOfType=arrayOfType;t.assertEach=assertEach;t.assertNodeOrValueType=assertNodeOrValueType;t.assertNodeType=assertNodeType;t.assertOneOf=assertOneOf;t.assertOptionalChainStart=assertOptionalChainStart;t.assertShape=assertShape;t.assertValueType=assertValueType;t.chain=chain;t["default"]=defineType;t.defineAliasedType=defineAliasedType;t.validate=validate;t.validateArrayOfType=validateArrayOfType;t.validateOptional=validateOptional;t.validateOptionalType=validateOptionalType;t.validateType=validateType;var s=r(2819);var n=r(1549);const i=t.VISITOR_KEYS={};const a=t.ALIAS_KEYS={};const o=t.FLIPPED_ALIAS_KEYS={};const l=t.NODE_FIELDS={};const c=t.BUILDER_KEYS={};const p=t.DEPRECATED_KEYS={};const u=t.NODE_PARENT_VALIDATIONS={};function getType(e){if(Array.isArray(e)){return"array"}else if(e===null){return"null"}else{return typeof e}}function validate(e){return{validate:e}}function validateType(...e){return validate(assertNodeType(...e))}function validateOptional(e){return{validate:e,optional:true}}function validateOptionalType(...e){return{validate:assertNodeType(...e),optional:true}}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(...e){return arrayOf(assertNodeType(...e))}function validateArrayOfType(...e){return validate(arrayOfType(...e))}function assertEach(e){const t=process.env.BABEL_TYPES_8_BREAKING?n.validateChild:()=>{};function validator(r,s,n){if(!Array.isArray(n))return;for(let i=0;i<n.length;i++){const a=`${s}[${i}]`;const o=n[i];e(r,a,o);t(r,a,o)}}validator.each=e;return validator}function assertOneOf(...e){function validate(t,r,s){if(!e.includes(s)){throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}}validate.oneOf=e;return validate}function assertNodeType(...e){function validate(t,r,i){for(const a of e){if((0,s.default)(a,i)){(0,n.validateChild)(t,r,i);return}}throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}validate.oneOfNodeTypes=e;return validate}function assertNodeOrValueType(...e){function validate(t,r,i){for(const a of e){if(getType(i)===a||(0,s.default)(a,i)){(0,n.validateChild)(t,r,i);return}}throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}validate.oneOfNodeOrValueTypes=e;return validate}function assertValueType(e){function validate(t,r,s){const n=getType(s)===e;if(!n){throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(s)}`)}}validate.type=e;return validate}function assertShape(e){function validate(t,r,s){const i=[];for(const r of Object.keys(e)){try{(0,n.validateField)(t,r,s[r],e[r])}catch(e){if(e instanceof TypeError){i.push(e.message);continue}throw e}}if(i.length){throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\n${i.join("\n")}`)}}validate.shapeOf=e;return validate}function assertOptionalChainStart(){function validate(e){var t;let r=e;while(e){const{type:e}=r;if(e==="OptionalCallExpression"){if(r.optional)return;r=r.callee;continue}if(e==="OptionalMemberExpression"){if(r.optional)return;r=r.object;continue}break}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(t=r)==null?void 0:t.type}`)}return validate}function chain(...e){function validate(...t){for(const r of e){r(...t)}}validate.chainOf=e;if(e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1])){throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`)}return validate}const f=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]);const d=new Set(["default","optional","deprecated","validate"]);const h={};function defineAliasedType(...e){return(t,r={})=>{let s=r.aliases;if(!s){var n,i;if(r.inherits)s=(n=h[r.inherits].aliases)==null?void 0:n.slice();(i=s)!=null?i:s=[];r.aliases=s}const a=e.filter((e=>!s.includes(e)));s.unshift(...a);defineType(t,r)}}function defineType(e,t={}){const r=t.inherits&&h[t.inherits]||{};let s=t.fields;if(!s){s={};if(r.fields){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t];const n=e.default;if(Array.isArray(n)?n.length>0:n&&typeof n==="object"){throw new Error("field defaults can only be primitives or empty arrays currently")}s[t]={default:Array.isArray(n)?[]:n,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}}const n=t.visitor||r.visitor||[];const m=t.aliases||r.aliases||[];const y=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t)){if(!f.has(r)){throw new Error(`Unknown type option "${r}" on ${e}`)}}if(t.deprecatedAlias){p[t.deprecatedAlias]=e}for(const e of n.concat(y)){s[e]=s[e]||{}}for(const t of Object.keys(s)){const r=s[t];if(r.default!==undefined&&!y.includes(t)){r.optional=true}if(r.default===undefined){r.default=null}else if(!r.validate&&r.default!=null){r.validate=assertValueType(getType(r.default))}for(const s of Object.keys(r)){if(!d.has(s)){throw new Error(`Unknown field key "${s}" on ${e}.${t}`)}}}i[e]=t.visitor=n;c[e]=t.builder=y;l[e]=t.fields=s;a[e]=t.aliases=m;m.forEach((t=>{o[t]=o[t]||[];o[t].push(e)}));if(t.validate){u[e]=t.validate}h[e]=t}},9175:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s={react:true,assertNode:true,createTypeAnnotationBasedOnTypeof:true,createUnionTypeAnnotation:true,createFlowUnionType:true,createTSUnionType:true,cloneNode:true,clone:true,cloneDeep:true,cloneDeepWithoutLoc:true,cloneWithoutLoc:true,addComment:true,addComments:true,inheritInnerComments:true,inheritLeadingComments:true,inheritsComments:true,inheritTrailingComments:true,removeComments:true,ensureBlock:true,toBindingIdentifierName:true,toBlock:true,toComputedKey:true,toExpression:true,toIdentifier:true,toKeyAlias:true,toStatement:true,valueToNode:true,appendToMemberExpression:true,inherits:true,prependToMemberExpression:true,removeProperties:true,removePropertiesDeep:true,removeTypeDuplicates:true,getAssignmentIdentifiers:true,getBindingIdentifiers:true,getOuterBindingIdentifiers:true,getFunctionName:true,traverse:true,traverseFast:true,shallowEqual:true,is:true,isBinding:true,isBlockScoped:true,isImmutable:true,isLet:true,isNode:true,isNodesEquivalent:true,isPlaceholderType:true,isReferenced:true,isScope:true,isSpecifierDefault:true,isType:true,isValidES3Identifier:true,isValidIdentifier:true,isVar:true,matchesPattern:true,validate:true,buildMatchMemberExpression:true,__internal__deprecationWarning:true};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:true,get:function(){return Te.default}});Object.defineProperty(t,"addComment",{enumerable:true,get:function(){return x.default}});Object.defineProperty(t,"addComments",{enumerable:true,get:function(){return b.default}});Object.defineProperty(t,"appendToMemberExpression",{enumerable:true,get:function(){return R.default}});Object.defineProperty(t,"assertNode",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:true,get:function(){return me.default}});Object.defineProperty(t,"clone",{enumerable:true,get:function(){return y.default}});Object.defineProperty(t,"cloneDeep",{enumerable:true,get:function(){return T.default}});Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:true,get:function(){return S.default}});Object.defineProperty(t,"cloneNode",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"cloneWithoutLoc",{enumerable:true,get:function(){return g.default}});Object.defineProperty(t,"createFlowUnionType",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"createTSUnionType",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"ensureBlock",{enumerable:true,get:function(){return O.default}});Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:true,get:function(){return J.default}});Object.defineProperty(t,"getBindingIdentifiers",{enumerable:true,get:function(){return X.default}});Object.defineProperty(t,"getFunctionName",{enumerable:true,get:function(){return Y.default}});Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:true,get:function(){return H.default}});Object.defineProperty(t,"inheritInnerComments",{enumerable:true,get:function(){return E.default}});Object.defineProperty(t,"inheritLeadingComments",{enumerable:true,get:function(){return P.default}});Object.defineProperty(t,"inheritTrailingComments",{enumerable:true,get:function(){return v.default}});Object.defineProperty(t,"inherits",{enumerable:true,get:function(){return K.default}});Object.defineProperty(t,"inheritsComments",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"is",{enumerable:true,get:function(){return Q.default}});Object.defineProperty(t,"isBinding",{enumerable:true,get:function(){return Z.default}});Object.defineProperty(t,"isBlockScoped",{enumerable:true,get:function(){return ee.default}});Object.defineProperty(t,"isImmutable",{enumerable:true,get:function(){return te.default}});Object.defineProperty(t,"isLet",{enumerable:true,get:function(){return re.default}});Object.defineProperty(t,"isNode",{enumerable:true,get:function(){return se.default}});Object.defineProperty(t,"isNodesEquivalent",{enumerable:true,get:function(){return ne.default}});Object.defineProperty(t,"isPlaceholderType",{enumerable:true,get:function(){return ie.default}});Object.defineProperty(t,"isReferenced",{enumerable:true,get:function(){return ae.default}});Object.defineProperty(t,"isScope",{enumerable:true,get:function(){return oe.default}});Object.defineProperty(t,"isSpecifierDefault",{enumerable:true,get:function(){return le.default}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return ce.default}});Object.defineProperty(t,"isValidES3Identifier",{enumerable:true,get:function(){return pe.default}});Object.defineProperty(t,"isValidIdentifier",{enumerable:true,get:function(){return ue.default}});Object.defineProperty(t,"isVar",{enumerable:true,get:function(){return fe.default}});Object.defineProperty(t,"matchesPattern",{enumerable:true,get:function(){return de.default}});Object.defineProperty(t,"prependToMemberExpression",{enumerable:true,get:function(){return U.default}});t.react=void 0;Object.defineProperty(t,"removeComments",{enumerable:true,get:function(){return I.default}});Object.defineProperty(t,"removeProperties",{enumerable:true,get:function(){return V.default}});Object.defineProperty(t,"removePropertiesDeep",{enumerable:true,get:function(){return W.default}});Object.defineProperty(t,"removeTypeDuplicates",{enumerable:true,get:function(){return q.default}});Object.defineProperty(t,"shallowEqual",{enumerable:true,get:function(){return z.default}});Object.defineProperty(t,"toBindingIdentifierName",{enumerable:true,get:function(){return N.default}});Object.defineProperty(t,"toBlock",{enumerable:true,get:function(){return k.default}});Object.defineProperty(t,"toComputedKey",{enumerable:true,get:function(){return D.default}});Object.defineProperty(t,"toExpression",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"toIdentifier",{enumerable:true,get:function(){return M.default}});Object.defineProperty(t,"toKeyAlias",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"toStatement",{enumerable:true,get:function(){return B.default}});Object.defineProperty(t,"traverse",{enumerable:true,get:function(){return G.default}});Object.defineProperty(t,"traverseFast",{enumerable:true,get:function(){return $.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return he.default}});Object.defineProperty(t,"valueToNode",{enumerable:true,get:function(){return F.default}});var n=r(1105);var i=r(1857);var a=r(4455);var o=r(169);var l=r(6553);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var c=r(6221);var p=r(5398);var u=r(5910);var f=r(5790);Object.keys(f).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}));var d=r(2902);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));var h=r(6536);Object.keys(h).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===h[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return h[e]}})}));var m=r(1036);var y=r(6652);var T=r(7698);var S=r(9192);var g=r(4714);var x=r(672);var b=r(2751);var E=r(3547);var P=r(1325);var A=r(3278);var v=r(6003);var I=r(2274);var C=r(3559);Object.keys(C).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===C[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return C[e]}})}));var w=r(3369);Object.keys(w).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===w[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return w[e]}})}));var O=r(9753);var N=r(4407);var k=r(1815);var D=r(8248);var L=r(4698);var M=r(7659);var _=r(8837);var B=r(4075);var F=r(1461);var j=r(6462);Object.keys(j).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===j[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return j[e]}})}));var R=r(980);var K=r(1697);var U=r(2852);var V=r(7744);var W=r(4270);var q=r(5322);var J=r(7884);var X=r(7812);var H=r(6959);var Y=r(4724);var G=r(2430);Object.keys(G).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===G[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return G[e]}})}));var $=r(8868);var z=r(8165);var Q=r(2819);var Z=r(5678);var ee=r(9710);var te=r(3783);var re=r(7514);var se=r(55);var ne=r(9378);var ie=r(450);var ae=r(7716);var oe=r(5663);var le=r(3562);var ce=r(2747);var pe=r(7515);var ue=r(7070);var fe=r(1406);var de=r(5366);var he=r(1549);var me=r(3830);var ye=r(277);Object.keys(ye).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(s,e))return;if(e in t&&t[e]===ye[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return ye[e]}})}));var Te=r(3479);const Se=t.react={isReactComponent:n.default,isCompatTag:i.default,buildChildren:a.default};{t.toSequenceExpression=r(7651)["default"]}if(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!")}},980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=appendToMemberExpression;var s=r(5790);function appendToMemberExpression(e,t,r=false){e.object=(0,s.memberExpression)(e.object,e.property,e.computed);e.property=t;e.computed=!!r;return e}},5322:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeTypeDuplicates;var s=r(277);function getQualifiedName(e){return(0,s.isIdentifier)(e)?e.name:`${e.id.name}.${getQualifiedName(e.qualification)}`}function removeTypeDuplicates(e){const t=Array.from(e);const r=new Map;const n=new Map;const i=new Set;const a=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o)continue;if(a.includes(o)){continue}if((0,s.isAnyTypeAnnotation)(o)){return[o]}if((0,s.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0,s.isUnionTypeAnnotation)(o)){if(!i.has(o.types)){t.push(...o.types);i.add(o.types)}continue}if((0,s.isGenericTypeAnnotation)(o)){const e=getQualifiedName(o.id);if(r.has(e)){let t=r.get(e);if(t.typeParameters){if(o.typeParameters){t.typeParameters.params.push(...o.typeParameters.params);t.typeParameters.params=removeTypeDuplicates(t.typeParameters.params)}}else{t=o.typeParameters}}else{r.set(e,o)}continue}a.push(o)}for(const[,e]of n){a.push(e)}for(const[,e]of r){a.push(e)}return a}},1697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inherits;var s=r(3369);var n=r(3278);function inherits(e,t){if(!e||!t)return e;for(const r of s.INHERIT_KEYS.optional){if(e[r]==null){e[r]=t[r]}}for(const r of Object.keys(t)){if(r[0]==="_"&&r!=="__clone"){e[r]=t[r]}}for(const r of s.INHERIT_KEYS.force){e[r]=t[r]}(0,n.default)(e,t);return e}},2852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=prependToMemberExpression;var s=r(5790);var n=r(9175);function prependToMemberExpression(e,t){if((0,n.isSuper)(e.object)){throw new Error("Cannot prepend node to super property access (`super.foo`).")}e.object=(0,s.memberExpression)(t,e.object);return e}},7744:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeProperties;var s=r(3369);const n=["tokens","start","end","loc","raw","rawValue"];const i=[...s.COMMENT_KEYS,"comments",...n];function removeProperties(e,t={}){const r=t.preserveComments?n:i;for(const t of r){if(e[t]!=null)e[t]=undefined}for(const t of Object.keys(e)){if(t[0]==="_"&&e[t]!=null)e[t]=undefined}const s=Object.getOwnPropertySymbols(e);for(const t of s){e[t]=null}}},4270:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removePropertiesDeep;var s=r(8868);var n=r(7744);function removePropertiesDeep(e,t){(0,s.default)(e,n.default,t);return e}},8395:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeTypeDuplicates;var s=r(277);function getQualifiedName(e){return(0,s.isIdentifier)(e)?e.name:`${e.right.name}.${getQualifiedName(e.left)}`}function removeTypeDuplicates(e){const t=Array.from(e);const r=new Map;const n=new Map;const i=new Set;const a=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o)continue;if(a.includes(o)){continue}if((0,s.isTSAnyKeyword)(o)){return[o]}if((0,s.isTSBaseType)(o)){n.set(o.type,o);continue}if((0,s.isTSUnionType)(o)){if(!i.has(o.types)){t.push(...o.types);i.add(o.types)}continue}if((0,s.isTSTypeReference)(o)&&o.typeParameters){const e=getQualifiedName(o.typeName);if(r.has(e)){let t=r.get(e);if(t.typeParameters){if(o.typeParameters){t.typeParameters.params.push(...o.typeParameters.params);t.typeParameters.params=removeTypeDuplicates(t.typeParameters.params)}}else{t=o.typeParameters}}else{r.set(e,o)}continue}a.push(o)}for(const[,e]of n){a.push(e)}for(const[,e]of r){a.push(e)}return a}},7884:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getAssignmentIdentifiers;function getAssignmentIdentifiers(e){const t=[].concat(e);const r=Object.create(null);while(t.length){const e=t.pop();if(!e)continue;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":if(e.operator==="delete"){t.push(e.argument)}break;case"Identifier":r[e.name]=e;break;default:break}}return r}},7812:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getBindingIdentifiers;var s=r(277);function getBindingIdentifiers(e,t,r,n){const i=[].concat(e);const a=Object.create(null);while(i.length){const e=i.shift();if(!e)continue;if(n&&((0,s.isAssignmentExpression)(e)||(0,s.isUnaryExpression)(e)||(0,s.isUpdateExpression)(e))){continue}if((0,s.isIdentifier)(e)){if(t){const t=a[e.name]=a[e.name]||[];t.push(e)}else{a[e.name]=e}continue}if((0,s.isExportDeclaration)(e)&&!(0,s.isExportAllDeclaration)(e)){if((0,s.isDeclaration)(e.declaration)){i.push(e.declaration)}continue}if(r){if((0,s.isFunctionDeclaration)(e)){i.push(e.id);continue}if((0,s.isFunctionExpression)(e)){continue}}const o=getBindingIdentifiers.keys[e.type];if(o){for(let t=0;t<o.length;t++){const r=o[t];const s=e[r];if(s){if(Array.isArray(s)){i.push(...s)}else{i.push(s)}}}}}return a}const n={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"],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"]};getBindingIdentifiers.keys=n},4724:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getFunctionName;var s=r(277);function getNameFromLiteralId(e){if((0,s.isNullLiteral)(e)){return"null"}if((0,s.isRegExpLiteral)(e)){return`/${e.pattern}/${e.flags}`}if((0,s.isTemplateLiteral)(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return String(e.value)}return null}function getObjectMemberKey(e){if(!e.computed||(0,s.isLiteral)(e.key)){return e.key}}function getFunctionName(e,t){if("id"in e&&e.id){return{name:e.id.name,originalNode:e.id}}let r="";let n;if((0,s.isObjectProperty)(t,{value:e})){n=getObjectMemberKey(t)}else if((0,s.isObjectMethod)(e)||(0,s.isClassMethod)(e)){n=getObjectMemberKey(e);if(e.kind==="get")r="get ";else if(e.kind==="set")r="set "}else if((0,s.isVariableDeclarator)(t,{init:e})){n=t.id}else if((0,s.isAssignmentExpression)(t,{operator:"=",right:e})){n=t.left}if(!n)return null;const i=(0,s.isLiteral)(n)?getNameFromLiteralId(n):(0,s.isIdentifier)(n)?n.name:(0,s.isPrivateName)(n)?n.id.name:null;if(i==null)return null;return{name:r+i,originalNode:n}}},6959:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(7812);var n=t["default"]=getOuterBindingIdentifiers;function getOuterBindingIdentifiers(e,t){return(0,s.default)(e,t,true)}},2430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=traverse;var s=r(6462);function traverse(e,t,r){if(typeof t==="function"){t={enter:t}}const{enter:s,exit:n}=t;traverseSimpleImpl(e,s,n,r,[])}function traverseSimpleImpl(e,t,r,n,i){const a=s.VISITOR_KEYS[e.type];if(!a)return;if(t)t(e,i,n);for(const s of a){const a=e[s];if(Array.isArray(a)){for(let o=0;o<a.length;o++){const l=a[o];if(!l)continue;i.push({node:e,key:s,index:o});traverseSimpleImpl(l,t,r,n,i);i.pop()}}else if(a){i.push({node:e,key:s});traverseSimpleImpl(a,t,r,n,i);i.pop()}}if(r)r(e,i,n)}},8868:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=traverseFast;var s=r(6462);function traverseFast(e,t,r){if(!e)return;const n=s.VISITOR_KEYS[e.type];if(!n)return;r=r||{};t(e,r);for(const s of n){const n=e[s];if(Array.isArray(n)){for(const e of n){traverseFast(e,t,r)}}else{traverseFast(n,t,r)}}}},3479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=deprecationWarning;const r=new Set;function deprecationWarning(e,t,s=""){if(r.has(e))return;r.add(e);const{internal:n,trace:i}=captureShortStackTrace(1,2);if(n){return}console.warn(`${s}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${i}`)}function captureShortStackTrace(e,t){const{stackTraceLimit:r,prepareStackTrace:s}=Error;let n;Error.stackTraceLimit=1+e+t;Error.prepareStackTrace=function(e,t){n=t};(new Error).stack;Error.stackTraceLimit=r;Error.prepareStackTrace=s;if(!n)return{internal:false,trace:""};const i=n.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map((e=>` at ${e}`)).join("\n")}}},2834:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inherit;function inherit(e,t,r){if(t&&r){t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean)))}}},7796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cleanJSXElementLiteralChild;var s=r(5790);var n=r(9175);function cleanJSXElementLiteralChild(e,t){const r=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<r.length;e++){if(/[^ \t]/.exec(r[e])){i=e}}let a="";for(let e=0;e<r.length;e++){const t=r[e];const s=e===0;const n=e===r.length-1;const o=e===i;let l=t.replace(/\t/g," ");if(!s){l=l.replace(/^ +/,"")}if(!n){l=l.replace(/ +$/,"")}if(l){if(!o){l+=" "}a+=l}}if(a)t.push((0,n.inherits)((0,s.stringLiteral)(a),e))}},8165:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=shallowEqual;function shallowEqual(e,t){const r=Object.keys(t);for(const s of r){if(e[s]!==t[s]){return false}}return true}},3830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=buildMatchMemberExpression;var s=r(5366);function buildMatchMemberExpression(e,t){const r=e.split(".");return e=>(0,s.default)(e,r,t)}},277:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAccessor=isAccessor;t.isAnyTypeAnnotation=isAnyTypeAnnotation;t.isArgumentPlaceholder=isArgumentPlaceholder;t.isArrayExpression=isArrayExpression;t.isArrayPattern=isArrayPattern;t.isArrayTypeAnnotation=isArrayTypeAnnotation;t.isArrowFunctionExpression=isArrowFunctionExpression;t.isAssignmentExpression=isAssignmentExpression;t.isAssignmentPattern=isAssignmentPattern;t.isAwaitExpression=isAwaitExpression;t.isBigIntLiteral=isBigIntLiteral;t.isBinary=isBinary;t.isBinaryExpression=isBinaryExpression;t.isBindExpression=isBindExpression;t.isBlock=isBlock;t.isBlockParent=isBlockParent;t.isBlockStatement=isBlockStatement;t.isBooleanLiteral=isBooleanLiteral;t.isBooleanLiteralTypeAnnotation=isBooleanLiteralTypeAnnotation;t.isBooleanTypeAnnotation=isBooleanTypeAnnotation;t.isBreakStatement=isBreakStatement;t.isCallExpression=isCallExpression;t.isCatchClause=isCatchClause;t.isClass=isClass;t.isClassAccessorProperty=isClassAccessorProperty;t.isClassBody=isClassBody;t.isClassDeclaration=isClassDeclaration;t.isClassExpression=isClassExpression;t.isClassImplements=isClassImplements;t.isClassMethod=isClassMethod;t.isClassPrivateMethod=isClassPrivateMethod;t.isClassPrivateProperty=isClassPrivateProperty;t.isClassProperty=isClassProperty;t.isCompletionStatement=isCompletionStatement;t.isConditional=isConditional;t.isConditionalExpression=isConditionalExpression;t.isContinueStatement=isContinueStatement;t.isDebuggerStatement=isDebuggerStatement;t.isDecimalLiteral=isDecimalLiteral;t.isDeclaration=isDeclaration;t.isDeclareClass=isDeclareClass;t.isDeclareExportAllDeclaration=isDeclareExportAllDeclaration;t.isDeclareExportDeclaration=isDeclareExportDeclaration;t.isDeclareFunction=isDeclareFunction;t.isDeclareInterface=isDeclareInterface;t.isDeclareModule=isDeclareModule;t.isDeclareModuleExports=isDeclareModuleExports;t.isDeclareOpaqueType=isDeclareOpaqueType;t.isDeclareTypeAlias=isDeclareTypeAlias;t.isDeclareVariable=isDeclareVariable;t.isDeclaredPredicate=isDeclaredPredicate;t.isDecorator=isDecorator;t.isDirective=isDirective;t.isDirectiveLiteral=isDirectiveLiteral;t.isDoExpression=isDoExpression;t.isDoWhileStatement=isDoWhileStatement;t.isEmptyStatement=isEmptyStatement;t.isEmptyTypeAnnotation=isEmptyTypeAnnotation;t.isEnumBody=isEnumBody;t.isEnumBooleanBody=isEnumBooleanBody;t.isEnumBooleanMember=isEnumBooleanMember;t.isEnumDeclaration=isEnumDeclaration;t.isEnumDefaultedMember=isEnumDefaultedMember;t.isEnumMember=isEnumMember;t.isEnumNumberBody=isEnumNumberBody;t.isEnumNumberMember=isEnumNumberMember;t.isEnumStringBody=isEnumStringBody;t.isEnumStringMember=isEnumStringMember;t.isEnumSymbolBody=isEnumSymbolBody;t.isExistsTypeAnnotation=isExistsTypeAnnotation;t.isExportAllDeclaration=isExportAllDeclaration;t.isExportDeclaration=isExportDeclaration;t.isExportDefaultDeclaration=isExportDefaultDeclaration;t.isExportDefaultSpecifier=isExportDefaultSpecifier;t.isExportNamedDeclaration=isExportNamedDeclaration;t.isExportNamespaceSpecifier=isExportNamespaceSpecifier;t.isExportSpecifier=isExportSpecifier;t.isExpression=isExpression;t.isExpressionStatement=isExpressionStatement;t.isExpressionWrapper=isExpressionWrapper;t.isFile=isFile;t.isFlow=isFlow;t.isFlowBaseAnnotation=isFlowBaseAnnotation;t.isFlowDeclaration=isFlowDeclaration;t.isFlowPredicate=isFlowPredicate;t.isFlowType=isFlowType;t.isFor=isFor;t.isForInStatement=isForInStatement;t.isForOfStatement=isForOfStatement;t.isForStatement=isForStatement;t.isForXStatement=isForXStatement;t.isFunction=isFunction;t.isFunctionDeclaration=isFunctionDeclaration;t.isFunctionExpression=isFunctionExpression;t.isFunctionParent=isFunctionParent;t.isFunctionTypeAnnotation=isFunctionTypeAnnotation;t.isFunctionTypeParam=isFunctionTypeParam;t.isGenericTypeAnnotation=isGenericTypeAnnotation;t.isIdentifier=isIdentifier;t.isIfStatement=isIfStatement;t.isImmutable=isImmutable;t.isImport=isImport;t.isImportAttribute=isImportAttribute;t.isImportDeclaration=isImportDeclaration;t.isImportDefaultSpecifier=isImportDefaultSpecifier;t.isImportExpression=isImportExpression;t.isImportNamespaceSpecifier=isImportNamespaceSpecifier;t.isImportOrExportDeclaration=isImportOrExportDeclaration;t.isImportSpecifier=isImportSpecifier;t.isIndexedAccessType=isIndexedAccessType;t.isInferredPredicate=isInferredPredicate;t.isInterfaceDeclaration=isInterfaceDeclaration;t.isInterfaceExtends=isInterfaceExtends;t.isInterfaceTypeAnnotation=isInterfaceTypeAnnotation;t.isInterpreterDirective=isInterpreterDirective;t.isIntersectionTypeAnnotation=isIntersectionTypeAnnotation;t.isJSX=isJSX;t.isJSXAttribute=isJSXAttribute;t.isJSXClosingElement=isJSXClosingElement;t.isJSXClosingFragment=isJSXClosingFragment;t.isJSXElement=isJSXElement;t.isJSXEmptyExpression=isJSXEmptyExpression;t.isJSXExpressionContainer=isJSXExpressionContainer;t.isJSXFragment=isJSXFragment;t.isJSXIdentifier=isJSXIdentifier;t.isJSXMemberExpression=isJSXMemberExpression;t.isJSXNamespacedName=isJSXNamespacedName;t.isJSXOpeningElement=isJSXOpeningElement;t.isJSXOpeningFragment=isJSXOpeningFragment;t.isJSXSpreadAttribute=isJSXSpreadAttribute;t.isJSXSpreadChild=isJSXSpreadChild;t.isJSXText=isJSXText;t.isLVal=isLVal;t.isLabeledStatement=isLabeledStatement;t.isLiteral=isLiteral;t.isLogicalExpression=isLogicalExpression;t.isLoop=isLoop;t.isMemberExpression=isMemberExpression;t.isMetaProperty=isMetaProperty;t.isMethod=isMethod;t.isMiscellaneous=isMiscellaneous;t.isMixedTypeAnnotation=isMixedTypeAnnotation;t.isModuleDeclaration=isModuleDeclaration;t.isModuleExpression=isModuleExpression;t.isModuleSpecifier=isModuleSpecifier;t.isNewExpression=isNewExpression;t.isNoop=isNoop;t.isNullLiteral=isNullLiteral;t.isNullLiteralTypeAnnotation=isNullLiteralTypeAnnotation;t.isNullableTypeAnnotation=isNullableTypeAnnotation;t.isNumberLiteral=isNumberLiteral;t.isNumberLiteralTypeAnnotation=isNumberLiteralTypeAnnotation;t.isNumberTypeAnnotation=isNumberTypeAnnotation;t.isNumericLiteral=isNumericLiteral;t.isObjectExpression=isObjectExpression;t.isObjectMember=isObjectMember;t.isObjectMethod=isObjectMethod;t.isObjectPattern=isObjectPattern;t.isObjectProperty=isObjectProperty;t.isObjectTypeAnnotation=isObjectTypeAnnotation;t.isObjectTypeCallProperty=isObjectTypeCallProperty;t.isObjectTypeIndexer=isObjectTypeIndexer;t.isObjectTypeInternalSlot=isObjectTypeInternalSlot;t.isObjectTypeProperty=isObjectTypeProperty;t.isObjectTypeSpreadProperty=isObjectTypeSpreadProperty;t.isOpaqueType=isOpaqueType;t.isOptionalCallExpression=isOptionalCallExpression;t.isOptionalIndexedAccessType=isOptionalIndexedAccessType;t.isOptionalMemberExpression=isOptionalMemberExpression;t.isParenthesizedExpression=isParenthesizedExpression;t.isPattern=isPattern;t.isPatternLike=isPatternLike;t.isPipelineBareFunction=isPipelineBareFunction;t.isPipelinePrimaryTopicReference=isPipelinePrimaryTopicReference;t.isPipelineTopicExpression=isPipelineTopicExpression;t.isPlaceholder=isPlaceholder;t.isPrivate=isPrivate;t.isPrivateName=isPrivateName;t.isProgram=isProgram;t.isProperty=isProperty;t.isPureish=isPureish;t.isQualifiedTypeIdentifier=isQualifiedTypeIdentifier;t.isRecordExpression=isRecordExpression;t.isRegExpLiteral=isRegExpLiteral;t.isRegexLiteral=isRegexLiteral;t.isRestElement=isRestElement;t.isRestProperty=isRestProperty;t.isReturnStatement=isReturnStatement;t.isScopable=isScopable;t.isSequenceExpression=isSequenceExpression;t.isSpreadElement=isSpreadElement;t.isSpreadProperty=isSpreadProperty;t.isStandardized=isStandardized;t.isStatement=isStatement;t.isStaticBlock=isStaticBlock;t.isStringLiteral=isStringLiteral;t.isStringLiteralTypeAnnotation=isStringLiteralTypeAnnotation;t.isStringTypeAnnotation=isStringTypeAnnotation;t.isSuper=isSuper;t.isSwitchCase=isSwitchCase;t.isSwitchStatement=isSwitchStatement;t.isSymbolTypeAnnotation=isSymbolTypeAnnotation;t.isTSAnyKeyword=isTSAnyKeyword;t.isTSArrayType=isTSArrayType;t.isTSAsExpression=isTSAsExpression;t.isTSBaseType=isTSBaseType;t.isTSBigIntKeyword=isTSBigIntKeyword;t.isTSBooleanKeyword=isTSBooleanKeyword;t.isTSCallSignatureDeclaration=isTSCallSignatureDeclaration;t.isTSConditionalType=isTSConditionalType;t.isTSConstructSignatureDeclaration=isTSConstructSignatureDeclaration;t.isTSConstructorType=isTSConstructorType;t.isTSDeclareFunction=isTSDeclareFunction;t.isTSDeclareMethod=isTSDeclareMethod;t.isTSEntityName=isTSEntityName;t.isTSEnumDeclaration=isTSEnumDeclaration;t.isTSEnumMember=isTSEnumMember;t.isTSExportAssignment=isTSExportAssignment;t.isTSExpressionWithTypeArguments=isTSExpressionWithTypeArguments;t.isTSExternalModuleReference=isTSExternalModuleReference;t.isTSFunctionType=isTSFunctionType;t.isTSImportEqualsDeclaration=isTSImportEqualsDeclaration;t.isTSImportType=isTSImportType;t.isTSIndexSignature=isTSIndexSignature;t.isTSIndexedAccessType=isTSIndexedAccessType;t.isTSInferType=isTSInferType;t.isTSInstantiationExpression=isTSInstantiationExpression;t.isTSInterfaceBody=isTSInterfaceBody;t.isTSInterfaceDeclaration=isTSInterfaceDeclaration;t.isTSIntersectionType=isTSIntersectionType;t.isTSIntrinsicKeyword=isTSIntrinsicKeyword;t.isTSLiteralType=isTSLiteralType;t.isTSMappedType=isTSMappedType;t.isTSMethodSignature=isTSMethodSignature;t.isTSModuleBlock=isTSModuleBlock;t.isTSModuleDeclaration=isTSModuleDeclaration;t.isTSNamedTupleMember=isTSNamedTupleMember;t.isTSNamespaceExportDeclaration=isTSNamespaceExportDeclaration;t.isTSNeverKeyword=isTSNeverKeyword;t.isTSNonNullExpression=isTSNonNullExpression;t.isTSNullKeyword=isTSNullKeyword;t.isTSNumberKeyword=isTSNumberKeyword;t.isTSObjectKeyword=isTSObjectKeyword;t.isTSOptionalType=isTSOptionalType;t.isTSParameterProperty=isTSParameterProperty;t.isTSParenthesizedType=isTSParenthesizedType;t.isTSPropertySignature=isTSPropertySignature;t.isTSQualifiedName=isTSQualifiedName;t.isTSRestType=isTSRestType;t.isTSSatisfiesExpression=isTSSatisfiesExpression;t.isTSStringKeyword=isTSStringKeyword;t.isTSSymbolKeyword=isTSSymbolKeyword;t.isTSThisType=isTSThisType;t.isTSTupleType=isTSTupleType;t.isTSType=isTSType;t.isTSTypeAliasDeclaration=isTSTypeAliasDeclaration;t.isTSTypeAnnotation=isTSTypeAnnotation;t.isTSTypeAssertion=isTSTypeAssertion;t.isTSTypeElement=isTSTypeElement;t.isTSTypeLiteral=isTSTypeLiteral;t.isTSTypeOperator=isTSTypeOperator;t.isTSTypeParameter=isTSTypeParameter;t.isTSTypeParameterDeclaration=isTSTypeParameterDeclaration;t.isTSTypeParameterInstantiation=isTSTypeParameterInstantiation;t.isTSTypePredicate=isTSTypePredicate;t.isTSTypeQuery=isTSTypeQuery;t.isTSTypeReference=isTSTypeReference;t.isTSUndefinedKeyword=isTSUndefinedKeyword;t.isTSUnionType=isTSUnionType;t.isTSUnknownKeyword=isTSUnknownKeyword;t.isTSVoidKeyword=isTSVoidKeyword;t.isTaggedTemplateExpression=isTaggedTemplateExpression;t.isTemplateElement=isTemplateElement;t.isTemplateLiteral=isTemplateLiteral;t.isTerminatorless=isTerminatorless;t.isThisExpression=isThisExpression;t.isThisTypeAnnotation=isThisTypeAnnotation;t.isThrowStatement=isThrowStatement;t.isTopicReference=isTopicReference;t.isTryStatement=isTryStatement;t.isTupleExpression=isTupleExpression;t.isTupleTypeAnnotation=isTupleTypeAnnotation;t.isTypeAlias=isTypeAlias;t.isTypeAnnotation=isTypeAnnotation;t.isTypeCastExpression=isTypeCastExpression;t.isTypeParameter=isTypeParameter;t.isTypeParameterDeclaration=isTypeParameterDeclaration;t.isTypeParameterInstantiation=isTypeParameterInstantiation;t.isTypeScript=isTypeScript;t.isTypeofTypeAnnotation=isTypeofTypeAnnotation;t.isUnaryExpression=isUnaryExpression;t.isUnaryLike=isUnaryLike;t.isUnionTypeAnnotation=isUnionTypeAnnotation;t.isUpdateExpression=isUpdateExpression;t.isUserWhitespacable=isUserWhitespacable;t.isV8IntrinsicIdentifier=isV8IntrinsicIdentifier;t.isVariableDeclaration=isVariableDeclaration;t.isVariableDeclarator=isVariableDeclarator;t.isVariance=isVariance;t.isVoidTypeAnnotation=isVoidTypeAnnotation;t.isWhile=isWhile;t.isWhileStatement=isWhileStatement;t.isWithStatement=isWithStatement;t.isYieldExpression=isYieldExpression;var s=r(8165);var n=r(3479);function isArrayExpression(e,t){if(!e)return false;if(e.type!=="ArrayExpression")return false;return t==null||(0,s.default)(e,t)}function isAssignmentExpression(e,t){if(!e)return false;if(e.type!=="AssignmentExpression")return false;return t==null||(0,s.default)(e,t)}function isBinaryExpression(e,t){if(!e)return false;if(e.type!=="BinaryExpression")return false;return t==null||(0,s.default)(e,t)}function isInterpreterDirective(e,t){if(!e)return false;if(e.type!=="InterpreterDirective")return false;return t==null||(0,s.default)(e,t)}function isDirective(e,t){if(!e)return false;if(e.type!=="Directive")return false;return t==null||(0,s.default)(e,t)}function isDirectiveLiteral(e,t){if(!e)return false;if(e.type!=="DirectiveLiteral")return false;return t==null||(0,s.default)(e,t)}function isBlockStatement(e,t){if(!e)return false;if(e.type!=="BlockStatement")return false;return t==null||(0,s.default)(e,t)}function isBreakStatement(e,t){if(!e)return false;if(e.type!=="BreakStatement")return false;return t==null||(0,s.default)(e,t)}function isCallExpression(e,t){if(!e)return false;if(e.type!=="CallExpression")return false;return t==null||(0,s.default)(e,t)}function isCatchClause(e,t){if(!e)return false;if(e.type!=="CatchClause")return false;return t==null||(0,s.default)(e,t)}function isConditionalExpression(e,t){if(!e)return false;if(e.type!=="ConditionalExpression")return false;return t==null||(0,s.default)(e,t)}function isContinueStatement(e,t){if(!e)return false;if(e.type!=="ContinueStatement")return false;return t==null||(0,s.default)(e,t)}function isDebuggerStatement(e,t){if(!e)return false;if(e.type!=="DebuggerStatement")return false;return t==null||(0,s.default)(e,t)}function isDoWhileStatement(e,t){if(!e)return false;if(e.type!=="DoWhileStatement")return false;return t==null||(0,s.default)(e,t)}function isEmptyStatement(e,t){if(!e)return false;if(e.type!=="EmptyStatement")return false;return t==null||(0,s.default)(e,t)}function isExpressionStatement(e,t){if(!e)return false;if(e.type!=="ExpressionStatement")return false;return t==null||(0,s.default)(e,t)}function isFile(e,t){if(!e)return false;if(e.type!=="File")return false;return t==null||(0,s.default)(e,t)}function isForInStatement(e,t){if(!e)return false;if(e.type!=="ForInStatement")return false;return t==null||(0,s.default)(e,t)}function isForStatement(e,t){if(!e)return false;if(e.type!=="ForStatement")return false;return t==null||(0,s.default)(e,t)}function isFunctionDeclaration(e,t){if(!e)return false;if(e.type!=="FunctionDeclaration")return false;return t==null||(0,s.default)(e,t)}function isFunctionExpression(e,t){if(!e)return false;if(e.type!=="FunctionExpression")return false;return t==null||(0,s.default)(e,t)}function isIdentifier(e,t){if(!e)return false;if(e.type!=="Identifier")return false;return t==null||(0,s.default)(e,t)}function isIfStatement(e,t){if(!e)return false;if(e.type!=="IfStatement")return false;return t==null||(0,s.default)(e,t)}function isLabeledStatement(e,t){if(!e)return false;if(e.type!=="LabeledStatement")return false;return t==null||(0,s.default)(e,t)}function isStringLiteral(e,t){if(!e)return false;if(e.type!=="StringLiteral")return false;return t==null||(0,s.default)(e,t)}function isNumericLiteral(e,t){if(!e)return false;if(e.type!=="NumericLiteral")return false;return t==null||(0,s.default)(e,t)}function isNullLiteral(e,t){if(!e)return false;if(e.type!=="NullLiteral")return false;return t==null||(0,s.default)(e,t)}function isBooleanLiteral(e,t){if(!e)return false;if(e.type!=="BooleanLiteral")return false;return t==null||(0,s.default)(e,t)}function isRegExpLiteral(e,t){if(!e)return false;if(e.type!=="RegExpLiteral")return false;return t==null||(0,s.default)(e,t)}function isLogicalExpression(e,t){if(!e)return false;if(e.type!=="LogicalExpression")return false;return t==null||(0,s.default)(e,t)}function isMemberExpression(e,t){if(!e)return false;if(e.type!=="MemberExpression")return false;return t==null||(0,s.default)(e,t)}function isNewExpression(e,t){if(!e)return false;if(e.type!=="NewExpression")return false;return t==null||(0,s.default)(e,t)}function isProgram(e,t){if(!e)return false;if(e.type!=="Program")return false;return t==null||(0,s.default)(e,t)}function isObjectExpression(e,t){if(!e)return false;if(e.type!=="ObjectExpression")return false;return t==null||(0,s.default)(e,t)}function isObjectMethod(e,t){if(!e)return false;if(e.type!=="ObjectMethod")return false;return t==null||(0,s.default)(e,t)}function isObjectProperty(e,t){if(!e)return false;if(e.type!=="ObjectProperty")return false;return t==null||(0,s.default)(e,t)}function isRestElement(e,t){if(!e)return false;if(e.type!=="RestElement")return false;return t==null||(0,s.default)(e,t)}function isReturnStatement(e,t){if(!e)return false;if(e.type!=="ReturnStatement")return false;return t==null||(0,s.default)(e,t)}function isSequenceExpression(e,t){if(!e)return false;if(e.type!=="SequenceExpression")return false;return t==null||(0,s.default)(e,t)}function isParenthesizedExpression(e,t){if(!e)return false;if(e.type!=="ParenthesizedExpression")return false;return t==null||(0,s.default)(e,t)}function isSwitchCase(e,t){if(!e)return false;if(e.type!=="SwitchCase")return false;return t==null||(0,s.default)(e,t)}function isSwitchStatement(e,t){if(!e)return false;if(e.type!=="SwitchStatement")return false;return t==null||(0,s.default)(e,t)}function isThisExpression(e,t){if(!e)return false;if(e.type!=="ThisExpression")return false;return t==null||(0,s.default)(e,t)}function isThrowStatement(e,t){if(!e)return false;if(e.type!=="ThrowStatement")return false;return t==null||(0,s.default)(e,t)}function isTryStatement(e,t){if(!e)return false;if(e.type!=="TryStatement")return false;return t==null||(0,s.default)(e,t)}function isUnaryExpression(e,t){if(!e)return false;if(e.type!=="UnaryExpression")return false;return t==null||(0,s.default)(e,t)}function isUpdateExpression(e,t){if(!e)return false;if(e.type!=="UpdateExpression")return false;return t==null||(0,s.default)(e,t)}function isVariableDeclaration(e,t){if(!e)return false;if(e.type!=="VariableDeclaration")return false;return t==null||(0,s.default)(e,t)}function isVariableDeclarator(e,t){if(!e)return false;if(e.type!=="VariableDeclarator")return false;return t==null||(0,s.default)(e,t)}function isWhileStatement(e,t){if(!e)return false;if(e.type!=="WhileStatement")return false;return t==null||(0,s.default)(e,t)}function isWithStatement(e,t){if(!e)return false;if(e.type!=="WithStatement")return false;return t==null||(0,s.default)(e,t)}function isAssignmentPattern(e,t){if(!e)return false;if(e.type!=="AssignmentPattern")return false;return t==null||(0,s.default)(e,t)}function isArrayPattern(e,t){if(!e)return false;if(e.type!=="ArrayPattern")return false;return t==null||(0,s.default)(e,t)}function isArrowFunctionExpression(e,t){if(!e)return false;if(e.type!=="ArrowFunctionExpression")return false;return t==null||(0,s.default)(e,t)}function isClassBody(e,t){if(!e)return false;if(e.type!=="ClassBody")return false;return t==null||(0,s.default)(e,t)}function isClassExpression(e,t){if(!e)return false;if(e.type!=="ClassExpression")return false;return t==null||(0,s.default)(e,t)}function isClassDeclaration(e,t){if(!e)return false;if(e.type!=="ClassDeclaration")return false;return t==null||(0,s.default)(e,t)}function isExportAllDeclaration(e,t){if(!e)return false;if(e.type!=="ExportAllDeclaration")return false;return t==null||(0,s.default)(e,t)}function isExportDefaultDeclaration(e,t){if(!e)return false;if(e.type!=="ExportDefaultDeclaration")return false;return t==null||(0,s.default)(e,t)}function isExportNamedDeclaration(e,t){if(!e)return false;if(e.type!=="ExportNamedDeclaration")return false;return t==null||(0,s.default)(e,t)}function isExportSpecifier(e,t){if(!e)return false;if(e.type!=="ExportSpecifier")return false;return t==null||(0,s.default)(e,t)}function isForOfStatement(e,t){if(!e)return false;if(e.type!=="ForOfStatement")return false;return t==null||(0,s.default)(e,t)}function isImportDeclaration(e,t){if(!e)return false;if(e.type!=="ImportDeclaration")return false;return t==null||(0,s.default)(e,t)}function isImportDefaultSpecifier(e,t){if(!e)return false;if(e.type!=="ImportDefaultSpecifier")return false;return t==null||(0,s.default)(e,t)}function isImportNamespaceSpecifier(e,t){if(!e)return false;if(e.type!=="ImportNamespaceSpecifier")return false;return t==null||(0,s.default)(e,t)}function isImportSpecifier(e,t){if(!e)return false;if(e.type!=="ImportSpecifier")return false;return t==null||(0,s.default)(e,t)}function isImportExpression(e,t){if(!e)return false;if(e.type!=="ImportExpression")return false;return t==null||(0,s.default)(e,t)}function isMetaProperty(e,t){if(!e)return false;if(e.type!=="MetaProperty")return false;return t==null||(0,s.default)(e,t)}function isClassMethod(e,t){if(!e)return false;if(e.type!=="ClassMethod")return false;return t==null||(0,s.default)(e,t)}function isObjectPattern(e,t){if(!e)return false;if(e.type!=="ObjectPattern")return false;return t==null||(0,s.default)(e,t)}function isSpreadElement(e,t){if(!e)return false;if(e.type!=="SpreadElement")return false;return t==null||(0,s.default)(e,t)}function isSuper(e,t){if(!e)return false;if(e.type!=="Super")return false;return t==null||(0,s.default)(e,t)}function isTaggedTemplateExpression(e,t){if(!e)return false;if(e.type!=="TaggedTemplateExpression")return false;return t==null||(0,s.default)(e,t)}function isTemplateElement(e,t){if(!e)return false;if(e.type!=="TemplateElement")return false;return t==null||(0,s.default)(e,t)}function isTemplateLiteral(e,t){if(!e)return false;if(e.type!=="TemplateLiteral")return false;return t==null||(0,s.default)(e,t)}function isYieldExpression(e,t){if(!e)return false;if(e.type!=="YieldExpression")return false;return t==null||(0,s.default)(e,t)}function isAwaitExpression(e,t){if(!e)return false;if(e.type!=="AwaitExpression")return false;return t==null||(0,s.default)(e,t)}function isImport(e,t){if(!e)return false;if(e.type!=="Import")return false;return t==null||(0,s.default)(e,t)}function isBigIntLiteral(e,t){if(!e)return false;if(e.type!=="BigIntLiteral")return false;return t==null||(0,s.default)(e,t)}function isExportNamespaceSpecifier(e,t){if(!e)return false;if(e.type!=="ExportNamespaceSpecifier")return false;return t==null||(0,s.default)(e,t)}function isOptionalMemberExpression(e,t){if(!e)return false;if(e.type!=="OptionalMemberExpression")return false;return t==null||(0,s.default)(e,t)}function isOptionalCallExpression(e,t){if(!e)return false;if(e.type!=="OptionalCallExpression")return false;return t==null||(0,s.default)(e,t)}function isClassProperty(e,t){if(!e)return false;if(e.type!=="ClassProperty")return false;return t==null||(0,s.default)(e,t)}function isClassAccessorProperty(e,t){if(!e)return false;if(e.type!=="ClassAccessorProperty")return false;return t==null||(0,s.default)(e,t)}function isClassPrivateProperty(e,t){if(!e)return false;if(e.type!=="ClassPrivateProperty")return false;return t==null||(0,s.default)(e,t)}function isClassPrivateMethod(e,t){if(!e)return false;if(e.type!=="ClassPrivateMethod")return false;return t==null||(0,s.default)(e,t)}function isPrivateName(e,t){if(!e)return false;if(e.type!=="PrivateName")return false;return t==null||(0,s.default)(e,t)}function isStaticBlock(e,t){if(!e)return false;if(e.type!=="StaticBlock")return false;return t==null||(0,s.default)(e,t)}function isAnyTypeAnnotation(e,t){if(!e)return false;if(e.type!=="AnyTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isArrayTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ArrayTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isBooleanTypeAnnotation(e,t){if(!e)return false;if(e.type!=="BooleanTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isBooleanLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="BooleanLiteralTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isNullLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NullLiteralTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isClassImplements(e,t){if(!e)return false;if(e.type!=="ClassImplements")return false;return t==null||(0,s.default)(e,t)}function isDeclareClass(e,t){if(!e)return false;if(e.type!=="DeclareClass")return false;return t==null||(0,s.default)(e,t)}function isDeclareFunction(e,t){if(!e)return false;if(e.type!=="DeclareFunction")return false;return t==null||(0,s.default)(e,t)}function isDeclareInterface(e,t){if(!e)return false;if(e.type!=="DeclareInterface")return false;return t==null||(0,s.default)(e,t)}function isDeclareModule(e,t){if(!e)return false;if(e.type!=="DeclareModule")return false;return t==null||(0,s.default)(e,t)}function isDeclareModuleExports(e,t){if(!e)return false;if(e.type!=="DeclareModuleExports")return false;return t==null||(0,s.default)(e,t)}function isDeclareTypeAlias(e,t){if(!e)return false;if(e.type!=="DeclareTypeAlias")return false;return t==null||(0,s.default)(e,t)}function isDeclareOpaqueType(e,t){if(!e)return false;if(e.type!=="DeclareOpaqueType")return false;return t==null||(0,s.default)(e,t)}function isDeclareVariable(e,t){if(!e)return false;if(e.type!=="DeclareVariable")return false;return t==null||(0,s.default)(e,t)}function isDeclareExportDeclaration(e,t){if(!e)return false;if(e.type!=="DeclareExportDeclaration")return false;return t==null||(0,s.default)(e,t)}function isDeclareExportAllDeclaration(e,t){if(!e)return false;if(e.type!=="DeclareExportAllDeclaration")return false;return t==null||(0,s.default)(e,t)}function isDeclaredPredicate(e,t){if(!e)return false;if(e.type!=="DeclaredPredicate")return false;return t==null||(0,s.default)(e,t)}function isExistsTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ExistsTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isFunctionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="FunctionTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isFunctionTypeParam(e,t){if(!e)return false;if(e.type!=="FunctionTypeParam")return false;return t==null||(0,s.default)(e,t)}function isGenericTypeAnnotation(e,t){if(!e)return false;if(e.type!=="GenericTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isInferredPredicate(e,t){if(!e)return false;if(e.type!=="InferredPredicate")return false;return t==null||(0,s.default)(e,t)}function isInterfaceExtends(e,t){if(!e)return false;if(e.type!=="InterfaceExtends")return false;return t==null||(0,s.default)(e,t)}function isInterfaceDeclaration(e,t){if(!e)return false;if(e.type!=="InterfaceDeclaration")return false;return t==null||(0,s.default)(e,t)}function isInterfaceTypeAnnotation(e,t){if(!e)return false;if(e.type!=="InterfaceTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isIntersectionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="IntersectionTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isMixedTypeAnnotation(e,t){if(!e)return false;if(e.type!=="MixedTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isEmptyTypeAnnotation(e,t){if(!e)return false;if(e.type!=="EmptyTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isNullableTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NullableTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isNumberLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NumberLiteralTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isNumberTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NumberTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ObjectTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeInternalSlot(e,t){if(!e)return false;if(e.type!=="ObjectTypeInternalSlot")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeCallProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeCallProperty")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeIndexer(e,t){if(!e)return false;if(e.type!=="ObjectTypeIndexer")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeProperty")return false;return t==null||(0,s.default)(e,t)}function isObjectTypeSpreadProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeSpreadProperty")return false;return t==null||(0,s.default)(e,t)}function isOpaqueType(e,t){if(!e)return false;if(e.type!=="OpaqueType")return false;return t==null||(0,s.default)(e,t)}function isQualifiedTypeIdentifier(e,t){if(!e)return false;if(e.type!=="QualifiedTypeIdentifier")return false;return t==null||(0,s.default)(e,t)}function isStringLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="StringLiteralTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isStringTypeAnnotation(e,t){if(!e)return false;if(e.type!=="StringTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isSymbolTypeAnnotation(e,t){if(!e)return false;if(e.type!=="SymbolTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isThisTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ThisTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isTupleTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TupleTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isTypeofTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TypeofTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isTypeAlias(e,t){if(!e)return false;if(e.type!=="TypeAlias")return false;return t==null||(0,s.default)(e,t)}function isTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isTypeCastExpression(e,t){if(!e)return false;if(e.type!=="TypeCastExpression")return false;return t==null||(0,s.default)(e,t)}function isTypeParameter(e,t){if(!e)return false;if(e.type!=="TypeParameter")return false;return t==null||(0,s.default)(e,t)}function isTypeParameterDeclaration(e,t){if(!e)return false;if(e.type!=="TypeParameterDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTypeParameterInstantiation(e,t){if(!e)return false;if(e.type!=="TypeParameterInstantiation")return false;return t==null||(0,s.default)(e,t)}function isUnionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="UnionTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isVariance(e,t){if(!e)return false;if(e.type!=="Variance")return false;return t==null||(0,s.default)(e,t)}function isVoidTypeAnnotation(e,t){if(!e)return false;if(e.type!=="VoidTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isEnumDeclaration(e,t){if(!e)return false;if(e.type!=="EnumDeclaration")return false;return t==null||(0,s.default)(e,t)}function isEnumBooleanBody(e,t){if(!e)return false;if(e.type!=="EnumBooleanBody")return false;return t==null||(0,s.default)(e,t)}function isEnumNumberBody(e,t){if(!e)return false;if(e.type!=="EnumNumberBody")return false;return t==null||(0,s.default)(e,t)}function isEnumStringBody(e,t){if(!e)return false;if(e.type!=="EnumStringBody")return false;return t==null||(0,s.default)(e,t)}function isEnumSymbolBody(e,t){if(!e)return false;if(e.type!=="EnumSymbolBody")return false;return t==null||(0,s.default)(e,t)}function isEnumBooleanMember(e,t){if(!e)return false;if(e.type!=="EnumBooleanMember")return false;return t==null||(0,s.default)(e,t)}function isEnumNumberMember(e,t){if(!e)return false;if(e.type!=="EnumNumberMember")return false;return t==null||(0,s.default)(e,t)}function isEnumStringMember(e,t){if(!e)return false;if(e.type!=="EnumStringMember")return false;return t==null||(0,s.default)(e,t)}function isEnumDefaultedMember(e,t){if(!e)return false;if(e.type!=="EnumDefaultedMember")return false;return t==null||(0,s.default)(e,t)}function isIndexedAccessType(e,t){if(!e)return false;if(e.type!=="IndexedAccessType")return false;return t==null||(0,s.default)(e,t)}function isOptionalIndexedAccessType(e,t){if(!e)return false;if(e.type!=="OptionalIndexedAccessType")return false;return t==null||(0,s.default)(e,t)}function isJSXAttribute(e,t){if(!e)return false;if(e.type!=="JSXAttribute")return false;return t==null||(0,s.default)(e,t)}function isJSXClosingElement(e,t){if(!e)return false;if(e.type!=="JSXClosingElement")return false;return t==null||(0,s.default)(e,t)}function isJSXElement(e,t){if(!e)return false;if(e.type!=="JSXElement")return false;return t==null||(0,s.default)(e,t)}function isJSXEmptyExpression(e,t){if(!e)return false;if(e.type!=="JSXEmptyExpression")return false;return t==null||(0,s.default)(e,t)}function isJSXExpressionContainer(e,t){if(!e)return false;if(e.type!=="JSXExpressionContainer")return false;return t==null||(0,s.default)(e,t)}function isJSXSpreadChild(e,t){if(!e)return false;if(e.type!=="JSXSpreadChild")return false;return t==null||(0,s.default)(e,t)}function isJSXIdentifier(e,t){if(!e)return false;if(e.type!=="JSXIdentifier")return false;return t==null||(0,s.default)(e,t)}function isJSXMemberExpression(e,t){if(!e)return false;if(e.type!=="JSXMemberExpression")return false;return t==null||(0,s.default)(e,t)}function isJSXNamespacedName(e,t){if(!e)return false;if(e.type!=="JSXNamespacedName")return false;return t==null||(0,s.default)(e,t)}function isJSXOpeningElement(e,t){if(!e)return false;if(e.type!=="JSXOpeningElement")return false;return t==null||(0,s.default)(e,t)}function isJSXSpreadAttribute(e,t){if(!e)return false;if(e.type!=="JSXSpreadAttribute")return false;return t==null||(0,s.default)(e,t)}function isJSXText(e,t){if(!e)return false;if(e.type!=="JSXText")return false;return t==null||(0,s.default)(e,t)}function isJSXFragment(e,t){if(!e)return false;if(e.type!=="JSXFragment")return false;return t==null||(0,s.default)(e,t)}function isJSXOpeningFragment(e,t){if(!e)return false;if(e.type!=="JSXOpeningFragment")return false;return t==null||(0,s.default)(e,t)}function isJSXClosingFragment(e,t){if(!e)return false;if(e.type!=="JSXClosingFragment")return false;return t==null||(0,s.default)(e,t)}function isNoop(e,t){if(!e)return false;if(e.type!=="Noop")return false;return t==null||(0,s.default)(e,t)}function isPlaceholder(e,t){if(!e)return false;if(e.type!=="Placeholder")return false;return t==null||(0,s.default)(e,t)}function isV8IntrinsicIdentifier(e,t){if(!e)return false;if(e.type!=="V8IntrinsicIdentifier")return false;return t==null||(0,s.default)(e,t)}function isArgumentPlaceholder(e,t){if(!e)return false;if(e.type!=="ArgumentPlaceholder")return false;return t==null||(0,s.default)(e,t)}function isBindExpression(e,t){if(!e)return false;if(e.type!=="BindExpression")return false;return t==null||(0,s.default)(e,t)}function isImportAttribute(e,t){if(!e)return false;if(e.type!=="ImportAttribute")return false;return t==null||(0,s.default)(e,t)}function isDecorator(e,t){if(!e)return false;if(e.type!=="Decorator")return false;return t==null||(0,s.default)(e,t)}function isDoExpression(e,t){if(!e)return false;if(e.type!=="DoExpression")return false;return t==null||(0,s.default)(e,t)}function isExportDefaultSpecifier(e,t){if(!e)return false;if(e.type!=="ExportDefaultSpecifier")return false;return t==null||(0,s.default)(e,t)}function isRecordExpression(e,t){if(!e)return false;if(e.type!=="RecordExpression")return false;return t==null||(0,s.default)(e,t)}function isTupleExpression(e,t){if(!e)return false;if(e.type!=="TupleExpression")return false;return t==null||(0,s.default)(e,t)}function isDecimalLiteral(e,t){if(!e)return false;if(e.type!=="DecimalLiteral")return false;return t==null||(0,s.default)(e,t)}function isModuleExpression(e,t){if(!e)return false;if(e.type!=="ModuleExpression")return false;return t==null||(0,s.default)(e,t)}function isTopicReference(e,t){if(!e)return false;if(e.type!=="TopicReference")return false;return t==null||(0,s.default)(e,t)}function isPipelineTopicExpression(e,t){if(!e)return false;if(e.type!=="PipelineTopicExpression")return false;return t==null||(0,s.default)(e,t)}function isPipelineBareFunction(e,t){if(!e)return false;if(e.type!=="PipelineBareFunction")return false;return t==null||(0,s.default)(e,t)}function isPipelinePrimaryTopicReference(e,t){if(!e)return false;if(e.type!=="PipelinePrimaryTopicReference")return false;return t==null||(0,s.default)(e,t)}function isTSParameterProperty(e,t){if(!e)return false;if(e.type!=="TSParameterProperty")return false;return t==null||(0,s.default)(e,t)}function isTSDeclareFunction(e,t){if(!e)return false;if(e.type!=="TSDeclareFunction")return false;return t==null||(0,s.default)(e,t)}function isTSDeclareMethod(e,t){if(!e)return false;if(e.type!=="TSDeclareMethod")return false;return t==null||(0,s.default)(e,t)}function isTSQualifiedName(e,t){if(!e)return false;if(e.type!=="TSQualifiedName")return false;return t==null||(0,s.default)(e,t)}function isTSCallSignatureDeclaration(e,t){if(!e)return false;if(e.type!=="TSCallSignatureDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSConstructSignatureDeclaration(e,t){if(!e)return false;if(e.type!=="TSConstructSignatureDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSPropertySignature(e,t){if(!e)return false;if(e.type!=="TSPropertySignature")return false;return t==null||(0,s.default)(e,t)}function isTSMethodSignature(e,t){if(!e)return false;if(e.type!=="TSMethodSignature")return false;return t==null||(0,s.default)(e,t)}function isTSIndexSignature(e,t){if(!e)return false;if(e.type!=="TSIndexSignature")return false;return t==null||(0,s.default)(e,t)}function isTSAnyKeyword(e,t){if(!e)return false;if(e.type!=="TSAnyKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSBooleanKeyword(e,t){if(!e)return false;if(e.type!=="TSBooleanKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSBigIntKeyword(e,t){if(!e)return false;if(e.type!=="TSBigIntKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSIntrinsicKeyword(e,t){if(!e)return false;if(e.type!=="TSIntrinsicKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSNeverKeyword(e,t){if(!e)return false;if(e.type!=="TSNeverKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSNullKeyword(e,t){if(!e)return false;if(e.type!=="TSNullKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSNumberKeyword(e,t){if(!e)return false;if(e.type!=="TSNumberKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSObjectKeyword(e,t){if(!e)return false;if(e.type!=="TSObjectKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSStringKeyword(e,t){if(!e)return false;if(e.type!=="TSStringKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSSymbolKeyword(e,t){if(!e)return false;if(e.type!=="TSSymbolKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSUndefinedKeyword(e,t){if(!e)return false;if(e.type!=="TSUndefinedKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSUnknownKeyword(e,t){if(!e)return false;if(e.type!=="TSUnknownKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSVoidKeyword(e,t){if(!e)return false;if(e.type!=="TSVoidKeyword")return false;return t==null||(0,s.default)(e,t)}function isTSThisType(e,t){if(!e)return false;if(e.type!=="TSThisType")return false;return t==null||(0,s.default)(e,t)}function isTSFunctionType(e,t){if(!e)return false;if(e.type!=="TSFunctionType")return false;return t==null||(0,s.default)(e,t)}function isTSConstructorType(e,t){if(!e)return false;if(e.type!=="TSConstructorType")return false;return t==null||(0,s.default)(e,t)}function isTSTypeReference(e,t){if(!e)return false;if(e.type!=="TSTypeReference")return false;return t==null||(0,s.default)(e,t)}function isTSTypePredicate(e,t){if(!e)return false;if(e.type!=="TSTypePredicate")return false;return t==null||(0,s.default)(e,t)}function isTSTypeQuery(e,t){if(!e)return false;if(e.type!=="TSTypeQuery")return false;return t==null||(0,s.default)(e,t)}function isTSTypeLiteral(e,t){if(!e)return false;if(e.type!=="TSTypeLiteral")return false;return t==null||(0,s.default)(e,t)}function isTSArrayType(e,t){if(!e)return false;if(e.type!=="TSArrayType")return false;return t==null||(0,s.default)(e,t)}function isTSTupleType(e,t){if(!e)return false;if(e.type!=="TSTupleType")return false;return t==null||(0,s.default)(e,t)}function isTSOptionalType(e,t){if(!e)return false;if(e.type!=="TSOptionalType")return false;return t==null||(0,s.default)(e,t)}function isTSRestType(e,t){if(!e)return false;if(e.type!=="TSRestType")return false;return t==null||(0,s.default)(e,t)}function isTSNamedTupleMember(e,t){if(!e)return false;if(e.type!=="TSNamedTupleMember")return false;return t==null||(0,s.default)(e,t)}function isTSUnionType(e,t){if(!e)return false;if(e.type!=="TSUnionType")return false;return t==null||(0,s.default)(e,t)}function isTSIntersectionType(e,t){if(!e)return false;if(e.type!=="TSIntersectionType")return false;return t==null||(0,s.default)(e,t)}function isTSConditionalType(e,t){if(!e)return false;if(e.type!=="TSConditionalType")return false;return t==null||(0,s.default)(e,t)}function isTSInferType(e,t){if(!e)return false;if(e.type!=="TSInferType")return false;return t==null||(0,s.default)(e,t)}function isTSParenthesizedType(e,t){if(!e)return false;if(e.type!=="TSParenthesizedType")return false;return t==null||(0,s.default)(e,t)}function isTSTypeOperator(e,t){if(!e)return false;if(e.type!=="TSTypeOperator")return false;return t==null||(0,s.default)(e,t)}function isTSIndexedAccessType(e,t){if(!e)return false;if(e.type!=="TSIndexedAccessType")return false;return t==null||(0,s.default)(e,t)}function isTSMappedType(e,t){if(!e)return false;if(e.type!=="TSMappedType")return false;return t==null||(0,s.default)(e,t)}function isTSLiteralType(e,t){if(!e)return false;if(e.type!=="TSLiteralType")return false;return t==null||(0,s.default)(e,t)}function isTSExpressionWithTypeArguments(e,t){if(!e)return false;if(e.type!=="TSExpressionWithTypeArguments")return false;return t==null||(0,s.default)(e,t)}function isTSInterfaceDeclaration(e,t){if(!e)return false;if(e.type!=="TSInterfaceDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSInterfaceBody(e,t){if(!e)return false;if(e.type!=="TSInterfaceBody")return false;return t==null||(0,s.default)(e,t)}function isTSTypeAliasDeclaration(e,t){if(!e)return false;if(e.type!=="TSTypeAliasDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSInstantiationExpression(e,t){if(!e)return false;if(e.type!=="TSInstantiationExpression")return false;return t==null||(0,s.default)(e,t)}function isTSAsExpression(e,t){if(!e)return false;if(e.type!=="TSAsExpression")return false;return t==null||(0,s.default)(e,t)}function isTSSatisfiesExpression(e,t){if(!e)return false;if(e.type!=="TSSatisfiesExpression")return false;return t==null||(0,s.default)(e,t)}function isTSTypeAssertion(e,t){if(!e)return false;if(e.type!=="TSTypeAssertion")return false;return t==null||(0,s.default)(e,t)}function isTSEnumDeclaration(e,t){if(!e)return false;if(e.type!=="TSEnumDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSEnumMember(e,t){if(!e)return false;if(e.type!=="TSEnumMember")return false;return t==null||(0,s.default)(e,t)}function isTSModuleDeclaration(e,t){if(!e)return false;if(e.type!=="TSModuleDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSModuleBlock(e,t){if(!e)return false;if(e.type!=="TSModuleBlock")return false;return t==null||(0,s.default)(e,t)}function isTSImportType(e,t){if(!e)return false;if(e.type!=="TSImportType")return false;return t==null||(0,s.default)(e,t)}function isTSImportEqualsDeclaration(e,t){if(!e)return false;if(e.type!=="TSImportEqualsDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSExternalModuleReference(e,t){if(!e)return false;if(e.type!=="TSExternalModuleReference")return false;return t==null||(0,s.default)(e,t)}function isTSNonNullExpression(e,t){if(!e)return false;if(e.type!=="TSNonNullExpression")return false;return t==null||(0,s.default)(e,t)}function isTSExportAssignment(e,t){if(!e)return false;if(e.type!=="TSExportAssignment")return false;return t==null||(0,s.default)(e,t)}function isTSNamespaceExportDeclaration(e,t){if(!e)return false;if(e.type!=="TSNamespaceExportDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TSTypeAnnotation")return false;return t==null||(0,s.default)(e,t)}function isTSTypeParameterInstantiation(e,t){if(!e)return false;if(e.type!=="TSTypeParameterInstantiation")return false;return t==null||(0,s.default)(e,t)}function isTSTypeParameterDeclaration(e,t){if(!e)return false;if(e.type!=="TSTypeParameterDeclaration")return false;return t==null||(0,s.default)(e,t)}function isTSTypeParameter(e,t){if(!e)return false;if(e.type!=="TSTypeParameter")return false;return t==null||(0,s.default)(e,t)}function isStandardized(e,t){if(!e)return false;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":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return false}break;default:return false}return t==null||(0,s.default)(e,t)}function isExpression(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0,s.default)(e,t)}function isBinary(e,t){if(!e)return false;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return false}return t==null||(0,s.default)(e,t)}function isScopable(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,s.default)(e,t)}function isBlockParent(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,s.default)(e,t)}function isBlock(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,s.default)(e,t)}function isStatement(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0,s.default)(e,t)}function isTerminatorless(e,t){if(!e)return false;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return false}return t==null||(0,s.default)(e,t)}function isCompletionStatement(e,t){if(!e)return false;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isConditional(e,t){if(!e)return false;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isLoop(e,t){if(!e)return false;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isWhile(e,t){if(!e)return false;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isExpressionWrapper(e,t){if(!e)return false;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return false}return t==null||(0,s.default)(e,t)}function isFor(e,t){if(!e)return false;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isForXStatement(e,t){if(!e)return false;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return false}return t==null||(0,s.default)(e,t)}function isFunction(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return t==null||(0,s.default)(e,t)}function isFunctionParent(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return false}return t==null||(0,s.default)(e,t)}function isPureish(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,s.default)(e,t)}function isDeclaration(e,t){if(!e)return false;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":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return false}return t==null||(0,s.default)(e,t)}function isPatternLike(e,t){if(!e)return false;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return false}break;default:return false}return t==null||(0,s.default)(e,t)}function isLVal(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0,s.default)(e,t)}function isTSEntityName(e,t){if(!e)return false;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return false}return t==null||(0,s.default)(e,t)}function isLiteral(e,t){if(!e)return false;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,s.default)(e,t)}function isImmutable(e,t){if(!e)return false;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,s.default)(e,t)}function isUserWhitespacable(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return false}return t==null||(0,s.default)(e,t)}function isMethod(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return t==null||(0,s.default)(e,t)}function isObjectMember(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return false}return t==null||(0,s.default)(e,t)}function isProperty(e,t){if(!e)return false;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return false}return t==null||(0,s.default)(e,t)}function isUnaryLike(e,t){if(!e)return false;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return false}return t==null||(0,s.default)(e,t)}function isPattern(e,t){if(!e)return false;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return false}return t==null||(0,s.default)(e,t)}function isClass(e,t){if(!e)return false;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return false}return t==null||(0,s.default)(e,t)}function isImportOrExportDeclaration(e,t){if(!e)return false;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return false}return t==null||(0,s.default)(e,t)}function isExportDeclaration(e,t){if(!e)return false;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return false}return t==null||(0,s.default)(e,t)}function isModuleSpecifier(e,t){if(!e)return false;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return false}return t==null||(0,s.default)(e,t)}function isAccessor(e,t){if(!e)return false;switch(e.type){case"ClassAccessorProperty":break;default:return false}return t==null||(0,s.default)(e,t)}function isPrivate(e,t){if(!e)return false;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return false}return t==null||(0,s.default)(e,t)}function isFlow(e,t){if(!e)return false;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 false}return t==null||(0,s.default)(e,t)}function isFlowType(e,t){if(!e)return false;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 false}return t==null||(0,s.default)(e,t)}function isFlowBaseAnnotation(e,t){if(!e)return false;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 false}return t==null||(0,s.default)(e,t)}function isFlowDeclaration(e,t){if(!e)return false;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 false}return t==null||(0,s.default)(e,t)}function isFlowPredicate(e,t){if(!e)return false;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return false}return t==null||(0,s.default)(e,t)}function isEnumBody(e,t){if(!e)return false;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return false}return t==null||(0,s.default)(e,t)}function isEnumMember(e,t){if(!e)return false;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return false}return t==null||(0,s.default)(e,t)}function isJSX(e,t){if(!e)return false;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 false}return t==null||(0,s.default)(e,t)}function isMiscellaneous(e,t){if(!e)return false;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return false}return t==null||(0,s.default)(e,t)}function isTypeScript(e,t){if(!e)return false;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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":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 false}return t==null||(0,s.default)(e,t)}function isTSTypeElement(e,t){if(!e)return false;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return false}return t==null||(0,s.default)(e,t)}function isTSType(e,t){if(!e)return false;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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return false}return t==null||(0,s.default)(e,t)}function isTSBaseType(e,t){if(!e)return false;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"TSLiteralType":break;default:return false}return t==null||(0,s.default)(e,t)}function isNumberLiteral(e,t){(0,n.default)("isNumberLiteral","isNumericLiteral");if(!e)return false;if(e.type!=="NumberLiteral")return false;return t==null||(0,s.default)(e,t)}function isRegexLiteral(e,t){(0,n.default)("isRegexLiteral","isRegExpLiteral");if(!e)return false;if(e.type!=="RegexLiteral")return false;return t==null||(0,s.default)(e,t)}function isRestProperty(e,t){(0,n.default)("isRestProperty","isRestElement");if(!e)return false;if(e.type!=="RestProperty")return false;return t==null||(0,s.default)(e,t)}function isSpreadProperty(e,t){(0,n.default)("isSpreadProperty","isSpreadElement");if(!e)return false;if(e.type!=="SpreadProperty")return false;return t==null||(0,s.default)(e,t)}function isModuleDeclaration(e,t){(0,n.default)("isModuleDeclaration","isImportOrExportDeclaration");return isImportOrExportDeclaration(e,t)}},2819:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=is;var s=r(8165);var n=r(2747);var i=r(450);var a=r(6462);function is(e,t,r){if(!t)return false;const o=(0,n.default)(t.type,e);if(!o){if(!r&&t.type==="Placeholder"&&e in a.FLIPPED_ALIAS_KEYS){return(0,i.default)(t.expectedNode,e)}return false}if(r===undefined){return true}else{return(0,s.default)(t,r)}}},5678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isBinding;var s=r(7812);function isBinding(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression"){return false}const n=s.default.keys[t.type];if(n){for(let r=0;r<n.length;r++){const s=n[r];const i=t[s];if(Array.isArray(i)){if(i.includes(e))return true}else{if(i===e)return true}}}return false}},9710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isBlockScoped;var s=r(277);var n=r(7514);function isBlockScoped(e){return(0,s.isFunctionDeclaration)(e)||(0,s.isClassDeclaration)(e)||(0,n.default)(e)}},3783:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isImmutable;var s=r(2747);var n=r(277);function isImmutable(e){if((0,s.default)(e.type,"Immutable"))return true;if((0,n.isIdentifier)(e)){if(e.name==="undefined"){return true}else{return false}}return false}},7514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isLet;var s=r(277);var n=r(3369);function isLet(e){return(0,s.isVariableDeclaration)(e)&&(e.kind!=="var"||e[n.BLOCK_SCOPED_SYMBOL])}},55:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isNode;var s=r(6462);function isNode(e){return!!(e&&s.VISITOR_KEYS[e.type])}},9378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isNodesEquivalent;var s=r(6462);function isNodesEquivalent(e,t){if(typeof e!=="object"||typeof t!=="object"||e==null||t==null){return e===t}if(e.type!==t.type){return false}const r=Object.keys(s.NODE_FIELDS[e.type]||e.type);const n=s.VISITOR_KEYS[e.type];for(const s of r){const r=e[s];const i=t[s];if(typeof r!==typeof i){return false}if(r==null&&i==null){continue}else if(r==null||i==null){return false}if(Array.isArray(r)){if(!Array.isArray(i)){return false}if(r.length!==i.length){return false}for(let e=0;e<r.length;e++){if(!isNodesEquivalent(r[e],i[e])){return false}}continue}if(typeof r==="object"&&!(n!=null&&n.includes(s))){for(const e of Object.keys(r)){if(r[e]!==i[e]){return false}}continue}if(!isNodesEquivalent(r,i)){return false}}return true}},450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isPlaceholderType;var s=r(6462);function isPlaceholderType(e,t){if(e===t)return true;const r=s.PLACEHOLDERS_ALIAS[e];if(r){for(const e of r){if(t===e)return true}}return false}},7716:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isReferenced;function isReferenced(e,t,r){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":return false;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e){return!!t.computed}return false;case"ObjectProperty":if(t.key===e){return!!t.computed}return!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(t.key===e){return!!t.computed}return true;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return false;case"CatchClause":return false;case"RestElement":return false;case"BreakStatement":case"ContinueStatement":return false;case"FunctionDeclaration":case"FunctionExpression":return false;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return false;case"ExportSpecifier":if(r!=null&&r.source){return false}return t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return false;case"ImportAttribute":return false;case"JSXAttribute":return false;case"ObjectPattern":case"ArrayPattern":return false;case"MetaProperty":return false;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":if(t.key===e){return!!t.computed}return true}return true}},5663:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isScope;var s=r(277);function isScope(e,t){if((0,s.isBlockStatement)(e)&&((0,s.isFunction)(t)||(0,s.isCatchClause)(t))){return false}if((0,s.isPattern)(e)&&((0,s.isFunction)(t)||(0,s.isCatchClause)(t))){return true}return(0,s.isScopable)(e)}},3562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isSpecifierDefault;var s=r(277);function isSpecifierDefault(e){return(0,s.isImportDefaultSpecifier)(e)||(0,s.isIdentifier)(e.imported||e.exported,{name:"default"})}},2747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isType;var s=r(6462);function isType(e,t){if(e===t)return true;if(e==null)return false;if(s.ALIAS_KEYS[t])return false;const r=s.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return true;for(const t of r){if(e===t)return true}}return false}},7515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isValidES3Identifier;var s=r(7070);const n=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function isValidES3Identifier(e){return(0,s.default)(e)&&!n.has(e)}},7070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isValidIdentifier;var s=r(8008);function isValidIdentifier(e,t=true){if(typeof e!=="string")return false;if(t){if((0,s.isKeyword)(e)||(0,s.isStrictReservedWord)(e,true)){return false}}return(0,s.isIdentifierName)(e)}},1406:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isVar;var s=r(277);var n=r(3369);function isVar(e){return(0,s.isVariableDeclaration)(e,{kind:"var"})&&!e[n.BLOCK_SCOPED_SYMBOL]}},5366:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=matchesPattern;var s=r(277);function matchesPattern(e,t,r){if(!(0,s.isMemberExpression)(e))return false;const n=Array.isArray(t)?t:t.split(".");const i=[];let a;for(a=e;(0,s.isMemberExpression)(a);a=a.object){i.push(a.property)}i.push(a);if(i.length<n.length)return false;if(!r&&i.length>n.length)return false;for(let e=0,t=i.length-1;e<n.length;e++,t--){const r=i[t];let a;if((0,s.isIdentifier)(r)){a=r.name}else if((0,s.isStringLiteral)(r)){a=r.value}else if((0,s.isThisExpression)(r)){a="this"}else{return false}if(n[e]!==a)return false}return true}},1857:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isCompatTag;function isCompatTag(e){return!!e&&/^[a-z]/.test(e)}},1105:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(3830);const n=(0,s.default)("React.Component");var i=t["default"]=n},1549:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=validate;t.validateChild=validateChild;t.validateField=validateField;t.validateInternal=validateInternal;var s=r(6462);function validate(e,t,r){if(!e)return;const n=s.NODE_FIELDS[e.type];if(!n)return;const i=n[t];validateField(e,t,r,i);validateChild(e,t,r)}function validateInternal(e,t,r,n,i){if(!(e!=null&&e.validate))return;if(e.optional&&n==null)return;e.validate(t,r,n);if(i){var a;const e=n.type;if(e==null)return;(a=s.NODE_PARENT_VALIDATIONS[e])==null||a.call(s.NODE_PARENT_VALIDATIONS,t,r,n)}}function validateField(e,t,r,s){if(!(s!=null&&s.validate))return;if(s.optional&&r==null)return;s.validate(e,t,r)}function validateChild(e,t,r){var n;const i=r==null?void 0:r.type;if(i==null)return;(n=s.NODE_PARENT_VALIDATIONS[i])==null||n.call(s.NODE_PARENT_VALIDATIONS,e,t,r)}},4777:function(e){"use strict";e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(4967);module.exports=r})();