@nativescript/android 9.0.0-alpha.4 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-optimized.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-regular.aar +0 -0
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/dts-generator.jar +0 -0
- package/framework/build-tools/jsparser/js_parser.js +2 -2
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var e={120:e=>{"use strict";e.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},175:(e,t,n)=>{var s=n(1094),i=n(3193).StringDecoder;e.exports=function(e,t,n){var r=new i,a="",o=n&&n.maxLength,l=!n||!1!==n.trailing;function c(e,n){if(t){try{n=t(n)}catch(t){return e.emit("error",t)}void 0!==n&&e.queue(n)}else e.queue(n)}function p(t,n){var s=((null!=a?a:"")+n).split(e);if(a=s.pop(),o&&a.length>o)return t.emit("error",new Error("maximum buffer reached"));for(var i=0;i<s.length;i++)c(t,s[i])}return"function"==typeof e&&(t=e,e=null),e||(e=/\r?\n/),s(function(e){p(this,r.write(e))},function(){r.end&&p(this,r.end()),l&&null!=a&&c(this,a),this.queue(null)})}},245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e)};var s=n(5279)},299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=l(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const n=["Number","String","Math"],s=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],i=["random"];function r(e){return n.includes(e)}function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const o=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function l(e,t){const{node:n}=e,{seen:p}=t;if(p.has(n)){const s=p.get(n);return s.resolved?s.value:void a(e,t)}{const u={resolved:!1};p.set(n,u);const h=function(e,t){if(t.confident){if(e.isSequenceExpression()){const n=e.get("expressions");return l(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return c(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const n=e.get("tag.object"),{node:{name:s}}=n,i=e.get("tag.property");if(n.isIdentifier()&&"String"===s&&!e.scope.getBinding(s)&&i.isIdentifier()&&"raw"===i.node.name)return c(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const n=l(e.get("test"),t);if(!t.confident)return;return l(n?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return l(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const n=e.get("property"),s=e.get("object");if(s.isLiteral()){const i=s.node.value,r=typeof i;let a=null;if(e.node.computed){if(a=l(n,t),!t.confident)return}else n.isIdentifier()&&(a=n.node.name);if(!("number"!==r&&"string"!==r||null==a||"number"!=typeof a&&"string"!=typeof a))return i[a]}}if(e.isReferencedIdentifier()){const s=e.scope.getBinding(e.node.name);if(s){if(s.constantViolations.length>0||e.node.start<s.path.node.end)return void a(s.path,t);const i=s.path.scope;if("var"===s.kind&&i!==s.scope){let r=!i.path.parentPath.isBlockStatement();for(let o=i.parent;o;o=o.parent){var n;if(o===e.scope){if(r)return void a(s.path,t);break}null!=(n=o.path.parentPath)&&n.isBlockStatement()&&(r=!0)}}if(s.hasValue)return s.value}const i=e.node.name;if(o.has(i))return s?void a(s.path,t):o.get(i);const r=e.resolve();if(r===e)return void a(e,t);const c=l(r,t);return"object"==typeof c&&null!==c&&s.references>1?void a(r,t):c}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";const s=l(n,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 n=[],s=e.get("elements");for(const e of s){const s=e.evaluate();if(!s.confident)return void a(s.deopt,t);n.push(s.value)}return n}if(e.isObjectExpression()){const n={},s=e.get("properties");for(const e of s){if(e.isObjectMethod()||e.isSpreadElement())return void a(e,t);const s=e.get("key");let i;if(e.node.computed){if(i=s.evaluate(),!i.confident)return void a(i.deopt,t);i=i.value}else i=s.isIdentifier()?s.node.name:s.node.value;let r=e.get("value").evaluate();if(!r.confident)return void a(r.deopt,t);r=r.value,n[i]=r}return n}if(e.isLogicalExpression()){const n=t.confident,s=l(e.get("left"),t),i=t.confident;t.confident=n;const r=l(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!s||a),!t.confident)return;return s||r;case"&&":if(t.confident=i&&(!s||a),!t.confident)return;return s&&r;case"??":if(t.confident=i&&(null!=s||a),!t.confident)return;return null!=s?s:r}}if(e.isBinaryExpression()){const n=l(e.get("left"),t);if(!t.confident)return;const s=l(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-s;case"+":return n+s;case"/":return n/s;case"*":return n*s;case"%":return n%s;case"**":return Math.pow(n,s);case"<":return n<s;case">":return n>s;case"<=":return n<=s;case">=":return n>=s;case"==":return n==s;case"!=":return n!=s;case"===":return n===s;case"!==":return n!==s;case"|":return n|s;case"&":return n&s;case"^":return n^s;case"<<":return n<<s;case">>":return n>>s;case">>>":return n>>>s}}if(e.isCallExpression()){const n=e.get("callee");let a,o;if(n.isIdentifier()&&!e.scope.getBinding(n.node.name)&&(r(n.node.name)||function(e){return s.includes(e)}(n.node.name))&&(o=global[n.node.name]),n.isMemberExpression()){const e=n.get("object"),t=n.get("property");if(e.isIdentifier()&&t.isIdentifier()&&r(e.node.name)&&!function(e){return i.includes(e)}(t.node.name)){a=global[e.node.name];const n=t.node.name;hasOwnProperty.call(a,n)&&(o=a[n])}if(e.isLiteral()&&t.isIdentifier()){const n=typeof e.node.value;"string"!==n&&"number"!==n||(a=e.node.value,o=a[t.node.name])}}if(o){const n=e.get("arguments").map(e=>l(e,t));if(!t.confident)return;return o.apply(a,n)}}a(e,t)}}(e,t);return t.confident&&(u.resolved=!0,u.value=h),h}}function c(e,t,n,s=!1){let i="",r=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!n.confident)break;i+=s?e.value.raw:e.value.cooked;const t=a[r++];t&&(i+=String(l(t,n)))}if(n.confident)return i}},329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(8960);function i(e,t,n,r){const a=[].concat(e),o=Object.create(null);for(;a.length;){const e=a.shift();if(!e)continue;if(r&&((0,s.isAssignmentExpression)(e)||(0,s.isUnaryExpression)(e)||(0,s.isUpdateExpression)(e)))continue;if((0,s.isIdentifier)(e)){t?(o[e.name]=o[e.name]||[]).push(e):o[e.name]=e;continue}if((0,s.isExportDeclaration)(e)&&!(0,s.isExportAllDeclaration)(e)){(0,s.isDeclaration)(e.declaration)&&a.push(e.declaration);continue}if(n){if((0,s.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,s.isFunctionExpression)(e))continue}const l=i.keys[e.type];if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?a.push(...n):a.push(n))}}return o}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const s=[],r=[];let a=c(e,t,r);const o=u(e,t,n);if(o){const t=c(e,o.ifStatement);a=a.filter(e=>!t.includes(e)),s.push(o.typeAnnotation)}if(a.length){a.push(...r);for(const e of a)s.push(e.getTypeAnnotation())}if(s.length)return(0,i.createUnionType)(s)}(t,this,e.name):"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?o():void e.name};var s=n(2352),i=n(3141);const{BOOLEAN_NUMBER_BINARY_OPERATORS:r,createTypeAnnotationBasedOnTypeof:a,numberTypeAnnotation:o,voidTypeAnnotation:l}=s;function c(e,t,n){const s=e.constantViolations.slice();return s.unshift(e.path),s.filter(e=>{const s=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===s&&n.push(e),"before"===s})}function p(e,t){const n=t.node.operator,s=t.get("right").resolve(),i=t.get("left").resolve();let l,c,p;if(i.isIdentifier({name:e})?l=s:s.isIdentifier({name:e})&&(l=i),l)return"==="===n?l.getTypeAnnotation():r.includes(n)?o():void 0;if("==="!==n&&"=="!==n)return;if(i.isUnaryExpression({operator:"typeof"})?(c=i,p=s):s.isUnaryExpression({operator:"typeof"})&&(c=s,p=i),!c)return;if(!c.get("argument").isIdentifier({name:e}))return;if(p=p.resolve(),!p.isLiteral())return;const u=p.node.value;return"string"==typeof u?a(u):void 0}function u(e,t,n){const s=function(e,t,n){let s;for(;s=t.parentPath;){if(s.isIfStatement()||s.isConditionalExpression()){if("test"===t.key)return;return s}if(s.isFunction()&&(null==n||s.parentPath.scope.getBinding(n)!==e))return;t=s}}(e,t,n);if(!s)return;const r=[s.get("test")],a=[];for(let e=0;e<r.length;e++){const t=r[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(r.push(t.get("left")),r.push(t.get("right")));else if(t.isBinaryExpression()){const e=p(n,t);e&&a.push(e)}}return a.length?{typeAnnotation:(0,i.createUnionType)(a),ifStatement:s}:u(e,s,n)}},499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isVariableDeclaration)(e,{kind:"var"})&&!e[i]};var s=n(8960),i=Symbol.for("var used to be block scoped")},521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),p(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),p(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&a(l(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),p(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),p(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n),this.space();let s=!1;if(!i(t))for(const t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?function(e){this.token(",",!1,e),this.newline()}:void 0),i(t))if(r(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var s=n(2352);const{isFor:i,isForStatement:r,isIfStatement:a,isStatement:o}=s;function l(e){const{body:t}=e;return!1===o(t)?e:l(t)}function c(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const n=this.enterForXStatementInit(t);this.print(e.left),null==n||n()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function p(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=c,t.ForOfStatement=c},546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const n=this.enterDelimited(),s=null==(t=e.directives)?void 0:t.length;if(s){var i;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[s-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),n(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:i}=e;if(s.test(i)){if(n.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const n=null==(t=e.directives)?void 0:t.length;if(n){var s;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(s=e.directives[n-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body)};const n=/(?:^|[^\\])(?:\\\\)*'/,s=/(?:^|[^\\])(?:\\\\)*"/},607:(e,t,n)=>{var s=n(9896),i=n(6928);e.exports=function(e){function t(t){s.truncateSync(t,0),e&&e.logger&&e.logger.info("+cleared out file: "+t)}function n(e){var t=i.dirname(e);return s.existsSync(t)||(n(t),s.mkdirSync(t)),!0}return{cleanOutFile:t,createFile:function(i){n(i)&&(s.writeFileSync(i,""),e&&e.logger&&e.logger.info("+created ast output file: ")),t(i)},ensureDirectories:n}}},640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,s.default)(e,n);if(i){for(const e of n)t.push(e);return i}};var s=n(4089)},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,a=null;function o(...e){if(!o.enabled)return;const s=o,i=Number(new Date),r=i-(n||i);s.diff=r,s.prev=n,s.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";a++;const r=t.formatters[i];if("function"==typeof r){const t=e[a];n=r.call(s,t),e.splice(a,1),a--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=s,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),i=s.length;for(n=0;n<i;n++)s[n]&&("-"===(e=s[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,s;for(n=0,s=t.skips.length;n<s;n++)if(t.skips[n].test(e))return!1;for(n=0,s=t.names.length;n<s;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var s=n(2352);const{assertExpressionStatement:i}=s;function r(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=r(e=>e.length>1?e:e[0]),t.statements=r(e=>e),t.statement=r(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const a=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(0===a.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return T(this,e,new Map)},t._resolve=g,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?a(e):!!this.isBlockStatement()&&o(e))},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,n=!0;do{const{type:s,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===s))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},t.isInStrictMode=function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0;return!1});return!!e},t.isNodeType=function(e){return u(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!a(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return h(this.node,e,t)},t.referencesImport=function(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!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const s=n.path,i=s.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!s.isImportDefaultSpecifier()||"default"!==t)||(!(!s.isImportNamespaceSpecifier()||"*"!==t)||!(!s.isImportSpecifier()||!l(s.node.imported,{name:t}))))))},t.resolve=function(e,t){return g.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var s=n(2352);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:r,isBlockStatement:a,isExpression:o,isIdentifier:l,isLiteral:c,isStringLiteral:p,isType:u,matchesPattern:h}=s;function d(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function f(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function m(e,t){for(let n=0;n<t;n++){const t=e[n];if(f(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;const n=null==(t=this.node)?void 0:t[e];return n&&Array.isArray(n)?!!n.length:!!n},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};const y=Symbol();function T(e,t,n){const s={this:d(e),target:d(t)};if(s.target.node!==s.this.node)return function(e,t,n){let s,i=n.get(e.node);if(i){if(s=i.get(t.node))return s===y?"unknown":s}else n.set(e.node,i=new Map);i.set(t.node,y);const r=function(e,t,n){if(!t.isFunctionDeclaration())return"before"===T(e,t,n)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const s=t.scope.getBinding(t.node.id.name);if(!s.references)return"before";const i=s.referencePaths;let r;for(const s of i){if(s.find(e=>e.node===t.node))continue;if("callee"!==s.key||!s.parentPath.isCallExpression())return"unknown";const i=T(e,s,n);if(r&&r!==i)return"unknown";r=i}return r}(e,t,n);return i.set(t.node,r),r}(e,s.target,n);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let a;const o={target:0,this:0};for(;!a&&o.this<i.this.length;){const e=i.this[o.this];o.target=i.target.indexOf(e),o.target>=0?a=e:o.this++}if(!a)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(m(i.this,o.this-1)||m(i.target,o.target-1))return"unknown";const l={this:i.this[o.this-1],target:i.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=r[a.type],p=c.indexOf(l.this.parentKey);return c.indexOf(l.target.parentKey)>p?"before":"after"}function g(e,t){var n;if(null==(n=t)||!n.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const s=n.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);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!c(n))return;const s=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let r=i.isnt("computed")&&n.isIdentifier({name:s});if(r=r||n.isLiteral({value:s}),r)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+s)){const n=i.get("elements")[s];if(n)return n.resolve(e,t)}}}}},857:e=>{"use strict";e.exports=require("os")},940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,s,i=1/0;const r=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),a=r[0];e:for(let e=0;e<i;e++){const t=a[e];for(const n of r)if(n[e]!==t)break e;n=e,s=t}if(s)return t?t(s,n,r):s;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,n){let s;const r=i[e.type];for(const e of n){const n=e[t+1];s?(n.listKey&&s.listKey===n.listKey&&n.key<s.key||r.indexOf(s.parentKey)>r.indexOf(n.parentKey))&&(s=n):s=n}return s})},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;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},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};var s=n(2352);const{VISITOR_KEYS:i}=s},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return"string"==typeof e&&((!t||!(0,s.isKeyword)(e)&&!(0,s.isStrictReservedWord)(e,!0))&&(0,s.isIdentifierName)(e))};var s=n(1e3)},985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,s.unaryExpression)("void",(0,s.numericLiteral)(0),!0)};var s=n(8079)},1e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return s.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return s.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return s.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var s=n(8721),i=n(3115)},1009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,s.unionTypeAnnotation)(t)};var s=n(8079),i=n(5237)},1094:(e,t,n)=>{var s=n(2203);function i(e,t,n){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var i=!1,r=!1,a=[],o=!1,l=new s;function c(){for(;a.length&&!l.paused;){var e=a.shift();if(null===e)return l.emit("end");l.emit("data",e)}}return l.readable=l.writable=!0,l.paused=!1,l.autoDestroy=!(n&&!1===n.autoDestroy),l.write=function(t){return e.call(this,t),!l.paused},l.queue=l.push=function(e){return o||(null===e&&(o=!0),a.push(e),c()),l},l.on("end",function(){l.readable=!1,!l.writable&&l.autoDestroy&&process.nextTick(function(){l.destroy()})}),l.end=function(e){if(!i)return i=!0,arguments.length&&l.write(e),l.writable=!1,t.call(l),!l.readable&&l.autoDestroy&&l.destroy(),l},l.destroy=function(){if(!r)return r=!0,i=!0,a.length=0,l.writable=l.readable=!1,l.emit("close"),l},l.pause=function(){if(!l.paused)return l.paused=!0,l},l.resume=function(){return l.paused&&(l.paused=!1,l.emit("resume")),c(),l.paused||l.emit("drain"),l},l}e.exports=i,i.through=i},1343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[].concat(e),n=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":n[e.name]=e}}return n}},1373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const n=o[e.type];for(let s=n.length-1;s>=0;s--){const i=e[n[s]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)return!1}return!1},t.needsParens=function(e,t,n,s){var i;return!!t&&(!(!h(t)||t.callee!==e||!T(e))||(c(t)?!(x(e)||l(e)&&x(e.callee)||d(e)):(null==(i=m.get(e.type))?void 0:i(e,t,n,s))||!1))},t.needsWhitespace=g,t.needsWhitespaceAfter=function(e,t){return g(e,t,2)},t.needsWhitespaceBefore=function(e,t){return g(e,t,1)};var s=n(2716),i=n(1773),r=n(2352);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:h,isParenthesizedExpression:d}=r;function f(e){const t=new Map;function n(e,n){const s=t.get(e);t.set(e,s?function(e,t,i,r){var a;return null!=(a=s(e,t,i,r))?a:n(e,t,i,r)}:n)}for(const t of Object.keys(e)){const s=a[t];if(s)for(const i of s)n(i,e[t]);else n(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const m=f(i),y=f(s.nodes);function T(e){return!!l(e)||u(e)&&T(e.object)}function g(e,t,n){var s;if(!e)return!1;p(e)&&(e=e.expression);const i=null==(s=y.get(e.type))?void 0:s(e,t);return"number"==typeof i&&0!==(i&n)}function x(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&x(e.object);default:return!1}}},1384:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e)&&!i.has(e)};var s=n(983);const i=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"])},1602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(9709),i=n(2352),r=n(9578);const{VISITOR_KEYS:a}=i;t.default=class{constructor(e,t,n,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=a[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return s.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const s=[];for(let i=0;i<e.length;i++){const r=e[i];r&&this.shouldVisit(r)&&s.push(this.create(t,e,i,n))}return this.visitQueue(s)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,s=0;for(;s<e.length;){const i=e[s];if(s++,r.resync.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||r.pushContext.call(i,this),null===i.key)continue;const{node:a}=i;if(!t.has(a)){if(a&&t.add(a),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<s;t++)r.popContext.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},1773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,n){return!(!S(n)||!u(e.left))||P(e,t)},t.Binary=b,t.BinaryExpression=function(e,t,n){return"in"===e.operator&&Boolean(n&i.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=P,t.DoExpression=function(e,t,n){return!e.async&&Boolean(n&i.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,n){const s=t.type;return"UnionTypeAnnotation"===s||"IntersectionTypeAnnotation"===s||"ArrayTypeAnnotation"===s||Boolean(n&i.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,n,s){var r;const a=t.type;if(null!=(r=e.extra)&&r.parenthesized&&"AssignmentExpression"===a&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!s||s(e)===e.name)&&("let"===e.name?!!((p(t,{object:e,computed:!0})||h(t,{object:e,computed:!0,optional:!1}))&&n&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead))||Boolean(n&i.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const n=t.type;if(T(n))return!0;if("LogicalExpression"!==n)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return r(t)},t.ObjectExpression=function(e,t,n){return S(n)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e},t.SequenceExpression=function(e,t){const n=t.type;return!("SequenceExpression"===n||"ParenthesizedExpression"===n||"MemberExpression"===n&&t.property===e||"OptionalMemberExpression"===n&&t.property===e||"TemplateLiteral"===n)&&("ClassDeclaration"===n||("ForOfStatement"===n?t.right===e:"ExportDefaultDeclaration"===n||!f(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||b(e,t))},t.TSConditionalType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||"TSTypeOperator"===n||"TSTypeParameter"===n||(("TSIntersectionType"===n||"TSUnionType"===n)&&t.types[0]===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSUnionType"===n||"TSTypeOperator"===n||"TSOptionalType"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||!(!e.typeParameter.constraint||"TSIntersectionType"!==n&&"TSUnionType"!==n||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const n=t.type;return("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n||"TSInstantiationExpression"===n)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const n=t.type;return"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.UnaryLike=t.TSTypeAssertion=E,t.TSTypeOperator=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.TSUnionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const n=t.type;return"ArrayTypeAnnotation"===n||"NullableTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"UnionTypeAnnotation"===n},t.UpdateExpression=function(e,t){return x(e,t)||g(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const n=t.type;return"BinaryExpression"===n||"LogicalExpression"===n||"UnaryExpression"===n||"SpreadElement"===n||x(e,t)||"AwaitExpression"===n&&d(e)||"ConditionalExpression"===n&&e===t.test||g(e,t)||T(n)};var s=n(2352),i=n(1373);const{isArrayTypeAnnotation:r,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:u,isOptionalMemberExpression:h,isYieldExpression:d,isStatement:f}=s,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function y(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function T(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const g=(e,t)=>{const n=t.type;return("ClassDeclaration"===n||"ClassExpression"===n)&&t.superClass===e},x=(e,t)=>{const n=t.type;return("MemberExpression"===n||"OptionalMemberExpression"===n)&&t.object===e||("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n)&&t.callee===e||"TaggedTemplateExpression"===n&&t.tag===e||"TSNonNullExpression"===n};function S(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function b(e,t){const n=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===n&&"**"===t.operator)return t.left===e;if(g(e,t))return!0;if(x(e,t)||"UnaryExpression"===n||"SpreadElement"===n||"AwaitExpression"===n)return!0;const s=y(t,n);if(null!=s){const i=y(e,e.type);if(s===i&&"BinaryExpression"===n&&t.right===e||s>i)return!0}}function E(e,t){return x(e,t)||a(t)&&"**"===t.operator&&t.left===e||g(e,t)}function P(e,t){const n=t.type;return!!("UnaryExpression"===n||"SpreadElement"===n||"BinaryExpression"===n||"LogicalExpression"===n||"ConditionalExpression"===n&&t.test===e||"AwaitExpression"===n||T(n))||E(e,t)}},2018:e=>{"use strict";e.exports=require("tty")},2037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=R,t.replaceExpressionWithStatements=function(e){p.resync.call(this);const t=[],n=U(e,t);if(n){for(const e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}const s=this.getFunctionParent(),r=null==s?void 0:s.node.async,a=null==s?void 0:s.node.generator,o=h([],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 n=t.getData("expressionReplacementReturnUid");n?n=E(n.name):(n=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",M(g(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(d("=",g(n),e.node.expression))}else e.replaceWith(M(e.node.expression))}l.arrowFunctionToExpression();const y=l,x=r&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",u),S=a&&i.default.hasType(this.get("callee.body").node,"YieldExpression",u);return x&&(y.set("async",!0),S||this.replaceWith(f(this.node))),S&&(y.set("generator",!0),this.replaceWith(j(this.node,!0))),y.get("body.body")},t.replaceInline=function(e){if(p.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=o._verifyNodeList.call(this,e);const t=o._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(p.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof r.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()&&!O(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("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&I(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=S(t),n="expression")),this.isNodeType("Expression")&&D(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const s=this.node;return s&&(v(t,s),L(s)),R.call(this,t),this.type=t.type,p.setScope.call(this),this.requeue(),[n?this.get(n):this]},t.replaceWithMultiple=function(e){var t;p.resync.call(this);const n=o._verifyNodeList.call(this,e);P(n[0],this.node),A(n[n.length-1],this.node),null==(t=(0,a.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const s=this.insertAfter(e);return this.node?this.requeue():this.remove(),s},t.replaceWithSourceString=function(e){let t;p.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,s.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const n=t.program.body[0].expression;return i.default.removeProperties(n),this.replaceWith(n)};var s=n(2882),i=n(5781),r=n(9709),a=n(7411),o=n(8345),l=n(2172),c=n(2352),p=n(9578);const{FUNCTION_TYPES:u,arrowFunctionExpression:h,assignmentExpression:d,awaitExpression:f,blockStatement:m,buildUndefinedNode:y,callExpression:T,cloneNode:g,conditionalExpression:x,expressionStatement:S,getBindingIdentifiers:b,identifier:E,inheritLeadingComments:P,inheritTrailingComments:A,inheritsComments:v,isBlockStatement:C,isEmptyStatement:w,isExpression:I,isExpressionStatement:N,isIfStatement:k,isProgram:O,isStatement:D,isVariableDeclaration:_,removeComments:L,returnStatement:M,sequenceExpression:F,validate:B,yieldExpression:j}=c;function R(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?B(this.parent,this.key,[e]):B(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,a.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function U(e,t){const n=[];let s=!0;for(const i of e)if(w(i)||(s=!1),I(i))n.push(i);else if(N(i))n.push(i.expression);else if(_(i)){if("var"!==i.kind)return;for(const e of i.declarations){const s=b(e);for(const e of Object.keys(s))t.push(g(s[e]));e.init&&n.push(d("=",e.id,e.init))}s=!0}else if(k(i)){const e=i.consequent?U([i.consequent],t):y(),s=i.alternate?U([i.alternate],t):y();if(!e||!s)return;n.push(x(i.test,e,s))}else if(C(i)){const e=U(i.body,t);if(!e)return;n.push(e)}else{if(!w(i))return;0===e.indexOf(i)&&(s=!0)}return s&&n.push(y()),1===n.length?n[0]:F(n)}},2107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!1)};var s=n(5279)},2172:(e,t)=>{"use strict";function n(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class i{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 r(e,t){const{line:n,column:i,index:r}=e;return new s(n,i+t,r+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const l={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},c=e=>"UpdateExpression"===e.type?l.UpdateExpression[`${e.prefix}`]:l[e.type];var p={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\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})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},u={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const h=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const f=["message"];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function y({toMessage:e,code:t,reasonCode:n,syntaxPlugin:i}){const r="MissingPlugin"===n||"MissingOneOfPlugins"===n;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[n]&&(n=e[n])}return function a(o,l){const c=new SyntaxError;return c.code=t,c.reasonCode=n,c.loc=o,c.pos=o.index,c.syntaxPlugin=i,r&&(c.missingPlugin=l.missingPlugin),m(c,"clone",function(e={}){var t;const{line:n,column:i,index:r}=null!=(t=e.loc)?t:o;return a(new s(n,i,r),Object.assign({},l,e.details))}),m(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){const t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),c}}function T(e,t){if(Array.isArray(e))return t=>T(t,e[0]);const s={};for(const i of Object.keys(e)){const r=e[i],a="string"==typeof r?{message:()=>r}:"function"==typeof r?{message:r}:r,{message:o}=a,l=n(a,f),c="string"==typeof o?()=>o:o;s[i]=y(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},l))}return s}const g=Object.assign({},T(o),T(p),T({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."}),T(u),T`pipelineOperator`(d)),{defineProperty:x}=Object,S=(e,t)=>{e&&x(e,t,{enumerable:!1,value:e[t]})};function b(e){return S(e.loc.start,"index"),S(e.loc.end,"index"),e}class E{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const P={brace:new E("{"),j_oTag:new E("<tag"),j_cTag:new E("</tag"),j_expr:new E("<tag>...</tag>",!0)};P.template=new E("`",!0);const A=!0,v=!0,C=!0,w=!0,I=!0;class N{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const k=new Map;function O(e,t={}){t.keyword=e;const n=U(e,t);return k.set(e,n),n}function D(e,t){return U(e,{beforeExpr:A,binop:t})}let _=-1;const L=[],M=[],F=[],B=[],j=[],R=[];function U(e,t={}){var n,s,i,r;return++_,M.push(e),F.push(null!=(n=t.binop)?n:-1),B.push(null!=(s=t.beforeExpr)&&s),j.push(null!=(i=t.startsExpr)&&i),R.push(null!=(r=t.prefix)&&r),L.push(new N(e,t)),_}function K(e,t={}){var n,s,i,r;return++_,k.set(e,_),M.push(e),F.push(null!=(n=t.binop)?n:-1),B.push(null!=(s=t.beforeExpr)&&s),j.push(null!=(i=t.startsExpr)&&i),R.push(null!=(r=t.prefix)&&r),L.push(new N("name",t)),_}const V={bracketL:U("[",{beforeExpr:A,startsExpr:v}),bracketHashL:U("#[",{beforeExpr:A,startsExpr:v}),bracketBarL:U("[|",{beforeExpr:A,startsExpr:v}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:A,startsExpr:v}),braceBarL:U("{|",{beforeExpr:A,startsExpr:v}),braceHashL:U("#{",{beforeExpr:A,startsExpr:v}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:A,startsExpr:v}),parenR:U(")"),comma:U(",",{beforeExpr:A}),semi:U(";",{beforeExpr:A}),colon:U(":",{beforeExpr:A}),doubleColon:U("::",{beforeExpr:A}),dot:U("."),question:U("?",{beforeExpr:A}),questionDot:U("?."),arrow:U("=>",{beforeExpr:A}),template:U("template"),ellipsis:U("...",{beforeExpr:A}),backQuote:U("`",{startsExpr:v}),dollarBraceL:U("${",{beforeExpr:A,startsExpr:v}),templateTail:U("...`",{startsExpr:v}),templateNonTail:U("...${",{beforeExpr:A,startsExpr:v}),at:U("@"),hash:U("#",{startsExpr:v}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:A,isAssign:w}),assign:U("_=",{beforeExpr:A,isAssign:w}),slashAssign:U("_=",{beforeExpr:A,isAssign:w}),xorAssign:U("_=",{beforeExpr:A,isAssign:w}),moduloAssign:U("_=",{beforeExpr:A,isAssign:w}),incDec:U("++/--",{prefix:I,postfix:!0,startsExpr:v}),bang:U("!",{beforeExpr:A,prefix:I,startsExpr:v}),tilde:U("~",{beforeExpr:A,prefix:I,startsExpr:v}),doubleCaret:U("^^",{startsExpr:v}),doubleAt:U("@@",{startsExpr:v}),pipeline:D("|>",0),nullishCoalescing:D("??",1),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),lt:D("</>/<=/>=",7),gt:D("</>/<=/>=",7),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),bitShiftL:D("<</>>/>>>",8),bitShiftR:D("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:A,binop:9,prefix:I,startsExpr:v}),modulo:U("%",{binop:10,startsExpr:v}),star:U("*",{binop:10}),slash:D("/",10),exponent:U("**",{beforeExpr:A,binop:11,rightAssociative:!0}),_in:O("in",{beforeExpr:A,binop:7}),_instanceof:O("instanceof",{beforeExpr:A,binop:7}),_break:O("break"),_case:O("case",{beforeExpr:A}),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",{beforeExpr:A}),_else:O("else",{beforeExpr:A}),_finally:O("finally"),_function:O("function",{startsExpr:v}),_if:O("if"),_return:O("return",{beforeExpr:A}),_switch:O("switch"),_throw:O("throw",{beforeExpr:A,prefix:I,startsExpr:v}),_try:O("try"),_var:O("var"),_const:O("const"),_with:O("with"),_new:O("new",{beforeExpr:A,startsExpr:v}),_this:O("this",{startsExpr:v}),_super:O("super",{startsExpr:v}),_class:O("class",{startsExpr:v}),_extends:O("extends",{beforeExpr:A}),_export:O("export"),_import:O("import",{startsExpr:v}),_null:O("null",{startsExpr:v}),_true:O("true",{startsExpr:v}),_false:O("false",{startsExpr:v}),_typeof:O("typeof",{beforeExpr:A,prefix:I,startsExpr:v}),_void:O("void",{beforeExpr:A,prefix:I,startsExpr:v}),_delete:O("delete",{beforeExpr:A,prefix:I,startsExpr:v}),_do:O("do",{isLoop:C,beforeExpr:A}),_for:O("for",{isLoop:C}),_while:O("while",{isLoop:C}),_as:K("as",{startsExpr:v}),_assert:K("assert",{startsExpr:v}),_async:K("async",{startsExpr:v}),_await:K("await",{startsExpr:v}),_defer:K("defer",{startsExpr:v}),_from:K("from",{startsExpr:v}),_get:K("get",{startsExpr:v}),_let:K("let",{startsExpr:v}),_meta:K("meta",{startsExpr:v}),_of:K("of",{startsExpr:v}),_sent:K("sent",{startsExpr:v}),_set:K("set",{startsExpr:v}),_source:K("source",{startsExpr:v}),_static:K("static",{startsExpr:v}),_using:K("using",{startsExpr:v}),_yield:K("yield",{startsExpr:v}),_asserts:K("asserts",{startsExpr:v}),_checks:K("checks",{startsExpr:v}),_exports:K("exports",{startsExpr:v}),_global:K("global",{startsExpr:v}),_implements:K("implements",{startsExpr:v}),_intrinsic:K("intrinsic",{startsExpr:v}),_infer:K("infer",{startsExpr:v}),_is:K("is",{startsExpr:v}),_mixins:K("mixins",{startsExpr:v}),_proto:K("proto",{startsExpr:v}),_require:K("require",{startsExpr:v}),_satisfies:K("satisfies",{startsExpr:v}),_keyof:K("keyof",{startsExpr:v}),_readonly:K("readonly",{startsExpr:v}),_unique:K("unique",{startsExpr:v}),_abstract:K("abstract",{startsExpr:v}),_declare:K("declare",{startsExpr:v}),_enum:K("enum",{startsExpr:v}),_module:K("module",{startsExpr:v}),_namespace:K("namespace",{startsExpr:v}),_interface:K("interface",{startsExpr:v}),_type:K("type",{startsExpr:v}),_opaque:K("opaque",{startsExpr:v}),name:U("name",{startsExpr:v}),placeholder:U("%%",{startsExpr:v}),string:U("string",{startsExpr:v}),num:U("num",{startsExpr:v}),bigint:U("bigint",{startsExpr:v}),decimal:U("decimal",{startsExpr:v}),regexp:U("regexp",{startsExpr:v}),privateName:U("#name",{startsExpr:v}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:A}),jsxTagStart:U("jsxTagStart",{startsExpr:v}),jsxTagEnd:U("jsxTagEnd")};function q(e){return e>=93&&e<=133}function W(e){return e>=58&&e<=133}function J(e){return e>=58&&e<=137}function Y(e){return j[e]}function X(e){return e>=129&&e<=131}function $(e){return e>=58&&e<=92}function H(e){return 34===e}function z(e){return M[e]}function G(e){return F[e]}function Q(e){return e>=24&&e<=25}function Z(e){return L[e]}L[8].updateContext=e=>{e.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=e=>{e.push(P.brace)},L[22].updateContext=e=>{e[e.length-1]===P.template?e.pop():e.push(P.template)},L[143].updateContext=e=>{e.push(P.j_expr,P.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),se=new RegExp("["+ee+te+"]");ee=te=null;const ie=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],re=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ae(e,t){let n=65536;for(let s=0,i=t.length;s<i;s+=2){if(n+=t[s],n>e)return!1;if(n+=t[s+1],n>=e)return!0}return!1}function oe(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):ae(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&se.test(String.fromCharCode(e)):ae(e,ie)||ae(e,re))))}const ce=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"]),pe=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ue=new Set(["eval","arguments"]);function he(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return he(e,t)||pe.has(e)}function fe(e){return ue.has(e)}function me(e,t){return de(e,t)||fe(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Te{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ge{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Te(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let s=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(s,e,t,n);let i=s.names.get(e)||0;16&t?i|=4:(s.firstLexicalName||(s.firstLexicalName=e),i|=2),s.names.set(e,i),8&t&&this.maybeExportDefined(s,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(s=this.scopeStack[i],this.checkRedeclarationInScope(s,e,t,n),s.names.set(e,1|(s.names.get(e)||0)),this.maybeExportDefined(s,e),!(1667&s.flags));--i);this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,s){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(g.VarRedeclaration,s,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const s=e.names.get(t)||0;return 16&n?(2&s)>0||!this.treatFunctionsAsVarInScope(e)&&(1&s)>0:(2&s)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&s)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class xe extends Te{constructor(...e){super(...e),this.declareFunctions=new Set}}class Se extends ge{createScope(e){return new xe(e)}declareName(e,t,n){const s=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e),void s.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const be=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ee=T`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Pe(e){return"type"===e.importKind||"typeof"===e.importKind}const Ae={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ve=/\*?\s*@((?:no)?flow)\b/,Ce={__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:"♦"},we=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function Ie(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Ne(e,t,n){for(let s=t;s<n;s++)if(Ie(e.charCodeAt(s)))return!0;return!1}const ke=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oe=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function De(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const _e=T`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 Le(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Me(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Me(e.object)+"."+Me(e.property);throw new Error("Node had unexpected type: "+e.type)}class Fe extends Te{constructor(...e){super(...e),this.tsNames=new Map}}class Be extends ge{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Fe(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(g.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const s=this.currentScope();let i=s.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(s,e),void s.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&s.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const s=e.tsNames.get(t);return(2&s)>0?!(256&n)||!!(512&n)!=(4&s)>0:128&n&&(8&s)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&s)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}class je{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Re(e,t){return(e?2:0)|(t?1:0)}class Ue{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const s=this.plugins.get(t);for(const e of Object.keys(n))if((null==s?void 0:s[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function Ke(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Ve(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function qe(e,t,n){let s=null,i=t.length;for(;null===s&&i>0;)s=t[--i];null===s||s.start>n.start?Ve(e,n.comments):Ke(s,n.comments)}class We extends Ue{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let s=n-1;const i=t[s];i.start===e.end&&(i.leadingNode=e,s--);const{start:r}=e;for(;s>=0;s--){const n=t[s],i=n.end;if(!(i>r)){i===r&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(s,1)}}finalizeComment(e){var t;const{comments:n}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ke(e.leadingNode,n),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,n);else{const s=e.containingNode,i=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":qe(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":qe(s,s.arguments,e);break;case"ImportExpression":qe(s,[s.source,null!=(t=s.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":qe(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":qe(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":qe(s,s.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":qe(s,s.members,e);break;default:Ve(s,n)}else Ve(s,n)}}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,{length:n}=t;if(0===n)return;const s=t[n-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,t,n){const{commentStack:s}=this.state,i=s.length;if(0===i)return;let r=i-1;for(;r>=0;r--){const i=s[r],a=i.end;if(i.start===n)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}}class Je{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=[P.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:n,startLine:i,startColumn:r}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=n,this.curLine=i,this.lineStart=-r,this.startLoc=this.endLoc=new s(i,r,n)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new s(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new Je;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Ye=function(e){return e>=48&&e<=57};const Xe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$e={bin:e=>48===e||49===e,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 He(e,t,n,s,i,r){const a=n,o=s,l=i;let c="",p=null,u=n;const{length:h}=t;for(;;){if(n>=h){r.unterminated(a,o,l),c+=t.slice(u,n);break}const d=t.charCodeAt(n);if(ze(e,d,t,n)){c+=t.slice(u,n);break}if(92===d){c+=t.slice(u,n);const a=Ge(t,n,s,i,"template"===e,r);null!==a.ch||p?c+=a.ch:p={pos:n,lineStart:s,curLine:i},({pos:n,lineStart:s,curLine:i}=a),u=n}else 8232===d||8233===d?(++i,s=++n):10===d||13===d?"template"===e?(c+=t.slice(u,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,u=s=n):r.unterminated(a,o,l):++n}return{pos:n,str:c,firstInvalidLoc:p,lineStart:s,curLine:i,containsInvalid:!!p}}function ze(e,t,n,s){return"template"===e?96===t||36===t&&123===n.charCodeAt(s+1):t===("double"===e?34:39)}function Ge(e,t,n,s,i,r){const a=!i;t++;const o=e=>({pos:t,ch:e,lineStart:n,curLine:s}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=Qe(e,t,n,s,2,!1,a,r)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=et(e,t,n,s,a,r)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,n,s);default:if(l>=48&&l<=55){const a=t-1;let l=/^[0-7]+/.exec(e.slice(a,t+2))[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const p=e.charCodeAt(t);if("0"!==l||56===p||57===p){if(i)return o(null);r.strictNumericEscape(a,n,s)}return o(String.fromCharCode(c))}return o(String.fromCharCode(l))}}function Qe(e,t,n,s,i,r,a,o){const l=t;let c;return({n:c,pos:t}=Ze(e,t,n,s,16,i,r,!1,o,!a)),null===c&&(a?o.invalidEscapeSequence(l,n,s):t=l-1),{code:c,pos:t}}function Ze(e,t,n,s,i,r,a,o,l,c){const p=t,u=16===i?Xe.hex:Xe.decBinOct,h=16===i?$e.hex:10===i?$e.dec:8===i?$e.oct:$e.bin;let d=!1,f=0;for(let p=0,m=null==r?1/0:r;p<m;++p){const r=e.charCodeAt(t);let p;if(95===r&&"bail"!==o){const i=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(o){if(Number.isNaN(r)||!h(r)||u.has(i)||u.has(r)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,s)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,s)}++t;continue}if(p=r>=97?r-97+10:r>=65?r-65+10:Ye(r)?r-48:1/0,p>=i){if(p<=9&&c)return{n:null,pos:t};if(p<=9&&l.invalidDigit(t,n,s,i))p=0;else{if(!a)break;p=0,d=!0}}++t,f=f*i+p}return t===p||null!=r&&t-p!==r||d?{n:null,pos:t}:{n:f,pos:t}}function et(e,t,n,s,i,r){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=Qe(e,t,n,s,e.indexOf("}",t)-t,!0,i,r)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};r.invalidCodePoint(t,n,s)}}else({code:a,pos:t}=Qe(e,t,n,s,4,!1,i,r));return{code:a,pos:t}}function tt(e,t,n){return new s(n,e-t,e)}const nt=new Set([103,109,115,105,121,117,100,118]);class st{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 i(e.startLoc,e.endLoc)}}class it extends We{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,s)=>!!(2048&this.optionFlags)&&(this.raise(g.InvalidDigit,tt(e,t,n),{radix:s}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(g.StrictNumericEscape,tt(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(g.UnterminatedString,tt(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(g.UnterminatedTemplate,tt(e,t,n))}}),this.state=new Je,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new st(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return ke.lastIndex=e,ke.test(this.input)?ke.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,s=this.input.indexOf(e,n+2);if(-1===s)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,we.lastIndex=n+2;we.test(this.input)&&we.lastIndex<=s;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;const r={type:"CommentBlock",value:this.input.slice(n+2,s),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(s+e.length),loc:new i(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(r),r}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ie(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const r=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,r),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),loc:new i(n,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(De(n))++this.state.pos;else if(45===n&&!this.inModule&&8192&this.optionFlags){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==n||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const n=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),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 n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(g.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else oe(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Ie(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,s=this.input.charCodeAt(this.state.pos+1);42===e&&42===s&&(n++,s=this.input.charCodeAt(this.state.pos+2),t=57),61!==s||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(oe(e))return void this.readWord(e)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(g.UnterminatedRegExp,r(e,1));const t=this.input.charCodeAt(i);if(Ie(t))throw this.raise(g.UnterminatedRegExp,r(e,1));if(n)n=!1;else{if(91===t)s=!0;else if(93===t&&s)s=!1;else if(47===t&&!s)break;n=92===t}}const a=this.input.slice(t,i);++i;let o="";const l=()=>r(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if(nt.has(e))118===e?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(g.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(g.MalformedRegExpFlags,l())}++i,o+=t}this.state.pos=i,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,n=!1,s=!0){const{n:i,pos:r}=Ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,s,this.errorHandlers_readInt,!1);return this.state.pos=r,i}readRadixNumber(e){const t=this.state.pos,n=this.state.curPosition();let s=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(g.InvalidDigit,r(n,2),{radix:e});const a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,s=!0;else if(109===a)throw this.raise(g.InvalidDecimal,n);if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,i)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let s=!1,i=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(g.ZeroDigitNumericSeparator,r(n,t))}o=l&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,n),s=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((s||l)&&this.raise(g.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(g.InvalidDecimal,n),++this.state.pos;var p=!0}if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(136,u);if(p)return void this.finishToken(137,u);const h=o?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){const{code:t,pos:n}=et(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:s,lineStart:i}=He(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:i,curLine:r,lineStart:a}=He("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=r,n&&(this.state.firstInvalidTemplateEscapePos=new s(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let s=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?oe:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;const r=this.readCodePoint(!0);null!==r&&(i(r)||this.raise(g.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(r)),s=this.state.pos}}}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e),n=k.get(t);void 0!==n?this.finishToken(n,z(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;$(e)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:z(e)})}raise(e,t,n={}){const i=e(t instanceof s?t:t.loc.start,n);if(!(2048&this.optionFlags))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,n={}){const i=t instanceof s?t:t.loc.start,r=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){const s=a[t];if(s.loc.index===r)return a[t]=e(i,n);if(s.loc.index<r)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(g.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?z(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(g.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,s)=>{this.raise(e,tt(t,n,s))}}}class rt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class at{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 rt)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,s]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,s):this.parser.raise(g.InvalidPrivateFieldResolution,s,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:s,loneAccessors:i,undefinedPrivateNames:r}=this.current();let a=s.has(e);if(3&t){const n=a&&i.get(e);n?(a=(3&n)==(3&t)||(4&n)!=(4&t),a||i.delete(e)):a||i.set(e,t)}a&&this.parser.raise(g.PrivateNameRedeclaration,n,{identifierName:e}),s.add(e),r.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(g.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ot{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class lt extends ot{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ct{constructor(e){this.parser=void 0,this.stack=[new ot],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:s}=this;let i=s.length-1,r=s[i];for(;!r.isCertainlyParameterDeclaration();){if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,n),r=s[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,s=n[n.length-1],i=t.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,s=t[n];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(g.AwaitBindingIdentifier,e),s=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let s=e.length-2,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--s]})}}function pt(){return new ot}class ut extends it{addExtra(e,t,n,s=!0){if(!e)return;let{extra:i}=e;null==i&&(i={},e.extra=i),s?i[t]=n:Object.defineProperty(i,t,{enumerable:s,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const n=this.input.charCodeAt(e+t.length);return!(le(n)||55296==(64512&n))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ne(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Ne(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const n={node:null};try{const s=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:s,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const s=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:s};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:r,voidPatternLoc:a}=e;if(!t)return!!(n||s||r||i||a);null!=n&&this.raise(g.InvalidCoverInitializedName,n),null!=s&&this.raise(g.DuplicateProto,s),null!=i&&this.raise(g.UnexpectedPrivateField,i),null!=r&&this.unexpected(r),null!=a&&this.raise(g.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return J(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const i=this.scope,r=this.getScopeHandler();this.scope=new r(this,e);const a=this.prodParam;this.prodParam=new je;const o=this.classScope;this.classScope=new at(this);const l=this.expressionScope;return this.expressionScope=new ct(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=s,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;4&this.optionFlags&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ht{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class dt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new i(n),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ft=dt.prototype;ft.__clone=function(){const e=new dt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,s=t.length;n<s;n++){const s=t[n];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(e[s]=this[s])}return e};class mt extends ut{startNode(){const e=this.state.startLoc;return new dt(this,e.index,e)}startNodeAt(e){return new dt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,128&this.optionFlags&&(e.range[1]=n.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){const{type:t,start:n,end:s,loc:i,range:r,name:a}=e,o=Object.create(ft);return o.type=t,o.start=n,o.end=s,o.loc=i,o.range=r,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){const{type:t,start:n,end:s,loc:i,range:r,extra:a}=e,o=Object.create(ft);return o.type=t,o.start=n,o.end=s,o.loc=i,o.range=r,o.extra=a,o.value=e.value,o}}const yt=e=>"ParenthesizedExpression"===e.type?yt(e.expression):e;class Tt extends mt{toAssignable(e,t=!1){var n,s;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=yt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,e):"CallExpression"===i.type||"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(g.InvalidParenthesizedAssignment,e):this.raise(g.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let n=0,s=e.properties.length,i=s-1;n<s;n++){var r;const s=e.properties[n],a=n===i;this.toAssignableObjectExpressionProp(s,a,t),a&&"RestElement"===s.type&&null!=(r=e.extra)&&r.trailingCommaLoc&&this.raise(g.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:s}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.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":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(s=e.extra)?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(g.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(g.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?g.PatternHasAccessor:g.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,n),t||this.raise(g.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const s=e.length-1;for(let i=0;i<=s;i++){const r=e[i];r&&(this.toAssignableListItem(e,i,n),"RestElement"===r.type&&(i<s?this.raise(g.RestTrailingComma,r):t&&this.raise(g.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){const s=e[t];if("SpreadElement"===s.type){this.castNodeTo(s,"RestElement");const e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(s,n)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(g.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){const s=1&n,i=[];let r=!0;for(;!this.eat(e);)if(r?r=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let s=this.parseRestBinding();if((this.hasPlugin("flow")||2&n)&&(s=this.parseFunctionParamType(s)),i.push(s),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&n)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(g.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){const n=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(g.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,n,s){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,n=64,s=!1,i=!1,r=!1,a=!1){var o;const l=e.type;if(this.isObjectMethod(e))return;const c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===l)return c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(g.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==n&&this.raise(g.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,n,i);const{name:t}=e;return void(s&&(s.has(t)?this.raise(g.ParamDupe,e):s.add(t)))}"VoidPattern"===l&&"CatchClause"===t.type&&this.raise(g.VoidPatternCatchClauseParam,e);const p=yt(e);a||(a="CallExpression"===p.type&&("Import"===p.callee.type||"Super"===p.callee.type));const u=this.isValidLVal(l,a,!(r||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,n);if(!0===u)return;if(!1===u){const s=64===n?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(s,e,{ancestor:t})}let h,d;"string"==typeof u?(h=u,d="ParenthesizedExpression"===l):[h,d]=u;const f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:t,m=e[h];if(Array.isArray(m))for(const e of m)e&&this.checkLVal(e,f,n,s,i,d,!0);else m&&this.checkLVal(m,f,n,s,i,d,a)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?me(e.name,this.inModule):fe(e.name))&&(64===t?this.raise(g.StrictEvalArguments,e,{referenceName:e.name}):this.raise(g.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(g.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(g.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}}const gt=/in(?:stanceof)?|as|satisfies/y;function xt(e){if(!e)throw new Error("Assert fail")}const St=T`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function bt(e){return"private"===e||"public"===e||"protected"===e}function Et(e){return"in"===e||"out"===e}function Pt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Ct(e.object)}function At(e,t){var n;const{type:s}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===s){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!(!vt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:s}=e;if("-"===n&&vt(s,t))return!0}return!1}(e,t))||"TemplateLiteral"===s&&0===e.expressions.length||!!Pt(e)}function vt(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Ct(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ct(e.object)}const wt=T`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),It=["minimal","fsharp","hack","smart"],Nt=["^^","@@","^","%","#"],kt={estree:e=>class extends e{parse(){const e=b(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(b)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch(e){}const s=this.estreeParseLiteral(n);return s.regex={pattern:e,flags:t},s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=this.castNodeTo(e,"ExpressionStatement");return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:n,loc:s,range:i,raw:r,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=n,o.loc=s,o.range=i,o.raw=r,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,s,i){super.parseBlockBody(e,t,n,s,i);const r=e.directives.map(e=>this.directiveToStmt(e));e.body=r.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,s,i,r,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,n,s,i,r,a),delete o.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l));const c=this.castNodeTo(o,"FunctionExpression");return e.value=c,"ClassPrivateMethod"===r&&(e.computed=!1),"ObjectMethod"===r?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,n,s){const i=super.parseObjectProperty(e,t,n,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,n,s){return"Property"===e?"value":super.isValidLVal(e,t,n,s)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:n,value:s}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(g.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n):this.raise(g.PatternHasAccessor,e.key)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var s,i;return"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=null!=(s=n.arguments[1])?s:null,n.attributes=null!=(i=n.arguments[1])?i:null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,s=super.parseExport(e,t);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":1===s.specifiers.length&&"ExportNamespaceSpecifier"===s.specifiers[0].type&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=s;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===s.start&&this.resetStartLocation(s,n)}}return s}stopParseSubscript(e,t){const n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,s,i){const r=super.parseMember(e,t,n,s,i);return"OptionalMemberExpression"===r.type?this.castNodeTo(r,"MemberExpression"):r.optional=!1,r}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){const n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return b(super.finishNodeAt(e,t,n))}finishNode(e,t){const n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),b(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),b(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_e.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Ie(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===e)break;38===s?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Ie(s)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=Ce[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:$(this.state.type)?e.name=z(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(P.brace),this.next(),e=this.jsxParseExpressionContainer(e,P.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(_e.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(_e.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(P.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(P.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(P.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],s=this.jsxParseOpeningElementAt(e);let i=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(P.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,P.j_expr));break}default:this.unexpected()}Le(s)&&!Le(i)&&null!==i?this.raise(_e.MissingClosingTagFragment,i):!Le(s)&&Le(i)?this.raise(_e.MissingClosingTagElement,i,{openingTagName:Me(s.name)}):Le(s)||Le(i)||Me(i.name)!==Me(s.name)&&this.raise(_e.MissingClosingTagElement,i,{openingTagName:Me(s.name)})}if(Le(s)?(t.openingFragment=s,t.closingFragment=i):(t.openingElement=s,t.closingElement=i),t.children=n,this.match(47))throw this.raise(_e.UnwrappedAdjacentJSXElements,this.state.startLoc);return Le(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==P.j_expr){if(t===P.j_oTag||t===P.j_cTag){if(oe(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===P.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&143===e)t.splice(-2,2,P.j_cTag),this.state.canStartJSXElement=!1;else if(143===n)t.push(P.j_oTag);else if(144===n){const n=t[t.length-1];n===P.j_oTag&&56===e||n===P.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===P.j_expr):(this.setContext(P.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[n]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Se}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=ve.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(Ee.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Ee.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){const e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Ee.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,Ee.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let s=null,i=!1;return n.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(Ee.DuplicateDeclareModuleExports,e),"ES"===s&&this.raise(Ee.AmbiguousDeclareModuleKind,e),s="CommonJS",i=!0):("CommonJS"===s&&this.raise(Ee.AmbiguousDeclareModuleKind,e),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(Ee.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Ae[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Ee.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){be.has(e)&&this.raise(n?Ee.AssignReservedType:Ee.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=s,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(Ee.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===P.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:s,allowInexact:i}){const r=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,l;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(t&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),a.exact=l;!this.match(o);){let t=!1,r=null,o=null;const p=this.startNode();if(s&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),r=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(u&&this.unexpected(u.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),u&&this.unexpected(u.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&J(this.lookahead().type)&&(e=this.state.value,this.next());const s=this.flowParseObjectTypeProperty(p,t,r,u,e,n,null!=i?i:!l);null===s?(c=!0,o=this.state.lastTokStartLoc):a.properties.push(s)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(Ee.UnexpectedExplicitInexactInObject,o)}this.expect(o),n&&(a.inexact=c);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=r,p}flowParseObjectTypeProperty(e,t,n,s,i,r,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(r?a||this.raise(Ee.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ee.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(Ee.InexactVariance,s),null):(r||this.raise(Ee.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),s&&this.raise(Ee.SpreadVariance,s),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),s&&this.unexpected(s.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!r&&"constructor"===e.key.name&&e.value.this&&this.raise(Ee.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=s),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Ee.GetterMayNotHaveThisParam:Ee.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(g.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,s=null;const i=this.startNode(),r=this.lookahead(),a=78===this.state.type;return 14===r.type||17===r.type?(a&&!e&&this.raise(Ee.ThisParamMustBeFirst,i),t=this.parseIdentifier(a),this.eat(17)&&(n=!0,a&&this.raise(Ee.ThisParamMayNotBeOptional,i)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=s,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,s,i=!1;const r=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=r,s;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(q(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=r,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),s;this.eat(12)}return n=s?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(Ee.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if($(this.state.type)){const e=z(this.state.type);return this.next(),super.createIdentifier(t,e)}if(q(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(s.elementType=t,this.next(),t=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=t,s.indexType=this.flowParseType(),this.expect(3),n?(s.optional=i,t=this.finishNode(s,"OptionalIndexedAccessType")):t=this.finishNode(s,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,n=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(W(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||q(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(q(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||X(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||X(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const s=this.state.clone(),i=this.state.noArrowAt,r=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...i];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)}o&&l.length>1&&this.raise(Ee.AmbiguousConditionalArrow,s.startLoc),o&&1===l.length&&(this.state=s,e.push(l[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),r.test=e,r.consequent=a,r.alternate=this.forwardNoArrowParamsConversionAt(r,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(r,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],s=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):s.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(s.forEach(e=>this.finishArrowValidation(e)),[s,[]]):function(e,t){const n=[],s=[];for(let i=0;i<e.length;i++)(t(e[i])?n:s).push(e[i]);return[n,s]}(s,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return n}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(Ee.DeclareClassElement,s):t.value&&this.raise(Ee.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&oe(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var n;const i=e[s];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(Ee.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n){const s=super.parseArrayLike(e,t,n);return null==n||this.state.maybeInArrowParameters||this.toReferencedList(s.elements),s}isValidLVal(e,t,n,s){return"TypeCastExpression"===e||super.isValidLVal(e,t,n,s)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,s,i,r){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,s,i,r),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Ee.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Ee.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,s){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,s)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(Ee.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Ee.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,s,i,r,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!r&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,s,i,r,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Ee.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Ee.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Ee.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Ee.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Ee.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Ee.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Pe(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,s){if(super.applyImportPhase(e,t,n,s),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,s,i){const r=e.imported;let a=null;"Identifier"===r.type&&("type"===r.name?a="type":"typeof"===r.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===a||W(this.state.type)?(e.imported=r,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&W(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(g.ImportBindingIsString,e,{importName:r.value});e.imported=r,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}const l=Pe(e);return n&&l&&this.raise(Ee.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let s,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(e,t),i),!s.error)return s.node;const{context:n}=this.state,r=n[n.length-1];r!==P.j_oTag&&r!==P.j_expr||n.pop()}if(null!=(n=s)&&n.error||this.match(47)){var r,a;let n;i=i||this.state.clone();const o=this.tryParse(s=>{var i;n=this.flowParseTypeParameterDeclaration();const r=this.forwardNoArrowParamsConversionAt(n,()=>{const s=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(s,n),s});null!=(i=r.extra)&&i.parenthesized&&s();const a=this.maybeUnwrapTypeCastExpression(r);return"ArrowFunctionExpression"!==a.type&&s(),a.typeParameters=n,this.resetStartLocationFromNode(a,n),r},i);let l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Ee.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),o.node;l=o.node}if(null!=(r=s)&&r.node)return this.state=s.failState,s.node;if(l)return this.state=o.failState,l;if(null!=(a=s)&&a.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(Ee.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,s=!0){if(!n||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Ee.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,s)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const s=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),s);if(!i.error&&!i.aborted)return i.node;const r=this.tryParse(()=>super.parseSubscripts(e,t,n),s);if(r.node&&!r.error)return r.node;if(i.node)return this.state=i.failState,i.node;if(r.node)return this.state=r.failState,r.node;throw i.error||r.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,s.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,s)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Ee.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ee.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),s=this.input.charCodeAt(t+e+1);return 58===n&&58===s?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==s&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(Ee.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?Ee.EnumInvalidMemberInitializerSymbolType:Ee.EnumInvalidMemberInitializerPrimaryType:Ee.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(Ee.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(Ee.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:s}=t;null!==s&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const r=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(Ee.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),n.has(l)&&this.raise(Ee.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),n.add(l);const c={enumName:e,explicitType:t,memberName:l};switch(r.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean"),r.init=o.value,s.booleanMembers.push(this.finishNode(r,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number"),r.init=o.value,s.numberMembers.push(this.finishNode(r,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string"),r.init=o.value,s.stringMembers.push(this.finishNode(r,"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(r,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!q(this.state.type))throw this.raise(Ee.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(Ee.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const n=t.name,s=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:r,hasUnknownMembers:a}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=r.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=r.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=r.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=r.booleanMembers.length,a=r.numberMembers.length,o=r.stringMembers.length,l=r.defaultedMembers.length;if(i||a||o||l){if(i||a){if(!a&&!o&&i>=l){for(const e of r.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=r.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=l){for(const e of r.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=r.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Ee.EnumInconsistentMemberValues,s,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:St.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter})}getScopeHandler(){return Be}tsIsIdentifier(){return q(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!q(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const s=this.state.value;if(e.includes(s)){if(n&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:s=St.InvalidModifierOnTypeMember},i){const r=(e,t,n,s)=>{t===n&&i[s]&&this.raise(St.InvalidModifiersOrder,e,{orderedModifiers:[n,s]})},a=(e,t,n,s)=>{(i[n]&&t===s||i[s]&&t===n)&&this.raise(St.IncompatibleModifiers,e,{modifiers:[n,s]})};for(;;){const{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),n,i.static);if(!l)break;bt(l)?i.accessibility?this.raise(St.DuplicateAccessibilityModifier,o,{modifier:l}):(r(o,l,l,"override"),r(o,l,l,"static"),r(o,l,l,"readonly"),i.accessibility=l):Et(l)?(i[l]&&this.raise(St.DuplicateModifier,o,{modifier:l}),i[l]=!0,r(o,l,"in","out")):(hasOwnProperty.call(i,l)?this.raise(St.DuplicateModifier,o,{modifier:l}):(r(o,l,"static","readonly"),r(o,l,"static","override"),r(o,l,"override","readonly"),r(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(s,o,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,s){const i=[];let r=-1;for(;!this.tsIsListTerminator(e);){r=-1;const s=t();if(null==s)return;if(i.push(s),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}r=this.state.lastTokStartLoc.index}return s&&(s.value=r),i}tsParseBracketedList(e,t,n,s,i){s||(n?this.expect(0):this.expect(47));const r=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),r}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(St.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;q(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(St.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(St.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!q(this.state.type)&&(this.next(),this.match(14))}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 n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(St.ReadonlyForMethodSignature,e);const n=e;n.kind&&this.match(47)&&this.raise(St.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const s="parameters",i="typeAnnotation";if("get"===n.kind)n[s].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(n[s][0])&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[s].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const e=n[s][0];this.isThisParam(e)&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(St.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(St.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(St.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const n=e;t&&(n.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(n.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"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();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);return this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(St.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state;let s,i,r,a;const o=W(this.state.type)?this.lookaheadCharCode():null;if(58===o)s=!0,r=!1,i=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){r=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(s=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),a=this.tsParseType()):(s=!1,a=t,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),s=this.eat(14);if(s){let e;i?(e=this.startNodeAt(n),e.optional=r,e.label=i,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(St.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=r,this.raise(St.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,"TSNamedTupleMember")}else if(r){const e=this.startNodeAt(n);e.typeAnnotation=a,a=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,"TSRestType")}return a}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,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();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(q(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(St.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){const s=this.startNode(),i=this.eat(n),r=[];do{r.push(t())}while(this.eat(n));return 1!==r.length||i?(s.types=r,this.finishNode(s,e)):r[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(q(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const r=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=r,n.asserts=s,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!q(this.state.type)&&!this.match(78)||(e&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){xt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(St.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return n.length||this.raise(St.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),q(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(St.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===P.brace)return 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=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const s=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(St.ImportAliasHasImportType,s),e.moduleReference=s,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(St.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(St.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(q(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,s){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||q(this.state.type)))return this.tsParseAbstractDeclaration(e,s);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(q(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&q(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&q(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch(()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(St.EmptyTypeArguments,e):this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){const n=t.length?t[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const i=s.accessibility,r=s.override,a=s.readonly;4&e||!(i||a||r)||this.raise(St.UnexpectedParameterModifier,n);const o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);const l=this.parseMaybeDefault(o.loc.start,o);if(i||a||r){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),r&&(e.override=r),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(St.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(St.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(St.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,s,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(St.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){const s=super.parseArrayLike(e,t,n);return"ArrayExpression"===s.type&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(e,t,n,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return s.stop=!0,e;s.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let r;const a=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return s.stop=!0,e}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(r=this.state.curPosition());if(Q(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,s);return n.typeParameters=a,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=a,s.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,s.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&Y(o)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")});if(r&&this.unexpected(r,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(St.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,s))),a}return super.parseSubscript(e,t,n,s)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let s;if(G(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,s){this.state.isAmbientContext||super.checkReservedWord(e,t,n,s)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(St.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,s){super.applyImportPhase(e,t,n,s),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(q(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(St.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,n,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){const{isAmbientContext:s}=this.state,i=super.parseVarStatement(e,t,n||s);if(!s)return i;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(St.UsingDeclarationInAmbientContext,e,t),i;for(const{id:e,init:n}of i.declarations)n&&("var"===t||"let"===t||e.typeAnnotation?this.raise(St.InitializerNotAllowedInAmbientContext,n):At(n,this.hasPlugin("estree"))||this.raise(St.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const e=this.state.type,n=this.startNode();this.next();const s=125===e?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return s?(125===e&&(s.declare=!0),s):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){const e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>bt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:St.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,s)&&this.raise(St.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,s){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(St.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(St.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(St.IndexSignatureHasDeclare,t),void(t.override&&this.raise(St.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(St.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(St.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,s)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(St.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(St.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(St.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const s=q(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||n)&&(e.exportKind="type"),n&&"TSImportEqualsDeclaration"!==s.type&&(this.resetStartLocation(s,t),s.declare=!0),s):null}parseClassId(e,t,n,s){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(St.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(St.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(St.PrivateElementHasAbstract,e),e.accessibility&&this.raise(St.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(St.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,s,i,r){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(St.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(St.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,n,s,i,r)}pushClassPrivateMethod(e,t,n,s){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,s)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,s,i,r,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,n,s,i,r,a)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,s,i,r,a;let o,l,c,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!l.error)return l.node;const{context:n}=this.state,s=n[n.length-1];s!==P.j_oTag&&s!==P.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());const u=this.tryParse(n=>{var s,i;p=this.tsParseTypeParameters(this.tsParseConstModifier);const r=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==r.type||null!=(s=r.extra)&&s.parenthesized)&&n(),0!==(null==(i=p)?void 0:i.params.length)&&this.resetStartLocationFromNode(r,p),r.typeParameters=p,r},o);if(!u.error&&!u.aborted)return p&&this.reportReservedArrowTypeParam(p),u.node;if(!l&&(xt(!this.hasPlugin("jsx")),c=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!c.error))return c.node;if(null!=(s=l)&&s.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,p&&this.reportReservedArrowTypeParam(p),u.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(r=l)?void 0:r.error)||u.error||(null==(a=c)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(St.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(St.UnexpectedTypeCastInParameter,e):this.raise(St.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,s){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==s||!n)&&["expression",!0];default:return super.isValidLVal(e,t,n,s)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(e,t);return s.typeParameters=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(St.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,n){const s=e[t];"TSTypeCastExpression"===s.type&&(e[t]=this.typeCastToParameter(s)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(St.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,s,i,r,a){const o=super.parseMethod(e,t,n,s,i,r,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){const{key:e}=o;this.raise(St.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,s){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,s))}parseImportSpecifier(e,t,n,s,i){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,s,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const s=t?"imported":"local",i=t?"local":"exported";let r,a=e[s],o=!1,l=!0;const c=a.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();W(this.state.type)?(o=!0,a=e,r=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(r=n,l=!1)}else W(this.state.type)?(l=!1,r=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else W(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&n&&this.raise(t?St.TypeModifierIsUsedInTypeImports:St.TypeModifierIsUsedInTypeExports,c),e[s]=a,e[i]=r,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[s])),t&&this.checkIdentifier(e[i],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(oe(e)){if(gt.lastIndex=t,gt.test(this.input)){const e=this.codePointAtPos(gt.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),q(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=t,n}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,s){void 0!==e&&super.checkReservedWord(e,t,n,s)}cloneIdentifier(e){const t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n,s){return"Placeholder"===e||super.isValidLVal(e,t,n,s)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;const n=this.nextTokenStart();return 37===this.input.charCodeAt(n)&&37===this.input.charCodeAt(n+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();const s=e;return s.name=t.name,this.finishPlaceholder(s,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const s=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,r=this.parsePlaceholder("Identifier");if(r){if(!(this.match(81)||this.match(133)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(r,"ClassBody"),this.finishNode(e,s);throw this.raise(wt.ClassNameIsRequired,this.state.startLoc)}e.id=r}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,s)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);const s=e;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=n,s.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(s,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(z(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(wt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ot=Object.keys(kt);class Dt extends Tt{checkProto(e,t,n,s){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return n;const i=e.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?t?(this.raise(g.RecordNoProto,i),!0):(n&&(s?null===s.doubleProtoLoc&&(s.doubleProtoLoc=i.loc.start):this.raise(g.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(g.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(g.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const s=this.startNodeAt(t);for(s.expressions=[n];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new ht,i=!0);const{type:r}=this.state;(10===r||q(r))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),(o=this.state.type)>=29&&o<=33){const t=this.startNodeAt(n),s=this.state.value;if(t.operator=s,this.match(29)){this.toAssignable(a,!0),t.left=a;const s=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=s&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=s&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=s&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=s&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===s||"&&="===s||"??="===s),t}var o;if(i&&this.checkExpressionErrors(e,!0),s){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Y(e):Y(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.YieldNotInGeneratorFunction,n),this.parseYield(n)}return a}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=G(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const s=this.state.type;if((i=s)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=G(s);if(i>n){if(39===s){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const r=this.startNodeAt(t);r.left=e,r.operator=this.state.value;const a=41===s||42===s,o=40===s;if(o&&(i=G(42)),this.next(),39===s&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);r.right=this.parseExprOpRightExpr(s,i);const l=this.finishNode(r,a||o?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(o&&(41===c||42===c)||a&&40===c)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!h.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(g.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),r=this.startNode();if(a=this.state.type,R[a]){r.operator=this.state.value,r.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),r.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=r.argument;"Identifier"===e.type?this.raise(g.StrictDelete,r):this.hasPropertyAsPrivateName(e)&&this.raise(g.DeletePrivateField,r)}if(!i)return t||this.checkExponentialAfterUnary(r),this.finishNode(r,"UnaryExpression")}var a;const o=this.parseUpdate(r,i,e);if(s){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Y(e):Y(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const s=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;H(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(s);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,t)}parseSubscripts(e,t,n){const s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,s),s.maybeAsyncArrow=!1}while(!s.stop);return e}parseSubscript(e,t,n,s){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,s);if(Q(i))return this.parseTaggedTemplateExpression(e,t,s);let r=!1;if(18===i){if(n&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,s);s.optionalChainMember=r=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,s,r);{const n=this.eat(0);return n||r||this.eat(16)?this.parseMember(e,t,s,n,r):this.stopParseSubscript(e,s)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,s,i){const r=this.startNodeAt(t);return r.object=e,r.computed=s,s?(r.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(g.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),r.property=this.parsePrivateName()):r.property=this.parseIdentifier(!0),n.optionalChainMember?(r.optional=i,this.finishNode(r,"OptionalMemberExpression")):this.finishNode(r,"MemberExpression")}parseBind(e,t,n,s){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,s){const i=this.state.maybeInArrowParameters;let r=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=n;o&&(this.expressionScope.enter(new lt(2)),r=new ht),l&&(a.optional=s),a.arguments=s?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,a,r);let c=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.checkDestructuringPrivate(r),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(r,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const s=this.startNodeAt(t);return s.tag=e,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,t),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(g.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(g.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n){const s=[];let i=!0;const r=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}s.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=r,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Ve(e,t.innerComments),t.callee.trailingComments&&Ve(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(g.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(g.UnsupportedBind,e)}case 139:return this.raise(g.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(oe(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===s)return this.parseDecimalLiteral(this.state.value);if(2===s||1===s)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===s||7===s)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(q(s)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(q(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(t,n,e,s)}finishTopicReference(e,t,n,s){if(this.testTopicReferenceConfiguration(n,t,s))return"hack"===n?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(g.PipeTopicUnconfiguredToken,t,{token:z(s)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:z(n)}]);case"smart":return 27===n;default:throw this.raise(g.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Re(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(g.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(g.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(r(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||s)&&this.raise(g.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(g.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new lt(1));const s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const r=this.state.startLoc,a=[],o=new ht;let l,c,p=!0;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,a,!1),h):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(n=this.startNodeAt(r),n.expressions=a,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,u)):n=a[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(g.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),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),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(g.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:s,value:i}=this.state,a=t+1,o=this.startNodeAt(r(n,1));null===i&&(e||this.raise(g.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,p=s+c;o.value={raw:this.input.slice(a,p).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,c)},o.tail=l,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,r(this.state.lastTokEndLoc,c)),u}parseTemplate(e){const t=this.startNode();let n=this.parseTemplateElement(e);const s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=s,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,s){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let r=!1,a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(s),r=this.checkProto(i,n,r,s)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(g.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let s,i=!1,r=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(s=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(n);const o=this.state.containsEsc;if(this.parsePropertyName(n,e),!a&&!o&&this.maybeAsyncOrAccessorProp(n)){const{key:e}=n,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(n)),"get"!==t&&"set"!==t||(r=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,s,a,i,!1,r,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==n&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=s[s.length-1])?void 0:t.type)&&this.raise(g.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,s,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,s){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=s?null===s.shorthandAssignLoc&&(s.shorthandAssignLoc=n):this.raise(g.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,s,i,r,a){const o=this.parseObjectMethod(e,n,s,i,r)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:s}=this.state;let i;if(W(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(g.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===n){i=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=i,139!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,s,i,r,a=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(a?576:0)|(i?32:0)),this.prodParam.enter(Re(n,e.generator)),this.parseFunctionParams(e,s);const o=this.parseFunctionBodyAndFinish(e,r,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,n){t&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,s){this.scope.enter(518);let i=Re(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const r=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=r,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){const s=t&&!this.match(5);if(this.expressionScope.enter(pt()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{const r=!this.isSimpleParamList(e.params);i&&r&&this.raise(g.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const a=!s&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||r),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,s=!0){const i=!t&&new Set,r={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,r,5,i,s)}parseExprList(e,t,n,s){const i=[];let r=!0;for(;!this.eat(e);){if(r)r=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,s){let i;if(this.match(12))t||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",n)}parseIdentifierName(e){let t;const{startLoc:n,type:s}=this.state;W(s)?t=this.state.value:this.unexpected();const i=s<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,s){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ce.has(e)}(e))this.raise(g.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?s?me:de:he)(e,this.inModule))this.raise(g.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(g.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||Q(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(g.YieldInParameter,t);let n=!1,s=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:s=this.parseMaybeAssign()}return t.delegate=n,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(g.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(g.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.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"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(null!=t&&this.match(88)){const n=this.lookaheadCharCode();if(44===n||n===(3===e?93:8===e?125:41)||61===n)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}const _t={kind:1},Lt={kind:2},Mt=/[\uD800-\uDFFF]/u,Ft=/in(?:stanceof)?/y;class Bt extends Dt{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,n){for(let s=0;s<e.length;s++){const i=e[s],{type:a}=i;if("number"==typeof a){if(139===a){const{loc:t,start:n,value:a,end:o}=i,l=n+1,c=r(t.start,1);e.splice(s,1,new st({type:Z(27),value:"#",start:n,end:l,startLoc:t.start,endLoc:c}),new st({type:Z(132),value:a,start:l,end:o,startLoc:c,endLoc:t.end})),s++;continue}if(Q(a)){const{loc:o,start:l,value:c,end:p}=i,u=l+1,h=r(o.start,1);let d,f,m,y,T;d=96===t.charCodeAt(l-n)?new st({type:Z(22),value:"`",start:l,end:u,startLoc:o.start,endLoc:h}):new st({type:Z(8),value:"}",start:l,end:u,startLoc:o.start,endLoc:h}),24===a?(m=p-1,y=r(o.end,-1),f=null===c?null:c.slice(1,-1),T=new st({type:Z(22),value:"`",start:m,end:p,startLoc:y,endLoc:o.end})):(m=p-2,y=r(o.end,-2),f=null===c?null:c.slice(1,-2),T=new st({type:Z(23),value:"${",start:m,end:p,startLoc:y,endLoc:o.end})),e.splice(s,1,d,new st({type:Z(20),value:f,start:u,end:m,startLoc:h,endLoc:y}),T),s+=2;continue}i.type=Z(a)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return s=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",r(this.state.startLoc,-1)),s}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),s=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),r=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",r),this.addExtra(n,"expressionValue",s),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(oe(e)){if(Ft.lastIndex=t,Ft.test(this.input)){const e=this.codePointAtPos(Ft.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,s=this.startNode(),i=!!(2&e),r=!!(4&e),a=1&e;switch(n){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(46===this.lookaheadCharCode())break;return r||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!i&&r);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,s),!0);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.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,s):this.raise(g.UnexpectedLexicalDeclaration,s):this.raise(g.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(g.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(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===n?this.parseImport(s):this.parseExport(s,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!i&&r)}const o=this.state.value,l=this.parseExpression();return q(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(s,o,l,e):this.parseExpressionStatement(s,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(g.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){var s;return e&&(null!=(s=t.decorators)&&s.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(g.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const s=this.state.labels[n];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(t||1===s.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(_t),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(_t);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const s=this.isAwaitUsing(),i=s||this.isForUsing(),r=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||r){const n=this.startNode();let r;s?(r="await using",this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(n,!0,r);const a=this.finishNode(n,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}const s=this.isContextual(95),i=new ht,r=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(n&&this.raise(g.ForOfLet,r),null===t&&s&&"Identifier"===r.type&&this.raise(g.ForOfAsync,r)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(r,!0);const n=a?"ForOfStatement":"ForInStatement";return this.checkLVal(r,{type:n}),this.parseForIn(e,r,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,r)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(g.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Lt),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(e&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(g.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(_t),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(g.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,s){for(const e of this.state.labels)e.name===t&&this.raise(g.LabelRedeclaration,n,{labelName:t});const i=(r=this.state.type)>=90&&r<=92?1:this.match(71)?2:null;var r;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&s?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){const s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,n),t&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,s,i){const r=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(r,t?a:void 0,n,s,i)}parseBlockOrModuleBlockBody(e,t,n,s,i){const r=this.state.strict;let a=!1,o=!1;for(;!this.match(s);){const s=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(s)){const e=this.stmtToDirective(s);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(s)}null==i||i.call(this,a),r||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const s=this.match(58);return this.next(),s?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||s&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(g.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(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,n,s=!1){const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||s||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n&&"using"!==n&&"await using"!==n||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==n.type&&"ObjectPattern"!==n.type||this.raise(g.UsingDeclarationHasBindingPattern,n.loc.start):"VoidPattern"===n.type&&this.raise(g.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const n=2&t,s=!!(1&t),i=s&&!(4&t),r=!!(8&t);this.initFunction(e,r),this.match(55)&&(n&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Re(r,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||q(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ot(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let s=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}const e=this.startNode();s.length&&(e.decorators=s,this.resetStartLocationFromNode(e,s[0]),s=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(g.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),s.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const s=t;return s.kind="method",s.computed=!1,s.key=n,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}if(this.isClassProperty()){const s=t;return s.computed=!1,s.key=n,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,s)}parseClassMemberWithIsStatic(e,t,n,s){const i=t,r=t,a=t,o=t,l=t,c=i,p=i;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(139);return this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),t?void this.pushClassPrivateMethod(e,r,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const u=!this.state.containsEsc&&q(this.state.type),h=this.parseClassElementName(t),d=u?h.name:null,f=this.isPrivateName(h),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,r,!1,!1);const s=this.isNonstaticConstructor(i);let a=!1;s&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,h),s&&this.hasPlugin("typescript")&&t.override&&this.raise(g.OverrideOnConstructor,h),n.hadConstructor=!0,a=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,s,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),c.kind=d;const t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,r,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);p.optional&&this.unexpected(m),c.kind="method";const n=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),n?this.pushClassPrivateMethod(e,r,t,!0):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==n||this.raise(g.StaticPrototype,this.state.startLoc),139===t){"constructor"===n&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);const s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(g.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(g.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){n||t.computed||!this.nameIsConstructor(t.key)||this.raise(g.ConstructorClassField,t.key);const s=this.parseClassAccessorProperty(t);e.body.push(s),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,t,n,s,i,r){e.body.push(this.parseMethod(t,n,s,i,r,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,s){const i=this.parseMethod(t,n,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const r="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,r)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(pt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,s=8331){if(q(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,s);else{if(!n&&t)throw this.raise(g.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,n),i=!s||this.eat(12),r=i&&this.eatExportStar(e),a=r&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=s||r;if(r&&!a){if(s&&this.unexpected(),t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let p;if(s&&i&&!r&&!c&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),l||c){if(p=!1,t)throw this.raise(g.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){var u;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(u=n.declaration)?void 0:u.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,s=this.parseExportDefaultExpression();if(n.declaration=s,"ClassDeclaration"===s.type)this.maybeTakeDecorators(t,s,n);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),s=this.startNodeAtNode(n);return s.exported=n,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const n="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(g.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(q(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||q(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(g.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,s){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var r;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!==4||null!=(r=t.extra)&&r.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!s&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(g.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:n}=t;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(e,n.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(g.DuplicateDefaultExport,e):this.raise(g.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const s=this.isContextual(130),i=this.match(134),r=this.startNode();r.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(r,i,e,s))}return t}parseExportSpecifier(e,t,n,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),t=Mt.exec(e.value);return t&&this.raise(g.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(g.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(g.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var s;"ImportDefaultSpecifier"!==n&&this.raise(g.ImportReflectionNotBinding,t[0].loc.start),(null==(s=e.assertions)?void 0:s.length)>0&&this.raise(g.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(g.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,s){t||("module"===n?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;return(W(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(e,t,s,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,s))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return q(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),s=n&&this.maybeParseStarImportSpecifier(e);return n&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),s=this.state.value;if(t.has(s)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),t.add(s),this.match(134)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(g.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!W(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),s=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();const r=this.parseImportSpecifier(n,s,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(r)}}parseImportSpecifier(e,t,n,s,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(g.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class jt extends Bt{constructor(e,t,n){const s=function(e){const t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const n of Object.keys(t))null!=e[n]&&(t[n]=e[n]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(s,t),this.options=s,this.initializeScopes(),this.plugins=n,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let i=0;s.allowAwaitOutsideFunction&&(i|=1),s.allowReturnOutsideFunction&&(i|=2),s.allowImportExportEverywhere&&(i|=8),s.allowSuperOutsideMethod&&(i|=16),s.allowUndeclaredExports&&(i|=64),s.allowNewTargetOutsideFunction&&(i|=4),s.allowYieldOutsideFunction&&(i|=32),s.ranges&&(i|=128),s.tokens&&(i|=256),s.createImportExpressions&&(i|=512),s.createParenthesizedExpressions&&(i|=1024),s.errorRecovery&&(i|=2048),s.attachComment&&(i|=4096),s.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return ge}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;const n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}}const Rt=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}(V);function Ut(e,t){let n=jt;const s=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,n;"string"==typeof t?e=t:[e,n]=t,s.has(e)||s.set(e,n||{})}!function(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(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=e.get("decorators").allowCallParenthesized;if(null!=n&&"boolean"!=typeof n)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 s=e.get("pipelineOperator").proposal;if(!It.includes(s)){const e=It.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===s){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(!Nt.includes(t)){const e=Nt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var n;if("#"===t&&"hash"===(null==(n=e.get("recordAndTuple"))?void 0:n.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===s&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))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.");if("may-2020"!==e.get("moduleAttributes").version)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")&&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",{}),e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){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.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(s),n=function(e){const t=[];for(const n of Ot)e.has(n)&&t.push(n);const n=t.join("|");let s=Kt.get(n);if(!s){s=jt;for(const e of t)s=kt[e](s);Kt.set(n,s)}return s}(s)}return new n(e,t,s)}const Kt=new Map;t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Ut(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Ut(t,e),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}else s.program.sourceType="script";return s}catch(n){try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Ut(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=Rt},2203:e=>{"use strict";e.exports=require("stream")},2226:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){const n=e.quasis;let s="`";for(let i=0;i<n.length-1;i++)if(s+=n[i].value.raw,this.token(s+"${",!0),this.print(t[i]),s="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}s+=n[n.length-1].value.raw,this.token(s+"`",!0)}},2234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"eval"!==(e=(0,s.default)(e))&&"arguments"!==e||(e="_"+e),e};var s=n(6744)},2246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){r("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){r("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){r("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){r("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){r("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){r("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){r("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){r("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){r("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){r("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){r("BigIntLiteral",e,t)},t.assertBinary=function(e,t){r("Binary",e,t)},t.assertBinaryExpression=function(e,t){r("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){r("BindExpression",e,t)},t.assertBlock=function(e,t){r("Block",e,t)},t.assertBlockParent=function(e,t){r("BlockParent",e,t)},t.assertBlockStatement=function(e,t){r("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){r("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){r("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){r("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){r("BreakStatement",e,t)},t.assertCallExpression=function(e,t){r("CallExpression",e,t)},t.assertCatchClause=function(e,t){r("CatchClause",e,t)},t.assertClass=function(e,t){r("Class",e,t)},t.assertClassAccessorProperty=function(e,t){r("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){r("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){r("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){r("ClassExpression",e,t)},t.assertClassImplements=function(e,t){r("ClassImplements",e,t)},t.assertClassMethod=function(e,t){r("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){r("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){r("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){r("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){r("CompletionStatement",e,t)},t.assertConditional=function(e,t){r("Conditional",e,t)},t.assertConditionalExpression=function(e,t){r("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){r("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){r("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){r("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){r("Declaration",e,t)},t.assertDeclareClass=function(e,t){r("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){r("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){r("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){r("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){r("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){r("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){r("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){r("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){r("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){r("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){r("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){r("Decorator",e,t)},t.assertDirective=function(e,t){r("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){r("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){r("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){r("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){r("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){r("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){r("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){r("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){r("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){r("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){r("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){r("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){r("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){r("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){r("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){r("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){r("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){r("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){r("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){r("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){r("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){r("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){r("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){r("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){r("ExportSpecifier",e,t)},t.assertExpression=function(e,t){r("Expression",e,t)},t.assertExpressionStatement=function(e,t){r("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){r("ExpressionWrapper",e,t)},t.assertFile=function(e,t){r("File",e,t)},t.assertFlow=function(e,t){r("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){r("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){r("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){r("FlowPredicate",e,t)},t.assertFlowType=function(e,t){r("FlowType",e,t)},t.assertFor=function(e,t){r("For",e,t)},t.assertForInStatement=function(e,t){r("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){r("ForOfStatement",e,t)},t.assertForStatement=function(e,t){r("ForStatement",e,t)},t.assertForXStatement=function(e,t){r("ForXStatement",e,t)},t.assertFunction=function(e,t){r("Function",e,t)},t.assertFunctionDeclaration=function(e,t){r("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){r("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){r("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){r("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){r("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){r("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){r("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){r("Identifier",e,t)},t.assertIfStatement=function(e,t){r("IfStatement",e,t)},t.assertImmutable=function(e,t){r("Immutable",e,t)},t.assertImport=function(e,t){r("Import",e,t)},t.assertImportAttribute=function(e,t){r("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){r("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){r("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){r("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){r("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){r("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){r("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){r("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){r("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){r("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){r("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){r("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){r("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){r("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){r("JSX",e,t)},t.assertJSXAttribute=function(e,t){r("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){r("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){r("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){r("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){r("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){r("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){r("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){r("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){r("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){r("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){r("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){r("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){r("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){r("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){r("JSXText",e,t)},t.assertLVal=function(e,t){r("LVal",e,t)},t.assertLabeledStatement=function(e,t){r("LabeledStatement",e,t)},t.assertLiteral=function(e,t){r("Literal",e,t)},t.assertLogicalExpression=function(e,t){r("LogicalExpression",e,t)},t.assertLoop=function(e,t){r("Loop",e,t)},t.assertMemberExpression=function(e,t){r("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){r("MetaProperty",e,t)},t.assertMethod=function(e,t){r("Method",e,t)},t.assertMiscellaneous=function(e,t){r("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){r("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,i.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){r("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){r("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){r("NewExpression",e,t)},t.assertNoop=function(e,t){r("Noop",e,t)},t.assertNullLiteral=function(e,t){r("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){r("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){r("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,i.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){r("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){r("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){r("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){r("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){r("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){r("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){r("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){r("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){r("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){r("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){r("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){r("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){r("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){r("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){r("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){r("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){r("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){r("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){r("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){r("Pattern",e,t)},t.assertPatternLike=function(e,t){r("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){r("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){r("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){r("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){r("Placeholder",e,t)},t.assertPrivate=function(e,t){r("Private",e,t)},t.assertPrivateName=function(e,t){r("PrivateName",e,t)},t.assertProgram=function(e,t){r("Program",e,t)},t.assertProperty=function(e,t){r("Property",e,t)},t.assertPureish=function(e,t){r("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){r("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){r("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){r("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,i.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",e,t)},t.assertRestElement=function(e,t){r("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,i.default)("assertRestProperty","assertRestElement"),r("RestProperty",e,t)},t.assertReturnStatement=function(e,t){r("ReturnStatement",e,t)},t.assertScopable=function(e,t){r("Scopable",e,t)},t.assertSequenceExpression=function(e,t){r("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){r("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,i.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",e,t)},t.assertStandardized=function(e,t){r("Standardized",e,t)},t.assertStatement=function(e,t){r("Statement",e,t)},t.assertStaticBlock=function(e,t){r("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){r("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){r("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){r("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){r("Super",e,t)},t.assertSwitchCase=function(e,t){r("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){r("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){r("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){r("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){r("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){r("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){r("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){r("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){r("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){r("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){r("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){r("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){r("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){r("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){r("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){r("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){r("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){r("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){r("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){r("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){r("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){r("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){r("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){r("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){r("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){r("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){r("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){r("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){r("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){r("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){r("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){r("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){r("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){r("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){r("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){r("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){r("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){r("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){r("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){r("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){r("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){r("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){r("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){r("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){r("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){r("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){r("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){r("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){r("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){r("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){r("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){r("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){r("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){r("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){r("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){r("TSThisType",e,t)},t.assertTSTupleType=function(e,t){r("TSTupleType",e,t)},t.assertTSType=function(e,t){r("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){r("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){r("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){r("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){r("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){r("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){r("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){r("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){r("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){r("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){r("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){r("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){r("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){r("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){r("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){r("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){r("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){r("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){r("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){r("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){r("Terminatorless",e,t)},t.assertThisExpression=function(e,t){r("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){r("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){r("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){r("TopicReference",e,t)},t.assertTryStatement=function(e,t){r("TryStatement",e,t)},t.assertTupleExpression=function(e,t){r("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){r("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){r("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){r("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){r("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){r("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){r("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){r("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){r("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){r("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){r("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){r("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){r("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){r("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){r("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){r("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){r("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){r("VariableDeclarator",e,t)},t.assertVariance=function(e,t){r("Variance",e,t)},t.assertVoidPattern=function(e,t){r("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){r("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){r("While",e,t)},t.assertWhileStatement=function(e,t){r("WhileStatement",e,t)},t.assertWithStatement=function(e,t){r("WithStatement",e,t)},t.assertYieldExpression=function(e,t){r("YieldExpression",e,t)};var s=n(3828),i=n(3762);function r(e,t,n){if(!(0,s.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},2257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:n=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let s=this;var i;n||(s=null!=(i=s.ensureFunctionName(!1))?i:s);const{thisBinding:r,fnPath:a}=W(s,n,e,t);if(a.ensureBlock(),function(e){e.node.type="FunctionExpression"}(a),!n){const e=r?null:a.scope.generateUidIdentifier("arrowCheckId");return e&&a.parentPath.scope.push({id:e,init:E([])}),a.get("body").unshiftContainer("body",d(u(this.hub.addHelper("newArrowCheck"),[N(),f(e?e.name:r)]))),a.replaceWith(u(x(a.node,f("bind")),[e?f(e.name):N()])),a.get("callee.object")}return a},t.ensureBlock=function(){const e=this.get("body"),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 n=[];let s,i,r="body";e.isStatement()?(i="body",s=0,n.push(e.node)):(r+=".body.0",this.isFunction()?(s="argument",n.push(A(e.node))):(s="expression",n.push(d(e.node)))),this.node.body=p(n);const o=this.get(r);return a.setup.call(e,o,i?o.node[i]:o.node,i,s),this.node},t.ensureFunctionName=function(e){if(this.node.id)return this;const t=F(this.node,this.parent);if(null==t)return this;let{name:n}=t;if(!e&&/[\uD800-\uDFFF]/.test(n))return null;if(n.startsWith("get ")||n.startsWith("set "))return null;n=D(n.replace(/[/ ]/g,"_"));const s=f(n);V(s,t.originalNode);const r={needsRename:!1,name:n},{scope:a}=this,o=a.getOwnBinding(n);if(o?"param"===o.kind&&(r.needsRename=!0):(a.parent.hasBinding(n)||a.hasGlobal(n))&&this.traverse(H,r),!r.needsRename)return this.node.id=s,a.getProgramParent().references[s.name]=!0,this;if(a.hasBinding(s.name)&&!a.hasGlobal(s.name))return a.rename(s.name),this.node.id=s,a.getProgramParent().references[s.name]=!0,this;if(!_(this.node))return null;const l=a.generateUidIdentifier(s.name),c=[];for(let e=0,t=function(e){const t=e.params.findIndex(e=>L(e)||M(e));return-1===t?e.params.length:t}(this.node);e<t;e++)c.push(a.generateUidIdentifier("x"));const p=i.default.expression.ast`
|
|
1
|
+
(()=>{var e={120:e=>{"use strict";e.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},175:(e,t,n)=>{var s=n(1094),i=n(3193).StringDecoder;e.exports=function(e,t,n){var r=new i,a="",o=n&&n.maxLength,l=!n||!1!==n.trailing;function c(e,n){if(t){try{n=t(n)}catch(t){return e.emit("error",t)}void 0!==n&&e.queue(n)}else e.queue(n)}function p(t,n){var s=((null!=a?a:"")+n).split(e);if(a=s.pop(),o&&a.length>o)return t.emit("error",new Error("maximum buffer reached"));for(var i=0;i<s.length;i++)c(t,s[i])}return"function"==typeof e&&(t=e,e=null),e||(e=/\r?\n/),s(function(e){p(this,r.write(e))},function(){r.end&&p(this,r.end()),l&&null!=a&&c(this,a),this.queue(null)})}},245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e)};var s=n(5279)},299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=l(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const n=["Number","String","Math"],s=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],i=["random"];function r(e){return n.includes(e)}function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const o=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function l(e,t){const{node:n}=e,{seen:p}=t;if(p.has(n)){const s=p.get(n);return s.resolved?s.value:void a(e,t)}{const u={resolved:!1};p.set(n,u);const h=function(e,t){if(t.confident){if(e.isSequenceExpression()){const n=e.get("expressions");return l(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return c(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const n=e.get("tag.object"),{node:{name:s}}=n,i=e.get("tag.property");if(n.isIdentifier()&&"String"===s&&!e.scope.getBinding(s)&&i.isIdentifier()&&"raw"===i.node.name)return c(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const n=l(e.get("test"),t);if(!t.confident)return;return l(n?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return l(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const n=e.get("property"),s=e.get("object");if(s.isLiteral()){const i=s.node.value,r=typeof i;let a=null;if(e.node.computed){if(a=l(n,t),!t.confident)return}else n.isIdentifier()&&(a=n.node.name);if(!("number"!==r&&"string"!==r||null==a||"number"!=typeof a&&"string"!=typeof a))return i[a]}}if(e.isReferencedIdentifier()){const s=e.scope.getBinding(e.node.name);if(s){if(s.constantViolations.length>0||e.node.start<s.path.node.end)return void a(s.path,t);const i=s.path.scope;if("var"===s.kind&&i!==s.scope){let r=!i.path.parentPath.isBlockStatement();for(let o=i.parent;o;o=o.parent){var n;if(o===e.scope){if(r)return void a(s.path,t);break}null!=(n=o.path.parentPath)&&n.isBlockStatement()&&(r=!0)}}if(s.hasValue)return s.value}const i=e.node.name;if(o.has(i))return s?void a(s.path,t):o.get(i);const r=e.resolve();if(r===e)return void a(e,t);const c=l(r,t);return"object"==typeof c&&null!==c&&s.references>1?void a(r,t):c}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";const s=l(n,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 n=[],s=e.get("elements");for(const e of s){const s=e.evaluate();if(!s.confident)return void a(s.deopt,t);n.push(s.value)}return n}if(e.isObjectExpression()){const n={},s=e.get("properties");for(const e of s){if(e.isObjectMethod()||e.isSpreadElement())return void a(e,t);const s=e.get("key");let i;if(e.node.computed){if(i=s.evaluate(),!i.confident)return void a(i.deopt,t);i=i.value}else i=s.isIdentifier()?s.node.name:s.node.value;let r=e.get("value").evaluate();if(!r.confident)return void a(r.deopt,t);r=r.value,n[i]=r}return n}if(e.isLogicalExpression()){const n=t.confident,s=l(e.get("left"),t),i=t.confident;t.confident=n;const r=l(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!s||a),!t.confident)return;return s||r;case"&&":if(t.confident=i&&(!s||a),!t.confident)return;return s&&r;case"??":if(t.confident=i&&(null!=s||a),!t.confident)return;return null!=s?s:r}}if(e.isBinaryExpression()){const n=l(e.get("left"),t);if(!t.confident)return;const s=l(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-s;case"+":return n+s;case"/":return n/s;case"*":return n*s;case"%":return n%s;case"**":return Math.pow(n,s);case"<":return n<s;case">":return n>s;case"<=":return n<=s;case">=":return n>=s;case"==":return n==s;case"!=":return n!=s;case"===":return n===s;case"!==":return n!==s;case"|":return n|s;case"&":return n&s;case"^":return n^s;case"<<":return n<<s;case">>":return n>>s;case">>>":return n>>>s}}if(e.isCallExpression()){const n=e.get("callee");let a,o;if(n.isIdentifier()&&!e.scope.getBinding(n.node.name)&&(r(n.node.name)||function(e){return s.includes(e)}(n.node.name))&&(o=global[n.node.name]),n.isMemberExpression()){const e=n.get("object"),t=n.get("property");if(e.isIdentifier()&&t.isIdentifier()&&r(e.node.name)&&!function(e){return i.includes(e)}(t.node.name)){a=global[e.node.name];const n=t.node.name;hasOwnProperty.call(a,n)&&(o=a[n])}if(e.isLiteral()&&t.isIdentifier()){const n=typeof e.node.value;"string"!==n&&"number"!==n||(a=e.node.value,o=a[t.node.name])}}if(o){const n=e.get("arguments").map(e=>l(e,t));if(!t.confident)return;return o.apply(a,n)}}a(e,t)}}(e,t);return t.confident&&(u.resolved=!0,u.value=h),h}}function c(e,t,n,s=!1){let i="",r=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!n.confident)break;i+=s?e.value.raw:e.value.cooked;const t=a[r++];t&&(i+=String(l(t,n)))}if(n.confident)return i}},329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(8960);function i(e,t,n,r){const a=[].concat(e),o=Object.create(null);for(;a.length;){const e=a.shift();if(!e)continue;if(r&&((0,s.isAssignmentExpression)(e)||(0,s.isUnaryExpression)(e)||(0,s.isUpdateExpression)(e)))continue;if((0,s.isIdentifier)(e)){t?(o[e.name]=o[e.name]||[]).push(e):o[e.name]=e;continue}if((0,s.isExportDeclaration)(e)&&!(0,s.isExportAllDeclaration)(e)){(0,s.isDeclaration)(e.declaration)&&a.push(e.declaration);continue}if(n){if((0,s.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,s.isFunctionExpression)(e))continue}const l=i.keys[e.type];if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?a.push(...n):a.push(n))}}return o}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const s=[],r=[];let a=c(e,t,r);const o=u(e,t,n);if(o){const t=c(e,o.ifStatement);a=a.filter(e=>!t.includes(e)),s.push(o.typeAnnotation)}if(a.length){a.push(...r);for(const e of a)s.push(e.getTypeAnnotation())}if(s.length)return(0,i.createUnionType)(s)}(t,this,e.name):"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?o():void e.name};var s=n(2352),i=n(3141);const{BOOLEAN_NUMBER_BINARY_OPERATORS:r,createTypeAnnotationBasedOnTypeof:a,numberTypeAnnotation:o,voidTypeAnnotation:l}=s;function c(e,t,n){const s=e.constantViolations.slice();return s.unshift(e.path),s.filter(e=>{const s=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===s&&n.push(e),"before"===s})}function p(e,t){const n=t.node.operator,s=t.get("right").resolve(),i=t.get("left").resolve();let l,c,p;if(i.isIdentifier({name:e})?l=s:s.isIdentifier({name:e})&&(l=i),l)return"==="===n?l.getTypeAnnotation():r.includes(n)?o():void 0;if("==="!==n&&"=="!==n)return;if(i.isUnaryExpression({operator:"typeof"})?(c=i,p=s):s.isUnaryExpression({operator:"typeof"})&&(c=s,p=i),!c)return;if(!c.get("argument").isIdentifier({name:e}))return;if(p=p.resolve(),!p.isLiteral())return;const u=p.node.value;return"string"==typeof u?a(u):void 0}function u(e,t,n){const s=function(e,t,n){let s;for(;s=t.parentPath;){if(s.isIfStatement()||s.isConditionalExpression()){if("test"===t.key)return;return s}if(s.isFunction()&&(null==n||s.parentPath.scope.getBinding(n)!==e))return;t=s}}(e,t,n);if(!s)return;const r=[s.get("test")],a=[];for(let e=0;e<r.length;e++){const t=r[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(r.push(t.get("left")),r.push(t.get("right")));else if(t.isBinaryExpression()){const e=p(n,t);e&&a.push(e)}}return a.length?{typeAnnotation:(0,i.createUnionType)(a),ifStatement:s}:u(e,s,n)}},499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isVariableDeclaration)(e,{kind:"var"})&&!e[i]};var s=n(8960),i=Symbol.for("var used to be block scoped")},521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),p(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),p(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&a(l(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),p(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),p(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n),this.space();let s=!1;if(!i(t))for(const t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?function(e){this.token(",",!1,e),this.newline()}:void 0),i(t))if(r(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var s=n(2352);const{isFor:i,isForStatement:r,isIfStatement:a,isStatement:o}=s;function l(e){const{body:t}=e;return!1===o(t)?e:l(t)}function c(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const n=this.enterForXStatementInit(t);this.print(e.left),null==n||n()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function p(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=c,t.ForOfStatement=c},546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const n=this.enterDelimited(),s=null==(t=e.directives)?void 0:t.length;if(s){var i;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[s-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),n(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:i}=e;if(s.test(i)){if(n.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const n=null==(t=e.directives)?void 0:t.length;if(n){var s;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(s=e.directives[n-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body)};const n=/(?:^|[^\\])(?:\\\\)*'/,s=/(?:^|[^\\])(?:\\\\)*"/},607:(e,t,n)=>{var s=n(9896),i=n(6928);e.exports=function(e){function t(t){s.truncateSync(t,0),e&&e.logger&&e.logger.info("+cleared out file: "+t)}function n(e){var t=i.dirname(e);return s.existsSync(t)||(n(t),s.mkdirSync(t)),!0}return{cleanOutFile:t,createFile:function(i){n(i)&&(s.writeFileSync(i,""),e&&e.logger&&e.logger.info("+created ast output file: ")),t(i)},ensureDirectories:n}}},640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,s.default)(e,n);if(i){for(const e of n)t.push(e);return i}};var s=n(4089)},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,a=null;function o(...e){if(!o.enabled)return;const s=o,i=Number(new Date),r=i-(n||i);s.diff=r,s.prev=n,s.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";a++;const r=t.formatters[i];if("function"==typeof r){const t=e[a];n=r.call(s,t),e.splice(a,1),a--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=s,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function i(e,t){let n=0,s=0,i=-1,r=0;for(;n<e.length;)if(s<t.length&&(t[s]===e[n]||"*"===t[s]))"*"===t[s]?(i=s,r=n,s++):(n++,s++);else{if(-1===i)return!1;s=i+1,r++,n=r}for(;s<t.length&&"*"===t[s];)s++;return s===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var s=n(2352);const{assertExpressionStatement:i}=s;function r(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=r(e=>e.length>1?e:e[0]),t.statements=r(e=>e),t.statement=r(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const a=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(0===a.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return T(this,e,new Map)},t._resolve=g,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?a(e):!!this.isBlockStatement()&&o(e))},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,n=!0;do{const{type:s,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===s))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},t.isInStrictMode=function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0;return!1});return!!e},t.isNodeType=function(e){return u(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!a(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return h(this.node,e,t)},t.referencesImport=function(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!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const s=n.path,i=s.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!s.isImportDefaultSpecifier()||"default"!==t)||(!(!s.isImportNamespaceSpecifier()||"*"!==t)||!(!s.isImportSpecifier()||!l(s.node.imported,{name:t}))))))},t.resolve=function(e,t){return g.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var s=n(2352);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:r,isBlockStatement:a,isExpression:o,isIdentifier:l,isLiteral:c,isStringLiteral:p,isType:u,matchesPattern:h}=s;function d(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function f(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function m(e,t){for(let n=0;n<t;n++){const t=e[n];if(f(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;const n=null==(t=this.node)?void 0:t[e];return n&&Array.isArray(n)?!!n.length:!!n},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};const y=Symbol();function T(e,t,n){const s={this:d(e),target:d(t)};if(s.target.node!==s.this.node)return function(e,t,n){let s,i=n.get(e.node);if(i){if(s=i.get(t.node))return s===y?"unknown":s}else n.set(e.node,i=new Map);i.set(t.node,y);const r=function(e,t,n){if(!t.isFunctionDeclaration())return"before"===T(e,t,n)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const s=t.scope.getBinding(t.node.id.name);if(!s.references)return"before";const i=s.referencePaths;let r;for(const s of i){if(s.find(e=>e.node===t.node))continue;if("callee"!==s.key||!s.parentPath.isCallExpression())return"unknown";const i=T(e,s,n);if(r&&r!==i)return"unknown";r=i}return r}(e,t,n);return i.set(t.node,r),r}(e,s.target,n);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let a;const o={target:0,this:0};for(;!a&&o.this<i.this.length;){const e=i.this[o.this];o.target=i.target.indexOf(e),o.target>=0?a=e:o.this++}if(!a)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(m(i.this,o.this-1)||m(i.target,o.target-1))return"unknown";const l={this:i.this[o.this-1],target:i.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=r[a.type],p=c.indexOf(l.this.parentKey);return c.indexOf(l.target.parentKey)>p?"before":"after"}function g(e,t){var n;if(null==(n=t)||!n.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const s=n.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);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!c(n))return;const s=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let r=i.isnt("computed")&&n.isIdentifier({name:s});if(r=r||n.isLiteral({value:s}),r)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+s)){const n=i.get("elements")[s];if(n)return n.resolve(e,t)}}}}},857:e=>{"use strict";e.exports=require("os")},940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,s,i=1/0;const r=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),a=r[0];e:for(let e=0;e<i;e++){const t=a[e];for(const n of r)if(n[e]!==t)break e;n=e,s=t}if(s)return t?t(s,n,r):s;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,n){let s;const r=i[e.type];for(const e of n){const n=e[t+1];s?(n.listKey&&s.listKey===n.listKey&&n.key<s.key||r.indexOf(s.parentKey)>r.indexOf(n.parentKey))&&(s=n):s=n}return s})},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;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},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};var s=n(2352);const{VISITOR_KEYS:i}=s},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return"string"==typeof e&&((!t||!(0,s.isKeyword)(e)&&!(0,s.isStrictReservedWord)(e,!0))&&(0,s.isIdentifierName)(e))};var s=n(1e3)},985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,s.unaryExpression)("void",(0,s.numericLiteral)(0),!0)};var s=n(8079)},1e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return s.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return s.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return s.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var s=n(8721),i=n(3115)},1009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,s.unionTypeAnnotation)(t)};var s=n(8079),i=n(5237)},1094:(e,t,n)=>{var s=n(2203);function i(e,t,n){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var i=!1,r=!1,a=[],o=!1,l=new s;function c(){for(;a.length&&!l.paused;){var e=a.shift();if(null===e)return l.emit("end");l.emit("data",e)}}return l.readable=l.writable=!0,l.paused=!1,l.autoDestroy=!(n&&!1===n.autoDestroy),l.write=function(t){return e.call(this,t),!l.paused},l.queue=l.push=function(e){return o||(null===e&&(o=!0),a.push(e),c()),l},l.on("end",function(){l.readable=!1,!l.writable&&l.autoDestroy&&process.nextTick(function(){l.destroy()})}),l.end=function(e){if(!i)return i=!0,arguments.length&&l.write(e),l.writable=!1,t.call(l),!l.readable&&l.autoDestroy&&l.destroy(),l},l.destroy=function(){if(!r)return r=!0,i=!0,a.length=0,l.writable=l.readable=!1,l.emit("close"),l},l.pause=function(){if(!l.paused)return l.paused=!0,l},l.resume=function(){return l.paused&&(l.paused=!1,l.emit("resume")),c(),l.paused||l.emit("drain"),l},l}e.exports=i,i.through=i},1343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[].concat(e),n=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":n[e.name]=e}}return n}},1373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const n=o[e.type];for(let s=n.length-1;s>=0;s--){const i=e[n[s]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)return!1}return!1},t.needsParens=function(e,t,n,s){var i;return!!t&&(!(!h(t)||t.callee!==e||!T(e))||(c(t)?!(x(e)||l(e)&&x(e.callee)||d(e)):(null==(i=m.get(e.type))?void 0:i(e,t,n,s))||!1))},t.needsWhitespace=g,t.needsWhitespaceAfter=function(e,t){return g(e,t,2)},t.needsWhitespaceBefore=function(e,t){return g(e,t,1)};var s=n(2716),i=n(1773),r=n(2352);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:h,isParenthesizedExpression:d}=r;function f(e){const t=new Map;function n(e,n){const s=t.get(e);t.set(e,s?function(e,t,i,r){var a;return null!=(a=s(e,t,i,r))?a:n(e,t,i,r)}:n)}for(const t of Object.keys(e)){const s=a[t];if(s)for(const i of s)n(i,e[t]);else n(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const m=f(i),y=f(s.nodes);function T(e){return!!l(e)||u(e)&&T(e.object)}function g(e,t,n){var s;if(!e)return!1;p(e)&&(e=e.expression);const i=null==(s=y.get(e.type))?void 0:s(e,t);return"number"==typeof i&&0!==(i&n)}function x(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&x(e.object);default:return!1}}},1384:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e)&&!i.has(e)};var s=n(983);const i=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"])},1602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(9709),i=n(2352),r=n(9578);const{VISITOR_KEYS:a}=i;t.default=class{constructor(e,t,n,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=a[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return s.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const s=[];for(let i=0;i<e.length;i++){const r=e[i];r&&this.shouldVisit(r)&&s.push(this.create(t,e,i,n))}return this.visitQueue(s)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,s=0;for(;s<e.length;){const i=e[s];if(s++,r.resync.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||r.pushContext.call(i,this),null===i.key)continue;const{node:a}=i;if(!t.has(a)){if(a&&t.add(a),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<s;t++)r.popContext.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},1773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,n){return!(!S(n)||!u(e.left))||P(e,t)},t.Binary=b,t.BinaryExpression=function(e,t,n){return"in"===e.operator&&Boolean(n&i.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=P,t.DoExpression=function(e,t,n){return!e.async&&Boolean(n&i.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,n){const s=t.type;return"UnionTypeAnnotation"===s||"IntersectionTypeAnnotation"===s||"ArrayTypeAnnotation"===s||Boolean(n&i.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,n,s){var r;const a=t.type;if(null!=(r=e.extra)&&r.parenthesized&&"AssignmentExpression"===a&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!s||s(e)===e.name)&&("let"===e.name?!!((p(t,{object:e,computed:!0})||h(t,{object:e,computed:!0,optional:!1}))&&n&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead))||Boolean(n&i.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const n=t.type;if(T(n))return!0;if("LogicalExpression"!==n)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return r(t)},t.ObjectExpression=function(e,t,n){return S(n)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e},t.SequenceExpression=function(e,t){const n=t.type;return!("SequenceExpression"===n||"ParenthesizedExpression"===n||"MemberExpression"===n&&t.property===e||"OptionalMemberExpression"===n&&t.property===e||"TemplateLiteral"===n)&&("ClassDeclaration"===n||("ForOfStatement"===n?t.right===e:"ExportDefaultDeclaration"===n||!f(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||b(e,t))},t.TSConditionalType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||"TSTypeOperator"===n||"TSTypeParameter"===n||(("TSIntersectionType"===n||"TSUnionType"===n)&&t.types[0]===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSUnionType"===n||"TSTypeOperator"===n||"TSOptionalType"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||!(!e.typeParameter.constraint||"TSIntersectionType"!==n&&"TSUnionType"!==n||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const n=t.type;return("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n||"TSInstantiationExpression"===n)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const n=t.type;return"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.UnaryLike=t.TSTypeAssertion=E,t.TSTypeOperator=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.TSUnionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const n=t.type;return"ArrayTypeAnnotation"===n||"NullableTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"UnionTypeAnnotation"===n},t.UpdateExpression=function(e,t){return x(e,t)||g(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const n=t.type;return"BinaryExpression"===n||"LogicalExpression"===n||"UnaryExpression"===n||"SpreadElement"===n||x(e,t)||"AwaitExpression"===n&&d(e)||"ConditionalExpression"===n&&e===t.test||g(e,t)||T(n)};var s=n(2352),i=n(1373);const{isArrayTypeAnnotation:r,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:u,isOptionalMemberExpression:h,isYieldExpression:d,isStatement:f}=s,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function y(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function T(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const g=(e,t)=>{const n=t.type;return("ClassDeclaration"===n||"ClassExpression"===n)&&t.superClass===e},x=(e,t)=>{const n=t.type;return("MemberExpression"===n||"OptionalMemberExpression"===n)&&t.object===e||("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n)&&t.callee===e||"TaggedTemplateExpression"===n&&t.tag===e||"TSNonNullExpression"===n};function S(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function b(e,t){const n=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===n&&"**"===t.operator)return t.left===e;if(g(e,t))return!0;if(x(e,t)||"UnaryExpression"===n||"SpreadElement"===n||"AwaitExpression"===n)return!0;const s=y(t,n);if(null!=s){const i=y(e,e.type);if(s===i&&"BinaryExpression"===n&&t.right===e||s>i)return!0}}function E(e,t){return x(e,t)||a(t)&&"**"===t.operator&&t.left===e||g(e,t)}function P(e,t){const n=t.type;return!!("UnaryExpression"===n||"SpreadElement"===n||"BinaryExpression"===n||"LogicalExpression"===n||"ConditionalExpression"===n&&t.test===e||"AwaitExpression"===n||T(n))||E(e,t)}},2018:e=>{"use strict";e.exports=require("tty")},2037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=R,t.replaceExpressionWithStatements=function(e){p.resync.call(this);const t=[],n=U(e,t);if(n){for(const e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}const s=this.getFunctionParent(),r=null==s?void 0:s.node.async,a=null==s?void 0:s.node.generator,o=h([],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 n=t.getData("expressionReplacementReturnUid");n?n=E(n.name):(n=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",M(g(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(d("=",g(n),e.node.expression))}else e.replaceWith(M(e.node.expression))}l.arrowFunctionToExpression();const y=l,x=r&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",u),S=a&&i.default.hasType(this.get("callee.body").node,"YieldExpression",u);return x&&(y.set("async",!0),S||this.replaceWith(f(this.node))),S&&(y.set("generator",!0),this.replaceWith(j(this.node,!0))),y.get("body.body")},t.replaceInline=function(e){if(p.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=o._verifyNodeList.call(this,e);const t=o._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(p.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof r.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()&&!O(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("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&I(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=S(t),n="expression")),this.isNodeType("Expression")&&D(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const s=this.node;return s&&(v(t,s),L(s)),R.call(this,t),this.type=t.type,p.setScope.call(this),this.requeue(),[n?this.get(n):this]},t.replaceWithMultiple=function(e){var t;p.resync.call(this);const n=o._verifyNodeList.call(this,e);P(n[0],this.node),A(n[n.length-1],this.node),null==(t=(0,a.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const s=this.insertAfter(e);return this.node?this.requeue():this.remove(),s},t.replaceWithSourceString=function(e){let t;p.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,s.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const n=t.program.body[0].expression;return i.default.removeProperties(n),this.replaceWith(n)};var s=n(2882),i=n(5781),r=n(9709),a=n(7411),o=n(8345),l=n(2172),c=n(2352),p=n(9578);const{FUNCTION_TYPES:u,arrowFunctionExpression:h,assignmentExpression:d,awaitExpression:f,blockStatement:m,buildUndefinedNode:y,callExpression:T,cloneNode:g,conditionalExpression:x,expressionStatement:S,getBindingIdentifiers:b,identifier:E,inheritLeadingComments:P,inheritTrailingComments:A,inheritsComments:v,isBlockStatement:C,isEmptyStatement:w,isExpression:I,isExpressionStatement:N,isIfStatement:k,isProgram:O,isStatement:D,isVariableDeclaration:_,removeComments:L,returnStatement:M,sequenceExpression:F,validate:B,yieldExpression:j}=c;function R(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?B(this.parent,this.key,[e]):B(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,a.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function U(e,t){const n=[];let s=!0;for(const i of e)if(w(i)||(s=!1),I(i))n.push(i);else if(N(i))n.push(i.expression);else if(_(i)){if("var"!==i.kind)return;for(const e of i.declarations){const s=b(e);for(const e of Object.keys(s))t.push(g(s[e]));e.init&&n.push(d("=",e.id,e.init))}s=!0}else if(k(i)){const e=i.consequent?U([i.consequent],t):y(),s=i.alternate?U([i.alternate],t):y();if(!e||!s)return;n.push(x(i.test,e,s))}else if(C(i)){const e=U(i.body,t);if(!e)return;n.push(e)}else{if(!w(i))return;0===e.indexOf(i)&&(s=!0)}return s&&n.push(y()),1===n.length?n[0]:F(n)}},2107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!1)};var s=n(5279)},2172:(e,t)=>{"use strict";function n(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class i{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 r(e,t){const{line:n,column:i,index:r}=e;return new s(n,i+t,r+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const l={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},c=e=>"UpdateExpression"===e.type?l.UpdateExpression[`${e.prefix}`]:l[e.type];var p={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\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})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},u={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const h=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const f=["message"];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function y({toMessage:e,code:t,reasonCode:n,syntaxPlugin:i}){const r="MissingPlugin"===n||"MissingOneOfPlugins"===n;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[n]&&(n=e[n])}return function a(o,l){const c=new SyntaxError;return c.code=t,c.reasonCode=n,c.loc=o,c.pos=o.index,c.syntaxPlugin=i,r&&(c.missingPlugin=l.missingPlugin),m(c,"clone",function(e={}){var t;const{line:n,column:i,index:r}=null!=(t=e.loc)?t:o;return a(new s(n,i,r),Object.assign({},l,e.details))}),m(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){const t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),c}}function T(e,t){if(Array.isArray(e))return t=>T(t,e[0]);const s={};for(const i of Object.keys(e)){const r=e[i],a="string"==typeof r?{message:()=>r}:"function"==typeof r?{message:r}:r,{message:o}=a,l=n(a,f),c="string"==typeof o?()=>o:o;s[i]=y(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},l))}return s}const g=Object.assign({},T(o),T(p),T({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."}),T(u),T`pipelineOperator`(d)),{defineProperty:x}=Object,S=(e,t)=>{e&&x(e,t,{enumerable:!1,value:e[t]})};function b(e){return S(e.loc.start,"index"),S(e.loc.end,"index"),e}class E{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const P={brace:new E("{"),j_oTag:new E("<tag"),j_cTag:new E("</tag"),j_expr:new E("<tag>...</tag>",!0)};P.template=new E("`",!0);const A=!0,v=!0,C=!0,w=!0,I=!0;class N{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const k=new Map;function O(e,t={}){t.keyword=e;const n=U(e,t);return k.set(e,n),n}function D(e,t){return U(e,{beforeExpr:A,binop:t})}let _=-1;const L=[],M=[],F=[],B=[],j=[],R=[];function U(e,t={}){var n,s,i,r;return++_,M.push(e),F.push(null!=(n=t.binop)?n:-1),B.push(null!=(s=t.beforeExpr)&&s),j.push(null!=(i=t.startsExpr)&&i),R.push(null!=(r=t.prefix)&&r),L.push(new N(e,t)),_}function K(e,t={}){var n,s,i,r;return++_,k.set(e,_),M.push(e),F.push(null!=(n=t.binop)?n:-1),B.push(null!=(s=t.beforeExpr)&&s),j.push(null!=(i=t.startsExpr)&&i),R.push(null!=(r=t.prefix)&&r),L.push(new N("name",t)),_}const V={bracketL:U("[",{beforeExpr:A,startsExpr:v}),bracketHashL:U("#[",{beforeExpr:A,startsExpr:v}),bracketBarL:U("[|",{beforeExpr:A,startsExpr:v}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:A,startsExpr:v}),braceBarL:U("{|",{beforeExpr:A,startsExpr:v}),braceHashL:U("#{",{beforeExpr:A,startsExpr:v}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:A,startsExpr:v}),parenR:U(")"),comma:U(",",{beforeExpr:A}),semi:U(";",{beforeExpr:A}),colon:U(":",{beforeExpr:A}),doubleColon:U("::",{beforeExpr:A}),dot:U("."),question:U("?",{beforeExpr:A}),questionDot:U("?."),arrow:U("=>",{beforeExpr:A}),template:U("template"),ellipsis:U("...",{beforeExpr:A}),backQuote:U("`",{startsExpr:v}),dollarBraceL:U("${",{beforeExpr:A,startsExpr:v}),templateTail:U("...`",{startsExpr:v}),templateNonTail:U("...${",{beforeExpr:A,startsExpr:v}),at:U("@"),hash:U("#",{startsExpr:v}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:A,isAssign:w}),assign:U("_=",{beforeExpr:A,isAssign:w}),slashAssign:U("_=",{beforeExpr:A,isAssign:w}),xorAssign:U("_=",{beforeExpr:A,isAssign:w}),moduloAssign:U("_=",{beforeExpr:A,isAssign:w}),incDec:U("++/--",{prefix:I,postfix:!0,startsExpr:v}),bang:U("!",{beforeExpr:A,prefix:I,startsExpr:v}),tilde:U("~",{beforeExpr:A,prefix:I,startsExpr:v}),doubleCaret:U("^^",{startsExpr:v}),doubleAt:U("@@",{startsExpr:v}),pipeline:D("|>",0),nullishCoalescing:D("??",1),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),lt:D("</>/<=/>=",7),gt:D("</>/<=/>=",7),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),bitShiftL:D("<</>>/>>>",8),bitShiftR:D("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:A,binop:9,prefix:I,startsExpr:v}),modulo:U("%",{binop:10,startsExpr:v}),star:U("*",{binop:10}),slash:D("/",10),exponent:U("**",{beforeExpr:A,binop:11,rightAssociative:!0}),_in:O("in",{beforeExpr:A,binop:7}),_instanceof:O("instanceof",{beforeExpr:A,binop:7}),_break:O("break"),_case:O("case",{beforeExpr:A}),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",{beforeExpr:A}),_else:O("else",{beforeExpr:A}),_finally:O("finally"),_function:O("function",{startsExpr:v}),_if:O("if"),_return:O("return",{beforeExpr:A}),_switch:O("switch"),_throw:O("throw",{beforeExpr:A,prefix:I,startsExpr:v}),_try:O("try"),_var:O("var"),_const:O("const"),_with:O("with"),_new:O("new",{beforeExpr:A,startsExpr:v}),_this:O("this",{startsExpr:v}),_super:O("super",{startsExpr:v}),_class:O("class",{startsExpr:v}),_extends:O("extends",{beforeExpr:A}),_export:O("export"),_import:O("import",{startsExpr:v}),_null:O("null",{startsExpr:v}),_true:O("true",{startsExpr:v}),_false:O("false",{startsExpr:v}),_typeof:O("typeof",{beforeExpr:A,prefix:I,startsExpr:v}),_void:O("void",{beforeExpr:A,prefix:I,startsExpr:v}),_delete:O("delete",{beforeExpr:A,prefix:I,startsExpr:v}),_do:O("do",{isLoop:C,beforeExpr:A}),_for:O("for",{isLoop:C}),_while:O("while",{isLoop:C}),_as:K("as",{startsExpr:v}),_assert:K("assert",{startsExpr:v}),_async:K("async",{startsExpr:v}),_await:K("await",{startsExpr:v}),_defer:K("defer",{startsExpr:v}),_from:K("from",{startsExpr:v}),_get:K("get",{startsExpr:v}),_let:K("let",{startsExpr:v}),_meta:K("meta",{startsExpr:v}),_of:K("of",{startsExpr:v}),_sent:K("sent",{startsExpr:v}),_set:K("set",{startsExpr:v}),_source:K("source",{startsExpr:v}),_static:K("static",{startsExpr:v}),_using:K("using",{startsExpr:v}),_yield:K("yield",{startsExpr:v}),_asserts:K("asserts",{startsExpr:v}),_checks:K("checks",{startsExpr:v}),_exports:K("exports",{startsExpr:v}),_global:K("global",{startsExpr:v}),_implements:K("implements",{startsExpr:v}),_intrinsic:K("intrinsic",{startsExpr:v}),_infer:K("infer",{startsExpr:v}),_is:K("is",{startsExpr:v}),_mixins:K("mixins",{startsExpr:v}),_proto:K("proto",{startsExpr:v}),_require:K("require",{startsExpr:v}),_satisfies:K("satisfies",{startsExpr:v}),_keyof:K("keyof",{startsExpr:v}),_readonly:K("readonly",{startsExpr:v}),_unique:K("unique",{startsExpr:v}),_abstract:K("abstract",{startsExpr:v}),_declare:K("declare",{startsExpr:v}),_enum:K("enum",{startsExpr:v}),_module:K("module",{startsExpr:v}),_namespace:K("namespace",{startsExpr:v}),_interface:K("interface",{startsExpr:v}),_type:K("type",{startsExpr:v}),_opaque:K("opaque",{startsExpr:v}),name:U("name",{startsExpr:v}),placeholder:U("%%",{startsExpr:v}),string:U("string",{startsExpr:v}),num:U("num",{startsExpr:v}),bigint:U("bigint",{startsExpr:v}),decimal:U("decimal",{startsExpr:v}),regexp:U("regexp",{startsExpr:v}),privateName:U("#name",{startsExpr:v}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:A}),jsxTagStart:U("jsxTagStart",{startsExpr:v}),jsxTagEnd:U("jsxTagEnd")};function q(e){return e>=93&&e<=133}function W(e){return e>=58&&e<=133}function J(e){return e>=58&&e<=137}function Y(e){return j[e]}function X(e){return e>=129&&e<=131}function $(e){return e>=58&&e<=92}function H(e){return 34===e}function z(e){return M[e]}function G(e){return F[e]}function Q(e){return e>=24&&e<=25}function Z(e){return L[e]}L[8].updateContext=e=>{e.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=e=>{e.push(P.brace)},L[22].updateContext=e=>{e[e.length-1]===P.template?e.pop():e.push(P.template)},L[143].updateContext=e=>{e.push(P.j_expr,P.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),se=new RegExp("["+ee+te+"]");ee=te=null;const ie=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],re=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ae(e,t){let n=65536;for(let s=0,i=t.length;s<i;s+=2){if(n+=t[s],n>e)return!1;if(n+=t[s+1],n>=e)return!0}return!1}function oe(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):ae(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&se.test(String.fromCharCode(e)):ae(e,ie)||ae(e,re))))}const ce=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"]),pe=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ue=new Set(["eval","arguments"]);function he(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return he(e,t)||pe.has(e)}function fe(e){return ue.has(e)}function me(e,t){return de(e,t)||fe(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Te{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ge{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Te(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let s=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(s,e,t,n);let i=s.names.get(e)||0;16&t?i|=4:(s.firstLexicalName||(s.firstLexicalName=e),i|=2),s.names.set(e,i),8&t&&this.maybeExportDefined(s,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(s=this.scopeStack[i],this.checkRedeclarationInScope(s,e,t,n),s.names.set(e,1|(s.names.get(e)||0)),this.maybeExportDefined(s,e),!(1667&s.flags));--i);this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,s){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(g.VarRedeclaration,s,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const s=e.names.get(t)||0;return 16&n?(2&s)>0||!this.treatFunctionsAsVarInScope(e)&&(1&s)>0:(2&s)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&s)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class xe extends Te{constructor(...e){super(...e),this.declareFunctions=new Set}}class Se extends ge{createScope(e){return new xe(e)}declareName(e,t,n){const s=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e),void s.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const be=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ee=T`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Pe(e){return"type"===e.importKind||"typeof"===e.importKind}const Ae={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ve=/\*?\s*@((?:no)?flow)\b/,Ce={__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:"♦"},we=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function Ie(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Ne(e,t,n){for(let s=t;s<n;s++)if(Ie(e.charCodeAt(s)))return!0;return!1}const ke=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oe=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function De(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const _e=T`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 Le(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Me(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Me(e.object)+"."+Me(e.property);throw new Error("Node had unexpected type: "+e.type)}class Fe extends Te{constructor(...e){super(...e),this.tsNames=new Map}}class Be extends ge{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Fe(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(g.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const s=this.currentScope();let i=s.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(s,e),void s.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&s.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const s=e.tsNames.get(t);return(2&s)>0?!(256&n)||!!(512&n)!=(4&s)>0:128&n&&(8&s)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&s)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}class je{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Re(e,t){return(e?2:0)|(t?1:0)}class Ue{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const s=this.plugins.get(t);for(const e of Object.keys(n))if((null==s?void 0:s[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function Ke(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Ve(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function qe(e,t,n){let s=null,i=t.length;for(;null===s&&i>0;)s=t[--i];null===s||s.start>n.start?Ve(e,n.comments):Ke(s,n.comments)}class We extends Ue{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let s=n-1;const i=t[s];i.start===e.end&&(i.leadingNode=e,s--);const{start:r}=e;for(;s>=0;s--){const n=t[s],i=n.end;if(!(i>r)){i===r&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(s,1)}}finalizeComment(e){var t;const{comments:n}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ke(e.leadingNode,n),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,n);else{const s=e.containingNode,i=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":qe(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":qe(s,s.arguments,e);break;case"ImportExpression":qe(s,[s.source,null!=(t=s.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":qe(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":qe(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":qe(s,s.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":qe(s,s.members,e);break;default:Ve(s,n)}else Ve(s,n)}}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,{length:n}=t;if(0===n)return;const s=t[n-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,t,n){const{commentStack:s}=this.state,i=s.length;if(0===i)return;let r=i-1;for(;r>=0;r--){const i=s[r],a=i.end;if(i.start===n)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}}class Je{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=[P.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:n,startLine:i,startColumn:r}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=n,this.curLine=i,this.lineStart=-r,this.startLoc=this.endLoc=new s(i,r,n)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new s(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new Je;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Ye=function(e){return e>=48&&e<=57};const Xe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$e={bin:e=>48===e||49===e,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 He(e,t,n,s,i,r){const a=n,o=s,l=i;let c="",p=null,u=n;const{length:h}=t;for(;;){if(n>=h){r.unterminated(a,o,l),c+=t.slice(u,n);break}const d=t.charCodeAt(n);if(ze(e,d,t,n)){c+=t.slice(u,n);break}if(92===d){c+=t.slice(u,n);const a=Ge(t,n,s,i,"template"===e,r);null!==a.ch||p?c+=a.ch:p={pos:n,lineStart:s,curLine:i},({pos:n,lineStart:s,curLine:i}=a),u=n}else 8232===d||8233===d?(++i,s=++n):10===d||13===d?"template"===e?(c+=t.slice(u,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,u=s=n):r.unterminated(a,o,l):++n}return{pos:n,str:c,firstInvalidLoc:p,lineStart:s,curLine:i,containsInvalid:!!p}}function ze(e,t,n,s){return"template"===e?96===t||36===t&&123===n.charCodeAt(s+1):t===("double"===e?34:39)}function Ge(e,t,n,s,i,r){const a=!i;t++;const o=e=>({pos:t,ch:e,lineStart:n,curLine:s}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=Qe(e,t,n,s,2,!1,a,r)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=et(e,t,n,s,a,r)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,n,s);default:if(l>=48&&l<=55){const a=t-1;let l=/^[0-7]+/.exec(e.slice(a,t+2))[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const p=e.charCodeAt(t);if("0"!==l||56===p||57===p){if(i)return o(null);r.strictNumericEscape(a,n,s)}return o(String.fromCharCode(c))}return o(String.fromCharCode(l))}}function Qe(e,t,n,s,i,r,a,o){const l=t;let c;return({n:c,pos:t}=Ze(e,t,n,s,16,i,r,!1,o,!a)),null===c&&(a?o.invalidEscapeSequence(l,n,s):t=l-1),{code:c,pos:t}}function Ze(e,t,n,s,i,r,a,o,l,c){const p=t,u=16===i?Xe.hex:Xe.decBinOct,h=16===i?$e.hex:10===i?$e.dec:8===i?$e.oct:$e.bin;let d=!1,f=0;for(let p=0,m=null==r?1/0:r;p<m;++p){const r=e.charCodeAt(t);let p;if(95===r&&"bail"!==o){const i=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(o){if(Number.isNaN(r)||!h(r)||u.has(i)||u.has(r)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,s)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,s)}++t;continue}if(p=r>=97?r-97+10:r>=65?r-65+10:Ye(r)?r-48:1/0,p>=i){if(p<=9&&c)return{n:null,pos:t};if(p<=9&&l.invalidDigit(t,n,s,i))p=0;else{if(!a)break;p=0,d=!0}}++t,f=f*i+p}return t===p||null!=r&&t-p!==r||d?{n:null,pos:t}:{n:f,pos:t}}function et(e,t,n,s,i,r){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=Qe(e,t,n,s,e.indexOf("}",t)-t,!0,i,r)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};r.invalidCodePoint(t,n,s)}}else({code:a,pos:t}=Qe(e,t,n,s,4,!1,i,r));return{code:a,pos:t}}function tt(e,t,n){return new s(n,e-t,e)}const nt=new Set([103,109,115,105,121,117,100,118]);class st{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 i(e.startLoc,e.endLoc)}}class it extends We{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,s)=>!!(2048&this.optionFlags)&&(this.raise(g.InvalidDigit,tt(e,t,n),{radix:s}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(g.StrictNumericEscape,tt(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(g.UnterminatedString,tt(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(g.UnterminatedTemplate,tt(e,t,n))}}),this.state=new Je,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new st(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return ke.lastIndex=e,ke.test(this.input)?ke.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,s=this.input.indexOf(e,n+2);if(-1===s)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,we.lastIndex=n+2;we.test(this.input)&&we.lastIndex<=s;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;const r={type:"CommentBlock",value:this.input.slice(n+2,s),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(s+e.length),loc:new i(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(r),r}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ie(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const r=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,r),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),loc:new i(n,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(De(n))++this.state.pos;else if(45===n&&!this.inModule&&8192&this.optionFlags){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==n||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const n=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),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 n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(g.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else oe(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Ie(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,s=this.input.charCodeAt(this.state.pos+1);42===e&&42===s&&(n++,s=this.input.charCodeAt(this.state.pos+2),t=57),61!==s||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(oe(e))return void this.readWord(e)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(g.UnterminatedRegExp,r(e,1));const t=this.input.charCodeAt(i);if(Ie(t))throw this.raise(g.UnterminatedRegExp,r(e,1));if(n)n=!1;else{if(91===t)s=!0;else if(93===t&&s)s=!1;else if(47===t&&!s)break;n=92===t}}const a=this.input.slice(t,i);++i;let o="";const l=()=>r(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if(nt.has(e))118===e?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(g.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(g.MalformedRegExpFlags,l())}++i,o+=t}this.state.pos=i,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,n=!1,s=!0){const{n:i,pos:r}=Ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,s,this.errorHandlers_readInt,!1);return this.state.pos=r,i}readRadixNumber(e){const t=this.state.pos,n=this.state.curPosition();let s=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(g.InvalidDigit,r(n,2),{radix:e});const a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,s=!0;else if(109===a)throw this.raise(g.InvalidDecimal,n);if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,i)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let s=!1,i=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(g.ZeroDigitNumericSeparator,r(n,t))}o=l&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,n),s=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((s||l)&&this.raise(g.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(g.InvalidDecimal,n),++this.state.pos;var p=!0}if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(136,u);if(p)return void this.finishToken(137,u);const h=o?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){const{code:t,pos:n}=et(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:s,lineStart:i}=He(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:i,curLine:r,lineStart:a}=He("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=r,n&&(this.state.firstInvalidTemplateEscapePos=new s(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let s=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?oe:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;const r=this.readCodePoint(!0);null!==r&&(i(r)||this.raise(g.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(r)),s=this.state.pos}}}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e),n=k.get(t);void 0!==n?this.finishToken(n,z(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;$(e)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:z(e)})}raise(e,t,n={}){const i=e(t instanceof s?t:t.loc.start,n);if(!(2048&this.optionFlags))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,n={}){const i=t instanceof s?t:t.loc.start,r=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){const s=a[t];if(s.loc.index===r)return a[t]=e(i,n);if(s.loc.index<r)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(g.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?z(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(g.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,s)=>{this.raise(e,tt(t,n,s))}}}class rt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class at{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 rt)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,s]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,s):this.parser.raise(g.InvalidPrivateFieldResolution,s,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:s,loneAccessors:i,undefinedPrivateNames:r}=this.current();let a=s.has(e);if(3&t){const n=a&&i.get(e);n?(a=(3&n)==(3&t)||(4&n)!=(4&t),a||i.delete(e)):a||i.set(e,t)}a&&this.parser.raise(g.PrivateNameRedeclaration,n,{identifierName:e}),s.add(e),r.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(g.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ot{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class lt extends ot{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ct{constructor(e){this.parser=void 0,this.stack=[new ot],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:s}=this;let i=s.length-1,r=s[i];for(;!r.isCertainlyParameterDeclaration();){if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,n),r=s[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,s=n[n.length-1],i=t.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,s=t[n];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(g.AwaitBindingIdentifier,e),s=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let s=e.length-2,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--s]})}}function pt(){return new ot}class ut extends it{addExtra(e,t,n,s=!0){if(!e)return;let{extra:i}=e;null==i&&(i={},e.extra=i),s?i[t]=n:Object.defineProperty(i,t,{enumerable:s,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const n=this.input.charCodeAt(e+t.length);return!(le(n)||55296==(64512&n))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ne(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Ne(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const n={node:null};try{const s=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:s,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const s=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:s};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:r,voidPatternLoc:a}=e;if(!t)return!!(n||s||r||i||a);null!=n&&this.raise(g.InvalidCoverInitializedName,n),null!=s&&this.raise(g.DuplicateProto,s),null!=i&&this.raise(g.UnexpectedPrivateField,i),null!=r&&this.unexpected(r),null!=a&&this.raise(g.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return J(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const i=this.scope,r=this.getScopeHandler();this.scope=new r(this,e);const a=this.prodParam;this.prodParam=new je;const o=this.classScope;this.classScope=new at(this);const l=this.expressionScope;return this.expressionScope=new ct(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=s,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;4&this.optionFlags&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ht{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class dt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new i(n),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ft=dt.prototype;ft.__clone=function(){const e=new dt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,s=t.length;n<s;n++){const s=t[n];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(e[s]=this[s])}return e};class mt extends ut{startNode(){const e=this.state.startLoc;return new dt(this,e.index,e)}startNodeAt(e){return new dt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,128&this.optionFlags&&(e.range[1]=n.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){const{type:t,start:n,end:s,loc:i,range:r,name:a}=e,o=Object.create(ft);return o.type=t,o.start=n,o.end=s,o.loc=i,o.range=r,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){const{type:t,start:n,end:s,loc:i,range:r,extra:a}=e,o=Object.create(ft);return o.type=t,o.start=n,o.end=s,o.loc=i,o.range=r,o.extra=a,o.value=e.value,o}}const yt=e=>"ParenthesizedExpression"===e.type?yt(e.expression):e;class Tt extends mt{toAssignable(e,t=!1){var n,s;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=yt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,e):"CallExpression"===i.type||"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(g.InvalidParenthesizedAssignment,e):this.raise(g.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let n=0,s=e.properties.length,i=s-1;n<s;n++){var r;const s=e.properties[n],a=n===i;this.toAssignableObjectExpressionProp(s,a,t),a&&"RestElement"===s.type&&null!=(r=e.extra)&&r.trailingCommaLoc&&this.raise(g.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:s}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.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":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(s=e.extra)?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(g.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(g.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?g.PatternHasAccessor:g.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,n),t||this.raise(g.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const s=e.length-1;for(let i=0;i<=s;i++){const r=e[i];r&&(this.toAssignableListItem(e,i,n),"RestElement"===r.type&&(i<s?this.raise(g.RestTrailingComma,r):t&&this.raise(g.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){const s=e[t];if("SpreadElement"===s.type){this.castNodeTo(s,"RestElement");const e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(s,n)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(g.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){const s=1&n,i=[];let r=!0;for(;!this.eat(e);)if(r?r=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let s=this.parseRestBinding();if((this.hasPlugin("flow")||2&n)&&(s=this.parseFunctionParamType(s)),i.push(s),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&n)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(g.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){const n=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(g.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,n,s){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,n=64,s=!1,i=!1,r=!1,a=!1){var o;const l=e.type;if(this.isObjectMethod(e))return;const c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===l)return c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(g.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==n&&this.raise(g.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,n,i);const{name:t}=e;return void(s&&(s.has(t)?this.raise(g.ParamDupe,e):s.add(t)))}"VoidPattern"===l&&"CatchClause"===t.type&&this.raise(g.VoidPatternCatchClauseParam,e);const p=yt(e);a||(a="CallExpression"===p.type&&("Import"===p.callee.type||"Super"===p.callee.type));const u=this.isValidLVal(l,a,!(r||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,n);if(!0===u)return;if(!1===u){const s=64===n?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(s,e,{ancestor:t})}let h,d;"string"==typeof u?(h=u,d="ParenthesizedExpression"===l):[h,d]=u;const f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:t,m=e[h];if(Array.isArray(m))for(const e of m)e&&this.checkLVal(e,f,n,s,i,d,!0);else m&&this.checkLVal(m,f,n,s,i,d,a)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?me(e.name,this.inModule):fe(e.name))&&(64===t?this.raise(g.StrictEvalArguments,e,{referenceName:e.name}):this.raise(g.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(g.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(g.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}}const gt=/in(?:stanceof)?|as|satisfies/y;function xt(e){if(!e)throw new Error("Assert fail")}const St=T`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function bt(e){return"private"===e||"public"===e||"protected"===e}function Et(e){return"in"===e||"out"===e}function Pt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Ct(e.object)}function At(e,t){var n;const{type:s}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===s){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!(!vt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:s}=e;if("-"===n&&vt(s,t))return!0}return!1}(e,t))||"TemplateLiteral"===s&&0===e.expressions.length||!!Pt(e)}function vt(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Ct(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ct(e.object)}const wt=T`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),It=["minimal","fsharp","hack","smart"],Nt=["^^","@@","^","%","#"],kt={estree:e=>class extends e{parse(){const e=b(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(b)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch(e){}const s=this.estreeParseLiteral(n);return s.regex={pattern:e,flags:t},s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=this.castNodeTo(e,"ExpressionStatement");return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:n,loc:s,range:i,raw:r,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=n,o.loc=s,o.range=i,o.raw=r,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,s,i){super.parseBlockBody(e,t,n,s,i);const r=e.directives.map(e=>this.directiveToStmt(e));e.body=r.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,s,i,r,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,n,s,i,r,a),delete o.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l));const c=this.castNodeTo(o,"FunctionExpression");return e.value=c,"ClassPrivateMethod"===r&&(e.computed=!1),"ObjectMethod"===r?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,n,s){const i=super.parseObjectProperty(e,t,n,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,n,s){return"Property"===e?"value":super.isValidLVal(e,t,n,s)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:n,value:s}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(g.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n):this.raise(g.PatternHasAccessor,e.key)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var s,i;return"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=null!=(s=n.arguments[1])?s:null,n.attributes=null!=(i=n.arguments[1])?i:null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,s=super.parseExport(e,t);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":1===s.specifiers.length&&"ExportNamespaceSpecifier"===s.specifiers[0].type&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=s;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===s.start&&this.resetStartLocation(s,n)}}return s}stopParseSubscript(e,t){const n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,s,i){const r=super.parseMember(e,t,n,s,i);return"OptionalMemberExpression"===r.type?this.castNodeTo(r,"MemberExpression"):r.optional=!1,r}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){const n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return b(super.finishNodeAt(e,t,n))}finishNode(e,t){const n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),b(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),b(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_e.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Ie(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===e)break;38===s?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Ie(s)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=Ce[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:$(this.state.type)?e.name=z(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(P.brace),this.next(),e=this.jsxParseExpressionContainer(e,P.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(_e.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(_e.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(P.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(P.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(P.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],s=this.jsxParseOpeningElementAt(e);let i=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(P.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,P.j_expr));break}default:this.unexpected()}Le(s)&&!Le(i)&&null!==i?this.raise(_e.MissingClosingTagFragment,i):!Le(s)&&Le(i)?this.raise(_e.MissingClosingTagElement,i,{openingTagName:Me(s.name)}):Le(s)||Le(i)||Me(i.name)!==Me(s.name)&&this.raise(_e.MissingClosingTagElement,i,{openingTagName:Me(s.name)})}if(Le(s)?(t.openingFragment=s,t.closingFragment=i):(t.openingElement=s,t.closingElement=i),t.children=n,this.match(47))throw this.raise(_e.UnwrappedAdjacentJSXElements,this.state.startLoc);return Le(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==P.j_expr){if(t===P.j_oTag||t===P.j_cTag){if(oe(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===P.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&143===e)t.splice(-2,2,P.j_cTag),this.state.canStartJSXElement=!1;else if(143===n)t.push(P.j_oTag);else if(144===n){const n=t[t.length-1];n===P.j_oTag&&56===e||n===P.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===P.j_expr):(this.setContext(P.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[n]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Se}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=ve.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(Ee.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Ee.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){const e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Ee.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,Ee.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let s=null,i=!1;return n.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(Ee.DuplicateDeclareModuleExports,e),"ES"===s&&this.raise(Ee.AmbiguousDeclareModuleKind,e),s="CommonJS",i=!0):("CommonJS"===s&&this.raise(Ee.AmbiguousDeclareModuleKind,e),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(Ee.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Ae[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Ee.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){be.has(e)&&this.raise(n?Ee.AssignReservedType:Ee.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=s,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(Ee.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===P.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:s,allowInexact:i}){const r=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,l;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(t&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),a.exact=l;!this.match(o);){let t=!1,r=null,o=null;const p=this.startNode();if(s&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),r=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(u&&this.unexpected(u.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),u&&this.unexpected(u.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&J(this.lookahead().type)&&(e=this.state.value,this.next());const s=this.flowParseObjectTypeProperty(p,t,r,u,e,n,null!=i?i:!l);null===s?(c=!0,o=this.state.lastTokStartLoc):a.properties.push(s)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(Ee.UnexpectedExplicitInexactInObject,o)}this.expect(o),n&&(a.inexact=c);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=r,p}flowParseObjectTypeProperty(e,t,n,s,i,r,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(r?a||this.raise(Ee.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ee.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(Ee.InexactVariance,s),null):(r||this.raise(Ee.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),s&&this.raise(Ee.SpreadVariance,s),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),s&&this.unexpected(s.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!r&&"constructor"===e.key.name&&e.value.this&&this.raise(Ee.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=s),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Ee.GetterMayNotHaveThisParam:Ee.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(g.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,s=null;const i=this.startNode(),r=this.lookahead(),a=78===this.state.type;return 14===r.type||17===r.type?(a&&!e&&this.raise(Ee.ThisParamMustBeFirst,i),t=this.parseIdentifier(a),this.eat(17)&&(n=!0,a&&this.raise(Ee.ThisParamMayNotBeOptional,i)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=s,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,s,i=!1;const r=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=r,s;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(q(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=r,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),s;this.eat(12)}return n=s?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(Ee.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if($(this.state.type)){const e=z(this.state.type);return this.next(),super.createIdentifier(t,e)}if(q(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(s.elementType=t,this.next(),t=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=t,s.indexType=this.flowParseType(),this.expect(3),n?(s.optional=i,t=this.finishNode(s,"OptionalIndexedAccessType")):t=this.finishNode(s,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,n=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(W(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||q(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(q(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||X(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||X(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const s=this.state.clone(),i=this.state.noArrowAt,r=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...i];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)}o&&l.length>1&&this.raise(Ee.AmbiguousConditionalArrow,s.startLoc),o&&1===l.length&&(this.state=s,e.push(l[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),r.test=e,r.consequent=a,r.alternate=this.forwardNoArrowParamsConversionAt(r,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(r,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],s=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):s.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(s.forEach(e=>this.finishArrowValidation(e)),[s,[]]):function(e,t){const n=[],s=[];for(let i=0;i<e.length;i++)(t(e[i])?n:s).push(e[i]);return[n,s]}(s,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return n}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(Ee.DeclareClassElement,s):t.value&&this.raise(Ee.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&oe(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var n;const i=e[s];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(Ee.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n){const s=super.parseArrayLike(e,t,n);return null==n||this.state.maybeInArrowParameters||this.toReferencedList(s.elements),s}isValidLVal(e,t,n,s){return"TypeCastExpression"===e||super.isValidLVal(e,t,n,s)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,s,i,r){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,s,i,r),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Ee.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Ee.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,s){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,s)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(Ee.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Ee.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,s,i,r,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!r&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,s,i,r,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Ee.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Ee.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Ee.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Ee.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Ee.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Ee.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Pe(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,s){if(super.applyImportPhase(e,t,n,s),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,s,i){const r=e.imported;let a=null;"Identifier"===r.type&&("type"===r.name?a="type":"typeof"===r.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===a||W(this.state.type)?(e.imported=r,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&W(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(g.ImportBindingIsString,e,{importName:r.value});e.imported=r,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}const l=Pe(e);return n&&l&&this.raise(Ee.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let s,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(e,t),i),!s.error)return s.node;const{context:n}=this.state,r=n[n.length-1];r!==P.j_oTag&&r!==P.j_expr||n.pop()}if(null!=(n=s)&&n.error||this.match(47)){var r,a;let n;i=i||this.state.clone();const o=this.tryParse(s=>{var i;n=this.flowParseTypeParameterDeclaration();const r=this.forwardNoArrowParamsConversionAt(n,()=>{const s=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(s,n),s});null!=(i=r.extra)&&i.parenthesized&&s();const a=this.maybeUnwrapTypeCastExpression(r);return"ArrowFunctionExpression"!==a.type&&s(),a.typeParameters=n,this.resetStartLocationFromNode(a,n),r},i);let l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Ee.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),o.node;l=o.node}if(null!=(r=s)&&r.node)return this.state=s.failState,s.node;if(l)return this.state=o.failState,l;if(null!=(a=s)&&a.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(Ee.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,s=!0){if(!n||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Ee.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,s)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const s=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),s);if(!i.error&&!i.aborted)return i.node;const r=this.tryParse(()=>super.parseSubscripts(e,t,n),s);if(r.node&&!r.error)return r.node;if(i.node)return this.state=i.failState,i.node;if(r.node)return this.state=r.failState,r.node;throw i.error||r.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,s.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,s)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Ee.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ee.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),s=this.input.charCodeAt(t+e+1);return 58===n&&58===s?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==s&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(Ee.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?Ee.EnumInvalidMemberInitializerSymbolType:Ee.EnumInvalidMemberInitializerPrimaryType:Ee.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(Ee.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(Ee.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:s}=t;null!==s&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const r=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(Ee.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),n.has(l)&&this.raise(Ee.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),n.add(l);const c={enumName:e,explicitType:t,memberName:l};switch(r.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean"),r.init=o.value,s.booleanMembers.push(this.finishNode(r,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number"),r.init=o.value,s.numberMembers.push(this.finishNode(r,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string"),r.init=o.value,s.stringMembers.push(this.finishNode(r,"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(r,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!q(this.state.type))throw this.raise(Ee.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(Ee.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const n=t.name,s=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:r,hasUnknownMembers:a}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=r.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=r.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=r.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=r.booleanMembers.length,a=r.numberMembers.length,o=r.stringMembers.length,l=r.defaultedMembers.length;if(i||a||o||l){if(i||a){if(!a&&!o&&i>=l){for(const e of r.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=r.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=l){for(const e of r.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=r.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Ee.EnumInconsistentMemberValues,s,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:St.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter})}getScopeHandler(){return Be}tsIsIdentifier(){return q(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!q(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const s=this.state.value;if(e.includes(s)){if(n&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:s=St.InvalidModifierOnTypeMember},i){const r=(e,t,n,s)=>{t===n&&i[s]&&this.raise(St.InvalidModifiersOrder,e,{orderedModifiers:[n,s]})},a=(e,t,n,s)=>{(i[n]&&t===s||i[s]&&t===n)&&this.raise(St.IncompatibleModifiers,e,{modifiers:[n,s]})};for(;;){const{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),n,i.static);if(!l)break;bt(l)?i.accessibility?this.raise(St.DuplicateAccessibilityModifier,o,{modifier:l}):(r(o,l,l,"override"),r(o,l,l,"static"),r(o,l,l,"readonly"),i.accessibility=l):Et(l)?(i[l]&&this.raise(St.DuplicateModifier,o,{modifier:l}),i[l]=!0,r(o,l,"in","out")):(hasOwnProperty.call(i,l)?this.raise(St.DuplicateModifier,o,{modifier:l}):(r(o,l,"static","readonly"),r(o,l,"static","override"),r(o,l,"override","readonly"),r(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(s,o,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,s){const i=[];let r=-1;for(;!this.tsIsListTerminator(e);){r=-1;const s=t();if(null==s)return;if(i.push(s),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}r=this.state.lastTokStartLoc.index}return s&&(s.value=r),i}tsParseBracketedList(e,t,n,s,i){s||(n?this.expect(0):this.expect(47));const r=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),r}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(St.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;q(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(St.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(St.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!q(this.state.type)&&(this.next(),this.match(14))}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 n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(St.ReadonlyForMethodSignature,e);const n=e;n.kind&&this.match(47)&&this.raise(St.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const s="parameters",i="typeAnnotation";if("get"===n.kind)n[s].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(n[s][0])&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[s].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const e=n[s][0];this.isThisParam(e)&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(St.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(St.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(St.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const n=e;t&&(n.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(n.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"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();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);return this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(St.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state;let s,i,r,a;const o=W(this.state.type)?this.lookaheadCharCode():null;if(58===o)s=!0,r=!1,i=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){r=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(s=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),a=this.tsParseType()):(s=!1,a=t,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),s=this.eat(14);if(s){let e;i?(e=this.startNodeAt(n),e.optional=r,e.label=i,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(St.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=r,this.raise(St.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,"TSNamedTupleMember")}else if(r){const e=this.startNodeAt(n);e.typeAnnotation=a,a=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,"TSRestType")}return a}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,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();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(q(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(St.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){const s=this.startNode(),i=this.eat(n),r=[];do{r.push(t())}while(this.eat(n));return 1!==r.length||i?(s.types=r,this.finishNode(s,e)):r[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(q(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const r=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=r,n.asserts=s,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!q(this.state.type)&&!this.match(78)||(e&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){xt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(St.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return n.length||this.raise(St.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),q(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(St.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===P.brace)return 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=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const s=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(St.ImportAliasHasImportType,s),e.moduleReference=s,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(St.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(St.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(q(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,s){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||q(this.state.type)))return this.tsParseAbstractDeclaration(e,s);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(q(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&q(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&q(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch(()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(St.EmptyTypeArguments,e):this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){const n=t.length?t[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const i=s.accessibility,r=s.override,a=s.readonly;4&e||!(i||a||r)||this.raise(St.UnexpectedParameterModifier,n);const o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);const l=this.parseMaybeDefault(o.loc.start,o);if(i||a||r){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),r&&(e.override=r),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(St.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(St.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(St.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,s,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(St.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){const s=super.parseArrayLike(e,t,n);return"ArrayExpression"===s.type&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(e,t,n,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return s.stop=!0,e;s.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let r;const a=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return s.stop=!0,e}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(r=this.state.curPosition());if(Q(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,s);return n.typeParameters=a,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=a,s.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,s.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&Y(o)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")});if(r&&this.unexpected(r,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(St.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,s))),a}return super.parseSubscript(e,t,n,s)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let s;if(G(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,s){this.state.isAmbientContext||super.checkReservedWord(e,t,n,s)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(St.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,s){super.applyImportPhase(e,t,n,s),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(q(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(St.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,n,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){const{isAmbientContext:s}=this.state,i=super.parseVarStatement(e,t,n||s);if(!s)return i;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(St.UsingDeclarationInAmbientContext,e,t),i;for(const{id:e,init:n}of i.declarations)n&&("var"===t||"let"===t||e.typeAnnotation?this.raise(St.InitializerNotAllowedInAmbientContext,n):At(n,this.hasPlugin("estree"))||this.raise(St.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const e=this.state.type,n=this.startNode();this.next();const s=125===e?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return s?(125===e&&(s.declare=!0),s):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){const e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>bt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:St.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,s)&&this.raise(St.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,s){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(St.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(St.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(St.IndexSignatureHasDeclare,t),void(t.override&&this.raise(St.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(St.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(St.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,s)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(St.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(St.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(St.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const s=q(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||n)&&(e.exportKind="type"),n&&"TSImportEqualsDeclaration"!==s.type&&(this.resetStartLocation(s,t),s.declare=!0),s):null}parseClassId(e,t,n,s){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(St.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(St.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(St.PrivateElementHasAbstract,e),e.accessibility&&this.raise(St.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(St.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,s,i,r){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(St.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(St.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,n,s,i,r)}pushClassPrivateMethod(e,t,n,s){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,s)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,s,i,r,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,n,s,i,r,a)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,s,i,r,a;let o,l,c,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!l.error)return l.node;const{context:n}=this.state,s=n[n.length-1];s!==P.j_oTag&&s!==P.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());const u=this.tryParse(n=>{var s,i;p=this.tsParseTypeParameters(this.tsParseConstModifier);const r=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==r.type||null!=(s=r.extra)&&s.parenthesized)&&n(),0!==(null==(i=p)?void 0:i.params.length)&&this.resetStartLocationFromNode(r,p),r.typeParameters=p,r},o);if(!u.error&&!u.aborted)return p&&this.reportReservedArrowTypeParam(p),u.node;if(!l&&(xt(!this.hasPlugin("jsx")),c=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!c.error))return c.node;if(null!=(s=l)&&s.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,p&&this.reportReservedArrowTypeParam(p),u.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(r=l)?void 0:r.error)||u.error||(null==(a=c)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(St.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(St.UnexpectedTypeCastInParameter,e):this.raise(St.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,s){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==s||!n)&&["expression",!0];default:return super.isValidLVal(e,t,n,s)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(e,t);return s.typeParameters=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(St.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,n){const s=e[t];"TSTypeCastExpression"===s.type&&(e[t]=this.typeCastToParameter(s)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(St.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,s,i,r,a){const o=super.parseMethod(e,t,n,s,i,r,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){const{key:e}=o;this.raise(St.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,s){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,s))}parseImportSpecifier(e,t,n,s,i){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,s,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const s=t?"imported":"local",i=t?"local":"exported";let r,a=e[s],o=!1,l=!0;const c=a.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();W(this.state.type)?(o=!0,a=e,r=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(r=n,l=!1)}else W(this.state.type)?(l=!1,r=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else W(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&n&&this.raise(t?St.TypeModifierIsUsedInTypeImports:St.TypeModifierIsUsedInTypeExports,c),e[s]=a,e[i]=r,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[s])),t&&this.checkIdentifier(e[i],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(oe(e)){if(gt.lastIndex=t,gt.test(this.input)){const e=this.codePointAtPos(gt.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),q(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=t,n}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,s){void 0!==e&&super.checkReservedWord(e,t,n,s)}cloneIdentifier(e){const t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n,s){return"Placeholder"===e||super.isValidLVal(e,t,n,s)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;const n=this.nextTokenStart();return 37===this.input.charCodeAt(n)&&37===this.input.charCodeAt(n+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();const s=e;return s.name=t.name,this.finishPlaceholder(s,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const s=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,r=this.parsePlaceholder("Identifier");if(r){if(!(this.match(81)||this.match(133)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(r,"ClassBody"),this.finishNode(e,s);throw this.raise(wt.ClassNameIsRequired,this.state.startLoc)}e.id=r}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,s)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);const s=e;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=n,s.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(s,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(z(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(wt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ot=Object.keys(kt);class Dt extends Tt{checkProto(e,t,n,s){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return n;const i=e.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?t?(this.raise(g.RecordNoProto,i),!0):(n&&(s?null===s.doubleProtoLoc&&(s.doubleProtoLoc=i.loc.start):this.raise(g.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(g.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(g.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const s=this.startNodeAt(t);for(s.expressions=[n];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new ht,i=!0);const{type:r}=this.state;(10===r||q(r))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),(o=this.state.type)>=29&&o<=33){const t=this.startNodeAt(n),s=this.state.value;if(t.operator=s,this.match(29)){this.toAssignable(a,!0),t.left=a;const s=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=s&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=s&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=s&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=s&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===s||"&&="===s||"??="===s),t}var o;if(i&&this.checkExpressionErrors(e,!0),s){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Y(e):Y(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.YieldNotInGeneratorFunction,n),this.parseYield(n)}return a}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=G(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const s=this.state.type;if((i=s)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=G(s);if(i>n){if(39===s){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const r=this.startNodeAt(t);r.left=e,r.operator=this.state.value;const a=41===s||42===s,o=40===s;if(o&&(i=G(42)),this.next(),39===s&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);r.right=this.parseExprOpRightExpr(s,i);const l=this.finishNode(r,a||o?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(o&&(41===c||42===c)||a&&40===c)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!h.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(g.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),r=this.startNode();if(a=this.state.type,R[a]){r.operator=this.state.value,r.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),r.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=r.argument;"Identifier"===e.type?this.raise(g.StrictDelete,r):this.hasPropertyAsPrivateName(e)&&this.raise(g.DeletePrivateField,r)}if(!i)return t||this.checkExponentialAfterUnary(r),this.finishNode(r,"UnaryExpression")}var a;const o=this.parseUpdate(r,i,e);if(s){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Y(e):Y(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const s=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;H(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(s);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,t)}parseSubscripts(e,t,n){const s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,s),s.maybeAsyncArrow=!1}while(!s.stop);return e}parseSubscript(e,t,n,s){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,s);if(Q(i))return this.parseTaggedTemplateExpression(e,t,s);let r=!1;if(18===i){if(n&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,s);s.optionalChainMember=r=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,s,r);{const n=this.eat(0);return n||r||this.eat(16)?this.parseMember(e,t,s,n,r):this.stopParseSubscript(e,s)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,s,i){const r=this.startNodeAt(t);return r.object=e,r.computed=s,s?(r.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(g.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),r.property=this.parsePrivateName()):r.property=this.parseIdentifier(!0),n.optionalChainMember?(r.optional=i,this.finishNode(r,"OptionalMemberExpression")):this.finishNode(r,"MemberExpression")}parseBind(e,t,n,s){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,s){const i=this.state.maybeInArrowParameters;let r=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=n;o&&(this.expressionScope.enter(new lt(2)),r=new ht),l&&(a.optional=s),a.arguments=s?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,a,r);let c=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.checkDestructuringPrivate(r),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(r,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const s=this.startNodeAt(t);return s.tag=e,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,t),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(g.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(g.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n){const s=[];let i=!0;const r=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}s.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=r,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Ve(e,t.innerComments),t.callee.trailingComments&&Ve(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(g.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(g.UnsupportedBind,e)}case 139:return this.raise(g.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(oe(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===s)return this.parseDecimalLiteral(this.state.value);if(2===s||1===s)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===s||7===s)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(q(s)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(q(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(t,n,e,s)}finishTopicReference(e,t,n,s){if(this.testTopicReferenceConfiguration(n,t,s))return"hack"===n?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(g.PipeTopicUnconfiguredToken,t,{token:z(s)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:z(n)}]);case"smart":return 27===n;default:throw this.raise(g.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Re(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(g.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(g.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(r(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||s)&&this.raise(g.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(g.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new lt(1));const s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const r=this.state.startLoc,a=[],o=new ht;let l,c,p=!0;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,a,!1),h):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(n=this.startNodeAt(r),n.expressions=a,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,u)):n=a[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(g.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),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),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(g.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:s,value:i}=this.state,a=t+1,o=this.startNodeAt(r(n,1));null===i&&(e||this.raise(g.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,p=s+c;o.value={raw:this.input.slice(a,p).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,c)},o.tail=l,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,r(this.state.lastTokEndLoc,c)),u}parseTemplate(e){const t=this.startNode();let n=this.parseTemplateElement(e);const s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=s,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,s){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let r=!1,a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(s),r=this.checkProto(i,n,r,s)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(g.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let s,i=!1,r=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(s=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(n);const o=this.state.containsEsc;if(this.parsePropertyName(n,e),!a&&!o&&this.maybeAsyncOrAccessorProp(n)){const{key:e}=n,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(n)),"get"!==t&&"set"!==t||(r=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,s,a,i,!1,r,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==n&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=s[s.length-1])?void 0:t.type)&&this.raise(g.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,s,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,s){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=s?null===s.shorthandAssignLoc&&(s.shorthandAssignLoc=n):this.raise(g.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,s,i,r,a){const o=this.parseObjectMethod(e,n,s,i,r)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:s}=this.state;let i;if(W(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(g.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===n){i=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=i,139!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,s,i,r,a=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(a?576:0)|(i?32:0)),this.prodParam.enter(Re(n,e.generator)),this.parseFunctionParams(e,s);const o=this.parseFunctionBodyAndFinish(e,r,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,n){t&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,s){this.scope.enter(518);let i=Re(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const r=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=r,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){const s=t&&!this.match(5);if(this.expressionScope.enter(pt()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{const r=!this.isSimpleParamList(e.params);i&&r&&this.raise(g.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const a=!s&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||r),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,s=!0){const i=!t&&new Set,r={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,r,5,i,s)}parseExprList(e,t,n,s){const i=[];let r=!0;for(;!this.eat(e);){if(r)r=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,s){let i;if(this.match(12))t||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",n)}parseIdentifierName(e){let t;const{startLoc:n,type:s}=this.state;W(s)?t=this.state.value:this.unexpected();const i=s<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,s){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ce.has(e)}(e))this.raise(g.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?s?me:de:he)(e,this.inModule))this.raise(g.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(g.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||Q(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(g.YieldInParameter,t);let n=!1,s=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:s=this.parseMaybeAssign()}return t.delegate=n,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(g.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(g.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.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"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(null!=t&&this.match(88)){const n=this.lookaheadCharCode();if(44===n||n===(3===e?93:8===e?125:41)||61===n)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}const _t={kind:1},Lt={kind:2},Mt=/[\uD800-\uDFFF]/u,Ft=/in(?:stanceof)?/y;class Bt extends Dt{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,n){for(let s=0;s<e.length;s++){const i=e[s],{type:a}=i;if("number"==typeof a){if(139===a){const{loc:t,start:n,value:a,end:o}=i,l=n+1,c=r(t.start,1);e.splice(s,1,new st({type:Z(27),value:"#",start:n,end:l,startLoc:t.start,endLoc:c}),new st({type:Z(132),value:a,start:l,end:o,startLoc:c,endLoc:t.end})),s++;continue}if(Q(a)){const{loc:o,start:l,value:c,end:p}=i,u=l+1,h=r(o.start,1);let d,f,m,y,T;d=96===t.charCodeAt(l-n)?new st({type:Z(22),value:"`",start:l,end:u,startLoc:o.start,endLoc:h}):new st({type:Z(8),value:"}",start:l,end:u,startLoc:o.start,endLoc:h}),24===a?(m=p-1,y=r(o.end,-1),f=null===c?null:c.slice(1,-1),T=new st({type:Z(22),value:"`",start:m,end:p,startLoc:y,endLoc:o.end})):(m=p-2,y=r(o.end,-2),f=null===c?null:c.slice(1,-2),T=new st({type:Z(23),value:"${",start:m,end:p,startLoc:y,endLoc:o.end})),e.splice(s,1,d,new st({type:Z(20),value:f,start:u,end:m,startLoc:h,endLoc:y}),T),s+=2;continue}i.type=Z(a)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return s=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",r(this.state.startLoc,-1)),s}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),s=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),r=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",r),this.addExtra(n,"expressionValue",s),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(oe(e)){if(Ft.lastIndex=t,Ft.test(this.input)){const e=this.codePointAtPos(Ft.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,s=this.startNode(),i=!!(2&e),r=!!(4&e),a=1&e;switch(n){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(46===this.lookaheadCharCode())break;return r||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!i&&r);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,s),!0);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.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,s):this.raise(g.UnexpectedLexicalDeclaration,s):this.raise(g.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(g.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(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===n?this.parseImport(s):this.parseExport(s,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!i&&r)}const o=this.state.value,l=this.parseExpression();return q(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(s,o,l,e):this.parseExpressionStatement(s,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(g.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){var s;return e&&(null!=(s=t.decorators)&&s.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(g.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const s=this.state.labels[n];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(t||1===s.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(_t),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(_t);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const s=this.isAwaitUsing(),i=s||this.isForUsing(),r=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||r){const n=this.startNode();let r;s?(r="await using",this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(n,!0,r);const a=this.finishNode(n,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}const s=this.isContextual(95),i=new ht,r=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(n&&this.raise(g.ForOfLet,r),null===t&&s&&"Identifier"===r.type&&this.raise(g.ForOfAsync,r)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(r,!0);const n=a?"ForOfStatement":"ForInStatement";return this.checkLVal(r,{type:n}),this.parseForIn(e,r,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,r)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(g.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Lt),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(e&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(g.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(_t),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(g.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,s){for(const e of this.state.labels)e.name===t&&this.raise(g.LabelRedeclaration,n,{labelName:t});const i=(r=this.state.type)>=90&&r<=92?1:this.match(71)?2:null;var r;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&s?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){const s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,n),t&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,s,i){const r=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(r,t?a:void 0,n,s,i)}parseBlockOrModuleBlockBody(e,t,n,s,i){const r=this.state.strict;let a=!1,o=!1;for(;!this.match(s);){const s=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(s)){const e=this.stmtToDirective(s);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(s)}null==i||i.call(this,a),r||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const s=this.match(58);return this.next(),s?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||s&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(g.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(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,n,s=!1){const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||s||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n&&"using"!==n&&"await using"!==n||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==n.type&&"ObjectPattern"!==n.type||this.raise(g.UsingDeclarationHasBindingPattern,n.loc.start):"VoidPattern"===n.type&&this.raise(g.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const n=2&t,s=!!(1&t),i=s&&!(4&t),r=!!(8&t);this.initFunction(e,r),this.match(55)&&(n&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Re(r,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||q(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ot(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let s=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}const e=this.startNode();s.length&&(e.decorators=s,this.resetStartLocationFromNode(e,s[0]),s=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(g.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),s.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const s=t;return s.kind="method",s.computed=!1,s.key=n,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}if(this.isClassProperty()){const s=t;return s.computed=!1,s.key=n,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,s)}parseClassMemberWithIsStatic(e,t,n,s){const i=t,r=t,a=t,o=t,l=t,c=i,p=i;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(139);return this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),t?void this.pushClassPrivateMethod(e,r,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const u=!this.state.containsEsc&&q(this.state.type),h=this.parseClassElementName(t),d=u?h.name:null,f=this.isPrivateName(h),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,r,!1,!1);const s=this.isNonstaticConstructor(i);let a=!1;s&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,h),s&&this.hasPlugin("typescript")&&t.override&&this.raise(g.OverrideOnConstructor,h),n.hadConstructor=!0,a=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,s,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),c.kind=d;const t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,r,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);p.optional&&this.unexpected(m),c.kind="method";const n=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),n?this.pushClassPrivateMethod(e,r,t,!0):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==n||this.raise(g.StaticPrototype,this.state.startLoc),139===t){"constructor"===n&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);const s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(g.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(g.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){n||t.computed||!this.nameIsConstructor(t.key)||this.raise(g.ConstructorClassField,t.key);const s=this.parseClassAccessorProperty(t);e.body.push(s),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,t,n,s,i,r){e.body.push(this.parseMethod(t,n,s,i,r,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,s){const i=this.parseMethod(t,n,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const r="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,r)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(pt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,s=8331){if(q(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,s);else{if(!n&&t)throw this.raise(g.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,n),i=!s||this.eat(12),r=i&&this.eatExportStar(e),a=r&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=s||r;if(r&&!a){if(s&&this.unexpected(),t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let p;if(s&&i&&!r&&!c&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),l||c){if(p=!1,t)throw this.raise(g.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){var u;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(u=n.declaration)?void 0:u.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,s=this.parseExportDefaultExpression();if(n.declaration=s,"ClassDeclaration"===s.type)this.maybeTakeDecorators(t,s,n);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),s=this.startNodeAtNode(n);return s.exported=n,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const n="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(g.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(q(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||q(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(g.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,s){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var r;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!==4||null!=(r=t.extra)&&r.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!s&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(g.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:n}=t;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(e,n.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(g.DuplicateDefaultExport,e):this.raise(g.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const s=this.isContextual(130),i=this.match(134),r=this.startNode();r.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(r,i,e,s))}return t}parseExportSpecifier(e,t,n,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),t=Mt.exec(e.value);return t&&this.raise(g.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(g.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(g.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var s;"ImportDefaultSpecifier"!==n&&this.raise(g.ImportReflectionNotBinding,t[0].loc.start),(null==(s=e.assertions)?void 0:s.length)>0&&this.raise(g.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(g.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,s){t||("module"===n?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;return(W(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(e,t,s,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,s))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return q(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),s=n&&this.maybeParseStarImportSpecifier(e);return n&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),s=this.state.value;if(t.has(s)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),t.add(s),this.match(134)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(g.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!W(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),s=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();const r=this.parseImportSpecifier(n,s,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(r)}}parseImportSpecifier(e,t,n,s,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(g.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class jt extends Bt{constructor(e,t,n){const s=function(e){const t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const n of Object.keys(t))null!=e[n]&&(t[n]=e[n]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(s,t),this.options=s,this.initializeScopes(),this.plugins=n,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let i=0;s.allowAwaitOutsideFunction&&(i|=1),s.allowReturnOutsideFunction&&(i|=2),s.allowImportExportEverywhere&&(i|=8),s.allowSuperOutsideMethod&&(i|=16),s.allowUndeclaredExports&&(i|=64),s.allowNewTargetOutsideFunction&&(i|=4),s.allowYieldOutsideFunction&&(i|=32),s.ranges&&(i|=128),s.tokens&&(i|=256),s.createImportExpressions&&(i|=512),s.createParenthesizedExpressions&&(i|=1024),s.errorRecovery&&(i|=2048),s.attachComment&&(i|=4096),s.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return ge}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;const n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}}const Rt=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}(V);function Ut(e,t){let n=jt;const s=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,n;"string"==typeof t?e=t:[e,n]=t,s.has(e)||s.set(e,n||{})}!function(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(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=e.get("decorators").allowCallParenthesized;if(null!=n&&"boolean"!=typeof n)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 s=e.get("pipelineOperator").proposal;if(!It.includes(s)){const e=It.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===s){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(!Nt.includes(t)){const e=Nt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var n;if("#"===t&&"hash"===(null==(n=e.get("recordAndTuple"))?void 0:n.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===s&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))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.");if("may-2020"!==e.get("moduleAttributes").version)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")&&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",{}),e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){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.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(s),n=function(e){const t=[];for(const n of Ot)e.has(n)&&t.push(n);const n=t.join("|");let s=Kt.get(n);if(!s){s=jt;for(const e of t)s=kt[e](s);Kt.set(n,s)}return s}(s)}return new n(e,t,s)}const Kt=new Map;t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Ut(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Ut(t,e),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}else s.program.sourceType="script";return s}catch(n){try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Ut(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=Rt},2203:e=>{"use strict";e.exports=require("stream")},2226:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){const n=e.quasis;let s="`";for(let i=0;i<n.length-1;i++)if(s+=n[i].value.raw,this.token(s+"${",!0),this.print(t[i]),s="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}s+=n[n.length-1].value.raw,this.token(s+"`",!0)}},2234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"eval"!==(e=(0,s.default)(e))&&"arguments"!==e||(e="_"+e),e};var s=n(6744)},2246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){r("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){r("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){r("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){r("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){r("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){r("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){r("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){r("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){r("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){r("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){r("BigIntLiteral",e,t)},t.assertBinary=function(e,t){r("Binary",e,t)},t.assertBinaryExpression=function(e,t){r("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){r("BindExpression",e,t)},t.assertBlock=function(e,t){r("Block",e,t)},t.assertBlockParent=function(e,t){r("BlockParent",e,t)},t.assertBlockStatement=function(e,t){r("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){r("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){r("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){r("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){r("BreakStatement",e,t)},t.assertCallExpression=function(e,t){r("CallExpression",e,t)},t.assertCatchClause=function(e,t){r("CatchClause",e,t)},t.assertClass=function(e,t){r("Class",e,t)},t.assertClassAccessorProperty=function(e,t){r("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){r("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){r("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){r("ClassExpression",e,t)},t.assertClassImplements=function(e,t){r("ClassImplements",e,t)},t.assertClassMethod=function(e,t){r("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){r("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){r("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){r("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){r("CompletionStatement",e,t)},t.assertConditional=function(e,t){r("Conditional",e,t)},t.assertConditionalExpression=function(e,t){r("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){r("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){r("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){r("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){r("Declaration",e,t)},t.assertDeclareClass=function(e,t){r("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){r("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){r("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){r("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){r("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){r("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){r("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){r("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){r("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){r("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){r("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){r("Decorator",e,t)},t.assertDirective=function(e,t){r("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){r("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){r("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){r("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){r("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){r("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){r("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){r("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){r("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){r("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){r("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){r("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){r("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){r("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){r("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){r("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){r("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){r("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){r("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){r("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){r("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){r("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){r("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){r("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){r("ExportSpecifier",e,t)},t.assertExpression=function(e,t){r("Expression",e,t)},t.assertExpressionStatement=function(e,t){r("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){r("ExpressionWrapper",e,t)},t.assertFile=function(e,t){r("File",e,t)},t.assertFlow=function(e,t){r("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){r("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){r("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){r("FlowPredicate",e,t)},t.assertFlowType=function(e,t){r("FlowType",e,t)},t.assertFor=function(e,t){r("For",e,t)},t.assertForInStatement=function(e,t){r("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){r("ForOfStatement",e,t)},t.assertForStatement=function(e,t){r("ForStatement",e,t)},t.assertForXStatement=function(e,t){r("ForXStatement",e,t)},t.assertFunction=function(e,t){r("Function",e,t)},t.assertFunctionDeclaration=function(e,t){r("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){r("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){r("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){r("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){r("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){r("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){r("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){r("Identifier",e,t)},t.assertIfStatement=function(e,t){r("IfStatement",e,t)},t.assertImmutable=function(e,t){r("Immutable",e,t)},t.assertImport=function(e,t){r("Import",e,t)},t.assertImportAttribute=function(e,t){r("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){r("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){r("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){r("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){r("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){r("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){r("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){r("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){r("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){r("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){r("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){r("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){r("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){r("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){r("JSX",e,t)},t.assertJSXAttribute=function(e,t){r("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){r("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){r("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){r("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){r("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){r("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){r("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){r("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){r("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){r("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){r("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){r("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){r("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){r("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){r("JSXText",e,t)},t.assertLVal=function(e,t){r("LVal",e,t)},t.assertLabeledStatement=function(e,t){r("LabeledStatement",e,t)},t.assertLiteral=function(e,t){r("Literal",e,t)},t.assertLogicalExpression=function(e,t){r("LogicalExpression",e,t)},t.assertLoop=function(e,t){r("Loop",e,t)},t.assertMemberExpression=function(e,t){r("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){r("MetaProperty",e,t)},t.assertMethod=function(e,t){r("Method",e,t)},t.assertMiscellaneous=function(e,t){r("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){r("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,i.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){r("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){r("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){r("NewExpression",e,t)},t.assertNoop=function(e,t){r("Noop",e,t)},t.assertNullLiteral=function(e,t){r("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){r("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){r("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,i.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){r("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){r("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){r("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){r("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){r("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){r("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){r("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){r("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){r("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){r("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){r("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){r("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){r("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){r("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){r("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){r("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){r("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){r("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){r("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){r("Pattern",e,t)},t.assertPatternLike=function(e,t){r("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){r("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){r("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){r("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){r("Placeholder",e,t)},t.assertPrivate=function(e,t){r("Private",e,t)},t.assertPrivateName=function(e,t){r("PrivateName",e,t)},t.assertProgram=function(e,t){r("Program",e,t)},t.assertProperty=function(e,t){r("Property",e,t)},t.assertPureish=function(e,t){r("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){r("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){r("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){r("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,i.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",e,t)},t.assertRestElement=function(e,t){r("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,i.default)("assertRestProperty","assertRestElement"),r("RestProperty",e,t)},t.assertReturnStatement=function(e,t){r("ReturnStatement",e,t)},t.assertScopable=function(e,t){r("Scopable",e,t)},t.assertSequenceExpression=function(e,t){r("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){r("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,i.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",e,t)},t.assertStandardized=function(e,t){r("Standardized",e,t)},t.assertStatement=function(e,t){r("Statement",e,t)},t.assertStaticBlock=function(e,t){r("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){r("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){r("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){r("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){r("Super",e,t)},t.assertSwitchCase=function(e,t){r("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){r("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){r("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){r("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){r("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){r("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){r("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){r("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){r("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){r("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){r("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){r("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){r("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){r("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){r("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){r("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){r("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){r("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){r("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){r("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){r("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){r("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){r("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){r("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){r("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){r("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){r("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){r("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){r("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){r("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){r("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){r("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){r("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){r("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){r("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){r("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){r("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){r("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){r("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){r("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){r("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){r("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){r("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){r("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){r("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){r("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){r("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){r("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){r("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){r("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){r("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){r("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){r("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){r("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){r("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){r("TSThisType",e,t)},t.assertTSTupleType=function(e,t){r("TSTupleType",e,t)},t.assertTSType=function(e,t){r("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){r("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){r("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){r("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){r("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){r("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){r("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){r("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){r("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){r("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){r("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){r("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){r("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){r("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){r("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){r("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){r("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){r("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){r("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){r("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){r("Terminatorless",e,t)},t.assertThisExpression=function(e,t){r("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){r("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){r("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){r("TopicReference",e,t)},t.assertTryStatement=function(e,t){r("TryStatement",e,t)},t.assertTupleExpression=function(e,t){r("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){r("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){r("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){r("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){r("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){r("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){r("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){r("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){r("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){r("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){r("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){r("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){r("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){r("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){r("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){r("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){r("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){r("VariableDeclarator",e,t)},t.assertVariance=function(e,t){r("Variance",e,t)},t.assertVoidPattern=function(e,t){r("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){r("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){r("While",e,t)},t.assertWhileStatement=function(e,t){r("WhileStatement",e,t)},t.assertWithStatement=function(e,t){r("WithStatement",e,t)},t.assertYieldExpression=function(e,t){r("YieldExpression",e,t)};var s=n(3828),i=n(3762);function r(e,t,n){if(!(0,s.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},2257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:n=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let s=this;var i;n||(s=null!=(i=s.ensureFunctionName(!1))?i:s);const{thisBinding:r,fnPath:a}=W(s,n,e,t);if(a.ensureBlock(),function(e){e.node.type="FunctionExpression"}(a),!n){const e=r?null:a.scope.generateUidIdentifier("arrowCheckId");return e&&a.parentPath.scope.push({id:e,init:E([])}),a.get("body").unshiftContainer("body",d(u(this.hub.addHelper("newArrowCheck"),[N(),f(e?e.name:r)]))),a.replaceWith(u(x(a.node,f("bind")),[e?f(e.name):N()])),a.get("callee.object")}return a},t.ensureBlock=function(){const e=this.get("body"),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 n=[];let s,i,r="body";e.isStatement()?(i="body",s=0,n.push(e.node)):(r+=".body.0",this.isFunction()?(s="argument",n.push(A(e.node))):(s="expression",n.push(d(e.node)))),this.node.body=p(n);const o=this.get(r);return a.setup.call(e,o,i?o.node[i]:o.node,i,s),this.node},t.ensureFunctionName=function(e){if(this.node.id)return this;const t=F(this.node,this.parent);if(null==t)return this;let{name:n}=t;if(!e&&/[\uD800-\uDFFF]/.test(n))return null;if(n.startsWith("get ")||n.startsWith("set "))return null;n=D(n.replace(/[/ ]/g,"_"));const s=f(n);V(s,t.originalNode);const r={needsRename:!1,name:n},{scope:a}=this,o=a.getOwnBinding(n);if(o?"param"===o.kind&&(r.needsRename=!0):(a.parent.hasBinding(n)||a.hasGlobal(n))&&this.traverse(H,r),!r.needsRename)return this.node.id=s,a.getProgramParent().references[s.name]=!0,this;if(a.hasBinding(s.name)&&!a.hasGlobal(s.name))return a.rename(s.name),this.node.id=s,a.getProgramParent().references[s.name]=!0,this;if(!_(this.node))return null;const l=a.generateUidIdentifier(s.name),c=[];for(let e=0,t=function(e){const t=e.params.findIndex(e=>L(e)||M(e));return-1===t?e.params.length:t}(this.node);e<t;e++)c.push(a.generateUidIdentifier("x"));const p=i.default.expression.ast`
|
|
2
2
|
(function (${l}) {
|
|
3
3
|
function ${s}(${c}) {
|
|
4
4
|
return ${B(l)}.apply(this, arguments);
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
|
|
11
11
|
return ${B(s)};
|
|
12
12
|
})(${k(this.node)})
|
|
13
|
-
`;return this.replaceWith(p)[0].get("arguments.0")},t.splitExportDeclaration=function(){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(),n=e.isFunctionExpression()||e.isClassExpression(),s=e.isScope()?e.scope.parent:e.scope;let i=e.node.id,r=!1;i?n&&s.hasBinding(i.name)&&(r=!0,i=s.generateUidIdentifier(i.name)):(r=!0,i=s.generateUidIdentifier("default"),(t||n)&&(e.node.id=B(i)));const a=t?e.node:j("var",[R(B(i),e.node)]),o=U(null,[K(B(i),f("default"))]);return this.insertAfter(o),this.replaceWith(a),r&&s.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),n=Object.keys(t).map(e=>K(f(e),f(e))),s=U(null,n);return this.insertAfter(s),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}return this.node.computed||m(e)&&(e=w(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");W(this)};var s=n(2352),i=n(2485),r=n(4950),a=n(9578);const{arrowFunctionExpression:o,assignmentExpression:l,binaryExpression:c,blockStatement:p,callExpression:u,conditionalExpression:h,expressionStatement:d,identifier:f,isIdentifier:m,jsxIdentifier:y,logicalExpression:T,LOGICAL_OPERATORS:g,memberExpression:x,metaProperty:S,numericLiteral:b,objectExpression:E,restElement:P,returnStatement:A,sequenceExpression:v,spreadElement:C,stringLiteral:w,super:I,thisExpression:N,toExpression:k,unaryExpression:O,toBindingIdentifierName:D,isFunction:_,isAssignmentPattern:L,isRestElement:M,getFunctionName:F,cloneNode:B,variableDeclaration:j,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:K,inherits:V}=s;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const q=(0,r.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function W(e,t=!0,n=!0,s=!0){let i,r=e.findParent(e=>e.isArrowFunctionExpression()?(null!=i||(i=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const a=r.isClassMethod({kind:"constructor"});if(r.isClassProperty()||r.isClassPrivateProperty())if(i)r=i;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(u(o([],k(e.node)),[])),r=e.get("callee"),e=r.get("body")}const{thisPaths:p,argumentsPaths:d,newTargetPaths:m,superProps:E,superCalls:A}=function(e){const t=[],n=[],s=[],i=[],r=[];return e.traverse($,{thisPaths:t,argumentsPaths:n,newTargetPaths:s,superProps:i,superCalls:r}),{thisPaths:t,argumentsPaths:n,newTargetPaths:s,superProps:i,superCalls:r}}(e);if(a&&A.length>0){if(!n)throw A[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!s)throw A[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.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];r.traverse(q,{allSuperCalls:e});const t=function(e){return X(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return o([P(t)],u(I(),[C(f(t.name))]))})}(r);e.forEach(e=>{const n=f(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(d.length>0){const e=X(r,"arguments",()=>{const e=()=>f("arguments");return r.scope.path.isProgram()?h(c("===",O("typeof",e()),w("undefined")),r.scope.buildUndefinedNode(),e()):e()});d.forEach(t=>{const n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(m.length>0){const e=X(r,"newtarget",()=>S(f("new"),f("target")));m.forEach(t=>{const n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(E.length>0){if(!n)throw E[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");E.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,s=n.node.operator.slice(0,-1),i=n.node.right,r=function(e){return g.includes(e)}(s);if(e.node.computed){const a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:c}=e.node;n.get("left").replaceWith(x(o,l("=",a,c),!0)),n.get("right").replaceWith(t(r?"=":s,x(o,f(a.name),!0),i))}else{const a=e.node.object,o=e.node.property;n.get("left").replaceWith(x(a,o)),n.get("right").replaceWith(t(r?"=":s,x(a,f(o.name)),i))}return r?n.replaceWith(T(s,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,x(e.node.object,s?l("=",s,e.node.property):e.node.property,e.node.computed)),l("=",x(e.node.object,s?f(s.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],f(n.name),b(1)))];return e.parentPath.node.prefix||i.push(f(n.name)),t.replaceWith(v(i)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?l("=",t,n):c(e,t,n)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath,s=n.isAssignmentExpression({left:e.node}),i=n.isCallExpression({callee:e.node}),a=n.isTaggedTemplateExpression({tag:e.node}),c=function(e,t,n){return X(e,`superprop_${t?"set":"get"}:${n||""}`,()=>{const s=[];let i;if(n)i=x(I(),f(n));else{const t=e.scope.generateUidIdentifier("prop");s.unshift(t),i=x(I(),f(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");s.push(t),i=l("=",i,f(t.name))}return o(s,i)})}(r,s,t),h=[];if(e.node.computed&&h.push(e.get("property").node),s){const e=n.node.right;h.push(e)}const d=u(f(c),h);i?(n.unshiftContainer("arguments",N()),e.replaceWith(x(d,f("call"))),p.push(n.get("arguments.0"))):s?n.replaceWith(d):a?(e.replaceWith(u(x(d,f("bind"),!1),[N()])),p.push(e.get("arguments.0"))):e.replaceWith(d)})}let D;return(p.length>0||!t)&&(D=function(e,t){return X(e,"this",n=>{if(!t||!J(e))return N();e.traverse(Y,{supers:new WeakSet,thisBinding:n})})}(r,a),(t||a&&J(r))&&(p.forEach(e=>{const t=e.isJSX()?y(D):f(D);t.loc=e.node.loc,e.replaceWith(t)}),t||(D=null))),{thisBinding:D,fnPath:e}}function J(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const Y=(0,r.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",f(n),f("this"))])))}});function X(e,t,n){const s="binding:"+t;let i=e.getData(s);if(!i){const r=e.scope.generateUidIdentifier(t);i=r.name,e.setData(s,i),e.scope.push({id:r,init:n(i)})}return i}const $=(0,r.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),H={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},2259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h.call(this,e)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;c(this,"boolean",t),p(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;c(this,"number",t),p(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;c(this,"string",t),p(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){c(this,"symbol",!0),p(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);const n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=r.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,f)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,n,s;(this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type)&&(null!=(n=e.mixins)&&n.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(s=e.implements)&&s.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)},t._variance=function(e){var t;const n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var s=n(2352),i=n(9638),r=n(1373),a=n(7942);const{isDeclareExportDeclaration:o,isStatement:l}=s;function c(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function p(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const t of n)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function u(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function h(e){if(e.declaration){const t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function d(e){this.space(),this.token("&",!1,e),this.space()}function f(e){this.space(),this.token("|",!1,e),this.space()}},2264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,n,i,a,o,l){const c=r[e.type];if(!c)return!1;const p=new s.default(n,t,i,a);if(l)return(null==o||!o[a.parentKey])&&p.visitQueue([a]);for(const t of c)if((null==o||!o[t])&&p.visit(e,t))return!0;return!1};var s=n(1602),i=(n(9709),n(2352));n(9578);const{VISITOR_KEYS:r}=i},2352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return F.default}});var i=n(5682),r=n(5004),a=n(9018),o=n(4568),l=n(2246);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var c=n(5958),p=n(1009),u=n(6049),h=n(985);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var d=n(8079);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var f=n(5279),m=n(2107),y=n(245),T=n(5299),g=n(2425),x=n(6211),S=n(2598),b=n(7932),E=n(5766),P=n(8125),A=n(5586),v=n(3437),C=n(7980);Object.keys(C).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))});var w=n(3422);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var I=n(7931),N=n(2234),k=n(5010),O=n(3017),D=n(6133),_=n(6744),L=n(2402),M=n(9198),F=n(4544),B=n(9793);Object.keys(B).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))});var j=n(4001),R=n(9564),U=n(6219),K=n(5333),V=n(7639),q=n(5237),W=n(1343),J=n(329),Y=n(9420),X=n(5109),$=n(3357);Object.keys($).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))});var H=n(8943),z=n(6616),G=n(3828),Q=n(2687),Z=n(9127),ee=n(9722),te=n(3847),ne=n(3908),se=n(7003),ie=n(3571),re=n(7591),ae=n(9246),oe=n(2457),le=n(4460),ce=n(1384),pe=n(983),ue=n(499),he=n(4965),de=n(7446),fe=n(3937),me=n(8960);Object.keys(me).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))});var ye=n(3762),Te=n(640);t.react={isReactComponent:i.default,isCompatTag:r.default,buildChildren:a.default},t.toSequenceExpression=Te.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")},2402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(8960),i=n(5279),r=n(7639);function a(e,t=e.key){let n;return"method"===e.kind?a.increment()+"":(n=(0,s.isIdentifier)(t)?t.name:(0,s.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,r.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}a.uid=0,a.increment=function(){return a.uid>=Number.MAX_SAFE_INTEGER?a.uid=0:a.uid++}},2425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!1,!0)};var s=n(5279)},2457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isImportDefaultSpecifier)(e)||(0,s.isIdentifier)(e.imported||e.exported,{name:"default"})};var s=n(8960)},2485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var s=n(826),i=n(4466);const r=t.smart=(0,i.default)(s.smart),a=t.statement=(0,i.default)(s.statement),o=t.statements=(0,i.default)(s.statements),l=t.expression=(0,i.default)(s.expression),c=t.program=(0,i.default)(s.program);t.default=Object.assign(r.bind(void 0),{smart:r,statement:a,statements:o,expression:l,program:c,ast:r.ast})},2598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const s=`${t}Comments`;return e[s]?"leading"===t?e[s]=n.concat(e[s]):e[s].push(...n):e[s]=n,e}},2687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=s.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const s=t[i[n]];if(Array.isArray(s)){if(s.includes(e))return!0}else if(s===e)return!0}return!1};var s=n(329)},2716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var s=n(2352);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:r,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:T}=s;function g(e,t){return e?(d(e)||y(e)?(g(e.object,t),e.computed&&g(e.property,t)):o(e)||a(e)?(g(e.left,t),g(e.right,t)):c(e)||m(e)?(t.hasCall=!0,g(e.callee,t)):p(e)?t.hasFunction=!0:u(e)&&(t.hasHelper=t.hasHelper||e.callee&&S(e.callee)),t):t}function x(e){return g(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function S(e){return!!e&&(d(e)?S(e.object)||S(e.property):u(e)?"require"===e.name||95===e.name.charCodeAt(0):c(e)?S(e.callee):!(!o(e)&&!a(e))&&(u(e.left)&&S(e.left)||S(e.right)))}function b(e){return h(e)||f(e)||r(e)||u(e)||d(e)}const E=t.nodes={AssignmentExpression(e){const t=x(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression:e=>p(e.left)||p(e.right)?2:0,Literal:e=>T(e)&&"use strict"===e.value?2:0,CallExpression:e=>p(e.callee)||S(e)?3:0,OptionalCallExpression:e=>p(e.callee)?3:0,VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let s=S(n.id)&&!b(n.init);if(!s&&n.init){const e=x(n.init);s=S(n.init)&&e.hasCall||e.hasFunction}if(s)return 3}return 0},IfStatement:e=>l(e.consequent)?3:0};E.ObjectProperty=E.ObjectTypeProperty=E.ObjectMethod=function(e,t){return t.properties[0]===e?1:0},E.ObjectTypeCallProperty=function(e,t){var n;return t.callProperties[0]!==e||null!=(n=t.properties)&&n.length?0:1},E.ObjectTypeIndexer=function(e,t){var n,s;return t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(s=t.callProperties)&&s.length?0:1},E.ObjectTypeInternalSlot=function(e,t){var n,s,i;return t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(s=t.callProperties)&&s.length||null!=(i=t.indexers)&&i.length?0:1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(i[e]||[]).forEach(function(e){const n=t?3:0;E[e]=()=>n})})},2802:function(e,t,n){var s;!function(e,t,n){"use strict";var s,i=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))c.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(s=a(t,i))||s.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:r(n,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=n}}),f=p({"umd:@jridgewell/resolve-uri"(e,n){n.exports=t}}),m={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(m,{AnyMap:()=>M,FlattenMap:()=>M,GREATEST_LOWER_BOUND:()=>q,LEAST_UPPER_BOUND:()=>V,TraceMap:()=>W,allGeneratedPositionsFor:()=>z,decodedMap:()=>ne,decodedMappings:()=>Y,eachMapping:()=>G,encodedMap:()=>se,encodedMappings:()=>J,generatedPositionFor:()=>H,isIgnored:()=>ee,originalPositionFor:()=>$,presortedDecodedMap:()=>te,sourceContentFor:()=>Z,traceSegment:()=>X}),e.exports=(s=m,u(r({},"__esModule",{value:!0}),s));var y=h(d()),T=h(f());var g=0,x=1,S=2,b=3,E=4,P=1,A=2;function v(e,t){for(let n=t;n<e.length;n++)if(!C(e[n]))return n;return e.length}function C(e){for(let t=1;t<e.length;t++)if(e[t][g]<e[t-1][g])return!1;return!0}function w(e,t){return t||(e=e.slice()),e.sort(I)}function I(e,t){return e[g]-t[g]}var N=!1;function k(e,t,n){for(let s=n+1;s<e.length&&e[s][g]===t;n=s++);return n}function O(e,t,n){for(let s=n-1;s>=0&&e[s][g]===t;n=s--);return n}function D(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _(e,t,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let o=0,l=e.length-1;if(s===i){if(t===r)return N=-1!==a&&e[a][g]===t,a;t>=r?o=-1===a?0:a:l=a}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=function(e,t,n,s){for(;n<=s;){const i=n+(s-n>>1),r=e[i][g]-t;if(0===r)return N=!0,i;r<0?n=i+1:s=i-1}return N=!1,n-1}(e,t,o,l)}function L(e){return"string"==typeof e?JSON.parse(e):e}var M=function(e,t){const n=L(e);if(!("sections"in n))return new W(n,t);const s=[],i=[],r=[],a=[],o=[];return F(n,t,s,i,r,a,o,0,0,1/0,1/0),te({version:3,file:n.file,names:a,sources:i,sourcesContent:r,mappings:s,ignoreList:o})};function F(e,t,n,s,i,r,a,o,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:h,offset:d}=u[e];let f=c,m=p;if(e+1<u.length){const t=u[e+1].offset;f=Math.min(c,o+t.line),f===c?m=Math.min(p,l+t.column):f<c&&(m=l+t.column)}B(h,t,n,s,i,r,a,o+d.line,l+d.column,f,m)}}function B(e,t,n,s,i,r,a,o,l,c,p){const u=L(e);if("sections"in u)return F(...arguments);const h=new W(u,t),d=s.length,f=r.length,m=Y(h),{resolvedSources:y,sourcesContent:T,ignoreList:P}=h;if(j(s,y),j(r,h.names),T)j(i,T);else for(let e=0;e<y.length;e++)i.push(null);if(P)for(let e=0;e<P.length;e++)a.push(P[e]+d);for(let e=0;e<m.length;e++){const t=o+e;if(t>c)return;const s=R(n,t),i=0===e?l:0,r=m[e];for(let e=0;e<r.length;e++){const n=r[e],a=i+n[g];if(t===c&&a>=p)return;if(1===n.length){s.push([a]);continue}const o=d+n[x],l=n[S],u=n[b];s.push(4===n.length?[a,o,l,u]:[a,o,l,u,f+n[E]])}}}function j(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function R(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}var U="`line` must be greater than 0 (lines start at line 1)",K="`column` must be greater than or equal to 0 (columns start at column 0)",V=-1,q=1,W=class{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const s=L(e),{version:i,file:r,names:a,sourceRoot:o,sources:l,sourcesContent:c}=s;this.version=i,this.file=r,this.names=a||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=c,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const p=function(e,t){const n=function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(e),s=t?t+"/":"";return e=>(0,T.default)(s+(e||""),n)}(t,o);this.resolvedSources=l.map(p);const{mappings:u}=s;if("string"==typeof u)this._encoded=u,this._decoded=void 0;else{if(!Array.isArray(u))throw s.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(s)}`);this._encoded=void 0,this._decoded=function(e,t){const n=v(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=v(e,s+1))e[s]=w(e[s],t);return e}(u,n)}this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function J(e){var t,n;return null!=(n=(t=e)._encoded)?n:t._encoded=(0,y.encode)(e._decoded)}function Y(e){var t;return(t=e)._decoded||(t._decoded=(0,y.decode)(e._encoded))}function X(e,t,n){const s=Y(e);if(t>=s.length)return null;const i=s[t],r=oe(i,e._decodedMemo,t,n,q);return-1===r?null:i[r]}function $(e,t){let{line:n,column:s,bias:i}=t;if(n--,n<0)throw new Error(U);if(s<0)throw new Error(K);const r=Y(e);if(n>=r.length)return re(null,null,null,null);const a=r[n],o=oe(a,e._decodedMemo,n,s,i||q);if(-1===o)return re(null,null,null,null);const l=a[o];if(1===l.length)return re(null,null,null,null);const{names:c,resolvedSources:p}=e;return re(p[l[x]],l[S]+1,l[b],5===l.length?c[l[E]]:null)}function H(e,t){const{source:n,line:s,column:i,bias:r}=t;return le(e,n,s,i,r||q,!1)}function z(e,t){const{source:n,line:s,column:i,bias:r}=t;return le(e,n,s,i,r||V,!0)}function G(e,t){const n=Y(e),{names:s,resolvedSources:i}=e;for(let e=0;e<n.length;e++){const r=n[e];for(let n=0;n<r.length;n++){const a=r[n],o=e+1,l=a[0];let c=null,p=null,u=null,h=null;1!==a.length&&(c=i[a[1]],p=a[2]+1,u=a[3]),5===a.length&&(h=s[a[4]]),t({generatedLine:o,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:h})}}}function Q(e,t){const{sources:n,resolvedSources:s}=e;let i=n.indexOf(t);return-1===i&&(i=s.indexOf(t)),i}function Z(e,t){const{sourcesContent:n}=e;if(null==n)return null;const s=Q(e,t);return-1===s?null:n[s]}function ee(e,t){const{ignoreList:n}=e;if(null==n)return!1;const s=Q(e,t);return-1!==s&&n.includes(s)}function te(e,t){const n=new W(ie(e,[]),t);return n._decoded=e.mappings,n}function ne(e){return ie(e,Y(e))}function se(e){return ie(e,J(e))}function ie(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 re(e,t,n,s){return{source:e,line:t,column:n,name:s}}function ae(e,t){return{line:e,column:t}}function oe(e,t,n,s,i){let r=_(e,s,t,n);return N?r=(i===V?k:O)(e,s,r):i===V&&r++,-1===r||r===e.length?-1:r}function le(e,t,n,s,i,r){var a,o;if(--n<0)throw new Error(U);if(s<0)throw new Error(K);const{sources:l,resolvedSources:c}=e;let p=l.indexOf(t);if(-1===p&&(p=c.indexOf(t)),-1===p)return r?[]:ae(null,null);const u=(a=e)._bySourceMemos||(a._bySourceMemos=l.map(D)),h=((o=e)._bySources||(o._bySources=function(e,t){const n=t.map(()=>[]);for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.length;e++){const i=s[e];if(1===i.length)continue;const r=i[x],a=i[S],o=i[b],l=n[r];(l[a]||(l[a]=[])).push([o,t,i[g]])}}for(let e=0;e<n.length;e++){const t=n[e];for(let e=0;e<t.length;e++){const n=t[e];n&&n.sort(I)}}return n}(Y(e),u)))[p][n];if(null==h)return r?[]:ae(null,null);const d=u[p];if(r)return function(e,t,n,s,i){let r=oe(e,t,n,s,q);if(N||i!==V||r++,-1===r||r===e.length)return[];const a=N?s:e[r][g];N||(r=O(e,a,r));const o=k(e,a,r),l=[];for(;r<=o;r++){const t=e[r];l.push(ae(t[P]+1,t[A]))}return l}(h,d,n,s,i);const f=oe(h,d,n,s,i);if(-1===f)return ae(null,null);const m=h[f];return ae(m[P]+1,m[A])}}(e=n.nmd(e),n(4424),n(4318)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},2847:(e,t,n)=>{n(9896);var s=n(6928);n(857),n(607)(),e.exports=function(e){s.dirname(e.logPath);var t=function(){var e={};function t(e){return(t=new Date).getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+"/"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()+"\t"+e;var t}return e.log=function(e){console.log(t(e))},e.info=e.log,e.warn=function(e){console.warn(t(e))},e.error=function(e){console.error(t(e))},e}(e.APP_NAME);if(e.disable)for(var n in t)("error"!=n&&"warn"!=n||!e.showErrorsAndWarnings)&&(t[n]=function(){});return t}},2861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=i.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n),this.tokenChar(93)):this.print(n),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){const n=this.enterDelimited(),s=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(s||t<i-1)&&(this.token(",",void 0,t),this.space());this.token(t),n()},t._params=function(e,t,n){this.print(e.typeParameters);const s=a.call(this,t,n);s&&this.sourceIdentifierName(s.name,s.pos),this.tokenChar(40),this._parameters(e.params,")");const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,n;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const s=e.params[0];if(!r(s)||s.typeAnnotation||s.optional||null!=(t=s.leadingComments)&&t.length||null!=(n=s.trailingComments)&&n.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var s=n(2352),i=n(1373);const{isIdentifier:r}=s;function a(e,t){let n,s=e;if(!s&&t){const e=t.type;"VariableDeclarator"===e?s=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?s=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(s=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(s=t.key)}if(s){var i,r;if("Identifier"===s.type)n={pos:null==(i=s.loc)?void 0:i.start,name:(null==(r=s.loc)?void 0:r.identifierName)||s.name};else if("PrivateName"===s.type){var a;n={pos:null==(a=s.loc)?void 0:a.start,name:"#"+s.id.name}}else if("StringLiteral"===s.type){var o;n={pos:null==(o=s.loc)?void 0:o.start,name:s.value}}return n}}},2882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(8991),i=n(5879),r=n(1e3);const a=(e,t)=>n=>e(t(n));function o(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:a(a(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a(e.red,e.bold),message:a(e.red,e.bold),reset:e.reset}}const l=o(s.createColors(!0)),c=o(s.createColors(!1));function p(e){return e?l:c}const u=new Set(["as","async","from","get","of","set"]),h=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/;let f;{const e=/^[a-z][\w-]*$/i,t=function(t,n,s){if("name"===t.type){if(r.isKeyword(t.value)||r.isStrictReservedWord(t.value,!0)||u.has(t.value))return"keyword";if(e.test(t.value)&&("<"===s[n-1]||"</"===s.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&d.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};f=function*(e){let n;for(;n=i.default.exec(e);){const s=i.matchToToken(n);yield{type:t(s,n.index,e),value:s.value}}}}function m(e){if(""===e)return"";const t=p(!0);let n="";for(const{type:s,value:i}of f(e))n+=s in t?i.split(h).map(e=>t[s](e)).join("\n"):i;return n}let y=!1;const T=/\r\n|[\n\r\u2028\u2029]/;function g(e,t,n={}){const i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&s.isColorSupported&&n.highlightCode,r=p(i),a=e.split(T),{start:o,end:l,markerLines:c}=function(e,t,n){const s=Object.assign({column:0,line:-1},e.start),i=Object.assign({},s,e.end),{linesAbove:r=2,linesBelow:a=3}=n||{},o=s.line,l=s.column,c=i.line,p=i.column;let u=Math.max(o-(r+1),0),h=Math.min(t.length,c+a);-1===o&&(u=0),-1===c&&(h=t.length);const d=c-o,f={};if(d)for(let e=0;e<=d;e++){const n=e+o;if(l)if(0===e){const e=t[n-1].length;f[n]=[l,e-l+1]}else if(e===d)f[n]=[0,p];else{const s=t[n-e].length;f[n]=[0,s]}else f[n]=!0}else f[o]=l===p?!l||[l,0]:[l,p-l];return{start:u,end:h,markerLines:f}}(t,a,n),u=t.start&&"number"==typeof t.start.column,h=String(l).length;let d=(i?m(e):e).split(T,l).slice(o,l).map((e,t)=>{const s=o+1+t,i=` ${` ${s}`.slice(-h)} |`,a=c[s],l=!c[s+1];if(a){let t="";if(Array.isArray(a)){const s=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),o=a[1]||1;t=["\n ",r.gutter(i.replace(/\d/g," "))," ",s,r.marker("^").repeat(o)].join(""),l&&n.message&&(t+=" "+r.message(n.message))}return[r.marker(">"),r.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${r.gutter(i)}${e.length>0?` ${e}`:""}`}).join("\n");return n.message&&!u&&(d=`${" ".repeat(h+1)}${n.message}\n${d}`),i?r.reset(d):d}t.codeFrameColumns=g,t.default=function(e,t,n,s={}){if(!y){y=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return g(e,{start:{column:n=Math.max(n,0),line:t}},s)},t.highlight=m},3017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,s.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name)),t};var s=n(8960),i=n(8079)},3019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const s=(0,r.explode)(t);if(s.enter||s.exit)throw new Error("Should not be used with enter/exit visitors.");!function e(t,r,l,c,p,u,h,d){if(!l)return;const f=d||i.NodePath.get({hub:h,parentPath:t,parent:r,container:c,listKey:u,key:p});a.setScope.call(f);const m=s[l.type];if(m){if(m.enter)for(const e of m.enter)e.call(n,f,n);if(m.exit)for(const e of m.exit)e.call(n,f,n)}if(f.shouldSkip)return;const y=o[l.type];if(null!=y&&y.length)for(const t of y){const n=l[t];if(n)if(Array.isArray(n))for(let s=0;s<n.length;s++)e(f,l,n[s],n,s,t);else e(f,l,n,l,t,null)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var s=n(2352),i=n(5781),r=n(4950),a=n(9578);const{VISITOR_KEYS:o}=s},3043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let r=0;for(let e=0;e<n.length;e++)/[^ \t]/.exec(n[e])&&(r=e);let a="";for(let e=0;e<n.length;e++){const t=n[e],s=0===e,i=e===n.length-1,o=e===r;let l=t.replace(/\t/g," ");s||(l=l.replace(/^ +/,"")),i||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,i.inherits)((0,s.stringLiteral)(a),e))};var s=n(8079),i=n(2352)},3097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=f,t._callRemovalHooks=u,t._markRemoved=d,t._remove=h,t._removeFromScope=p,t.remove=function(){var e;f.call(this),c.resync.call(this),u.call(this)||(null!=(e=this.opts)&&e.noScope||p.call(this),this.shareCommentsWithSiblings(),h.call(this)),d.call(this)};var s=n(7860),i=n(7411),r=n(2037),a=n(9709),o=n(2352),l=n(8345),c=n(9578);function p(){const e=o.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(e=>this.scope.removeBinding(e))}function u(){if(this.parentPath)for(const e of s.hooks)if(e(this,this.parentPath))return!0}function h(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):r._replaceWith.call(this,null)}function d(){var e;this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED,this.parent&&(null==(e=(0,i.getCachedPaths)(this))||e.delete(this.node)),this.node=null}function f(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=r,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;const n=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"]),s=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function r(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return r(e,t)||s.has(e)}function o(e){return i.has(e)}},3141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every(e=>o(e))?i?i(e):a(e):e.every(e=>l(e))&&r?r(e):void 0};var s=n(2352);const{createFlowUnionType:i,createTSUnionType:r,createUnionTypeAnnotation:a,isFlowType:o,isTSType:l}=s},3193:e=>{"use strict";e.exports=require("string_decoder")},3205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&n&&(t[e]=Array.from(new Set([].concat(t[e],n[e]).filter(Boolean))))}},3286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},n=o.ArrayExpression;return a(n.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},n=o.ArrayPattern;return a(n.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},n=o.ArrayTypeAnnotation;return a(n.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,n=!1){const s={type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null},i=o.ArrowFunctionExpression;return a(i.params,s,"params",e,1),a(i.body,s,"body",t,1),a(i.async,s,"async",n),s},t.assignmentExpression=function(e,t,n){const s={type:"AssignmentExpression",operator:e,left:t,right:n},i=o.AssignmentExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.assignmentPattern=function(e,t){const n={type:"AssignmentPattern",left:e,right:t},s=o.AssignmentPattern;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),n},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},n=o.AwaitExpression;return a(n.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},n=o.BigIntLiteral;return a(n.value,t,"value",e),t},t.binaryExpression=function(e,t,n){const s={type:"BinaryExpression",operator:e,left:t,right:n},i=o.BinaryExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.bindExpression=function(e,t){const n={type:"BindExpression",object:e,callee:t},s=o.BindExpression;return a(s.object,n,"object",e,1),a(s.callee,n,"callee",t,1),n},t.blockStatement=function(e,t=[]){const n={type:"BlockStatement",body:e,directives:t},s=o.BlockStatement;return a(s.body,n,"body",e,1),a(s.directives,n,"directives",t,1),n},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},n=o.BooleanLiteral;return a(n.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},n=o.BooleanLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},n=o.BreakStatement;return a(n.label,t,"label",e,1),t},t.callExpression=function(e,t){const n={type:"CallExpression",callee:e,arguments:t},s=o.CallExpression;return a(s.callee,n,"callee",e,1),a(s.arguments,n,"arguments",t,1),n},t.catchClause=function(e=null,t){const n={type:"CatchClause",param:e,body:t},s=o.CatchClause;return a(s.param,n,"param",e,1),a(s.body,n,"body",t,1),n},t.classAccessorProperty=function(e,t=null,n=null,s=null,i=!1,r=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:s,computed:i,static:r},c=o.ClassAccessorProperty;return a(c.key,l,"key",e,1),a(c.value,l,"value",t,1),a(c.typeAnnotation,l,"typeAnnotation",n,1),a(c.decorators,l,"decorators",s,1),a(c.computed,l,"computed",i),a(c.static,l,"static",r),l},t.classBody=function(e){const t={type:"ClassBody",body:e},n=o.ClassBody;return a(n.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,n,s=null){const i={type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:s},r=o.ClassDeclaration;return a(r.id,i,"id",e,1),a(r.superClass,i,"superClass",t,1),a(r.body,i,"body",n,1),a(r.decorators,i,"decorators",s,1),i},t.classExpression=function(e=null,t=null,n,s=null){const i={type:"ClassExpression",id:e,superClass:t,body:n,decorators:s},r=o.ClassExpression;return a(r.id,i,"id",e,1),a(r.superClass,i,"superClass",t,1),a(r.body,i,"body",n,1),a(r.decorators,i,"decorators",s,1),i},t.classImplements=function(e,t=null){const n={type:"ClassImplements",id:e,typeParameters:t},s=o.ClassImplements;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.classMethod=function(e="method",t,n,s,i=!1,r=!1,l=!1,c=!1){const p={type:"ClassMethod",kind:e,key:t,params:n,body:s,computed:i,static:r,generator:l,async:c},u=o.ClassMethod;return a(u.kind,p,"kind",e),a(u.key,p,"key",t,1),a(u.params,p,"params",n,1),a(u.body,p,"body",s,1),a(u.computed,p,"computed",i),a(u.static,p,"static",r),a(u.generator,p,"generator",l),a(u.async,p,"async",c),p},t.classPrivateMethod=function(e="method",t,n,s,i=!1){const r={type:"ClassPrivateMethod",kind:e,key:t,params:n,body:s,static:i},l=o.ClassPrivateMethod;return a(l.kind,r,"kind",e),a(l.key,r,"key",t,1),a(l.params,r,"params",n,1),a(l.body,r,"body",s,1),a(l.static,r,"static",i),r},t.classPrivateProperty=function(e,t=null,n=null,s=!1){const i={type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:s},r=o.ClassPrivateProperty;return a(r.key,i,"key",e,1),a(r.value,i,"value",t,1),a(r.decorators,i,"decorators",n,1),a(r.static,i,"static",s),i},t.classProperty=function(e,t=null,n=null,s=null,i=!1,r=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:s,computed:i,static:r},c=o.ClassProperty;return a(c.key,l,"key",e,1),a(c.value,l,"value",t,1),a(c.typeAnnotation,l,"typeAnnotation",n,1),a(c.decorators,l,"decorators",s,1),a(c.computed,l,"computed",i),a(c.static,l,"static",r),l},t.conditionalExpression=function(e,t,n){const s={type:"ConditionalExpression",test:e,consequent:t,alternate:n},i=o.ConditionalExpression;return a(i.test,s,"test",e,1),a(i.consequent,s,"consequent",t,1),a(i.alternate,s,"alternate",n,1),s},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},n=o.ContinueStatement;return a(n.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},n=o.DecimalLiteral;return a(n.value,t,"value",e),t},t.declareClass=function(e,t=null,n=null,s){const i={type:"DeclareClass",id:e,typeParameters:t,extends:n,body:s},r=o.DeclareClass;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.declareExportAllDeclaration=function(e,t=null){const n={type:"DeclareExportAllDeclaration",source:e,attributes:t},s=o.DeclareExportAllDeclaration;return a(s.source,n,"source",e,1),a(s.attributes,n,"attributes",t,1),n},t.declareExportDeclaration=function(e=null,t=null,n=null,s=null){const i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n,attributes:s},r=o.DeclareExportDeclaration;return a(r.declaration,i,"declaration",e,1),a(r.specifiers,i,"specifiers",t,1),a(r.source,i,"source",n,1),a(r.attributes,i,"attributes",s,1),i},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},n=o.DeclareFunction;return a(n.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,n=null,s){const i={type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:s},r=o.DeclareInterface;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.declareModule=function(e,t,n=null){const s={type:"DeclareModule",id:e,body:t,kind:n},i=o.DeclareModule;return a(i.id,s,"id",e,1),a(i.body,s,"body",t,1),a(i.kind,s,"kind",n),s},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},n=o.DeclareModuleExports;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,n=null){const s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n},i=o.DeclareOpaqueType;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.supertype,s,"supertype",n,1),s},t.declareTypeAlias=function(e,t=null,n){const s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:n},i=o.DeclareTypeAlias;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.right,s,"right",n,1),s},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},n=o.DeclareVariable;return a(n.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},n=o.DeclaredPredicate;return a(n.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},n=o.Decorator;return a(n.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},n=o.Directive;return a(n.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},n=o.DirectiveLiteral;return a(n.value,t,"value",e),t},t.doExpression=function(e,t=!1){const n={type:"DoExpression",body:e,async:t},s=o.DoExpression;return a(s.body,n,"body",e,1),a(s.async,n,"async",t),n},t.doWhileStatement=function(e,t){const n={type:"DoWhileStatement",test:e,body:t},s=o.DoWhileStatement;return a(s.test,n,"test",e,1),a(s.body,n,"body",t,1),n},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumBooleanBody;return a(n.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},n=o.EnumBooleanMember;return a(n.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const n={type:"EnumDeclaration",id:e,body:t},s=o.EnumDeclaration;return a(s.id,n,"id",e,1),a(s.body,n,"body",t,1),n},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},n=o.EnumDefaultedMember;return a(n.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumNumberBody;return a(n.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const n={type:"EnumNumberMember",id:e,init:t},s=o.EnumNumberMember;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumStringBody;return a(n.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const n={type:"EnumStringMember",id:e,init:t},s=o.EnumStringMember;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},n=o.EnumSymbolBody;return a(n.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},n=o.ExportAllDeclaration;return a(n.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},n=o.ExportDefaultDeclaration;return a(n.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},n=o.ExportDefaultSpecifier;return a(n.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],n=null){const s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n},i=o.ExportNamedDeclaration;return a(i.declaration,s,"declaration",e,1),a(i.specifiers,s,"specifiers",t,1),a(i.source,s,"source",n,1),s},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},n=o.ExportNamespaceSpecifier;return a(n.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const n={type:"ExportSpecifier",local:e,exported:t},s=o.ExportSpecifier;return a(s.local,n,"local",e,1),a(s.exported,n,"exported",t,1),n},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},n=o.ExpressionStatement;return a(n.expression,t,"expression",e,1),t},t.file=function(e,t=null,n=null){const s={type:"File",program:e,comments:t,tokens:n},i=o.File;return a(i.program,s,"program",e,1),a(i.comments,s,"comments",t,1),a(i.tokens,s,"tokens",n),s},t.forInStatement=function(e,t,n){const s={type:"ForInStatement",left:e,right:t,body:n},i=o.ForInStatement;return a(i.left,s,"left",e,1),a(i.right,s,"right",t,1),a(i.body,s,"body",n,1),s},t.forOfStatement=function(e,t,n,s=!1){const i={type:"ForOfStatement",left:e,right:t,body:n,await:s},r=o.ForOfStatement;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),a(r.body,i,"body",n,1),a(r.await,i,"await",s),i},t.forStatement=function(e=null,t=null,n=null,s){const i={type:"ForStatement",init:e,test:t,update:n,body:s},r=o.ForStatement;return a(r.init,i,"init",e,1),a(r.test,i,"test",t,1),a(r.update,i,"update",n,1),a(r.body,i,"body",s,1),i},t.functionDeclaration=function(e=null,t,n,s=!1,i=!1){const r={type:"FunctionDeclaration",id:e,params:t,body:n,generator:s,async:i},l=o.FunctionDeclaration;return a(l.id,r,"id",e,1),a(l.params,r,"params",t,1),a(l.body,r,"body",n,1),a(l.generator,r,"generator",s),a(l.async,r,"async",i),r},t.functionExpression=function(e=null,t,n,s=!1,i=!1){const r={type:"FunctionExpression",id:e,params:t,body:n,generator:s,async:i},l=o.FunctionExpression;return a(l.id,r,"id",e,1),a(l.params,r,"params",t,1),a(l.body,r,"body",n,1),a(l.generator,r,"generator",s),a(l.async,r,"async",i),r},t.functionTypeAnnotation=function(e=null,t,n=null,s){const i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:s},r=o.FunctionTypeAnnotation;return a(r.typeParameters,i,"typeParameters",e,1),a(r.params,i,"params",t,1),a(r.rest,i,"rest",n,1),a(r.returnType,i,"returnType",s,1),i},t.functionTypeParam=function(e=null,t){const n={type:"FunctionTypeParam",name:e,typeAnnotation:t},s=o.FunctionTypeParam;return a(s.name,n,"name",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.genericTypeAnnotation=function(e,t=null){const n={type:"GenericTypeAnnotation",id:e,typeParameters:t},s=o.GenericTypeAnnotation;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.identifier=function(e){const t={type:"Identifier",name:e},n=o.Identifier;return a(n.name,t,"name",e),t},t.ifStatement=function(e,t,n=null){const s={type:"IfStatement",test:e,consequent:t,alternate:n},i=o.IfStatement;return a(i.test,s,"test",e,1),a(i.consequent,s,"consequent",t,1),a(i.alternate,s,"alternate",n,1),s},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const n={type:"ImportAttribute",key:e,value:t},s=o.ImportAttribute;return a(s.key,n,"key",e,1),a(s.value,n,"value",t,1),n},t.importDeclaration=function(e,t){const n={type:"ImportDeclaration",specifiers:e,source:t},s=o.ImportDeclaration;return a(s.specifiers,n,"specifiers",e,1),a(s.source,n,"source",t,1),n},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},n=o.ImportDefaultSpecifier;return a(n.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const n={type:"ImportExpression",source:e,options:t},s=o.ImportExpression;return a(s.source,n,"source",e,1),a(s.options,n,"options",t,1),n},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},n=o.ImportNamespaceSpecifier;return a(n.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const n={type:"ImportSpecifier",local:e,imported:t},s=o.ImportSpecifier;return a(s.local,n,"local",e,1),a(s.imported,n,"imported",t,1),n},t.indexedAccessType=function(e,t){const n={type:"IndexedAccessType",objectType:e,indexType:t},s=o.IndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,n=null,s){const i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:s},r=o.InterfaceDeclaration;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.interfaceExtends=function(e,t=null){const n={type:"InterfaceExtends",id:e,typeParameters:t},s=o.InterfaceExtends;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.interfaceTypeAnnotation=function(e=null,t){const n={type:"InterfaceTypeAnnotation",extends:e,body:t},s=o.InterfaceTypeAnnotation;return a(s.extends,n,"extends",e,1),a(s.body,n,"body",t,1),n},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},n=o.InterpreterDirective;return a(n.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},n=o.IntersectionTypeAnnotation;return a(n.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const n={type:"JSXAttribute",name:e,value:t},s=o.JSXAttribute;return a(s.name,n,"name",e,1),a(s.value,n,"value",t,1),n},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},n=o.JSXClosingElement;return a(n.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,n,s=null){const i={type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:s},r=o.JSXElement;return a(r.openingElement,i,"openingElement",e,1),a(r.closingElement,i,"closingElement",t,1),a(r.children,i,"children",n,1),a(r.selfClosing,i,"selfClosing",s),i},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},n=o.JSXExpressionContainer;return a(n.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,n){const s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:n},i=o.JSXFragment;return a(i.openingFragment,s,"openingFragment",e,1),a(i.closingFragment,s,"closingFragment",t,1),a(i.children,s,"children",n,1),s},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},n=o.JSXIdentifier;return a(n.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const n={type:"JSXMemberExpression",object:e,property:t},s=o.JSXMemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),n},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const n={type:"JSXNamespacedName",namespace:e,name:t},s=o.JSXNamespacedName;return a(s.namespace,n,"namespace",e,1),a(s.name,n,"name",t,1),n},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,n=!1){const s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n},i=o.JSXOpeningElement;return a(i.name,s,"name",e,1),a(i.attributes,s,"attributes",t,1),a(i.selfClosing,s,"selfClosing",n),s},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},n=o.JSXSpreadAttribute;return a(n.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},n=o.JSXSpreadChild;return a(n.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},n=o.JSXText;return a(n.value,t,"value",e),t},t.labeledStatement=function(e,t){const n={type:"LabeledStatement",label:e,body:t},s=o.LabeledStatement;return a(s.label,n,"label",e,1),a(s.body,n,"body",t,1),n},t.logicalExpression=function(e,t,n){const s={type:"LogicalExpression",operator:e,left:t,right:n},i=o.LogicalExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.memberExpression=function(e,t,n=!1,s=null){const i={type:"MemberExpression",object:e,property:t,computed:n,optional:s},r=o.MemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),a(r.computed,i,"computed",n),a(r.optional,i,"optional",s),i},t.metaProperty=function(e,t){const n={type:"MetaProperty",meta:e,property:t},s=o.MetaProperty;return a(s.meta,n,"meta",e,1),a(s.property,n,"property",t,1),n},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},n=o.ModuleExpression;return a(n.body,t,"body",e,1),t},t.newExpression=function(e,t){const n={type:"NewExpression",callee:e,arguments:t},s=o.NewExpression;return a(s.callee,n,"callee",e,1),a(s.arguments,n,"arguments",t,1),n},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},n=o.NullableTypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},n=o.NumberLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},n=o.ObjectExpression;return a(n.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,n,s,i=!1,r=!1,l=!1){const c={type:"ObjectMethod",kind:e,key:t,params:n,body:s,computed:i,generator:r,async:l},p=o.ObjectMethod;return a(p.kind,c,"kind",e),a(p.key,c,"key",t,1),a(p.params,c,"params",n,1),a(p.body,c,"body",s,1),a(p.computed,c,"computed",i),a(p.generator,c,"generator",r),a(p.async,c,"async",l),c},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},n=o.ObjectPattern;return a(n.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,n=!1,s=!1,i=null){const r={type:"ObjectProperty",key:e,value:t,computed:n,shorthand:s,decorators:i},l=o.ObjectProperty;return a(l.key,r,"key",e,1),a(l.value,r,"value",t,1),a(l.computed,r,"computed",n),a(l.shorthand,r,"shorthand",s),a(l.decorators,r,"decorators",i,1),r},t.objectTypeAnnotation=function(e,t=[],n=[],s=[],i=!1){const r={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:s,exact:i},l=o.ObjectTypeAnnotation;return a(l.properties,r,"properties",e,1),a(l.indexers,r,"indexers",t,1),a(l.callProperties,r,"callProperties",n,1),a(l.internalSlots,r,"internalSlots",s,1),a(l.exact,r,"exact",i),r},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},n=o.ObjectTypeCallProperty;return a(n.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,n,s=null){const i={type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:s,static:null},r=o.ObjectTypeIndexer;return a(r.id,i,"id",e,1),a(r.key,i,"key",t,1),a(r.value,i,"value",n,1),a(r.variance,i,"variance",s,1),i},t.objectTypeInternalSlot=function(e,t,n,s,i){const r={type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:s,method:i},l=o.ObjectTypeInternalSlot;return a(l.id,r,"id",e,1),a(l.value,r,"value",t,1),a(l.optional,r,"optional",n),a(l.static,r,"static",s),a(l.method,r,"method",i),r},t.objectTypeProperty=function(e,t,n=null){const s={type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null},i=o.ObjectTypeProperty;return a(i.key,s,"key",e,1),a(i.value,s,"value",t,1),a(i.variance,s,"variance",n,1),s},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},n=o.ObjectTypeSpreadProperty;return a(n.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,n=null,s){const i={type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:s},r=o.OpaqueType;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.supertype,i,"supertype",n,1),a(r.impltype,i,"impltype",s,1),i},t.optionalCallExpression=function(e,t,n){const s={type:"OptionalCallExpression",callee:e,arguments:t,optional:n},i=o.OptionalCallExpression;return a(i.callee,s,"callee",e,1),a(i.arguments,s,"arguments",t,1),a(i.optional,s,"optional",n),s},t.optionalIndexedAccessType=function(e,t){const n={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},s=o.OptionalIndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.optionalMemberExpression=function(e,t,n=!1,s){const i={type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:s},r=o.OptionalMemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),a(r.computed,i,"computed",n),a(r.optional,i,"optional",s),i},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},n=o.ParenthesizedExpression;return a(n.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},n=o.PipelineBareFunction;return a(n.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},n=o.PipelineTopicExpression;return a(n.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const n={type:"Placeholder",expectedNode:e,name:t},s=o.Placeholder;return a(s.expectedNode,n,"expectedNode",e),a(s.name,n,"name",t,1),n},t.privateName=function(e){const t={type:"PrivateName",id:e},n=o.PrivateName;return a(n.id,t,"id",e,1),t},t.program=function(e,t=[],n="script",s=null){const i={type:"Program",body:e,directives:t,sourceType:n,interpreter:s},r=o.Program;return a(r.body,i,"body",e,1),a(r.directives,i,"directives",t,1),a(r.sourceType,i,"sourceType",n),a(r.interpreter,i,"interpreter",s,1),i},t.qualifiedTypeIdentifier=function(e,t){const n={type:"QualifiedTypeIdentifier",id:e,qualification:t},s=o.QualifiedTypeIdentifier;return a(s.id,n,"id",e,1),a(s.qualification,n,"qualification",t,1),n},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},n=o.RecordExpression;return a(n.properties,t,"properties",e,1),t},t.regExpLiteral=c,t.regexLiteral=function(e,t=""){return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),c(e,t)},t.restElement=p,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),p(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},n=o.ReturnStatement;return a(n.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},n=o.SequenceExpression;return a(n.expressions,t,"expressions",e,1),t},t.spreadElement=u,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),u(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},n=o.StaticBlock;return a(n.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},n=o.StringLiteral;return a(n.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},n=o.StringLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const n={type:"SwitchCase",test:e,consequent:t},s=o.SwitchCase;return a(s.test,n,"test",e,1),a(s.consequent,n,"consequent",t,1),n},t.switchStatement=function(e,t){const n={type:"SwitchStatement",discriminant:e,cases:t},s=o.SwitchStatement;return a(s.discriminant,n,"discriminant",e,1),a(s.cases,n,"cases",t,1),n},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const n={type:"TaggedTemplateExpression",tag:e,quasi:t},s=o.TaggedTemplateExpression;return a(s.tag,n,"tag",e,1),a(s.quasi,n,"quasi",t,1),n},t.templateElement=function(e,t=!1){const n={type:"TemplateElement",value:e,tail:t},s=o.TemplateElement;return a(s.value,n,"value",e),a(s.tail,n,"tail",t),n},t.templateLiteral=function(e,t){const n={type:"TemplateLiteral",quasis:e,expressions:t},s=o.TemplateLiteral;return a(s.quasis,n,"quasis",e,1),a(s.expressions,n,"expressions",t,1),n},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},n=o.ThrowStatement;return a(n.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,n=null){const s={type:"TryStatement",block:e,handler:t,finalizer:n},i=o.TryStatement;return a(i.block,s,"block",e,1),a(i.handler,s,"handler",t,1),a(i.finalizer,s,"finalizer",n,1),s},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},n=o.TSArrayType;return a(n.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const n={type:"TSAsExpression",expression:e,typeAnnotation:t},s=o.TSAsExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,n=null){const s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSCallSignatureDeclaration;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSConditionalType=t.tsConditionalType=function(e,t,n,s){const i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:s},r=o.TSConditionalType;return a(r.checkType,i,"checkType",e,1),a(r.extendsType,i,"extendsType",t,1),a(r.trueType,i,"trueType",n,1),a(r.falseType,i,"falseType",s,1),i},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,n=null){const s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSConstructSignatureDeclaration;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSConstructorType=t.tsConstructorType=function(e=null,t,n=null){const s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSConstructorType;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,n,s=null){const i={type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:s},r=o.TSDeclareFunction;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.params,i,"params",n,1),a(r.returnType,i,"returnType",s,1),i},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,n=null,s,i=null){const r={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:s,returnType:i},l=o.TSDeclareMethod;return a(l.decorators,r,"decorators",e,1),a(l.key,r,"key",t,1),a(l.typeParameters,r,"typeParameters",n,1),a(l.params,r,"params",s,1),a(l.returnType,r,"returnType",i,1),r},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},n=o.TSEnumBody;return a(n.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const n={type:"TSEnumDeclaration",id:e,members:t},s=o.TSEnumDeclaration;return a(s.id,n,"id",e,1),a(s.members,n,"members",t,1),n},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const n={type:"TSEnumMember",id:e,initializer:t},s=o.TSEnumMember;return a(s.id,n,"id",e,1),a(s.initializer,n,"initializer",t,1),n},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},n=o.TSExportAssignment;return a(n.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const n={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},s=o.TSExpressionWithTypeArguments;return a(s.expression,n,"expression",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},n=o.TSExternalModuleReference;return a(n.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,n=null){const s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSFunctionType;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const n={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},s=o.TSImportEqualsDeclaration;return a(s.id,n,"id",e,1),a(s.moduleReference,n,"moduleReference",t,1),n},t.tSImportType=t.tsImportType=function(e,t=null,n=null){const s={type:"TSImportType",argument:e,qualifier:t,typeParameters:n},i=o.TSImportType;return a(i.argument,s,"argument",e,1),a(i.qualifier,s,"qualifier",t,1),a(i.typeParameters,s,"typeParameters",n,1),s},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const n={type:"TSIndexSignature",parameters:e,typeAnnotation:t},s=o.TSIndexSignature;return a(s.parameters,n,"parameters",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const n={type:"TSIndexedAccessType",objectType:e,indexType:t},s=o.TSIndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},n=o.TSInferType;return a(n.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const n={type:"TSInstantiationExpression",expression:e,typeParameters:t},s=o.TSInstantiationExpression;return a(s.expression,n,"expression",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},n=o.TSInterfaceBody;return a(n.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,n=null,s){const i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:s},r=o.TSInterfaceDeclaration;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},n=o.TSIntersectionType;return a(n.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},n=o.TSLiteralType;return a(n.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,n=null){const s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n},i=o.TSMappedType;return a(i.typeParameter,s,"typeParameter",e,1),a(i.typeAnnotation,s,"typeAnnotation",t,1),a(i.nameType,s,"nameType",n,1),s},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,n,s=null){const i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:s,kind:null},r=o.TSMethodSignature;return a(r.key,i,"key",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.parameters,i,"parameters",n,1),a(r.typeAnnotation,i,"typeAnnotation",s,1),i},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},n=o.TSModuleBlock;return a(n.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const n={type:"TSModuleDeclaration",id:e,body:t,kind:null},s=o.TSModuleDeclaration;return a(s.id,n,"id",e,1),a(s.body,n,"body",t,1),n},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,n=!1){const s={type:"TSNamedTupleMember",label:e,elementType:t,optional:n},i=o.TSNamedTupleMember;return a(i.label,s,"label",e,1),a(i.elementType,s,"elementType",t,1),a(i.optional,s,"optional",n),s},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},n=o.TSNamespaceExportDeclaration;return a(n.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},n=o.TSNonNullExpression;return a(n.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},n=o.TSOptionalType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},n=o.TSParameterProperty;return a(n.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},n=o.TSParenthesizedType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const n={type:"TSPropertySignature",key:e,typeAnnotation:t},s=o.TSPropertySignature;return a(s.key,n,"key",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const n={type:"TSQualifiedName",left:e,right:t},s=o.TSQualifiedName;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),n},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},n=o.TSRestType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const n={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},s=o.TSSatisfiesExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const n={type:"TSTemplateLiteralType",quasis:e,types:t},s=o.TSTemplateLiteralType;return a(s.quasis,n,"quasis",e,1),a(s.types,n,"types",t,1),n},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},n=o.TSTupleType;return a(n.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,n){const s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n},i=o.TSTypeAliasDeclaration;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},n=o.TSTypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const n={type:"TSTypeAssertion",typeAnnotation:e,expression:t},s=o.TSTypeAssertion;return a(s.typeAnnotation,n,"typeAnnotation",e,1),a(s.expression,n,"expression",t,1),n},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},n=o.TSTypeLiteral;return a(n.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){const n={type:"TSTypeOperator",typeAnnotation:e,operator:t},s=o.TSTypeOperator;return a(s.typeAnnotation,n,"typeAnnotation",e,1),a(s.operator,n,"operator",t),n},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,n){const s={type:"TSTypeParameter",constraint:e,default:t,name:n},i=o.TSTypeParameter;return a(i.constraint,s,"constraint",e,1),a(i.default,s,"default",t,1),a(i.name,s,"name",n),s},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},n=o.TSTypeParameterDeclaration;return a(n.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},n=o.TSTypeParameterInstantiation;return a(n.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,n=null){const s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n},i=o.TSTypePredicate;return a(i.parameterName,s,"parameterName",e,1),a(i.typeAnnotation,s,"typeAnnotation",t,1),a(i.asserts,s,"asserts",n),s},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const n={type:"TSTypeQuery",exprName:e,typeParameters:t},s=o.TSTypeQuery;return a(s.exprName,n,"exprName",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const n={type:"TSTypeReference",typeName:e,typeParameters:t},s=o.TSTypeReference;return a(s.typeName,n,"typeName",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},n=o.TSUnionType;return a(n.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},n=o.TupleExpression;return a(n.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},n=o.TupleTypeAnnotation;return a(n.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,n){const s={type:"TypeAlias",id:e,typeParameters:t,right:n},i=o.TypeAlias;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.right,s,"right",n,1),s},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},n=o.TypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const n={type:"TypeCastExpression",expression:e,typeAnnotation:t},s=o.TypeCastExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.typeParameter=function(e=null,t=null,n=null){const s={type:"TypeParameter",bound:e,default:t,variance:n,name:null},i=o.TypeParameter;return a(i.bound,s,"bound",e,1),a(i.default,s,"default",t,1),a(i.variance,s,"variance",n,1),s},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},n=o.TypeParameterDeclaration;return a(n.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},n=o.TypeParameterInstantiation;return a(n.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},n=o.TypeofTypeAnnotation;return a(n.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,n=!0){const s={type:"UnaryExpression",operator:e,argument:t,prefix:n},i=o.UnaryExpression;return a(i.operator,s,"operator",e),a(i.argument,s,"argument",t,1),a(i.prefix,s,"prefix",n),s},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},n=o.UnionTypeAnnotation;return a(n.types,t,"types",e,1),t},t.updateExpression=function(e,t,n=!1){const s={type:"UpdateExpression",operator:e,argument:t,prefix:n},i=o.UpdateExpression;return a(i.operator,s,"operator",e),a(i.argument,s,"argument",t,1),a(i.prefix,s,"prefix",n),s},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},n=o.V8IntrinsicIdentifier;return a(n.name,t,"name",e),t},t.variableDeclaration=function(e,t){const n={type:"VariableDeclaration",kind:e,declarations:t},s=o.VariableDeclaration;return a(s.kind,n,"kind",e),a(s.declarations,n,"declarations",t,1),n},t.variableDeclarator=function(e,t=null){const n={type:"VariableDeclarator",id:e,init:t},s=o.VariableDeclarator;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.variance=function(e){const t={type:"Variance",kind:e},n=o.Variance;return a(n.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const n={type:"WhileStatement",test:e,body:t},s=o.WhileStatement;return a(s.test,n,"test",e,1),a(s.body,n,"body",t,1),n},t.withStatement=function(e,t){const n={type:"WithStatement",object:e,body:t},s=o.WithStatement;return a(s.object,n,"object",e,1),a(s.body,n,"body",t,1),n},t.yieldExpression=function(e=null,t=!1){const n={type:"YieldExpression",argument:e,delegate:t},s=o.YieldExpression;return a(s.argument,n,"argument",e,1),a(s.delegate,n,"delegate",t),n};var s=n(7446),i=n(3762),r=n(7596);const{validateInternal:a}=s,{NODE_FIELDS:o}=r;function l(e){const t={type:"NumericLiteral",value:e},n=o.NumericLiteral;return a(n.value,t,"value",e),t}function c(e,t=""){const n={type:"RegExpLiteral",pattern:e,flags:t},s=o.RegExpLiteral;return a(s.pattern,n,"pattern",e),a(s.flags,n,"flags",t),n}function p(e){const t={type:"RestElement",argument:e},n=o.RestElement;return a(n.argument,t,"argument",e,1),t}function u(e){const t={type:"SpreadElement",argument:e},n=o.SpreadElement;return a(n.argument,t,"argument",e,1),t}},3357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:s,exit:r}=t;i(e,s,r,n,[])};var s=n(9793);function i(e,t,n,r,a){const o=s.VISITOR_KEYS[e.type];if(o){t&&t(e,a,r);for(const s of o){const o=e[s];if(Array.isArray(o))for(let l=0;l<o.length;l++){const c=o[l];c&&(a.push({node:e,key:s,index:l}),i(c,t,n,r,a),a.pop())}else o&&(a.push({node:e,key:s}),i(o,t,n,r,a),a.pop())}n&&n(e,a,r)}}},3383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){r(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const s=this.getSibling(this.key-1),i=this.getSibling(this.key+1),r=Boolean(s.node),o=Boolean(i.node);r&&(n&&s.addComments("trailing",a(n,s.node.trailingComments)),t&&!o&&s.addComments("trailing",t)),o&&(t&&i.addComments("leading",a(t,i.node.leadingComments)),n&&!r&&i.addComments("leading",n))};var s=n(2352);const{addComment:i,addComments:r}=s;function a(e,t){if(null==t||!t.length)return e;const n=new Set(t);return e.filter(e=>!n.has(e))}},3422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],s=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],r=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],a=t.BOOLEAN_BINARY_OPERATORS=[...r,...s],o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...o,...a,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...o.map(e=>e+"="),...n.map(e=>e+"=")],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],p=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...p],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},3437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var s=n(3422)},3438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{metadata:a,names:o}=function(e,t,n){let s="BABEL_TPL$";const r=t.join("");do{s="$$"+s}while(r.includes(s));const{names:a,code:o}=function(e,t){const n=[];let s=e[0];for(let i=1;i<e.length;i++){const r=`${t}${i-1}`;n.push(r),s+=r+e[i]}return{names:n,code:s}}(t,s);return{metadata:(0,i.default)(e,e.code(o),{parser:n.parser,placeholderWhitelist:new Set(a.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders}),names:a}}(e,t,n);return t=>{const n={};return t.forEach((e,t)=>{n[o[t]]=e}),t=>{const i=(0,s.normalizeReplacements)(t);return i&&Object.keys(i).forEach(e=>{if(hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,r.default)(a,i?Object.assign(i,n):n))}}};var s=n(9815),i=n(4858),r=n(7427)},3571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const n=s.PLACEHOLDERS_ALIAS[e];return!(null==n||!n.includes(t))};var s=n(9793)},3599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:n,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=n,this.kind=s,"var"!==s&&"hoisted"!==s||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:s}=e;n;({parentPath:n,key:s}=n)){if(n.isFunctionParent())return!1;if("left"===s&&n.isForXStatement()||t&&"body"===s&&n.isLoop())return!0}return!1}(n)||this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},3762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s="",i=e){if(n.has(i))return;n.add(i);const{internal:r,trace:a}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const s=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(e=>` at ${e}`).join("\n")}}();r||console.warn(`${s}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${a}`)};const n=new Set},3828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,s.default)(t,n):!n&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,r.default)(t.expectedNode,e))};var s=n(6616),i=n(4460),r=n(3571),a=n(9793)},3847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isVariableDeclaration)(e)&&("var"!==e.kind||e[i])};var s=n(8960),i=Symbol.for("var used to be block scoped")},3874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(2352),i=s,r=n(2264),a=n(4950),o=n(9578);const{getAssignmentIdentifiers:l}=i,c={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},n){const{name:s}=e.key;var i;!e.shorthand||s!==n.oldName&&s!==n.newName||t.getBindingIdentifier(s)!==n.binding.identifier||(e.shorthand=!1,null!=(i=e.extra)&&i.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(s.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:n}=this,{scope:i,path:o}=e,l=o.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());l&&l.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(l);const p=arguments[0]||i.block,u={discriminant:!0};s.isMethod(p)&&(p.computed&&(u.key=!0),s.isObjectMethod(p)||(u.decorators=!0)),(0,r.traverseNode)(p,(0,a.explode)(c),i,this,i.path,u),arguments[0]||(i.removeOwnBinding(t),i.bindings[n]=e,this.binding.identifier.name=n),l&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},3908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!s.VISITOR_KEYS[e.type])};var s=n(9793)},3937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,s.default)(e,n,t)};var s=n(4965)},3962:(e,t)=>{"use strict";function n(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,n)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},3973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=c,t.readInt=l,t.readStringContents=function(e,t,n,s,i,o){const l=n,c=s,p=i;let u="",h=null,d=n;const{length:f}=t;for(;;){if(n>=f){o.unterminated(l,c,p),u+=t.slice(d,n);break}const m=t.charCodeAt(n);if(r(e,m,t,n)){u+=t.slice(d,n);break}if(92===m){u+=t.slice(d,n);const r=a(t,n,s,i,"template"===e,o);null!==r.ch||h?u+=r.ch:h={pos:n,lineStart:s,curLine:i},({pos:n,lineStart:s,curLine:i}=r),d=n}else 8232===m||8233===m?(++i,s=++n):10===m||13===m?"template"===e?(u+=t.slice(d,n)+"\n",++n,13===m&&10===t.charCodeAt(n)&&++n,++i,d=s=n):o.unterminated(l,c,p):++n}return{pos:n,str:u,firstInvalidLoc:h,lineStart:s,curLine:i,containsInvalid:!!h}};var n=function(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])},i={bin:e=>48===e||49===e,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 r(e,t,n,s){return"template"===e?96===t||36===t&&123===n.charCodeAt(s+1):t===("double"===e?34:39)}function a(e,t,n,s,i,r){const a=!i;t++;const l=e=>({pos:t,ch:e,lineStart:n,curLine:s}),p=e.charCodeAt(t++);switch(p){case 110:return l("\n");case 114:return l("\r");case 120:{let i;return({code:i,pos:t}=o(e,t,n,s,2,!1,a,r)),l(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=c(e,t,n,s,a,r)),l(null===i?null:String.fromCodePoint(i))}case 116:return l("\t");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++s;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);r.strictNumericEscape(t-1,n,s);default:if(p>=48&&p<=55){const a=t-1;let o=/^[0-7]+/.exec(e.slice(a,t+2))[0],c=parseInt(o,8);c>255&&(o=o.slice(0,-1),c=parseInt(o,8)),t+=o.length-1;const p=e.charCodeAt(t);if("0"!==o||56===p||57===p){if(i)return l(null);r.strictNumericEscape(a,n,s)}return l(String.fromCharCode(c))}return l(String.fromCharCode(p))}}function o(e,t,n,s,i,r,a,o){const c=t;let p;return({n:p,pos:t}=l(e,t,n,s,16,i,r,!1,o,!a)),null===p&&(a?o.invalidEscapeSequence(c,n,s):t=c-1),{code:p,pos:t}}function l(e,t,r,a,o,l,c,p,u,h){const d=t,f=16===o?s.hex:s.decBinOct,m=16===o?i.hex:10===o?i.dec:8===o?i.oct:i.bin;let y=!1,T=0;for(let s=0,i=null==l?1/0:l;s<i;++s){const s=e.charCodeAt(t);let i;if(95===s&&"bail"!==p){const n=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(p){if(Number.isNaN(s)||!m(s)||f.has(n)||f.has(s)){if(h)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,a)}}else{if(h)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,a)}++t;continue}if(i=s>=97?s-97+10:s>=65?s-65+10:n(s)?s-48:1/0,i>=o){if(i<=9&&h)return{n:null,pos:t};if(i<=9&&u.invalidDigit(t,r,a,o))i=0;else{if(!c)break;i=0,y=!0}}++t,T=T*o+i}return t===d||null!=l&&t-d!==l||y?{n:null,pos:t}:{n:T,pos:t}}function c(e,t,n,s,i,r){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=o(e,t,n,s,e.indexOf("}",t)-t,!0,i,r)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};r.invalidCodePoint(t,n,s)}}else({code:a,pos:t}=o(e,t,n,s,4,!1,i,r));return{code:a,pos:t}}},4001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,s.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var s=n(8079)},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}},4068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(9320),i=n(2802);t.default=class{constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const r=this._map=new s.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(n=e.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,s.setSourceContent)(r,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,s.setSourceContent)(r,e.replace(/\\/g,"/"),t[e])}else(0,s.setSourceContent)(r,this._sourceFileName,t)}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,n,r,a,o){var l;let c;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(c=(0,i.originalPositionFor)(this._inputMap,{line:t,column:n}),!c.name&&a){const e=(0,i.originalPositionFor)(this._inputMap,a);e.name&&(r=e.name)}}else c={name:null,source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:n};(0,s.maybeAddMapping)(this._map,{name:r,generated:e,source:null==(l=c)?void 0:l.source,original:c})}}},4089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=[];let c=!0;for(const p of t)if((0,i.isEmptyStatement)(p)||(c=!1),(0,i.isExpression)(p))l.push(p);else if((0,i.isExpressionStatement)(p))l.push(p.expression);else if((0,i.isVariableDeclaration)(p)){if("var"!==p.kind)return;for(const e of p.declarations){const t=(0,s.default)(e);for(const e of Object.keys(t))n.push({kind:p.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,r.assignmentExpression)("=",e.id,e.init))}c=!0}else if((0,i.isIfStatement)(p)){const t=p.consequent?e([p.consequent],n):(0,a.buildUndefinedNode)(),s=p.alternate?e([p.alternate],n):(0,a.buildUndefinedNode)();if(!t||!s)return;l.push((0,r.conditionalExpression)(p.test,t,s))}else if((0,i.isBlockStatement)(p)){const t=e(p.body,n);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(p))return;0===t.indexOf(p)&&(c=!0)}return c&&l.push((0,a.buildUndefinedNode)()),1===l.length?l[0]:(0,r.sequenceExpression)(l)};var s=n(329),i=n(8960),r=n(8079),a=n(985),o=n(5279)},4318:function(e,t,n){var s;!function(e){"use strict";var t,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var s in t)n(e,s,{get:t[s],enumerable:!0})})(a,{decode:()=>C,decodeGeneratedRanges:()=>E,decodeOriginalScopes:()=>x,encode:()=>N,encodeGeneratedRanges:()=>P,encodeOriginalScopes:()=>S}),e.exports=(t=a,((e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))r.call(e,l)||l===a||n(e,l,{get:()=>t[l],enumerable:!(o=s(t,l))||o.enumerable});return e})(n({},"__esModule",{value:!0}),t));var o=",".charCodeAt(0),l=";".charCodeAt(0),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),u=new Uint8Array(128);for(let e=0;e<64;e++){const t=c.charCodeAt(e);p[e]=t,u[t]=e}function h(e,t){let n=0,s=0,i=0;do{const t=e.next();i=u[t],n|=(31&i)<<s,s+=5}while(32&i);const r=1&n;return n>>>=1,r&&(n=-2147483648|-n),t+n}function d(e,t,n){let s=t-n;s=s<0?-s<<1|1:s<<1;do{let t=31&s;s>>>=5,s>0&&(t|=32),e.write(p[t])}while(s>0);return t}function f(e,t){return!(e.pos>=t)&&e.peek()!==o}var m="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},y=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=m.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+m.decode(e.subarray(0,n)):t}},T=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,s=t.indexOf(e,n);return-1===s?t.length:s}},g=[];function x(e){const{length:t}=e,n=new T(e),s=[],i=[];let r=0;for(;n.pos<t;n.pos++){r=h(n,r);const e=h(n,0);if(!f(n,t)){const t=i.pop();t[2]=r,t[3]=e;continue}const a=h(n,0),o=1&h(n,0)?[r,e,0,0,a,h(n,0)]:[r,e,0,0,a];let l=g;if(f(n,t)){l=[];do{const e=h(n,0);l.push(e)}while(f(n,t))}o.vars=l,s.push(o),i.push(o)}return s}function S(e){const t=new y;for(let n=0;n<e.length;)n=b(e,n,t,[0]);return t.flush()}function b(e,t,n,s){const i=e[t],{0:r,1:a,2:l,3:c,4:p,vars:u}=i;t>0&&n.write(o),s[0]=d(n,r,s[0]),d(n,a,0),d(n,p,0),d(n,6===i.length?1:0,0),6===i.length&&d(n,i[5],0);for(const e of u)d(n,e,0);for(t++;t<e.length;){const i=e[t],{0:r,1:a}=i;if(r>l||r===l&&a>=c)break;t=b(e,t,n,s)}return n.write(o),s[0]=d(n,l,s[0]),d(n,c,0),t}function E(e){const{length:t}=e,n=new T(e),s=[],i=[];let r=0,a=0,o=0,l=0,c=0,p=0,u=0,d=0;do{const e=n.indexOf(";");let t=0;for(;n.pos<e;n.pos++){if(t=h(n,t),!f(n,e)){const e=i.pop();e[2]=r,e[3]=t;continue}const m=h(n,0),y=2&m,T=4&m;let x,S=null,b=g;if(1&m){const e=h(n,a);o=h(n,a===e?o:0),a=e,x=[r,t,0,0,e,o]}else x=[r,t,0,0];if(x.isScope=!!T,y){const e=l,t=c;l=h(n,l);const s=e===l;c=h(n,s?c:0),p=h(n,s&&t===c?p:0),S=[l,c,p]}if(x.callsite=S,f(n,e)){b=[];do{u=r,d=t;const e=h(n,0);let s;if(e<-1){s=[[h(n,0)]];for(let t=-1;t>e;t--){const e=u;u=h(n,u),d=h(n,u===e?d:0);const t=h(n,0);s.push([t,u,d])}}else s=[[e]];b.push(s)}while(f(n,e))}x.bindings=b,s.push(x),i.push(x)}r++,n.pos=e+1}while(n.pos<t);return s}function P(e){if(0===e.length)return"";const t=new y;for(let n=0;n<e.length;)n=A(e,n,t,[0,0,0,0,0,0,0]);return t.flush()}function A(e,t,n,s){const i=e[t],{0:r,1:a,2:l,3:c,isScope:p,callsite:u,bindings:h}=i;if(s[0]<r?(v(n,s[0],r),s[0]=r,s[1]=0):t>0&&n.write(o),s[1]=d(n,i[1],s[1]),d(n,(6===i.length?1:0)|(u?2:0)|(p?4:0),0),6===i.length){const{4:e,5:t}=i;e!==s[2]&&(s[3]=0),s[2]=d(n,e,s[2]),s[3]=d(n,t,s[3])}if(u){const{0:e,1:t,2:r}=i.callsite;e!==s[4]?(s[5]=0,s[6]=0):t!==s[5]&&(s[6]=0),s[4]=d(n,e,s[4]),s[5]=d(n,t,s[5]),s[6]=d(n,r,s[6])}if(h)for(const e of h){e.length>1&&d(n,-e.length,0),d(n,e[0][0],0);let t=r,s=a;for(let i=1;i<e.length;i++){const r=e[i];t=d(n,r[1],t),s=d(n,r[2],s),d(n,r[0],0)}}for(t++;t<e.length;){const i=e[t],{0:r,1:a}=i;if(r>l||r===l&&a>=c)break;t=A(e,t,n,s)}return s[0]<l?(v(n,s[0],l),s[0]=l,s[1]=0):n.write(o),s[1]=d(n,c,s[1]),t}function v(e,t,n){do{e.write(l)}while(++t<n)}function C(e){const{length:t}=e,n=new T(e),s=[];let i=0,r=0,a=0,o=0,l=0;do{const e=n.indexOf(";"),t=[];let c=!0,p=0;for(i=0;n.pos<e;){let s;i=h(n,i),i<p&&(c=!1),p=i,f(n,e)?(r=h(n,r),a=h(n,a),o=h(n,o),f(n,e)?(l=h(n,l),s=[i,r,a,o,l]):s=[i,r,a,o]):s=[i],t.push(s),n.pos++}c||w(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}function w(e){e.sort(I)}function I(e,t){return e[0]-t[0]}function N(e){const t=new y;let n=0,s=0,i=0,r=0;for(let a=0;a<e.length;a++){const c=e[a];if(a>0&&t.write(l),0===c.length)continue;let p=0;for(let e=0;e<c.length;e++){const a=c[e];e>0&&t.write(o),p=d(t,a[0],p),1!==a.length&&(n=d(t,a[1],n),s=d(t,a[2],s),i=d(t,a[3],i),4!==a.length&&(r=d(t,a[4],r)))}}return t.flush()}}(e=n.nmd(e)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},4424:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(e){return e.startsWith("/")}function i(e){return/^[.?#]/.test(e)}function r(e){const n=t.exec(e);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function a(e,t,n,s,i,r,a){return{scheme:e,user:t,host:n,port:s,path:i,query:r,hash:a,type:7}}function o(t){if(function(e){return e.startsWith("//")}(t)){const e=r("http:"+t);return e.scheme="",e.type=6,e}if(s(t)){const e=r("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),i=t[2];return a("file:","",t[1]||"","",s(i)?i:"/"+i,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return r(t);const i=r("http://foo.com/"+t);return i.scheme="",i.host="",i.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,i}function l(e,t){const n=t<=4,s=e.path.split("/");let i=1,r=0,a=!1;for(let e=1;e<s.length;e++){const t=s[e];t?(a=!1,"."!==t&&(".."!==t?(s[i++]=t,r++):r?(a=!0,r--,i--):n&&(s[i++]=t))):a=!0}let o="";for(let e=1;e<i;e++)o+="/"+s[e];(!o||a&&!o.endsWith("/.."))&&(o+="/"),e.path=o}return function(e,t){if(!e&&!t)return"";const n=o(e);let s=n.type;if(t&&7!==s){const e=o(t),i=e.type;switch(s){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:!function(e,t){l(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>s&&(s=i)}l(n,s);const r=n.query+n.hash;switch(s){case 2:case 3:return r;case 4:{const s=n.path.slice(1);return s?i(t||e)&&!i(s)?"./"+s+r:s+r:r||"."}case 5:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}}()},4436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||c(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=i.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(a(e.property)&&"number"==typeof e.property.value&&(t=!0),t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!r(t,{callee:e})&&!o(t)&&!l(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const n=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),n(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:n,property:s}=e;if(this.print(e.object),!t&&o(s))throw new TypeError("Got a MemberExpression for MemberExpression property");a(s)&&"number"==typeof s.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(s),this.tokenChar(93)):(n||this.tokenChar(46),this.print(s))},t.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var s=n(2352),i=n(1373);const{isCallExpression:r,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:c}=s},4460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e)return!1;if(s.ALIAS_KEYS[t])return!1;const n=s.FLIPPED_ALIAS_KEYS[t];return!(null==n||!n.includes(e))};var s=n(9793)},4466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=new WeakMap,c=new WeakMap,p=n||(0,s.validate)(null);return Object.assign((n,...a)=>{if("string"==typeof n){if(a.length>1)throw new Error("Unexpected extra params.");return o((0,i.default)(t,n,(0,s.merge)(p,(0,s.validate)(a[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,r.default)(t,n,p),l.set(n,e)),o(e(a))}if("object"==typeof n&&n){if(a.length>0)throw new Error("Unexpected extra params.");return e(t,(0,s.merge)(p,(0,s.validate)(n)))}throw new Error("Unexpected template param "+typeof n)},{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(t,e,(0,s.merge)((0,s.merge)(p,(0,s.validate)(n[0])),a))()}if(Array.isArray(e)){let i=c.get(e);return i||(i=(0,r.default)(t,e,(0,s.merge)(p,a)),c.set(e,i)),i(n)()}throw new Error("Unexpected template param "+typeof e)}})};var s=n(9815),i=n(5252),r=n(3438);const a=(0,s.validate)({placeholderPattern:!1});function o(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+=`\n =============\n${t}`,e}}}},4544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(983),i=n(8079);t.default=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if("bigint"==typeof t)return t<0?(0,i.unaryExpression)("-",(0,i.bigIntLiteral)(-t)):(0,i.bigIntLiteral)(t);if(function(e){return"[object RegExp]"===r(e)}(t)){const e=t.source,n=/\/([a-z]*)$/.exec(t.toString())[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const n=[];for(const r of Object.keys(t)){let a,o=!1;(0,s.default)(r)?"__proto__"===r?(o=!0,a=(0,i.stringLiteral)(r)):a=(0,i.identifier)(r):a=(0,i.stringLiteral)(r),n.push((0,i.objectProperty)(a,e(t[r]),o))}return(0,i.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};const r=Function.call.bind(Object.prototype.toString)},4568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,s.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var s=n(3908)},4858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{placeholderWhitelist:s,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}=n,c=function(e,t,n){const s=(t.plugins||[]).slice();!1!==n&&s.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:s});try{return(0,i.parse)(e,t)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,r.codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,n.parser,l);m(c,{preserveComments:o}),e.validate(c);const p={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:a,syntacticPlaceholders:l};return y(c,g,p),Object.assign({ast:c},p.syntactic.placeholders.length?p.syntactic:p.legacy)};var s=n(2352),i=n(2172),r=n(2882);const{isCallExpression:a,isExpressionStatement:o,isFunction:l,isIdentifier:c,isJSXIdentifier:p,isNewExpression:u,isPlaceholder:h,isStatement:d,isStringLiteral:f,removePropertiesDeep:m,traverse:y}=s,T=/^[_$A-Z0-9]+$/;function g(e,t,n){var s;let i,r=n.syntactic.placeholders.length>0;if(h(e)){if(!1===n.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,r=!0}else{if(r||n.syntacticPlaceholders)return;if(c(e)||p(e))i=e.name;else{if(!f(e))return;i=e.value}}if(r&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(r||!1!==n.placeholderPattern&&(n.placeholderPattern||T).test(i)||null!=(s=n.placeholderWhitelist)&&s.has(i)))return;t=t.slice();const{node:m,key:y}=t[t.length-1];let g;f(e)||h(e,{expectedNode:"StringLiteral"})?g="string":u(m)&&"arguments"===y||a(m)&&"arguments"===y||l(m)&&"params"===y?g="param":o(m)&&!h(e)?(g="statement",t=t.slice(0,-1)):g=d(e)&&h(e)?"statement":"other";const{placeholders:x,placeholderNames:S}=r?n.syntactic:n.legacy;x.push({name:i,type:g,resolve:e=>function(e,t){let n=e;for(let e=0;e<t.length-1;e++){const{key:s,index:i}=t[e];n=void 0===i?n[s]:n[s][i]}const{key:s,index:i}=t[t.length-1];return{parent:n,key:s,index:i}}(e,t),isDuplicate:S.has(i)}),S.add(i)}},4950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return T([P,e])},t.explode=f,t.isExplodedVisitor=d,t.merge=T,t.verify=m;var s=n(5562),i=n(7973),r=n(2352),a=n(9578);const{DEPRECATED_KEYS:o,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:p,__internal__deprecationWarning:u}=r;function h(e){return e in s}function d(e){return null==e?void 0:e._exploded}function f(e){if(d(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(b(t))continue;const n=t.split("|");if(1===n.length)continue;const s=e[t];delete e[t];for(const t of n)e[t]=s}m(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(b(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),x(e);for(const t of Object.keys(e)){if(b(t))continue;if(!h(t))continue;const n=e[t];for(const e of Object.keys(n))n[e]=S(t,n[e]);delete e[t];const i=s[t];if(null!==i)for(const t of i)null!=e[t]||(e[t]={}),E(e[t],n);else E(e,n)}for(const t of Object.keys(e)){if(b(t))continue;let n=c[t];if(t in o){const e=o[t];u(t,e,"Visitor "),n=[e]}else if(t in l){const e=l[t];u(t,e,"Visitor "),n=c[e]}if(!n)continue;const s=e[t];delete e[t];for(const t of n){const n=e[t];n?E(n,s):e[t]=Object.assign({},s)}}for(const t of Object.keys(e))b(t)||x(e[t]);return e}function m(e){if(!e._verified){if("function"==typeof e)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("enter"!==t&&"exit"!==t||y(t,e[t]),b(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.28.5`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);y(`${t}.${e}`,n[e])}}e._verified=!0}}function y(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function T(e,t=[],n){const s={_verified:!0,_exploded:!0};Object.defineProperty(s,"_exploded",{enumerable:!1}),Object.defineProperty(s,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){const r=f(e[i]),a=t[i];let o=r;(a||n)&&(o=g(o,a,n)),E(s,o);for(const e of Object.keys(r)){if(b(e))continue;let t=r[e];(a||n)&&(t=g(t,a,n)),E(s[e]||(s[e]={}),t)}}return s}function g(e,t,n){const s={};for(const i of["enter","exit"]){let r=e[i];Array.isArray(r)&&(r=r.map(function(e){let s=e;return t&&(s=function(n){e.call(t,n,t)}),n&&(s=n(null==t?void 0:t.key,i,s)),s!==e&&(s.toString=()=>e.toString()),s}),s[i]=r)}return s}function x(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function S(e,t){const n=i[`is${e}`],s=function(e){if(n.call(e))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function b(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function E(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}const P={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e))}}},4960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,n,s,i){const r=this._queueCursor;r===this._queue.length&&this._allocQueue();const a=this._queue[r];a.char=e,a.repeat=t,a.line=n,a.column=s,a.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const s=e.length,i=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!n&&!this._map)return void(i.column+=s);const{column:r,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let p=e.indexOf("\n"),u=0;for(0!==p&&this._mark(c,r,a,o,l);-1!==p;)i.line++,i.column=0,u=p+1,u<s&&void 0!==c&&this._mark(++c,0,void 0,void 0,l),p=e.indexOf("\n",u);i.column+=s-u}_mark(e,t,n,s,i){var r;null==(r=this._map)||r.mark(this._position,e,t,n,s,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let n=e-1;n>=0&&10===this._queue[n].char;n--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const n=e.identifierName,s=this._sourcePosition;n&&(this._canMarkIdName=!1,s.identifierName=n),t(),n&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){const s=t[e],i=this._sourcePosition;s&&(i.line=s.line,i.column=Math.max(s.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,s=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=s),s+=t.repeat}return-1===n?this._position.column+s:s-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},4965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!i(e))return!1;const r=Array.isArray(t)?t:t.split("."),a=[];let o;for(o=e;i(o);o=null!=(l=o.object)?l:o.meta){var l;a.push(o.property)}if(a.push(o),a.length<r.length)return!1;if(!n&&a.length>r.length)return!1;for(let e=0,t=a.length-1;e<r.length;e++,t--){const n=a[t];let i;if((0,s.isIdentifier)(n))i=n.name;else if((0,s.isStringLiteral)(n))i=n.value;else if((0,s.isThisExpression)(n))i="this";else if((0,s.isSuper)(n))i="super";else{if(!(0,s.isPrivateName)(n))return!1;i="#"+n.id.name}if(r[e]!==i)return!1}return!0};var s=n(8960);function i(e){return(0,s.isMemberExpression)(e)||(0,s.isMetaProperty)(e)}},5004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},5010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,s.isBlockStatement)(e))return e;let n=[];return(0,s.isEmptyStatement)(e)?n=[]:((0,s.isStatement)(e)||(e=(0,s.isFunction)(t)?(0,i.returnStatement)(e):(0,i.expressionStatement)(e)),n=[e]),(0,i.blockStatement)(n)};var s=n(8960),i=n(8079)},5109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let n,r="";if((0,s.isObjectProperty)(t,{value:e})?n=i(t):(0,s.isObjectMethod)(e)||(0,s.isClassMethod)(e)?(n=i(e),"get"===e.kind?r="get ":"set"===e.kind&&(r="set ")):(0,s.isVariableDeclarator)(t,{init:e})?n=t.id:(0,s.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const a=(0,s.isLiteral)(n)?function(e){return(0,s.isNullLiteral)(e)?"null":(0,s.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,s.isTemplateLiteral)(e)?e.quasis.map(e=>e.value.raw).join(""):void 0!==e.value?String(e.value):null}(n):(0,s.isIdentifier)(n)?n.name:(0,s.isPrivateName)(n)?n.id.name:null;return null==a?null:{name:r+a,originalNode:n}};var s=n(8960);function i(e){if(!e.computed||(0,s.isLiteral)(e.key))return e.key}},5158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyUnionShapeCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var s=n(3828),i=n(983),r=n(1e3),a=n(3973),o=n(3422),l=n(7596);const c=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});t.classMethodOrPropertyUnionShapeCommon=c;const p=(0,l.defineAliasedType)("Standardized");p("ArrayExpression",{fields:{elements:{validate:(0,l.arrayOf)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),p("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(n,i,r){((0,s.default)("Pattern",n.left)?t:e)(n,i,r)}}(),{oneOf:o.ASSIGNMENT_OPERATORS}):(0,l.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){("in"===n.operator?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),p("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("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"]}),p("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),p("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"]}),p("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("DebuggerStatement",{aliases:["Statement"]}),p("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"]}),p("EmptyStatement",{aliases:["Statement"]}),p("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),p("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const u=()=>({params:(0,l.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=u;const h=()=>({returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=h;const d=()=>Object.assign({},u(),{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=d,p("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},d(),h(),{body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,n,i){(0,s.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}():void 0}),p("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const f=()=>({typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=f,p("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},f(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign(function(e,t,n){if(!(0,i.default)(n,!1))throw new TypeError(`"${n}" is not a valid identifier name`)},{type:"string"})):(0,l.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,n){const i=/\.(\w+)$/.exec(t.toString());if(!i)return;const[,a]=i,o={computed:!1};if("property"===a){if((0,s.default)("MemberExpression",e,o))return;if((0,s.default)("OptionalMemberExpression",e,o))return}else if("key"===a){if((0,s.default)("Property",e,o))return;if((0,s.default)("Method",e,o))return}else if("exported"===a){if((0,s.default)("ExportSpecifier",e))return}else if("imported"===a){if((0,s.default)("ImportSpecifier",e,{imported:n}))return}else if("meta"===a&&(0,s.default)("MetaProperty",e,{meta:n}))return;if(((0,r.isKeyword)(n.name)||(0,r.isReservedWord)(n.name,!1))&&"this"!==n.name)throw new TypeError(`"${n.name}" is not a valid identifier`)}:void 0}),p("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),p("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.chain)((0,l.assertValueType)("number"),Object.assign(function(e,t,n){(1/n<0||!Number.isFinite(n))&&new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${n}) instead.`)},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("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,n){const s=/[^dgimsuvy]/.exec(n);if(s)throw new TypeError(`"${s[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,l.assertValueType)("string"),default:""}}}),p("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")}}}),p("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,l.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),n=function(n,s,i){(n.computed?t:e)(n,s,i)};return n.oneOfNodeTypes=["Expression","Identifier","PrivateName"],n}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}})}),p("NewExpression",{inherits:"CallExpression"}),p("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),p("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,l.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),p("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},c(),{fields:Object.assign({},u(),h(),{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression"),n=function(n,s,i){(n.computed?t:e)(n,s,i)};return n.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],n}()},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),p("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign(function(e,t,n){if(n){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:!1},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,l.assertNodeType)("Expression");return function(n,i,r){((0,s.default)("ObjectPattern",n)?e:t)(r,"value",r.value)}}():void 0}),p("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},f(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const n=/(\w+)\[(\d+)\]/.exec(t.toString());if(!n)throw new Error("Internal Babel error: malformed key.");const[,s,i]=n;if(e[s].length>+i+1)throw new TypeError(`RestElement must be last element of ${s}`)}:void 0}),p("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,l.validateArrayOfType)("Expression")},aliases:["Expression"]}),p("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),p("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:(0,l.validateArrayOfType)("Statement")}}),p("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:(0,l.validateArrayOfType)("SwitchCase")}}),p("ThisExpression",{aliases:["Expression"]}),p("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("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:!0,validate:(0,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),p("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const","using","await using")},declarations:(0,l.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,l.assertNodeType)("Identifier","Placeholder"),t=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),n=(0,l.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,r,a){const{kind:o,declarations:l}=a,c=(0,s.default)("ForXStatement",i,{left:a});if(c&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(const s of l)"const"===o||"let"===o||"var"===o?c||s.init?t(s,"id",s.id):e(s,"id",s.id):n(s,"id",s.id)}})():void 0}),p("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,l.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}})}),p("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))}})}),p("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),p("ClassBody",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),p("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),p("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,n,i){(0,s.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}():void 0});const m=t.importAttributes={attributes:{optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")}};p("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"))},m)}),p("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"))}}),p("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign(function(e,t,n){if(n&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(n&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,l.assertNodeType)("Declaration")}},m,{specifiers:{default:[],validate:(0,l.arrayOf)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(n,s,i){(n.source?e:t)(n,s,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))})}),p("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,l.assertOneOf)("type","value"),optional:!0}}}),p("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"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(n,i,r){(0,s.default)("VariableDeclaration",r)?e(n,i,r):t(n,i,r)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),p("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},m,{module:{optional:!0,validate:(0,l.assertValueType)("boolean")},phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},specifiers:(0,l.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}})}),p("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),p("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},source:{validate:(0,l.assertNodeType)("Expression")},options:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("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,n){let i;switch(n.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta"}if(!(0,s.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,l.assertNodeType)("Identifier")},property:{validate:(0,l.assertNodeType)("Identifier")}}});const y=()=>({abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression");return function(n,s,i){(n.computed?t:e)(n,s,i)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=y;const T=()=>Object.assign({},u(),y(),{params:(0,l.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=T,p("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},c(),{fields:Object.assign({},T(),h(),{body:{validate:(0,l.assertNodeType)("BlockStatement")}})})),p("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{properties:(0,l.validateArrayOfType)("RestElement","ObjectProperty")})}),p("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Super",{aliases:["Expression"]}),p("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.chain)((0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}}),function(e){const t=e.value.raw;let n=!1;const s=()=>{throw new Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:r}=(0,a.readStringContents)("template",t,0,0,0,{unterminated(){n=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!n)throw new Error("Invalid raw");e.value.cooked=r?null:i})},tail:{default:!1}}}),p("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,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),p("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,n){if(n&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,l.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),p("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"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},c(),{fields:Object.assign({},y(),{value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},c(!0),{fields:Object.assign({},y(),{key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return function(n,s,i){(n.computed?t:e)(n,s,i)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,l.assertNodeType)("PrivateName")},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,l.assertValueType)("boolean"),default:!1},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}}}),p("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},T(),h(),{kind:{validate:(0,l.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,l.assertNodeType)("PrivateName")},body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),p("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")}}}),p("StaticBlock",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),p("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,l.assertNodeType)("StringLiteral")}}})},5237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),r=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(c&&!l.includes(c)){if((0,s.isAnyTypeAnnotation)(c))return[c];if((0,s.isFlowBaseAnnotation)(c))a.set(c.type,c);else if((0,s.isUnionTypeAnnotation)(c))o.has(c.types)||(n.push(...c.types),o.add(c.types));else{if((0,s.isGenericTypeAnnotation)(c)){const t=i(c.id);if(r.has(t)){let n=r.get(t);n.typeParameters?c.typeParameters&&(n.typeParameters.params.push(...c.typeParameters.params),n.typeParameters.params=e(n.typeParameters.params)):n=c.typeParameters}else r.set(t,c);continue}l.push(c)}}}for(const[,e]of a)l.push(e);for(const[,e]of r)l.push(e);return l};var s=n(8960);function i(e){return(0,s.isIdentifier)(e)?e.name:`${e.id.name}.${i(e.qualification)}`}},5252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let a;return t=e.code(t),o=>{const l=(0,s.normalizeReplacements)(o);return a||(a=(0,i.default)(e,t,n)),e.unwrap((0,r.default)(a,l))}};var s=n(9815),i=n(4858),r=n(7427)},5279:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,n=!1){return l(e,t,n,new Map)};var s=n(9793),i=n(8960);const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function a(e,t,n,s){return e&&"string"==typeof e.type?l(e,t,n,s):e}function o(e,t,n,s){return Array.isArray(e)?e.map(e=>a(e,t,n,s)):a(e,t,n,s)}function l(e,t=!0,n=!1,a){if(!e)return e;const{type:l}=e,p={type:e.type};if((0,i.isIdentifier)(e))p.name=e.name,r(e,"optional")&&"boolean"==typeof e.optional&&(p.optional=e.optional),r(e,"typeAnnotation")&&(p.typeAnnotation=t?o(e.typeAnnotation,!0,n,a):e.typeAnnotation),r(e,"decorators")&&(p.decorators=t?o(e.decorators,!0,n,a):e.decorators);else{if(!r(s.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const u of Object.keys(s.NODE_FIELDS[l]))r(e,u)&&(p[u]=t?(0,i.isFile)(e)&&"comments"===u?c(e.comments,t,n,a):o(e[u],!0,n,a):e[u])}return r(e,"loc")&&(p.loc=n?null:e.loc),r(e,"leadingComments")&&(p.leadingComments=c(e.leadingComments,t,n,a)),r(e,"innerComments")&&(p.innerComments=c(e.innerComments,t,n,a)),r(e,"trailingComments")&&(p.trailingComments=c(e.trailingComments,t,n,a)),r(e,"extra")&&(p.extra=Object.assign({},e.extra)),p}function c(e,t,n,s){return e&&t?e.map(e=>{const t=s.get(e);if(t)return t;const{type:i,value:r,loc:a}=e,o={type:i,value:r,loc:a};return n&&(o.loc=null),s.set(e,o),o}):e}},5299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!0,!0)};var s=n(5279)},5333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=t.preserveComments?i:r;for(const t of n)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const s=Object.getOwnPropertySymbols(e);for(const t of s)e[t]=null};var s=n(3422);const i=["tokens","start","end","loc","raw","rawValue"],r=[...s.COMMENT_KEYS,"comments",...i]},5562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},5586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("trailingComments",e,t)};var s=n(3205)},5589:(e,t,n)=>{"use strict";var s=n(7596),i=n(9187),r=n(5158);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)(...i.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}})},5682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const s=(0,n(3937).default)("React.Component");t.default=s},5689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},5753:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(7833):e.exports=n(6033)},5766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("leadingComments",e,t)};var s=n(3205)},5781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,n(9578);var s=n(4950);t.visitors=s;var i=n(2352),r=n(7411),a=n(2264),o=n(9709),l=n(6814),c=n(7878);const{VISITOR_KEYS:p,removeProperties:u,traverseFast:h}=i;function d(e,t={},n,i,r,o){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)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(!r&&o)throw new Error("visitSelf can only be used when providing a NodePath.");p[e.type]&&(s.explode(t),(0,a.traverseNode)(e,t,n,i,r,void 0,o))}}t.default=d,d.visitors=s,d.verify=s.verify,d.explode=s.explode,d.cheap=function(e,t){h(e,t)},d.node=function(e,t,n,s,i,r){(0,a.traverseNode)(e,t,n,s,i,r)},d.clearNode=function(e,t){u(e,t)},d.removeProperties=function(e,t){return h(e,d.clearNode,t),e},d.hasType=function(e,t,n){return(null==n||!n.includes(e.type))&&(e.type===t||h(e,function(e){return null!=n&&n.includes(e.type)?h.skip:e.type===t?h.stop:void 0}))},d.cache=r},5879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),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:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},5884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(n+e),i=t.indexOf("--");return-1!==s&&(-1===i||s<i)}},5958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8079);t.default=function(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)}},6033:(e,t,n)=>{const s=n(2018),i=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let s=0;s<n.length;s++)e.inspectOpts[n[s]]=t.inspectOpts[n[s]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:s,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),r=` ${i};1m${s} [0m`;n[0]=r+n[0].split("\n").join("\n"+r),n.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+s+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)},t.destroy=i.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=n(7687);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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[n]=s,e},{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},6049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map(e=>(0,r.isTSTypeAnnotation)(e)?e.typeAnnotation:e),n=(0,i.default)(t);return 1===n.length?n[0]:(0,s.tsUnionType)(n)};var s=n(8079),i=n(8812),r=n(8960)},6106:(e,t,n)=>{"use strict";var s=n(7596),i=n(5158),r=n(3828);const a=(0,s.defineAliasedType)("TypeScript"),o=(0,s.assertValueType)("boolean"),l=()=>({returnType:{validate:(0,s.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});a("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,s.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}}}),a("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,i.functionDeclarationCommon)(),l())}),a("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,i.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,i.classMethodOrDeclareMethodCommon)(),l())})),a("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,s.validateType)("TSEntityName"),right:(0,s.validateType)("Identifier")}});const c=()=>({typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,s.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation")}),p={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c()};a("TSCallSignatureDeclaration",p),a("TSConstructSignatureDeclaration",p);const u=()=>({key:(0,s.validateType)("Expression"),computed:{default:!1},optional:(0,s.validateOptional)(o)});a("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,s.validateOptional)(o),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,s.assertOneOf)("get","set")}})}),a("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},c(),u(),{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 h=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of h)a(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});a("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const d={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};a("TSFunctionType",Object.assign({},d,{fields:c()})),a("TSConstructorType",Object.assign({},d,{fields:Object.assign({},c(),{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:!1},elementType:(0,s.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,s.validateArrayOfType)("TSType")}};a("TSUnionType",f),a("TSIntersectionType",f),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"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,s.assertValueType)("string"),default:"keyof"},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)(!0,!1,"+","-")),optional:(0,s.validateOptional)((0,s.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,s.validateOptionalType)("TSType"),nameType:(0,s.validateOptionalType)("TSType")})}),a("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,s.validateArrayOfType)("TemplateElement"),types:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSType")),function(e,t,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),a("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,s.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,s.assertOneOf)("-"),n=(0,s.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(s,i,a){(0,r.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):n(s,i,a)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}}),a("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}}),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 m={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TSType")}};a("TSAsExpression",m),a("TSSatisfiesExpression",m),a("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,s.validateType)("TSType"),expression:(0,s.validateType)("Expression")}}),a("TSEnumBody",{visitor:["members"],fields:{members:(0,s.validateArrayOfType)("TSEnumMember")}}),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"),body:(0,s.validateOptionalType)("TSEnumBody")}}),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"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,s.validateType)("StringLiteral"),qualifier:(0,s.validateOptionalType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,s.assertNodeType)("ObjectExpression"),optional:!0}}}),a("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,s.validate)(o)},{id:(0,s.validateType)("Identifier"),moduleReference:(0,s.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}})}),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:!0},out:{validate:(0,s.assertValueType)("boolean"),optional:!0},const:{validate:(0,s.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,s.assertNodeType)("TSType"),optional:!0},default:{validate:(0,s.assertNodeType)("TSType"),optional:!0}}})},6109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=T,t._getPattern=g,t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?T.call(this,e,t):g.call(this,n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getAssignmentIdentifiers=function(){return r(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],s=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const r=a.keys[i.node.type];if(i.isIdentifier())e?(s[i.node.name]=s[i.node.name]||[]).push(i):s[i.node.name]=i;else{if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(r)for(let e=0;e<r.length;e++){const t=r[e],s=i.get(t);Array.isArray(s)?n.push(...s):s.node&&n.push(s)}}}return s},t.getBindingIdentifiers=function(e){return a(this.node,e)},t.getCompletionRecords=function(e=!1){return y(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return o(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var s=n(9709),i=n(2352);const{getAssignmentIdentifiers:r,getBindingIdentifiers:a,getOuterBindingIdentifiers:o,numericLiteral:l,unaryExpression:c}=i,p=0,u=1;function h(e,t,n){return e&&t.push(...y(e,n)),t}function d(e){e.forEach(e=>{e.type=u})}function f(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(c("void",l(0))):e.path.remove())})}function m(e,t){const n=[];if(t.canHaveBreak){let s=[];for(let i=0;i<e.length;i++){const r=e[i],a=Object.assign({},t,{inCaseClause:!1});r.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;const o=y(r,a);if(o.length>0&&o.every(e=>e.type===u)){s.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))?(d(s),n.push(...s),s.some(e=>e.path.isDeclaration())&&(n.push(...o),t.shouldPreserveBreak||f(o,!0)),t.shouldPreserveBreak||f(o,!1)):(n.push(...o),t.shouldPopulateBreak||t.shouldPreserveBreak||f(o,!0));break}if(i===e.length-1)n.push(...o);else{s=[];for(let e=0;e<o.length;e++){const t=o[e];t.type===u&&n.push(t),t.type===p&&s.push(t)}}}}else if(e.length)for(let s=e.length-1;s>=0;s--){const i=y(e[s],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){n.push(...i);break}}return n}function y(e,t){let n=[];if(e.isIfStatement())n=h(e.get("consequent"),n,t),n=h(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return h(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return m(e.get("body"),t);if(e.isFunction())return y(e.get("body"),t);if(e.isTryStatement())n=h(e.get("block"),n,t),n=h(e.get("handler"),n,t);else{if(e.isCatchClause())return h(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let s=[];for(let i=0;i<e.length;i++){const r=y(e[i],n),a=[],o=[];for(const e of r)e.type===p&&a.push(e),e.type===u&&o.push(e);a.length&&(s=a),t.push(...o)}return t.push(...s),t}(e.get("cases"),n,t);if(e.isSwitchCase())return m(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push(function(e){return{type:u,path:e}}(e)):n.push(function(e){return{type:p,path:e}}(e))}}return n}function T(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map((r,a)=>s.default.get({listKey:e,parentPath:this,parent:n,container:i,key:a}).setContext(t)):s.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function g(e,t){let n=this;for(const s of e)n="."===s?n.parentPath:Array.isArray(n)?n[s]:n.get(s,t);return n}},6133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8960);t.default=function(e){if((0,s.isExpressionStatement)(e)&&(e=e.expression),(0,s.isExpression)(e))return e;if((0,s.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,s.isFunction)(e)&&(e.type="FunctionExpression"),!(0,s.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}},6184:(e,t,n)=>{"use strict";var s=n(7596);const i=(0,s.defineAliasedType)("JSX");i("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,s.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,s.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,s.assertNodeType)("JSXClosingElement")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,s.assertValueType)("boolean"),optional:!0}})}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,s.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,s.assertNodeType)("JSXIdentifier")},name:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),i("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,s.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),i("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")}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},6211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,s.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var s=n(2598)},6219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,s.memberExpression)(t,e.object),e};var s=n(8079),i=n(2352)},6271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const n=e.tokenMap.getIndexes(t);if(!n)return null;let s=1,i=0,r=0;const a=()=>{for(;r<t.body.length&&null==t.body[r].start;)r++};return a(),o=>{r<=o&&(r=o+1,a());const l=r===t.body.length?t.end:t.body[r].start;let c;for(;s<n.length&&e.tokenMap.matchesOriginal(c=e._tokens[n[s]],";")&&c.start<l;)e.token(";",void 0,i++),s++}}(this,e);null==t||t(-1);const n=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),n(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(i(t)||r(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var s=n(2352);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:r}=s},6585:e=>{var t=1e3,n=60*t,s=60*n,i=24*s,r=7*i;function a(e,t,n,s){var i=t>=1.5*n;return Math.round(e/n)+" "+s+(i?"s":"")}e.exports=function(e,o){o=o||{};var l,c,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\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(a){var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return o*r;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*s;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===p&&isFinite(e))return o.long?(l=e,(c=Math.abs(l))>=i?a(l,c,i,"day"):c>=s?a(l,c,s,"hour"):c>=n?a(l,c,n,"minute"):c>=t?a(l,c,t,"second"):l+" ms"):function(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=s?Math.round(e/s)+"h":r>=n?Math.round(e/n)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const s of n)if(e[s]!==t[s])return!1;return!0}},6636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(4960),i=n(1373),r=i,a=n(2352),o=n(9594),l=n(6735),c=n(4014);const{isExpression:p,isFunction:u,isStatement:h,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:m}=a,y=/e/i,T=/\.0+$/,g=/[\n\r\u2028\u2029]/,x=/[\n\r\u2028\u2029]|\*\//;function S(e){return"CommentLine"===e.type||g.test(e.value)}const{needsParens:b}=r;class E{constructor(e,t,n=null,r=null){this.tokenContext=i.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=n,this._originalCode=r,this._indentRepeat=e.indent.style.length,this._inputMap=(null==t?void 0:t._inputMap)||null,this._buf=new s.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=i.TokenContext.forOfHead,null):(this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&i.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=i.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new o.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!y.test(e)&&!T.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,n=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);const s=this.getLastChar(),r=e.charCodeAt(0);(33===s&&("--"===e||61===r)||43===r&&43===s||45===r&&45===s||46===r&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:n}=this;if(!n.preserveFormat)return void(n.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const s=null==t?void 0:t[e];null!=s&&this._catchUpTo(s)}_catchUpTo({line:e,column:t,index:n}){const s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let e=0;e<s;e++)this._newline();const i=s>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,n){var s,a,o;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,c=this.format,u=c.concise;e._compact&&(c.concise=!0);const h=this[l];if(void 0===h)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const f=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!f);const m=null==(s=e.extra)?void 0:s.parenthesized;let y=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||b(e,d,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(a=e.leadingComments)&&a.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==d?void 0:d.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:y=!0}let T,g,x=!1;var E;!y&&this._noLineTerminator&&(null!=(o=e.leadingComments)&&o.some(S)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,x=!0),y||(t||(t=!!d&&this._noLineTerminatorAfterNode===d&&r.isLastChild(d,e)),t&&(null!=(E=e.trailingComments)&&E.some(S)?p(e)&&(y=!0):(T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),y&&(this.tokenChar(40),x&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate&&(g=this.tokenContext,this.tokenContext=i.TokenContext.normal),T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);const P="Program"===l||"File"===l?null:e.loc;this.exactSource(P,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),x&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,g&&(this.tokenContext=g)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,n),this._currentNode=d,c.concise=u,this._insideAux=f,void 0!==T&&(this._noLineTerminatorAfterNode=T),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n,s,i,r,a){if(null==e||!e.length)return;if(null==n&&this.format.retainLines){var o;const t=null==(o=e[0].loc)?void 0:o.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent();const l={nextNodeStartLine:0},c=null==s?void 0:s.bind(this),p=e.length;for(let n=0;n<p;n++){const s=e[n];var u;if(s&&(t&&this._printNewline(0===n,l),this.print(s,void 0,a||0),null==r||r(s,n),null!=c&&(n<p-1?c(n,!1):i&&c(n,!0)),t))if(null!=(u=s.trailingComments)&&u.length||(this._lastCommentLine=0),n+1===p)this.newline(1);else{var h;const t=e[n+1];l.nextNodeStartLine=(null==(h=t.loc)?void 0:h.start.line)||0,this._printNewline(!0,l)}}n&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,n){const{innerComments:s,trailingComments:i}=e;null!=s&&s.length&&this._printComments(2,s,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){var n;this._endsWithInnerRaw&&this.printInnerComments(null==(n=this.tokenMap)?void 0:n.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,n=t.innerComments;if(null==n||!n.length)return;const s=this.endsWith(32),i=this._indentInnerComments,r=this._printedComments.size;i&&this.indent(),this._printComments(1,n,t,void 0,void 0,e),s&&r!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n){this.printJoin(e,!0,null!=t&&t,void 0,void 0,void 0,n)}printList(e,t,n,s,i,r){this.printJoin(e,n,s,null!=i?i:P,t,r)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const s=t.nextNodeStartLine,i=this._lastCommentLine;if(s>0&&i>0){const e=s-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&x.test(e.value))return 2;if(t&&this.tokenMap){const n=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(n&&n.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const n=this._noLineTerminator,s="CommentBlock"===e.type,i=s&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const r=this.getLastChar();let a;if(91!==r&&123!==r&&40!==r&&this.space(),s){if(a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?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();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=n?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:n}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(a,s),this._printSemicolonBeforeNextNode=n,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(a,s);s||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,s,i=0,r){const a=n.loc,o=t.length;let l=!!a;const c=l?a.start.line:0,p=l?a.end.line:0;let y=0,T=0;const x=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const S=t[a],b=this._shouldPrintComment(S,r);if(2===b){l=!1;break}if(l&&S.loc&&1===b){const t=S.loc.start.line,n=S.loc.end.line;if(0===e){let e=0;0===a?!this._buf.hasContent()||"CommentLine"!==S.type&&t===n||(e=T=1):e=t-y,y=n,x(e),this._printComment(S,1),a+1===o&&(x(Math.max(c-y,T)),y=c)}else if(1===e){const e=t-(0===a?c:y);y=n,x(e),this._printComment(S,1),a+1===o&&(x(Math.min(1,p-y)),y=p)}else{const e=t-(0===a?p-i:y);y=n,x(e),this._printComment(S,1)}}else{if(l=!1,1!==b)continue;if(1===o){const t=S.loc?S.loc.start.line===S.loc.end.line:!g.test(S.value),i=t&&!h(n)&&!d(s)&&!f(s)&&!m(n);0===e?this._printComment(S,i&&"ObjectExpression"!==n.type||t&&u(s,{body:n})?1:0):i&&2===e?this._printComment(S,1):this._printComment(S,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(S,0):this._printComment(S,0===a?2:a===o-1?3:0)}}2===e&&l&&y&&(this._lastCommentLine=y)}}function P(e,t){this.token(",",!1,e),t||this.space()}Object.assign(E.prototype,l),(0,c.addDeprecatedGenerators)(E),t.default=E},6735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(2226);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var i=n(4436);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var r=n(521);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var a=n(6271);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var o=n(2861);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var l=n(9638);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var c=n(7942);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var p=n(2259);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var u=n(546);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var h=n(3962);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var d=n(9276);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))})},6744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const n of e)t+=(0,i.isIdentifierChar)(n.codePointAt(0))?n:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,s.default)(t)||(t=`_${t}`),t||"_"};var s=n(983),i=n(1e3)},6779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var s=n(3286);function i(e){return s[e]}n(3762),t.ArrayExpression=i("arrayExpression"),t.AssignmentExpression=i("assignmentExpression"),t.BinaryExpression=i("binaryExpression"),t.InterpreterDirective=i("interpreterDirective"),t.Directive=i("directive"),t.DirectiveLiteral=i("directiveLiteral"),t.BlockStatement=i("blockStatement"),t.BreakStatement=i("breakStatement"),t.CallExpression=i("callExpression"),t.CatchClause=i("catchClause"),t.ConditionalExpression=i("conditionalExpression"),t.ContinueStatement=i("continueStatement"),t.DebuggerStatement=i("debuggerStatement"),t.DoWhileStatement=i("doWhileStatement"),t.EmptyStatement=i("emptyStatement"),t.ExpressionStatement=i("expressionStatement"),t.File=i("file"),t.ForInStatement=i("forInStatement"),t.ForStatement=i("forStatement"),t.FunctionDeclaration=i("functionDeclaration"),t.FunctionExpression=i("functionExpression"),t.Identifier=i("identifier"),t.IfStatement=i("ifStatement"),t.LabeledStatement=i("labeledStatement"),t.StringLiteral=i("stringLiteral"),t.NumericLiteral=i("numericLiteral"),t.NullLiteral=i("nullLiteral"),t.BooleanLiteral=i("booleanLiteral"),t.RegExpLiteral=i("regExpLiteral"),t.LogicalExpression=i("logicalExpression"),t.MemberExpression=i("memberExpression"),t.NewExpression=i("newExpression"),t.Program=i("program"),t.ObjectExpression=i("objectExpression"),t.ObjectMethod=i("objectMethod"),t.ObjectProperty=i("objectProperty"),t.RestElement=i("restElement"),t.ReturnStatement=i("returnStatement"),t.SequenceExpression=i("sequenceExpression"),t.ParenthesizedExpression=i("parenthesizedExpression"),t.SwitchCase=i("switchCase"),t.SwitchStatement=i("switchStatement"),t.ThisExpression=i("thisExpression"),t.ThrowStatement=i("throwStatement"),t.TryStatement=i("tryStatement"),t.UnaryExpression=i("unaryExpression"),t.UpdateExpression=i("updateExpression"),t.VariableDeclaration=i("variableDeclaration"),t.VariableDeclarator=i("variableDeclarator"),t.WhileStatement=i("whileStatement"),t.WithStatement=i("withStatement"),t.AssignmentPattern=i("assignmentPattern"),t.ArrayPattern=i("arrayPattern"),t.ArrowFunctionExpression=i("arrowFunctionExpression"),t.ClassBody=i("classBody"),t.ClassExpression=i("classExpression"),t.ClassDeclaration=i("classDeclaration"),t.ExportAllDeclaration=i("exportAllDeclaration"),t.ExportDefaultDeclaration=i("exportDefaultDeclaration"),t.ExportNamedDeclaration=i("exportNamedDeclaration"),t.ExportSpecifier=i("exportSpecifier"),t.ForOfStatement=i("forOfStatement"),t.ImportDeclaration=i("importDeclaration"),t.ImportDefaultSpecifier=i("importDefaultSpecifier"),t.ImportNamespaceSpecifier=i("importNamespaceSpecifier"),t.ImportSpecifier=i("importSpecifier"),t.ImportExpression=i("importExpression"),t.MetaProperty=i("metaProperty"),t.ClassMethod=i("classMethod"),t.ObjectPattern=i("objectPattern"),t.SpreadElement=i("spreadElement"),t.Super=i("super"),t.TaggedTemplateExpression=i("taggedTemplateExpression"),t.TemplateElement=i("templateElement"),t.TemplateLiteral=i("templateLiteral"),t.YieldExpression=i("yieldExpression"),t.AwaitExpression=i("awaitExpression"),t.Import=i("import"),t.BigIntLiteral=i("bigIntLiteral"),t.ExportNamespaceSpecifier=i("exportNamespaceSpecifier"),t.OptionalMemberExpression=i("optionalMemberExpression"),t.OptionalCallExpression=i("optionalCallExpression"),t.ClassProperty=i("classProperty"),t.ClassAccessorProperty=i("classAccessorProperty"),t.ClassPrivateProperty=i("classPrivateProperty"),t.ClassPrivateMethod=i("classPrivateMethod"),t.PrivateName=i("privateName"),t.StaticBlock=i("staticBlock"),t.ImportAttribute=i("importAttribute"),t.AnyTypeAnnotation=i("anyTypeAnnotation"),t.ArrayTypeAnnotation=i("arrayTypeAnnotation"),t.BooleanTypeAnnotation=i("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=i("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=i("nullLiteralTypeAnnotation"),t.ClassImplements=i("classImplements"),t.DeclareClass=i("declareClass"),t.DeclareFunction=i("declareFunction"),t.DeclareInterface=i("declareInterface"),t.DeclareModule=i("declareModule"),t.DeclareModuleExports=i("declareModuleExports"),t.DeclareTypeAlias=i("declareTypeAlias"),t.DeclareOpaqueType=i("declareOpaqueType"),t.DeclareVariable=i("declareVariable"),t.DeclareExportDeclaration=i("declareExportDeclaration"),t.DeclareExportAllDeclaration=i("declareExportAllDeclaration"),t.DeclaredPredicate=i("declaredPredicate"),t.ExistsTypeAnnotation=i("existsTypeAnnotation"),t.FunctionTypeAnnotation=i("functionTypeAnnotation"),t.FunctionTypeParam=i("functionTypeParam"),t.GenericTypeAnnotation=i("genericTypeAnnotation"),t.InferredPredicate=i("inferredPredicate"),t.InterfaceExtends=i("interfaceExtends"),t.InterfaceDeclaration=i("interfaceDeclaration"),t.InterfaceTypeAnnotation=i("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=i("intersectionTypeAnnotation"),t.MixedTypeAnnotation=i("mixedTypeAnnotation"),t.EmptyTypeAnnotation=i("emptyTypeAnnotation"),t.NullableTypeAnnotation=i("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=i("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=i("numberTypeAnnotation"),t.ObjectTypeAnnotation=i("objectTypeAnnotation"),t.ObjectTypeInternalSlot=i("objectTypeInternalSlot"),t.ObjectTypeCallProperty=i("objectTypeCallProperty"),t.ObjectTypeIndexer=i("objectTypeIndexer"),t.ObjectTypeProperty=i("objectTypeProperty"),t.ObjectTypeSpreadProperty=i("objectTypeSpreadProperty"),t.OpaqueType=i("opaqueType"),t.QualifiedTypeIdentifier=i("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=i("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=i("stringTypeAnnotation"),t.SymbolTypeAnnotation=i("symbolTypeAnnotation"),t.ThisTypeAnnotation=i("thisTypeAnnotation"),t.TupleTypeAnnotation=i("tupleTypeAnnotation"),t.TypeofTypeAnnotation=i("typeofTypeAnnotation"),t.TypeAlias=i("typeAlias"),t.TypeAnnotation=i("typeAnnotation"),t.TypeCastExpression=i("typeCastExpression"),t.TypeParameter=i("typeParameter"),t.TypeParameterDeclaration=i("typeParameterDeclaration"),t.TypeParameterInstantiation=i("typeParameterInstantiation"),t.UnionTypeAnnotation=i("unionTypeAnnotation"),t.Variance=i("variance"),t.VoidTypeAnnotation=i("voidTypeAnnotation"),t.EnumDeclaration=i("enumDeclaration"),t.EnumBooleanBody=i("enumBooleanBody"),t.EnumNumberBody=i("enumNumberBody"),t.EnumStringBody=i("enumStringBody"),t.EnumSymbolBody=i("enumSymbolBody"),t.EnumBooleanMember=i("enumBooleanMember"),t.EnumNumberMember=i("enumNumberMember"),t.EnumStringMember=i("enumStringMember"),t.EnumDefaultedMember=i("enumDefaultedMember"),t.IndexedAccessType=i("indexedAccessType"),t.OptionalIndexedAccessType=i("optionalIndexedAccessType"),t.JSXAttribute=i("jsxAttribute"),t.JSXClosingElement=i("jsxClosingElement"),t.JSXElement=i("jsxElement"),t.JSXEmptyExpression=i("jsxEmptyExpression"),t.JSXExpressionContainer=i("jsxExpressionContainer"),t.JSXSpreadChild=i("jsxSpreadChild"),t.JSXIdentifier=i("jsxIdentifier"),t.JSXMemberExpression=i("jsxMemberExpression"),t.JSXNamespacedName=i("jsxNamespacedName"),t.JSXOpeningElement=i("jsxOpeningElement"),t.JSXSpreadAttribute=i("jsxSpreadAttribute"),t.JSXText=i("jsxText"),t.JSXFragment=i("jsxFragment"),t.JSXOpeningFragment=i("jsxOpeningFragment"),t.JSXClosingFragment=i("jsxClosingFragment"),t.Noop=i("noop"),t.Placeholder=i("placeholder"),t.V8IntrinsicIdentifier=i("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=i("argumentPlaceholder"),t.BindExpression=i("bindExpression"),t.Decorator=i("decorator"),t.DoExpression=i("doExpression"),t.ExportDefaultSpecifier=i("exportDefaultSpecifier"),t.RecordExpression=i("recordExpression"),t.TupleExpression=i("tupleExpression"),t.DecimalLiteral=i("decimalLiteral"),t.ModuleExpression=i("moduleExpression"),t.TopicReference=i("topicReference"),t.PipelineTopicExpression=i("pipelineTopicExpression"),t.PipelineBareFunction=i("pipelineBareFunction"),t.PipelinePrimaryTopicReference=i("pipelinePrimaryTopicReference"),t.VoidPattern=i("voidPattern"),t.TSParameterProperty=i("tsParameterProperty"),t.TSDeclareFunction=i("tsDeclareFunction"),t.TSDeclareMethod=i("tsDeclareMethod"),t.TSQualifiedName=i("tsQualifiedName"),t.TSCallSignatureDeclaration=i("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=i("tsConstructSignatureDeclaration"),t.TSPropertySignature=i("tsPropertySignature"),t.TSMethodSignature=i("tsMethodSignature"),t.TSIndexSignature=i("tsIndexSignature"),t.TSAnyKeyword=i("tsAnyKeyword"),t.TSBooleanKeyword=i("tsBooleanKeyword"),t.TSBigIntKeyword=i("tsBigIntKeyword"),t.TSIntrinsicKeyword=i("tsIntrinsicKeyword"),t.TSNeverKeyword=i("tsNeverKeyword"),t.TSNullKeyword=i("tsNullKeyword"),t.TSNumberKeyword=i("tsNumberKeyword"),t.TSObjectKeyword=i("tsObjectKeyword"),t.TSStringKeyword=i("tsStringKeyword"),t.TSSymbolKeyword=i("tsSymbolKeyword"),t.TSUndefinedKeyword=i("tsUndefinedKeyword"),t.TSUnknownKeyword=i("tsUnknownKeyword"),t.TSVoidKeyword=i("tsVoidKeyword"),t.TSThisType=i("tsThisType"),t.TSFunctionType=i("tsFunctionType"),t.TSConstructorType=i("tsConstructorType"),t.TSTypeReference=i("tsTypeReference"),t.TSTypePredicate=i("tsTypePredicate"),t.TSTypeQuery=i("tsTypeQuery"),t.TSTypeLiteral=i("tsTypeLiteral"),t.TSArrayType=i("tsArrayType"),t.TSTupleType=i("tsTupleType"),t.TSOptionalType=i("tsOptionalType"),t.TSRestType=i("tsRestType"),t.TSNamedTupleMember=i("tsNamedTupleMember"),t.TSUnionType=i("tsUnionType"),t.TSIntersectionType=i("tsIntersectionType"),t.TSConditionalType=i("tsConditionalType"),t.TSInferType=i("tsInferType"),t.TSParenthesizedType=i("tsParenthesizedType"),t.TSTypeOperator=i("tsTypeOperator"),t.TSIndexedAccessType=i("tsIndexedAccessType"),t.TSMappedType=i("tsMappedType"),t.TSTemplateLiteralType=i("tsTemplateLiteralType"),t.TSLiteralType=i("tsLiteralType"),t.TSExpressionWithTypeArguments=i("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=i("tsInterfaceDeclaration"),t.TSInterfaceBody=i("tsInterfaceBody"),t.TSTypeAliasDeclaration=i("tsTypeAliasDeclaration"),t.TSInstantiationExpression=i("tsInstantiationExpression"),t.TSAsExpression=i("tsAsExpression"),t.TSSatisfiesExpression=i("tsSatisfiesExpression"),t.TSTypeAssertion=i("tsTypeAssertion"),t.TSEnumBody=i("tsEnumBody"),t.TSEnumDeclaration=i("tsEnumDeclaration"),t.TSEnumMember=i("tsEnumMember"),t.TSModuleDeclaration=i("tsModuleDeclaration"),t.TSModuleBlock=i("tsModuleBlock"),t.TSImportType=i("tsImportType"),t.TSImportEqualsDeclaration=i("tsImportEqualsDeclaration"),t.TSExternalModuleReference=i("tsExternalModuleReference"),t.TSNonNullExpression=i("tsNonNullExpression"),t.TSExportAssignment=i("tsExportAssignment"),t.TSNamespaceExportDeclaration=i("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=i("tsTypeAnnotation"),t.TSTypeParameterInstantiation=i("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=i("tsTypeParameterDeclaration"),t.TSTypeParameter=i("tsTypeParameter"),t.NumberLiteral=s.numberLiteral,t.RegexLiteral=s.regexLiteral,t.RestProperty=s.restProperty,t.SpreadProperty=s.spreadProperty},6814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(3874),i=n(5781),r=(n(3019),n(3599)),a=n(2352),o=a,l=n(7411);const c=n(120),p=n(9961),{assignmentExpression:u,callExpression:h,cloneNode:d,getBindingIdentifiers:f,identifier:m,isArrayExpression:y,isBinary:T,isCallExpression:g,isClass:x,isClassBody:S,isClassDeclaration:b,isExportAllDeclaration:E,isExportDefaultDeclaration:P,isExportNamedDeclaration:A,isFunctionDeclaration:v,isIdentifier:C,isImportDeclaration:w,isLiteral:I,isMemberExpression:N,isMethod:k,isModuleSpecifier:O,isNullLiteral:D,isObjectExpression:_,isProperty:L,isPureish:M,isRegExpLiteral:F,isSuper:B,isTaggedTemplateExpression:j,isTemplateLiteral:R,isThisExpression:U,isUnaryExpression:K,isVariableDeclaration:V,expressionStatement:q,matchesPattern:W,memberExpression:J,numericLiteral:Y,toIdentifier:X,variableDeclaration:$,variableDeclarator:H,isRecordExpression:z,isTupleExpression:G,isObjectProperty:Q,isTopicReference:Z,isMetaProperty:ee,isPrivateName:te,isExportDeclaration:ne,buildUndefinedNode:se,sequenceExpression:ie}=a;function re(e,t){switch(null==e?void 0:e.type){default:var n;if(w(e)||ne(e))if((E(e)||A(e)||w(e))&&e.source)re(e.source,t);else if((A(e)||w(e))&&null!=(n=e.specifiers)&&n.length)for(const n of e.specifiers)re(n,t);else(P(e)||A(e))&&e.declaration&&re(e.declaration,t);else O(e)?re(e.local,t):!I(e)||D(e)||F(e)||R(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":re(e.object,t),re(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":re(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const n of e.properties)re(n,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":re(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":re(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),re(e.argument,t);break;case"AwaitExpression":t.push("await"),re(e.argument,t);break;case"AssignmentExpression":re(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":re(e.id,t);break;case"ParenthesizedExpression":re(e.expression,t);break;case"MetaProperty":re(e.meta,t),re(e.property,t);break;case"JSXElement":re(e.openingElement,t);break;case"JSXOpeningElement":re(e.name,t);break;case"JSXFragment":re(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":re(e.namespace,t),re(e.name,t)}}function ae(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var oe=Symbol.for("should not be considered a local binding");const le={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){o.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){const{node:t,scope:n}=e;if(E(t))return;const s=t.declaration;if(b(s)||v(s)){const t=s.id;if(!t)return;const i=n.getBinding(t.name);null==i||i.reference(e)}else if(V(s))for(const t of s.declarations)for(const s of Object.keys(f(t))){const t=n.getBinding(s);null==t||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){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const n of t)e.scope.registerBinding("param",n);e.isFunctionExpression()&&e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let ce,pe=0;class ue{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.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,n=l.scope.get(t);if((null==n?void 0:n.path)===e)return n;l.scope.set(t,this),this.uid=pe++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,n=this.path;do{var s;const e="key"===n.key||"decorators"===n.listKey;n=n.parentPath,e&&n.isMethod()&&(n=n.parentPath),null!=(s=n)&&s.isScope()&&(t=n)}while(n&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),d(t)}generateUidIdentifier(e){return m(this.generateUid(e))}generateUid(e="temp"){let t;e=X(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do{t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const s=this.getProgramParent();return s.references[t]=!0,s.uids[t]=!0,t}generateUidBasedOnNode(e,t){const n=[];re(e,n);let s=n.join("$");return s=s.replace(/^_/,"")||t||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return m(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||B(e)||Z(e))return!0;if(C(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),d(n))}}checkBlockScopedCollisions(e,t,n,s){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(s,`Duplicate declaration "${n}"`,TypeError)}rename(e,t){const n=this.getBinding(e);n&&(t||(t=this.generateUidIdentifier(e).name),new s.default(n,e,t).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 n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.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"),{kind:n}=e.node;for(const e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,n=e.get("specifiers");for(const e of n){const n=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(n?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return se()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t)){var n;null==(n=this.getBinding(s))||n.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const s=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(i)){s.references[t]=!0;for(const s of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===s)continue;this.checkBlockScopedCollisions(i,e,t,s)}i?i.reassign(n):this.bindings[t]=new r.default({identifier:s,scope:this,path:n,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(C(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(U(e)||ee(e)||Z(e)||te(e))return!0;var n,s,i;if(x(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&!((null==(n=e.decorators)?void 0:n.length)>0)&&this.isPure(e.body,t);if(S(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(T(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(y(e)||G(e)){for(const n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}if(_(e)||z(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(k(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(s=e.decorators)?void 0:s.length)>0);if(L(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(i=e.decorators)?void 0:i.length)>0||(Q(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(K(e))return this.isPure(e.argument,t);if(R(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return j(e)?W(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):N(e)?!e.computed&&C(e.object)&&"Symbol"===e.object.name&&C(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):g(e)?W(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&o.isStringLiteral(e.arguments[0]):M(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;ae(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);const n=t,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ce||(ce=i.default.visitors.merge([{Scope(e){ae(e.scope)}},le])),"Program"!==e.type){const t=ce[e.type];if(t)for(const n of t.enter)n.call(s,e,s)}e.traverse(ce,s),this.crawling=!1;for(const e of s.assignments){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t))e.scope.getBinding(s)||n.addGlobal(t[s]);e.scope.registerConstantViolation(e)}for(const e of s.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(const e of s.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:n,unique:s,kind:i="var",id:r}=e;if(!n&&!s&&("var"===i||"let"===i)&&function(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}(t)&&g(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&C(r))return t.pushContainer("params",r),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const a=null==e._blockHoist?2:e._blockHoist,o=`declaration:${i}:${a}`;let l=!s&&t.getData(o);if(!l){const e=$(i,[]);e._blockHoist=a,[l]=t.unshiftContainer("body",[e]),s||t.setData(o,l)}const c=H(r,n),p=l.node.declarations.push(c);t.scope.registerBinding(i,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 n of Object.keys(t.bindings))n in e==0&&(e[n]=t.bindings[n]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{const i=n.getOwnBinding(e);var s;if(i){if(null==(s=t)||!s.isPattern()||"param"===i.kind||"local"===i.kind)return i}else if(!i&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let n,s,i;"object"==typeof t?(n=t.noGlobals,s=t.noUids,i=t.upToScope):"boolean"==typeof t&&(n=t);let r=this;do{if(i===r)break;if(r.hasOwnBinding(e))return!0}while(r=r.parent);return!(s||!this.hasUid(e))||!(n||!ue.globals.includes(e))||!(n||!ue.contextVariables.includes(e))}parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do{t.uids[e]&&(t.uids[e]=!1)}while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const n of Object.keys(this.bindings)){const s=this.bindings[n];if(!s)continue;const{path:i}=s;if(!i.isVariableDeclarator())continue;const{parent:r,parentPath:a}=i;if("var"!==r.kind||t.has(r))continue;let o;t.add(i.parent);const l=[];for(const t of r.declarations){null!=o||(o=t.id),t.init&&l.push(u("=",t.id,t.init));const n=Object.keys(f(t,!1,!0,!0));for(const s of n)e(m(s),null!=t.init)}if(a.parentPath.isForXStatement({left:r}))a.replaceWith(o);else if(0===l.length)a.remove();else{const e=1===l.length?l[0]:ie(l);a.parentPath.isForStatement({init:r})?a.replaceWith(e):a.replaceWith(q(e))}}}}t.default=ue,ue.globals=[...c,...p],ue.contextVariables=["arguments","undefined","Infinity","NaN"],ue.prototype._renameFromMap=function(e,t,n,s){e[t]&&(e[n]=s,e[t]=null)},ue.prototype.traverse=function(e,t,n){(0,i.default)(e,t,this,n,this.path)},ue.prototype._generateUid=function(e,t){let n=e;return t>1&&(n+=t),`_${n}`},ue.prototype.toArray=function(e,t,n){if(C(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(y(e))return e;if(C(e,{name:"arguments"}))return h(J(J(J(m("Array"),m("prototype")),m("slice")),m("call")),[e]);let s;const i=[e];return!0===t?s="toConsumableArray":"number"==typeof t?(i.push(Y(t)),s="slicedToArray"):s="toArray",n&&(i.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),h(this.path.hub.addHelper(s),i)},ue.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const n of e){let e=this;do{for(const s of Object.keys(e.bindings)){const i=e.bindings[s];i.kind===n&&(t[s]=i)}e=e.parent}while(e)}return t},Object.defineProperties(ue.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},6928:e=>{"use strict";e.exports=require("path")},7003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(s.NODE_FIELDS[t.type]||t.type),r=s.VISITOR_KEYS[t.type];for(const s of i){const i=t[s],a=n[s];if(typeof i!=typeof a)return!1;if(null!=i||null!=a){if(null==i||null==a)return!1;if(Array.isArray(i)){if(!Array.isArray(a))return!1;if(i.length!==a.length)return!1;for(let t=0;t<i.length;t++)if(!e(i[t],a[t]))return!1}else if("object"!=typeof i||null!=r&&r.includes(s)){if(!e(i,a))return!1}else for(const e of Object.keys(i))if(i[e]!==a[e])return!1}}return!0};var s=n(9793)},7095:(e,t,n)=>{"use strict";var s=n(7596);(0,s.default)("ArgumentPlaceholder",{}),(0,s.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,s.assertNodeType)("Expression")},callee:{validate:(0,s.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(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:!1}}}),(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"]}),(0,s.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},7145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(2352),i=s;const{react:r}=s,{cloneNode:a,jsxExpressionContainer:o,variableDeclaration:l,variableDeclarator:c}=i,p={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&r.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const s of n.constantViolations)if(s.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{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=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),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),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const s=this.bindings[n];if("param"!==s.kind&&"params"!==s.path.parentKey&&this.getAttachmentParentForPath(s.path).key>=e.key){this.attachAfter=!0,e=s.path;for(const t of s.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.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);return e}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(p,this),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 n=c(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[i]=e[s]([e.isVariableDeclarator()?n:l("var",[n])]),r=this.path.parentPath;return r.isJSXElement()&&this.path.container===r.node.children&&(t=o(t)),this.path.replaceWith(a(t)),i.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},7159:e=>{"use strict";const t={},n=t.hasOwnProperty,s=(e,t)=>{for(const s in e)n.call(e,s)&&t(s,e[s])},i=e=>"\\u"+("0000"+e).slice(-4),r=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},a=t.toString,o=Array.isArray,l=e=>"bigint"==typeof e,c={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},p=/[\\\b\f\n\r\t]/,u=/[0-9]/,h=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,f=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{const n=()=>{A=P,++t.indentLevel,P=t.indent.repeat(t.indentLevel)},y={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},T=t&&t.json;var g,x;T&&(y.quotes="double",y.wrap=!0),g=y,t=(x=t)?(s(x,(e,t)=>{g[e]=t}),g):g,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const S="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",b=t.compact,E=t.lowercaseHex;let P=t.indent.repeat(t.indentLevel),A="";const v=t.__inline1__,C=t.__inline2__,w=b?"":"\n";let I,N=!0;const k="binary"==t.numbers,O="octal"==t.numbers,D="decimal"==t.numbers,_="hexadecimal"==t.numbers;if(T&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(L=e)&&"[object String]"!=a.call(L)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(b||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(o(e))return I=[],t.wrap=!0,v&&(t.__inline1__=!1,t.__inline2__=!0),C||n(),((e,t)=>{const n=e.length;let s=-1;for(;++s<n;)t(e[s])})(e,e=>{N=!1,C&&(t.__inline2__=!1),I.push((b||C?"":P)+m(e,t))}),N?"[]":C?"["+I.join(", ")+"]":"["+w+I.join(","+w)+w+(b?"":A)+"]";if((e=>"number"==typeof e||"[object Number]"==a.call(e))(e)||l(e)){if(T)return JSON.stringify(Number(e));let t;if(D)t=String(e);else if(_){let n=e.toString(16);E||(n=n.toUpperCase()),t="0x"+n}else k?t="0b"+e.toString(2):O&&(t="0o"+e.toString(8));return l(e)?t+"n":t}return l(e)?T?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==a.call(e))(e)?(I=[],t.wrap=!0,n(),s(e,(e,n)=>{N=!1,I.push((b?"":P)+m(e,t)+":"+(b?"":" ")+m(n,t))}),N?"{}":"{"+w+I.join(","+w)+w+(b?"":A)+"}"):T?JSON.stringify(e)||"null":String(e)}var L;const M=t.escapeEverything?d:f;return I=e.replace(M,(e,n,s,a,o,l)=>{if(n){if(t.minimal)return n;const e=n.charCodeAt(0),s=n.charCodeAt(1);return t.es6?"\\u{"+r(1024*(e-55296)+s-56320+65536,E)+"}":i(r(e,E))+i(r(s,E))}if(s)return i(r(s.charCodeAt(0),E));if("\0"==e&&!T&&!u.test(l.charAt(o+1)))return"\\0";if(a)return a==S||t.escapeEverything?"\\"+a:a;if(p.test(e))return c[e];if(t.minimal&&!h.test(e))return e;const d=r(e.charCodeAt(0),E);return T||d.length>2?i(d):"\\x"+("00"+d).slice(-2)}),"`"==S&&(I=I.replace(/\$\{/g,"\\${")),t.isScriptContext&&(I=I.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,T?"\\u003C!--":"\\x3C!--")),t.wrap&&(I=S+I+S),I};m.version="3.0.2",e.exports=m},7317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=C,t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!(a(t)||!p(t))&&n.type===t.type},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(a(t))return!0;if(b(t)){for(const n of t.types)if(a(n)||w(e,n,!0))return!0;return!1}return w(e,t,!0)},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||(e=C.call(this)||r(),(S(e)||T(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return w(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return!("Array"!==e||!(y(t)||o(t)||x(t)))||(u(t)&&h(t.id,{name:e})||g(t)&&h(t.typeName,{name:e}))};var s=n(9937),i=n(2352);const{anyTypeAnnotation:r,isAnyTypeAnnotation:a,isArrayTypeAnnotation:o,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:p,isGenericTypeAnnotation:u,isIdentifier:h,isMixedTypeAnnotation:d,isNumberTypeAnnotation:f,isStringTypeAnnotation:m,isTSArrayType:y,isTSTypeAnnotation:T,isTSTypeReference:g,isTupleTypeAnnotation:x,isTypeAnnotation:S,isUnionTypeAnnotation:b,isVoidTypeAnnotation:E,stringTypeAnnotation:P,voidTypeAnnotation:A}=i,v=new WeakSet;function C(){const e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!v.has(e)){v.add(e);try{var t;let n=s[e.type];if(n)return n.call(this,e);if(n=s[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{v.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?P():"left"===e.key&&t.isForOfStatement()?r():A()}}function w(e,t,n){if("string"===e)return m(t);if("number"===e)return f(t);if("boolean"===e)return l(t);if("any"===e)return a(t);if("mixed"===e)return d(t);if("empty"===e)return c(t);if("void"===e)return E(t);if(n)return!1;throw new Error(`Unknown base type ${e}`)}},7411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),r()},t.clearPath=i,t.clearScope=r,t.getCachedPaths=function(e){const{parent:t,parentPath:s}=e;return n.get(t)},t.getOrCreateCachedPaths=function(e,t){let s=n.get(e);return s||n.set(e,s=new Map),s},t.scope=t.path=void 0;let n=t.path=new WeakMap,s=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function r(){t.scope=s=new WeakMap}},7427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=r(e.ast);return 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{var s;!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>r(e)):"object"==typeof n&&(n=r(n)));const{parent:s,key:d,index:f}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=u(n)),!n||!p(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===f?n?Array.isArray(n)?n=i(n):"string"==typeof n?n=o(l(n)):c(n)||(n=o(n)):n=a():n&&!Array.isArray(n)&&("string"==typeof n&&(n=l(n)),c(n)||(n=o(n)));else if("param"===e.type){if("string"==typeof n&&(n=l(n)),void 0===f)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=l(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");function m(e,t,n){const s=e[t];e[t]=n,"Identifier"!==s.type&&"Placeholder"!==s.type||(s.typeAnnotation&&(n.typeAnnotation=s.typeAnnotation),s.optional&&(n.optional=s.optional),s.decorators&&(n.decorators=s.decorators))}if(void 0===f)h(s,d,n),m(s,d,n);else{const t=s[d].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(f,1):Array.isArray(n)?t.splice(f,1,...n):m(t,f,n):m(t,f,n),h(s,d,t),s[d]=t}}(e,n,null!=(s=t&&t[e.name])?s:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n};var s=n(2352);const{blockStatement:i,cloneNode:r,emptyStatement:a,expressionStatement:o,identifier:l,isStatement:c,isStringLiteral:p,stringLiteral:u,validate:h}=s},7446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const a=s.NODE_FIELDS[e.type];if(!a)return;i(e,t,n,a[t]),r(e,t,n)},t.validateChild=r,t.validateField=i,t.validateInternal=function(e,t,n,i,r){if(null!=e&&e.validate&&(!e.optional||null!=i)&&(e.validate(t,n,i),r)){var a;const e=i.type;if(null==e)return;null==(a=s.NODE_PARENT_VALIDATIONS[e])||a.call(s.NODE_PARENT_VALIDATIONS,t,n,i)}};var s=n(9793);function i(e,t,n,s){null!=s&&s.validate&&(s.optional&&null==n||s.validate(e,t,n))}function r(e,t,n){var i;const r=null==n?void 0:n.type;null!=r&&(null==(i=s.NODE_PARENT_VALIDATIONS[r])||i.call(s.NODE_PARENT_VALIDATIONS,e,t,n))}},7591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!n||"ObjectPattern"!==n.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==n||!n.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},7596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_UNION_SHAPES__PRIVATE=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=T,t.assertNodeOrValueType=function(...e){function t(t,n,r){const a=d(r);for(const o of e)if(a===o||(0,s.default)(o,r))return void(0,i.validateChild)(t,n,r);throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==r?void 0:r.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=x,t.assertOneOf=function(...e){function t(t,n,s){if(!e.includes(s))throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function n(n,s,r){const a=[];for(const s of t)try{(0,i.validateField)(n,s,r[s],e[s])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw new TypeError(`Property ${s} of ${n.type} expected to have the following:\n${a.join("\n")}`)}return n.shapeOf=e,n},t.assertValueType=S,t.chain=b,t.default=v,t.defineAliasedType=function(...e){return(t,n={})=>{let s=n.aliases;var i;s||(n.inherits&&(s=null==(i=A[n.inherits].aliases)?void 0:i.slice()),null!=s||(s=[]),n.aliases=s);const r=e.filter(e=>!s.includes(e));s.unshift(...r),v(t,n)}},t.validate=f,t.validateArrayOfType=function(...e){return f(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:x(...e),optional:!0}},t.validateType=function(...e){return f(x(...e))};var s=n(3828),i=n(7446);const r=t.VISITOR_KEYS={},a=t.ALIAS_KEYS={},o=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},p=t.DEPRECATED_KEYS={},u=t.NODE_PARENT_VALIDATIONS={},h=t.NODE_UNION_SHAPES__PRIVATE={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function m(e){return b(S("array"),T(e))}function y(...e){return m(x(...e))}function T(e){const t=process.env.BABEL_TYPES_8_BREAKING?i.validateChild:()=>{};function n(n,s,i){if(!Array.isArray(i))return;let r=0;const a={toString:()=>`${s}[${r}]`};for(;r<i.length;r++){const s=i[r];e(n,a,s),t(n,a,s)}}return n.each=e,n}const g=t.allExpandedTypes=[];function x(...e){const t=new Set;function n(n,r,a){const o=null==a?void 0:a.type;if(null!=o){if(t.has(o))return void(0,i.validateChild)(n,r,a);if("Placeholder"===o)for(const t of e)if((0,s.default)(t,a))return void(0,i.validateChild)(n,r,a)}throw new TypeError(`Property ${r} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}return g.push({types:e,set:t}),n.oneOfNodeTypes=e,n}function S(e){function t(t,n,s){if(d(s)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(s)}`)}return t.type=e,t}function b(...e){function t(...t){for(const n of e)n(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const E=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),P=new Set(["default","optional","deprecated","validate"]),A={};function v(e,t={}){const n=t.inherits&&A[t.inherits]||{};let s=t.fields;if(!s&&(s={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");s[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],f=t.aliases||n.aliases||[],m=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(!E.has(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(p[t.deprecatedAlias]=e);for(const e of i.concat(m))s[e]=s[e]||{};for(const t of Object.keys(s)){const n=s[t];void 0===n.default||m.includes(t)||(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=S(d(n.default)));for(const s of Object.keys(n))if(!P.has(s))throw new Error(`Unknown field key "${s}" on ${e}.${t}`)}r[e]=t.visitor=i,c[e]=t.builder=m,l[e]=t.fields=s,a[e]=t.aliases=f,f.forEach(t=>{o[t]=o[t]||[],o[t].push(e)}),t.validate&&(u[e]=t.validate),t.unionShape&&(h[e]=t.unionShape),A[e]=t}},7639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,s.default)(e,i.default,t),e};var s=n(8943),i=n(5333)},7687:(e,t,n)=>{"use strict";const s=n(857),i=n(2018),r=n(5884),{env:a}=process;let o;function l(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const i=function(){if("FORCE_COLOR"in a)return"true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}();void 0!==i&&(o=i);const l=n?o:i;if(0===l)return 0;if(n){if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2}if(e&&!t&&void 0===l)return 0;const c=l||0;if("dumb"===a.TERM)return c;if("win32"===process.platform){const e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:c;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:c}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}r("no-color")||r("no-colors")||r("color=false")||r("color=never")?o=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(o=1),e.exports={supportsColor:l,stdout:l({isTTY:i.isatty(1)}),stderr:l({isTTY:i.isatty(2)})}},7740:(e,t,n)=>{var s=function(){var e=n(2352),t="*",s=[],i=[],r=[],a=[];function o(t,n){n.filePath||(n.filePath="No file path provided"),t.node.skipMeOnVisit||(e.isMemberExpression(t)&&"extend"===t.node.property.name&&function(t,n){var s=t.parent.callee;if(s){var r=s.object;extendClass=h(r);var a=t.parent.arguments;1===a.length&&e.isObjectExpression(l)?l=a[0]:e.isStringLiteral(l);var o,l="";if(a.length){if(1===a.length&&e.isObjectExpression(a[0]))o=a[0];else{if(2!==a.length)return;e.isStringLiteral(a[0])&&e.isObjectExpression(a[1])&&(l=a[0],o=a[1])}className=l.value?l.value:"";var c,u=function(t){var n=[],s=[],i=[],r=!1;if(e.isObjectExpression(t)){var a=t.properties;for(var o in a)if(!r&&"interfaces"===a[o].key.name.toLowerCase()&&e.isArrayExpression(a[o].value)){r=!0;var l=a[o].value.elements;for(var c in l){var u=p(l[c]);i.push(u)}}else s.push(a[o].key.name)}return n.push(s),n.push(i),n}(o),d=u[0],T=u[1],g=!!(c=className)&&/^((\w+\.)+\w+)$/.test(c),x=f(className);if(className&&!x&&!g)throw{message:"JSParser Error: The 'extend' you are trying to make has an invalid name. Example: '...extend(\"a.b.C\", {...overrides...})'), for class: "+extendClass+" file: "+n.fullPathName,errCode:1};var S="";if(g){n.logger&&n.logger.info(S);var b=g?className:"";return S=m(b,extendClass.reverse().join("."),d,"",n.fullPathName,T),void y(b,n.fullPathName,S)}n.logger&&n.logger.info(S);var E={file:n.filePath,line:t.node.property.loc.start.line,column:t.node.property.loc.start.column+1,className};S=m(g?className:"",extendClass.reverse().join("."),d,E,"",T),i.push(S)}}}(t,n),e.isNewExpression(t)&&function(t,n){if(!n.interfaceNames)throw"JSParser Error: No interface names are provided! You can pass them in config.interfaceNames as an array!";var s=h(t.node.callee),i=!1,a=n.interfaceNames,o=s.reverse().join(".");for(var l in a){var c=a[l].trim();if(c===o){o=c,i=!0;break}}if(i){var p,u="";if(1===t.node.arguments.length)p=t.node.arguments[0];else{if(2!==t.node.arguments.length)throw{message:"JSParser Error: Not enough or too many arguments passed("+t.node.arguments.length+") when trying to extend interface: "+c+" in file: "+n.fullPathName,errCode:1};u=t.node.arguments[0],p=t.node.arguments[1]}var d=f(u.value),y=function(t){var n=[];if(e.isObjectExpression(t)){var s=t.properties;for(var i in s)n.push(s[i].key.name)}return n}(p),T={file:n.filePath,line:t.node.loc.start.line,column:t.node.loc.start.column+1,className:d?u.value:""},g=m("",o,y.join(","),T,"");n.logger&&n.logger.info(g),r.push(g)}}(t,n),e.isIdentifier(t)&&"__extends"===t.node.name&&function(t,n){var s;try{s=function(t,n,s){var i=d(t,5,s);if(i){if(!e.isCallExpression(i.node))throw{message:"JSParser Error: Node type is not a call expression. File="+s.fullPathName+" line="+t.node.loc.start.line,errCode:1};var r=i.node.arguments[0]}return h(r).reverse().join(".")}(t,0,n)}catch(e){return void n.logger.warn(e.message)}var r=function(t){var n=[],s=d(t,3);for(var i in s.node.body){var r=s.node.body[i];e.isExpressionStatement(r)&&e.isAssignmentExpression(r.expression)&&r.expression.left.property&&n.push(r.expression.left.property.name)}return n}(t),a="",o=function(t,n){var s,i,r,a,o,l,c=!1;if(t.node.body&&t.node.body.length>=3&&(e.isFunctionDeclaration(t.node.body[1])&&t.node.body[1].id&&(s=t.node.body[1].id.name),e.isReturnStatement(t.node.body[t.node.body.length-1])&&(i=t.node.body[t.node.body.length-1].argument.name)),s===i&&s){var p=t.node.body[1],u=function(t){if(e.isExpressionStatement(t)&&e.isCallExpression(t.expression)){var n=t.expression.arguments;if(2==n.length)return n[1].name}}(t.node.body[0]);if(u){var h=[],d=[];if(p.body.body.forEach(t=>{e.isVariableDeclaration(t)?h.push(t):e.isExpressionStatement(t)&&d.push(t)}),h.length>0||d.length>0){var f=(o=u,((l=h.filter(t=>e.isLogicalExpression(t.declarations[0].init)&&e.isCallExpression(t.declarations[0].init.left)&&t.declarations[0].init.left.callee.object.name===o)).length>0?l[0].declarations[0].init.left:null)||function(t,n){var s=t.filter(t=>e.isAssignmentExpression(t.expression)&&e.isLogicalExpression(t.expression.right)&&e.isCallExpression(t.expression.right.left)&&t.expression.right.left.callee.object.name===n);return s.length>0?s[0].expression.right.left:null}(d,u));if(f){var m=f.callee.property;r=m.loc.start.column+1,a=m.loc.start.line,c=!0}}}}return c||n.logger.info("[WARN] TypeScript-extended class has a super() call in an unsupported format. ctor function name: "+s),{line:a,column:r}}(d(t,3,n),n),u=d(t,1,n);e.isCallExpression(u)&&(a=u.node.arguments[0].name);var f,T,g,x=function(e){var t=d(e,3).node.body;for(var n in t){var s=t[n];if(c(s))return l(s.expression).arguments[0].elements}return null}(t),S=!1,b=[];if(x||(x=function(e){var t=d(e,7),n=t.getSibling(t.key+1).node;return n&&c(n)?l(n.expression).arguments[0].elements:null}(t)),x)for(var E in x){var P=x[E];if(e.isCallExpression(P)){if(P.callee.name===n.interfacesDecoratorName){P.callee.skipMeOnVisit=!0;var A=P.arguments[0].elements;for(var E in A){var v=p(A[E]);b.push(v)}}P.callee.name===n.extendDecoratorName&&(P.callee.skipMeOnVisit=!0,S=!0,f=void 0===n.extendDecoratorName?"JavaProxy":n.extendDecoratorName,T=P.arguments[0].value)}}S?function(e,t,n,s,i,r){t.logger&&t.logger.info("\t+in "+n+" anchor");var a=e,o=m(a,s,i,"",t.fullPathName,r);t.logger&&t.logger.info(o),y(a,t.fullPathName,o)}(T,n,f,s,r,b):(g=m("",s,r,{file:n.filePath,line:o.line,column:o.column,className:a},"",b),n.logger&&n.logger.info(g),i.push(g))}(t,n))}function l(t){if(!t)return null;for(var n=t.right;e.isAssignmentExpression(n);)n=n.right;return n}function c(t){var n=l(t.expression);return e.isExpressionStatement(t)&&e.isAssignmentExpression(t.expression)&&n.callee&&"__decorate"===n.callee.name&&n.arguments&&e.isArrayExpression(n.arguments[0])}function p(t){var n="";return e.isMemberExpression(t)&&(n+=u(t.object),n+=t.property.name),n}function u(t){var n="";return e.isMemberExpression(t)&&(e.isMemberExpression(t.object)?(n+=u(t.object),n+=t.property.name+"."):(n+=t.object.name+".",n+=t.property.name+".")),n}function h(t){for(var n=[],s=!1;void 0!==t;){if(!e.isMemberExpression(t)){s&&n.push(t.name);break}s=!0,n.push(t.property.name),t=t.object}return n}function d(e,t,n){if(!e)throw{message:"JSParser Error: No parent found for node in file: "+n.fullPathName,errCode:1};return 0===t?e:d(e.parentPath,--t)}function f(e){return!(!e||""==e)&&/^(\w+)$/.test(e)}function m(e,n,s,i,r,a=""){const o=i.file?i.file.replace(/[-\\/\\. ]/g,"_"):"",l=i.line?i.line:"",c=i.column?i.column:"",p=i.className?i.className:"";return`${n}${t}${o}${t}${l}${t}${c}${t}${p}${t}${s}${t}${e}${t}${r}${t}${a}`}function y(e,t,n){-1===a.indexOf(e)?(s.push(n),a.push(e)):(console.log("Warning: there already is an extend called "+e+"."),-1===t.indexOf("tns_modules")&&(console.log("Warning: The static binding generator will generate extend from:"+t+" implementation"),s.push(n),a.push(e)))}return o.getProxyExtendInfo=function(){var e=s.slice();return s=[],e},o.getCommonExtendInfo=function(){var e=[];for(var t in i)"*"!==i[t][0]&&e.push(i[t]);return i=[],e},o.getInterfaceInfo=function(){var e=r.slice();return r=[],e},{es5Visitor:o}}();e.exports=s},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(i=s))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]},7878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},7931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const n=(0,s.default)(e[t],e);return e[t]=n,n};var s=n(5010)},7932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("innerComments",e,t)};var s=n(3205)},7942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.tokenChar(91);const s=this.enterDelimited();for(let e=0;e<t.length;e++){const s=t[e];s?(e>0&&this.space(),this.print(s),(e<n-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}s(),this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=this.format.jsescOption,s=e.value,r=s+"";n.numbers?this.number(i(s,n),s):null==t?this.number(r,s):this.format.minified?this.number(t.length<r.length?t:r,s):this.number(t,s)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(r(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){const t=e.properties;let n,s;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",s="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);n="#{",s="}"}this.token(n),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(s),!0,!0),this.space()),this.token(s)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!c.has(e)){const t=JSON.stringify(e),n=Array.from(c,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let s,i;if("bar"===this.format.recordAndTupleSyntaxType)s="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);s="#[",i="]"}this.token(s);for(let e=0;e<t.length;e++){const s=t[e];s&&(e>0&&this.space(),this.print(s),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===o)return l;o=e;const{name:t}=e,n=this.tokenMap.find(e,e=>e.value===t);return n?(l=this._originalCode.slice(n.start,n.end),l):l=e.name};var s=n(2352),i=n(7159);const{isAssignmentPattern:r,isIdentifier:a}=s;let o=null,l="";const c=new Set(["^^","@@","^","%","#"])},7973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){const{node:e,parent:t}=this,n=this.parentPath.parent;return u(e)&&i(e,t,n)},t.isBlockScoped=function(){return r(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():o(this.node)},t.isFlow=function(){const{node:e}=this;return!(!l(e)&&(h(e)?"type"!==e.importKind&&"typeof"!==e.importKind:a(e)?"type"!==e.exportKind:!d(e)||"type"!==e.importKind&&"typeof"!==e.importKind))},t.isForAwaitStatement=function(){return A(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return g(this.node,this.parent)},t.isReferencedIdentifier=function(e){const{node:t,parent:n}=this;return(u(t,e)||!!f(t,e)&&!(!m(n)&&v(t.name)))&&g(t,n,this.parentPath.parent)},t.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return y(e)&&g(e,t)},t.isRestProperty=function(){var e;return T(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return x(this.node,this.parent)},t.isSpreadProperty=function(){var e;return T(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){const{node:e,parent:t}=this;if(S(e)){if(E(e)){if(p(t,{left:e}))return!1;if(c(t,{init:e}))return!1}return!0}return!1},t.isUser=function(){var e;return!(null==(e=this.node)||!e.loc)},t.isVar=function(){return b(this.node)};var s=n(2352);const{isBinding:i,isBlockScoped:r,isExportDeclaration:a,isExpression:o,isFlow:l,isForStatement:c,isForXStatement:p,isIdentifier:u,isImportDeclaration:h,isImportSpecifier:d,isJSXIdentifier:f,isJSXMemberExpression:m,isMemberExpression:y,isRestElement:T,isReferenced:g,isScope:x,isStatement:S,isVar:b,isVariableDeclaration:E,react:P,isForOfStatement:A}=s,{isCompatTag:v}=P;t.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},7980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var s=n(9793);t.STANDARDIZED_TYPES=s.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=s.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=s.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=s.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=s.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=s.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=s.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=s.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=s.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=s.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=s.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=s.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=s.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=s.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=s.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=s.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=s.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=s.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=s.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=s.FLIPPED_ALIAS_KEYS.Class;const i=t.IMPORTOREXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=s.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=s.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=s.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=s.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=s.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=s.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=s.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=s.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=i},8079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(3286);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var i=n(6779);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},8125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,s.default)(e,t),(0,i.default)(e,t),(0,r.default)(e,t),e};var s=n(5586),i=n(5766),r=n(7932)},8345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=A,t._containerInsertAfter=C,t._containerInsertBefore=v,t._verifyNodeList=k,t.insertAfter=function(e){if(a._assertUnremoved.call(this),this.isSequenceExpression())return w(this.get("expressions")).insertAfter(e);const t=k.call(this,e),{parentPath:n,parent:s}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||g(s)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>x(e)?m(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){const e=this;if(e.node){const s=e.node;let{scope:i}=this;if(i.path.isPattern())return p(s),e.replaceWith(d(c([],s),[])),e.get("callee.body").insertAfter(t),[e];if(I(e))t.unshift(s);else if(T(s)&&E(s.callee))t.unshift(s),t.push(P());else if(function(e,t){if(!y(e)||!S(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(s,i))t.unshift(s),t.push(f(s.left));else if(i.isPure(s,!0))t.push(s);else{n.isMethod({computed:!0,key:s})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(m(u("=",f(e),s))),t.push(m(f(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return C.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[s]=this.replaceWith(h(n?[e]:[]));return s.pushContainer("body",t)}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?")},t.insertBefore=function(e){a._assertUnremoved.call(this);const t=k.call(this,e),{parentPath:n,parent:s}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||g(s)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return v.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[s]=this.replaceWith(h(n?[e]:[]));return s.unshiftContainer("body",t)}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?")},t.pushContainer=function(e,t){a._assertUnremoved.call(this);const n=k.call(this,t),s=this.node[e];return i.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){a._assertUnremoved.call(this);const n=k.call(this,t),s=this.node[e],r=i.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:0}).setContext(this.context);return v.call(r,n)},t.updateSiblingKeys=N;var s=n(7411),i=n(9709),r=n(9578),a=n(3097),o=n(2352),l=n(7145);const{arrowFunctionExpression:c,assertExpression:p,assignmentExpression:u,blockStatement:h,callExpression:d,cloneNode:f,expressionStatement:m,isAssignmentExpression:y,isCallExpression:T,isExportNamedDeclaration:g,isExpression:x,isIdentifier:S,isSequenceExpression:b,isSuper:E,thisExpression:P}=o;function A(e,t){N.call(this,e,t.length);const n=[];this.container.splice(e,0,...t);for(let i=0;i<t.length;i++){var s;const t=e+i,a=this.getSibling(t);n.push(a),null!=(s=this.context)&&s.queue&&r.pushContext.call(a,this.context)}const i=r._getQueueContexts.call(this);for(const e of n){r.setScope.call(e),e.debug("Inserted.");for(const t of i)t.maybeQueue(e,!0)}return n}function v(e){return A.call(this,this.key,e)}function C(e){return A.call(this,this.key+1,e)}const w=e=>e[e.length-1];function I(e){return b(e.parent)&&(w(e.parent.expressions)!==e.node||I(e.parentPath))}function N(e,t){if(!this.parent)return;const n=(0,s.getCachedPaths)(this);if(n)for(const[,s]of n)"number"==typeof s.key&&s.container===this.container&&s.key>=e&&(s.key+=t)}function k(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let s;if(n?"object"!=typeof n?s="contains a non-object node":n.type?n instanceof i.default&&(s="has a NodePath when it expected a raw object"):s="without a type":s="has falsy node",s){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${s} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},8721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=p,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);if(55296==(64512&s)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(s=65536+((1023&s)<<10)+(1023&t))}if(t){if(t=!1,!c(s))return!1}else if(!p(s))return!1}return!t},t.isIdentifierStart=c;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),r=new RegExp("["+n+s+"]");n=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,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function l(e,t){let n=65536;for(let s=0,i=t.length;s<i;s+=2){if(n+=t[s],n>e)return!1;if(n+=t[s+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,a)))}function p(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},8812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),r=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(!c)continue;if(l.includes(c))continue;if((0,s.isTSAnyKeyword)(c))return[c];if((0,s.isTSBaseType)(c)){a.set(c.type,c);continue}if((0,s.isTSUnionType)(c)){o.has(c.types)||(n.push(...c.types),o.add(c.types));continue}const p="typeParameters";if((0,s.isTSTypeReference)(c)&&c[p]){const t=c[p],n=i(c.typeName);if(r.has(n)){let s=r.get(n);const i=s[p];i?(i.params.push(...t.params),i.params=e(i.params)):s=t}else r.set(n,c);continue}l.push(c)}for(const[,e]of a)l.push(e);for(const[,e]of r)l.push(e);return l};var s=n(8960);function i(e){return(0,s.isIdentifier)(e)?e.name:(0,s.isThisExpression)(e)?"this":`${e.right.name}.${i(e.left)}`}},8943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(9793);const i=Symbol(),r=Symbol();function a(e,t,n){if(!e)return!1;const o=s.VISITOR_KEYS[e.type];if(!o)return!1;const l=t(e,n=n||{});if(void 0!==l)switch(l){case i:return!1;case r:return!0}for(const s of o){const i=e[s];if(i)if(Array.isArray(i)){for(const e of i)if(a(e,t,n))return!0}else if(a(i,t,n))return!0}return!1}a.skip=i,a.stop=r},8960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&("ClassAccessorProperty"===e.type&&(null==t||(0,s.default)(e,t)))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,s.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,s.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,s.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,s.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,s.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportOrExportDeclaration=r,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,s.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,s.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),r(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,s.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,s.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,s.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,s.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,s.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,s.default)(e,t))},t.isVoidPattern=function(e,t){return!!e&&"VoidPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,s.default)(e,t))};var s=n(6616),i=n(3762);function r(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)}},8991:e=>{let t=process||{},n=t.argv||[],s=t.env||{},i=!(s.NO_COLOR||n.includes("--no-color"))&&(!!s.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==s.TERM||!!s.CI),r=(e,t,n=e)=>s=>{let i=""+s,r=i.indexOf(t,e.length);return~r?e+a(i,t,n,r)+t:e+i+t},a=(e,t,n,s)=>{let i="",r=0;do{i+=e.substring(r,s)+n,r=s+t.length,s=e.indexOf(t,r)}while(~s);return i+e.substring(r)},o=(e=i)=>{let t=e?r:()=>String;return{isColorSupported:e,reset:t("[0m","[0m"),bold:t("[1m","[22m","[22m[1m"),dim:t("[2m","[22m","[22m[2m"),italic:t("[3m","[23m"),underline:t("[4m","[24m"),inverse:t("[7m","[27m"),hidden:t("[8m","[28m"),strikethrough:t("[9m","[29m"),black:t("[30m","[39m"),red:t("[31m","[39m"),green:t("[32m","[39m"),yellow:t("[33m","[39m"),blue:t("[34m","[39m"),magenta:t("[35m","[39m"),cyan:t("[36m","[39m"),white:t("[37m","[39m"),gray:t("[90m","[39m"),bgBlack:t("[40m","[49m"),bgRed:t("[41m","[49m"),bgGreen:t("[42m","[49m"),bgYellow:t("[43m","[49m"),bgBlue:t("[44m","[49m"),bgMagenta:t("[45m","[49m"),bgCyan:t("[46m","[49m"),bgWhite:t("[47m","[49m"),blackBright:t("[90m","[39m"),redBright:t("[91m","[39m"),greenBright:t("[92m","[39m"),yellowBright:t("[93m","[39m"),blueBright:t("[94m","[39m"),magentaBright:t("[95m","[39m"),cyanBright:t("[96m","[39m"),whiteBright:t("[97m","[39m"),bgBlackBright:t("[100m","[49m"),bgRedBright:t("[101m","[49m"),bgGreenBright:t("[102m","[49m"),bgYellowBright:t("[103m","[49m"),bgBlueBright:t("[104m","[49m"),bgMagentaBright:t("[105m","[49m"),bgCyanBright:t("[106m","[49m"),bgWhiteBright:t("[107m","[49m")}};e.exports=o(),e.exports.createColors=o},8992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=a;var s=n(4068),i=n(6636);function r(e,t,n){if(t.experimental_preserveFormat){if("string"!=typeof e)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&&"auto"!==t.compact)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(n.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached 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:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};var i;s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"hash",s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:r,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return r&&!o(r)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}function a(e,t={},n){const a=r(n,t,e),o=t.sourceMaps?new s.default(t,n):null;return new i.default(a,o,e.tokens,"string"==typeof n?n:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=r(n,t,e),this._map=t.sourceMaps?new s.default(t,n):null}generate(){return new i.default(this._format,this._map).generate(this._ast)}},t.default=a},9018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let r=e.children[n];(0,s.isJSXText)(r)?(0,i.default)(r,t):((0,s.isJSXExpressionContainer)(r)&&(r=r.expression),(0,s.isJSXEmptyExpression)(r)||t.push(r))}return t};var s=n(8960),i=n(3043)},9023:e=>{"use strict";e.exports=require("util")},9127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isFunctionDeclaration)(e)||(0,s.isClassDeclaration)(e)||(0,i.default)(e)};var s=n(8960),i=n(3847)},9187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var s=n(7596);const i=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of i){const t=s.ALIAS_KEYS[e];null!=t&&t.length&&(r[e]=t)}const a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(r).forEach(e=>{r[e].forEach(t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)})})},9198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8960),i=n(8079);t.default=function(e,t){if((0,s.isStatement)(e))return e;let n,r=!1;if((0,s.isClass)(e))r=!0,n="ClassDeclaration";else if((0,s.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0,s.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}},9246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(!(0,s.isBlockStatement)(e)||!(0,s.isFunction)(t)&&!(0,s.isCatchClause)(t))&&(!(!(0,s.isPattern)(e)||!(0,s.isFunction)(t)&&!(0,s.isCatchClause)(t))||(0,s.isScopable)(e))};var s=n(8960)},9276:(e,t)=>{"use strict";function n(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function s(e,t,n){var s;let i=0;null!=(s=e.tokenMap)&&s.startMatches(t,n)&&(i=1,e.token(n)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(n,void 0,e+i),this.space()})}function i(e,t){!0!==t&&e.token(t)}function r(e){a(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)})}function a(e,t,n){e.token("{");const s=e.enterDelimited();n(),s(),e.rightBrace(t)}function o(e,t,n){var s;const i=new Set;for(const e of n)e&&i.add(e);null==(s=e.tokenMap)||s.find(t,t=>!!i.has(t.value)&&(e.token(t.value),e.space(),i.delete(t.value),0===i.size));for(const t of i)e.word(t),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){const{type:t,expression:n,typeAnnotation:s}=e;this.print(n,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(s)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=r,t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:s}=e;t&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(s),this.space(),r.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:n}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:n,options:s}=e;this.word("import"),this.tokenChar(40),this.print(t),s&&(this.tokenChar(44),this.print(s)),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n));const i=e.typeParameters;i&&this.print(i)},t.TSIndexSignature=function(e){const{readonly:t,static:s}=e;s&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),n(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){a(this,e,()=>this.printJoin(e.body,!0,!0))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:s,extends:i,body:r}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(s),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(r)},t.TSIntersectionType=function(e){s(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:s,typeAnnotation:r}=e;this.tokenChar(123);const a=this.enterDelimited();this.space(),s&&(i(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),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),n&&(i(this,n),this.tokenChar(63)),r&&(this.tokenChar(58),this.space(),this.print(r)),this.space(),a(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSModuleBlock=function(e){a(this,e,()=>this.printSequence(e.body,!0))},t.TSModuleDeclaration=function(e){const{declare:t,id:n,kind:s}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=s?s:"Identifier"===n.type?"namespace":"module"),this.space()),this.print(n),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),n(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:s,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(s),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},t.TSTypeLiteral=function(e){a(this,e,()=>this.printJoin(e.members,!0,!0))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){s(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;o(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),o(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")"),this.space();const s=e.typeAnnotation;this.print(s)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")");const s=e.typeAnnotation;this.print(s)}},9320:function(e,t,n){var s;!function(e,t,n){"use strict";var s,i=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))c.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(s=a(t,i))||s.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:r(n,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,n){n.exports=t}}),f=p({"umd:@jridgewell/trace-mapping"(e,t){t.exports=n}}),m={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(m,{GenMapping:()=>w,addMapping:()=>N,addSegment:()=>I,allMappings:()=>B,fromMap:()=>F,maybeAddMapping:()=>O,maybeAddSegment:()=>k,setIgnore:()=>_,setSourceContent:()=>D,toDecodedMap:()=>L,toEncodedMap:()=>M}),e.exports=(s=m,u(r({},"__esModule",{value:!0}),s));var y=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function T(e,t){return e._indexes[t]}function g(e,t){const n=T(e,t);if(void 0!==n)return n;const{array:s,_indexes:i}=e,r=s.push(t);return i[t]=r-1}var x=h(d()),S=h(f()),b=0,E=1,P=2,A=3,v=4,C=-1,w=class{constructor({file:e,sourceRoot:t}={}){this._names=new y,this._sources=new y,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new y}};function I(e,t,n,s,i,r,a,o){return j(!1,e,t,n,s,i,r,a,o)}function N(e,t){return K(!1,e,t)}var k=(e,t,n,s,i,r,a,o)=>j(!0,e,t,n,s,i,r,a,o),O=(e,t)=>K(!0,e,t);function D(e,t,n){const{_sources:s,_sourcesContent:i}=e;i[g(s,t)]=n}function _(e,t,n=!0){const{_sources:s,_sourcesContent:i,_ignoreList:r}=e,a=g(s,t);a===i.length&&(i[a]=null),n?g(r,a):function(e,t){const n=T(e,t);if(void 0===n)return;const{array:s,_indexes:i}=e;for(let e=n+1;e<s.length;e++){const t=s[e];s[e-1]=t,i[t]--}i[t]=void 0,s.pop()}(r,a)}function L(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:i,_ignoreList:r}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}function M(e){const t=L(e);return Object.assign({},t,{mappings:(0,x.encode)(t.mappings)})}function F(e){const t=new S.TraceMap(e),n=new w({file:t.file,sourceRoot:t.sourceRoot});return U(n._names,t.names),U(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map(()=>null),n._mappings=(0,S.decodedMappings)(t),t.ignoreList&&U(n._ignoreList,t.ignoreList),n}function B(e){const t=[],{_mappings:n,_sources:s,_names:i}=e;for(let e=0;e<n.length;e++){const r=n[e];for(let n=0;n<r.length;n++){const a=r[n],o={line:e+1,column:a[b]};let l,c,p;1!==a.length&&(l=s.array[a[E]],c={line:a[P]+1,column:a[A]},5===a.length&&(p=i.array[a[v]])),t.push({generated:o,source:l,original:c,name:p})}}return t}function j(e,t,n,s,i,r,a,o,l){const{_mappings:c,_sources:p,_sourcesContent:u,_names:h}=t,d=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(c,n),f=function(e,t){let n=e.length;for(let s=n-1;s>=0&&!(t>=e[s][b]);n=s--);return n}(d,s);if(!i){if(e&&function(e,t){return 0===t||1===e[t-1].length}(d,f))return;return R(d,f,[s])}const m=g(p,i),y=o?g(h,o):C;if(m===u.length&&(u[m]=null!=l?l:null),!e||!function(e,t,n,s,i,r){if(0===t)return!1;const a=e[t-1];return 1!==a.length&&n===a[E]&&s===a[P]&&i===a[A]&&r===(5===a.length?a[v]:C)}(d,f,m,r,a,y))return R(d,f,o?[s,m,r,a,y]:[s,m,r,a])}function R(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function U(e,t){for(let n=0;n<t.length;n++)g(e,t[n])}function K(e,t,n){const{generated:s,source:i,original:r,name:a,content:o}=n;return i?j(e,t,s.line-1,s.column,i,r.line-1,r.column,a,o):j(e,t,s.line-1,s.column,null,null,null,null,null)}}(e=n.nmd(e),n(4318),n(2802)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},9420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(329);t.default=function(e,t){return(0,s.default)(e,t,!0)}},9564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of s.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of s.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var s=n(3422),i=n(8125)},9578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=d,t._resyncList=f,t._resyncParent=h,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||r._markRemoved.call(this)},t.call=o,t.isDenylisted=c,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;if(!a.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(h.call(this),f.call(this),d.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),u.call(this),this},t.setKey=m,t.setScope=u,t.setup=function(e,t,n,s){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,m.call(this,s)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;const n=this.context;return this.shouldSkip||o.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(p(this,n),this.debug("Recursing into..."),this.shouldStop=(0,s.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),p(this,n),o.call(this,"exit"),this.shouldStop)};var s=n(2264),i=n(9709),r=n(3097),a=n(2352);function o(e){const t=this.opts;return this.debug(e),!(!this.node||!l.call(this,t[e]))||!!this.node&&l.call(this,null==(n=t[this.node.type])?void 0:n[e]);var n}function l(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)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(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function c(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function p(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function u(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let n,s=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&s.isMethod()||"discriminant"===this.key&&s.isSwitchStatement())&&(s=s.parentPath);s&&!n;){var i;if(null!=(i=s.opts)&&i.noScope)return;n=s.scope,s=s.parentPath}this.scope=this.getScope(n),null==(t=this.scope)||t.init()}function h(){this.parentPath&&(this.parent=this.parentPath.node)}function d(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void m.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void m.call(this,e);this.key=null}}function f(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function m(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=c},9594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var s=n(2352);const{traverseFast:i,VISITOR_KEYS:r}=s;t.TokenMap=class{constructor(e,t,n){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=n,i(e,e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){const s=n[e],i=this._tokens[s];if(t(i,s))return i}return null}findLastIndex(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){const s=n[e];if(t(this._tokens[s],s))return s}return-1}findMatching(e,t,n=0){const s=this._nodesToTokenIndexes.get(e);if(s){let i=0;const r=n;if(r>1){const s=this._nodesOccurrencesCountCache.get(e);s&&s.test===t&&s.count<r&&(i=s.i+1,n-=s.count+1)}for(;i<s.length;i++){const a=this._tokens[s[i]];if(this.matchesOriginal(a,t)){if(0===n)return r>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:r,i}),a;n--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const s=this._tokens[n[0]];return s.start===e.start&&this.matchesOriginal(s,t)}endMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const s=this._tokens[n[n.length-1]];return s.end===e.end&&this.matchesOriginal(s,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let s=t;const i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=r[e.type];for(const n of t){const t=e[n];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||i.next();const a=[];for(const e of i){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,s,n),i=t.first;for(let e=s;e<i;e++)a.push(e);s=t.last+1}for(let e=s;e<=n;e++)a.push(e);return a}_findTokensOfNode(e,t,n){const s=this._tokensCache.get(e);if(s)return s;const i=this._findFirstTokenOfNode(e.start,t,n),r=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:r}),{first:i,last:r}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){const s=n+t>>1;if(e<this._tokens[s].start)n=s-1;else{if(!(e>this._tokens[s].start))return s;t=s+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){const s=n+t>>1;if(e<this._tokens[s].end)n=s-1;else{if(!(e>this._tokens[s].end))return s;t=s+1}}return n}}},9638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){h(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t),p(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(h(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),p(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const s=e.specifiers.slice(0);let i=!1;for(;;){const e=s[0];if(!a(e)&&!o(e))break;i=!0,this.print(s.shift()),s.length&&(this.tokenChar(44),this.space())}let r=!1;var t,n;(s.length||!s.length&&!i)&&(r=!0,this.tokenChar(123),s.length&&(this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,r)):this.print(e.source)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,n;this.word("import"),this.space();const s="type"===e.importKind||"typeof"===e.importKind;s?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),r=!!i.length;for(;r;){const e=i[0];if(!l(e)&&!c(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let a=!1;i.length?(a=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):s&&!r&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(r||s)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var n;const{importAttributesKeyword:s}=this.format,{attributes:i,assertions:r}=e;i&&!s&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u&&(u=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const a="assert"===s||!s&&r;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===s||!s&&null!=(n=e.extra)&&n.deprecatedWithLegacySyntax))return void this.printList(i||r);const o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||r,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)};var s=n(2352),i=n(1373);const{isClassDeclaration:r,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=s;let u=!1;function h(e,t){r(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},9709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var s=n(5562),i=n(5753),r=n(5781),a=n(6814),o=n(2352),l=o,c=n(7411),p=n(8992),u=n(940),h=n(7317),d=n(2037),f=n(299),m=n(2257),y=n(854),T=n(9578),g=T,x=n(3097),S=n(8345),b=n(6109),E=n(3383),P=n(7973);const{validate:A}=o,v=i("babel"),C=(t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4,t.default=class e{constructor(e,t){this.contexts=[],this.state=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._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:n,parent:s,container:i,listKey:r,key:a}){if(!t&&n&&(t=n.hub),!s)throw new Error("To get a node path the parent needs to exist");const o=i[a],l=c.getOrCreateCachedPaths(s,n);let p=l.get(o);return p||(p=new e(t,s),o&&l.set(o,p)),T.setup.call(p,n,i,r,a),p}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,r.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 n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){v.enabled&&v(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,p.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}}),w={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:h.getTypeAnnotation,isBaseType:h.isBaseType,couldBeBaseType:h.couldBeBaseType,baseTypeStrictlyMatches:h.baseTypeStrictlyMatches,isGenericType:h.isGenericType,replaceWithMultiple:d.replaceWithMultiple,replaceWithSourceString:d.replaceWithSourceString,replaceWith:d.replaceWith,replaceExpressionWithStatements:d.replaceExpressionWithStatements,replaceInline:d.replaceInline,evaluateTruthy:f.evaluateTruthy,evaluate:f.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:g.isDenylisted,visit:g.visit,skip:g.skip,skipKey:g.skipKey,stop:g.stop,setContext:g.setContext,requeue:g.requeue,requeueComputedKeyAndDecorators:g.requeueComputedKeyAndDecorators,remove:x.remove,insertBefore:S.insertBefore,insertAfter:S.insertAfter,unshiftContainer:S.unshiftContainer,pushContainer:S.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(C.prototype,w),C.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")],Object.assign(C.prototype,{has:y[String("has")],is:y[String("is")],isnt:y[String("isnt")],equals:y[String("equals")],hoist:S[String("hoist")],updateSiblingKeys:S.updateSiblingKeys,call:g.call,isBlacklisted:g[String("isBlacklisted")],setScope:g.setScope,resync:g.resync,popContext:g.popContext,pushContext:g.pushContext,setup:g.setup,setKey:g.setKey}),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,Object.assign(C.prototype,{_getTypeAnnotation:h._getTypeAnnotation,_replaceWith:d._replaceWith,_resolve:y._resolve,_call:g._call,_resyncParent:g._resyncParent,_resyncKey:g._resyncKey,_resyncList:g._resyncList,_resyncRemoved:g._resyncRemoved,_getQueueContexts:g._getQueueContexts,_removeFromScope:x._removeFromScope,_callRemovalHooks:x._callRemovalHooks,_remove:x._remove,_markRemoved:x._markRemoved,_assertUnremoved:x._assertUnremoved,_containerInsert:S._containerInsert,_containerInsertBefore:S._containerInsertBefore,_containerInsertAfter:S._containerInsertAfter,_verifyNodeList:S._verifyNodeList,_getKey:b._getKey,_getPattern:b._getPattern});for(const e of l.TYPES){const t=`is${e}`,n=l[t];C.prototype[t]=function(e){return n(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,P);for(const e of Object.keys(s))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e))},9722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(0,s.default)(e.type,"Immutable")||!!(0,i.isIdentifier)(e)&&"undefined"===e.name};var s=n(4460),i=n(8960)},9793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return s.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return s.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return r.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return s.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return s.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return s.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return s.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return s.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return s.VISITOR_KEYS}}),n(5158),n(9897),n(6184),n(5589),n(7095),n(6106);var s=n(7596),i=n(9187),r=n(5689);Object.keys(r.DEPRECATED_ALIASES).forEach(e=>{s.FLIPPED_ALIAS_KEYS[e]=s.FLIPPED_ALIAS_KEYS[r.DEPRECATED_ALIASES[e]]});for(const{types:e,set:t}of s.allExpandedTypes)for(const n of e){const e=s.FLIPPED_ALIAS_KEYS[n];e?e.forEach(t.add,t):t.add(n)}t.TYPES=[].concat(Object.keys(s.VISITOR_KEYS),Object.keys(s.FLIPPED_ALIAS_KEYS),Object.keys(s.DEPRECATED_KEYS))},9815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:s=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:r=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:r}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:s,placeholderPattern:i,preserveComments:r,syntacticPlaceholders:a}=t,o=function(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}(t,n);if(null!=s&&!(s instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=r&&"boolean"!=typeof r)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=s||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:s||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==r?void 0:r,syntacticPlaceholders:null==a?void 0:a}};const n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},9896:e=>{"use strict";e.exports=require("fs")},9897:(e,t,n)=>{"use strict";var s=n(5158),i=n(7596);const r=(0,i.defineAliasedType)("Flow"),a=e=>{const t="DeclareClass"===e;r(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements"))}:{},{body:(0,i.validateType)("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),a("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),a("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier","StringLiteral"),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))},s.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))},s.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validateArrayOfType)("FunctionTypeParam"),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),a("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,i.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,i.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,i.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,i.validateType)("Identifier","StringLiteral"),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},9937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=C,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(l.includes(t))return g();if(a.includes(t))return d();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?g():t.isBaseType("string")||e.isBaseType("string")?x():b([x(),g()])}},t.BooleanLiteral=function(){return d()},t.CallExpression=function(){const{callee:e}=this.node;return N(e)?h(x()):I(e)||k(e)||P(e,{name:"Array"})?h(u()):O(e)?h(S([x(),u()])):D(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,r.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return m(y("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,r.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return m(e.callee)},t.NullLiteral=function(){return T()},t.NumericLiteral=function(){return g()},t.ObjectExpression=function(){return m(y("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return m(y("RegExp"))},t.RestElement=w,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return x()},t.TSAsExpression=v,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return D(this.get("tag"))},t.TemplateLiteral=function(){return x()},t.TypeCastExpression=A,t.UnaryExpression=function(e){const t=e.operator;return"void"===t?E():c.includes(t)?g():p.includes(t)?x():o.includes(t)?d():void 0},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return g()},t.VariableDeclarator=function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()};var s=n(2352),i=n(354),r=n(3141);const{BOOLEAN_BINARY_OPERATORS:a,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:c,STRING_UNARY_OPERATORS:p,anyTypeAnnotation:u,arrayTypeAnnotation:h,booleanTypeAnnotation:d,buildMatchMemberExpression:f,genericTypeAnnotation:m,identifier:y,nullLiteralTypeAnnotation:T,numberTypeAnnotation:g,stringTypeAnnotation:x,tupleTypeAnnotation:S,unionTypeAnnotation:b,voidTypeAnnotation:E,isIdentifier:P}=s;function A(e){return e.typeAnnotation}function v(e){return e.typeAnnotation}function C(){return m(y("Array"))}function w(){return C()}A.validParent=!0,v.validParent=!0,w.validParent=!0;const I=f("Array.from"),N=f("Object.keys"),k=f("Object.values"),O=f("Object.entries");function D(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.async)return t.generator?m(y("AsyncIterator")):m(y("Promise"));if(t.generator)return m(y("Iterator"));if(e.node.returnType)return e.node.returnType}}},9961:e=>{"use strict";e.exports=JSON.parse('["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);const s=process.env.JS_PARSER_ENABLE_LOGGING&&"true"===process.env.JS_PARSER_ENABLE_LOGGING.trim()||process.argv&&process.argv.includes("enableVerboseLogging"),i=process.env.JS_PARSER_ERROR_LOGGING&&"true"===process.env.JS_PARSER_ERROR_LOGGING.trim()||!s&&process.argv&&process.argv.includes("enableErrorLogging"),r={logPath:n(6928).join(__dirname,"logs","i.txt"),strategy:"console",APP_NAME:"js_parser",showErrorsAndWarnings:i,disable:!s},a=n(9896),o=n(2172),l=n(5781),c=n(175),p=n(2847)(r),u=n(6928),h=n(7740),d=n(857).EOL;let f=`${__dirname}/../`,m="out/out_parsed_typescript.txt",y="input_parsed_typescript",T="sbg-interface-names.txt",g=P(T),x="sbg-bindings.txt",S=[],b=[];process.env.JS_PARSER_OUT_FILE&&(m=process.env.JS_PARSER_OUT_FILE.trim()),process.env.JS_PARSER_INPUT_DIR&&(y=process.env.JS_PARSER_INPUT_DIR.trim()),process.env.JS_PARSER_INTERFACE_FILE_PATH&&(g=process.env.JS_PARSER_INTERFACE_FILE_PATH.trim()),y=a.readFileSync(P("sbg-input-file.txt"),"UTF-8").trim();try{a.unlinkSync(P(x))}catch(e){}m=P(x),g=P(T);let E=P("sbg-js-parsed-files.txt");function P(e){return u.resolve(`${f}/${e}`)}const A=u.join(y,"..","internal","ts_helpers.js"),v=function(e,t){t.errCode&&1===t.errCode?(p.error(`Error processing '${e}': ${t.message}`),p.error("PROCESS EXITING..."),process.stderr.write(t.message),process.exit(4)):p.error(`Error processing '${e}:' `+t)};var C,w,I;(C=E,w=b,I=A,new Promise(function(e,t){a.createReadStream(C).pipe(c()).on("data",function(e){/\S/.test(e)&&w.push(e.toString().trim())}).on("error",function(e){return t(e)}).on("close",function(t){return e(I)})})).then(function(e){return new Promise(function(t,n){a.readFile(e,"utf8",function(s,i){if(s)return p.warn("+DIDN'T parse ast from file "+e),n(s);p.info("+parsing ast from "+e);const r=o.parse(i,{minify:!1,plugins:[["@babel/plugin-proposal-decorators",{decoratorsBeforeExport:!0}]]});return t(r)})})}).then(function(e,t){return new Promise(function(e,t){a.createReadStream(g).pipe(c()).on("data",function(e){/\S/.test(e)&&S.push(e.toString().trim())}).on("error",function(e){return t(!1)}).on("close",function(t){return y=u.normalize(y),e(y)})})}).then(function(e,t){if(!a.existsSync(e))throw"The input dir: "+e+" does not exist!";!function(e){for(let t=0;t<e.length;t+=1){const n=e[t];p.info("Visiting JavaScript/ES Module file: "+n),N(n).then(k.bind(null,n)).then(D.bind(null,n)).then(_).catch(v.bind(null,n))}}(b)}).catch(v.bind(null,E));const N=function(e,t){return new Promise(function(t,n){a.readFile(e,function(s,i){if(s)return p.warn(`+DIDN'T get content of file: ${e}!`),n(s);const r={filePath:e,data:i.toString()};return t(r)})})},k=function(e,t,n){return new Promise(function(s,i){if(n)return p.warn(`+DIDN'T parse ast from file: ${e}!`),i(n);const r={minify:!1,plugins:[["@babel/plugin-proposal-decorators",{decoratorsBeforeExport:!0}],"objectRestSpread"]};e.endsWith(".mjs")?(r.sourceType="module",p.info(`Parsing ES module: ${e}`)):p.info(`Parsing CommonJS file: ${e}`);const a=o.parse(t.data,r);return t.ast=a,s(t)})};function O(e,t,n){return n.indexOf(e)===t}const D=function(e,t,n){return new Promise(function(s,i){if(n)return p.warn(`+DIDN'T visit ast for file: ${e}!`),i(n);l.default(t.ast,{enter:function(e){const n=(t.filePath.endsWith(".mjs")?".mjs":".js").length,s={logger:p,extendDecoratorName:"JavaProxy",interfacesDecoratorName:"Interfaces",filePath:t.filePath.substring(y.length+1,t.filePath.length-n)||"",fullPathName:t.filePath.substring(y.length+1).replace(/[\\]/g,"/"),interfaceNames:S};h.es5Visitor(e,s)}});const r=h.es5Visitor.getProxyExtendInfo(),a=h.es5Visitor.getCommonExtendInfo(),o=h.es5Visitor.getInterfaceInfo();return s(r.concat(a).concat(o).filter(O).join(d))})},_=function(e,t){return new Promise(function(n,s){""!=e.trim()?a.appendFile(m,e+d,function(i){return t?(p.warn("Error from writeToFile: "+t),s(t)):i?(p.warn("Error writing file: "+i),s(i)):(p.info("+appended '"+e+"' to file: "+m),n(e))}):p.info("No need to generate anything. (UP-TO-DATE)")})}})();
|
|
13
|
+
`;return this.replaceWith(p)[0].get("arguments.0")},t.splitExportDeclaration=function(){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(),n=e.isFunctionExpression()||e.isClassExpression(),s=e.isScope()?e.scope.parent:e.scope;let i=e.node.id,r=!1;i?n&&s.hasBinding(i.name)&&(r=!0,i=s.generateUidIdentifier(i.name)):(r=!0,i=s.generateUidIdentifier("default"),(t||n)&&(e.node.id=B(i)));const a=t?e.node:j("var",[R(B(i),e.node)]),o=U(null,[K(B(i),f("default"))]);return this.insertAfter(o),this.replaceWith(a),r&&s.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),n=Object.keys(t).map(e=>K(f(e),f(e))),s=U(null,n);return this.insertAfter(s),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}return this.node.computed||m(e)&&(e=w(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");W(this)};var s=n(2352),i=n(2485),r=n(4950),a=n(9578);const{arrowFunctionExpression:o,assignmentExpression:l,binaryExpression:c,blockStatement:p,callExpression:u,conditionalExpression:h,expressionStatement:d,identifier:f,isIdentifier:m,jsxIdentifier:y,logicalExpression:T,LOGICAL_OPERATORS:g,memberExpression:x,metaProperty:S,numericLiteral:b,objectExpression:E,restElement:P,returnStatement:A,sequenceExpression:v,spreadElement:C,stringLiteral:w,super:I,thisExpression:N,toExpression:k,unaryExpression:O,toBindingIdentifierName:D,isFunction:_,isAssignmentPattern:L,isRestElement:M,getFunctionName:F,cloneNode:B,variableDeclaration:j,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:K,inherits:V}=s;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const q=(0,r.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function W(e,t=!0,n=!0,s=!0){let i,r=e.findParent(e=>e.isArrowFunctionExpression()?(null!=i||(i=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const a=r.isClassMethod({kind:"constructor"});if(r.isClassProperty()||r.isClassPrivateProperty())if(i)r=i;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(u(o([],k(e.node)),[])),r=e.get("callee"),e=r.get("body")}const{thisPaths:p,argumentsPaths:d,newTargetPaths:m,superProps:E,superCalls:A}=function(e){const t=[],n=[],s=[],i=[],r=[];return e.traverse($,{thisPaths:t,argumentsPaths:n,newTargetPaths:s,superProps:i,superCalls:r}),{thisPaths:t,argumentsPaths:n,newTargetPaths:s,superProps:i,superCalls:r}}(e);if(a&&A.length>0){if(!n)throw A[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!s)throw A[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.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];r.traverse(q,{allSuperCalls:e});const t=function(e){return X(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return o([P(t)],u(I(),[C(f(t.name))]))})}(r);e.forEach(e=>{const n=f(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(d.length>0){const e=X(r,"arguments",()=>{const e=()=>f("arguments");return r.scope.path.isProgram()?h(c("===",O("typeof",e()),w("undefined")),r.scope.buildUndefinedNode(),e()):e()});d.forEach(t=>{const n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(m.length>0){const e=X(r,"newtarget",()=>S(f("new"),f("target")));m.forEach(t=>{const n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(E.length>0){if(!n)throw E[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");E.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,s=n.node.operator.slice(0,-1),i=n.node.right,r=function(e){return g.includes(e)}(s);if(e.node.computed){const a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:c}=e.node;n.get("left").replaceWith(x(o,l("=",a,c),!0)),n.get("right").replaceWith(t(r?"=":s,x(o,f(a.name),!0),i))}else{const a=e.node.object,o=e.node.property;n.get("left").replaceWith(x(a,o)),n.get("right").replaceWith(t(r?"=":s,x(a,f(o.name)),i))}return r?n.replaceWith(T(s,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,x(e.node.object,s?l("=",s,e.node.property):e.node.property,e.node.computed)),l("=",x(e.node.object,s?f(s.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],f(n.name),b(1)))];return e.parentPath.node.prefix||i.push(f(n.name)),t.replaceWith(v(i)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?l("=",t,n):c(e,t,n)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath,s=n.isAssignmentExpression({left:e.node}),i=n.isCallExpression({callee:e.node}),a=n.isTaggedTemplateExpression({tag:e.node}),c=function(e,t,n){return X(e,`superprop_${t?"set":"get"}:${n||""}`,()=>{const s=[];let i;if(n)i=x(I(),f(n));else{const t=e.scope.generateUidIdentifier("prop");s.unshift(t),i=x(I(),f(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");s.push(t),i=l("=",i,f(t.name))}return o(s,i)})}(r,s,t),h=[];if(e.node.computed&&h.push(e.get("property").node),s){const e=n.node.right;h.push(e)}const d=u(f(c),h);i?(n.unshiftContainer("arguments",N()),e.replaceWith(x(d,f("call"))),p.push(n.get("arguments.0"))):s?n.replaceWith(d):a?(e.replaceWith(u(x(d,f("bind"),!1),[N()])),p.push(e.get("arguments.0"))):e.replaceWith(d)})}let D;return(p.length>0||!t)&&(D=function(e,t){return X(e,"this",n=>{if(!t||!J(e))return N();e.traverse(Y,{supers:new WeakSet,thisBinding:n})})}(r,a),(t||a&&J(r))&&(p.forEach(e=>{const t=e.isJSX()?y(D):f(D);t.loc=e.node.loc,e.replaceWith(t)}),t||(D=null))),{thisBinding:D,fnPath:e}}function J(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const Y=(0,r.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",f(n),f("this"))])))}});function X(e,t,n){const s="binding:"+t;let i=e.getData(s);if(!i){const r=e.scope.generateUidIdentifier(t);i=r.name,e.setData(s,i),e.scope.push({id:r,init:n(i)})}return i}const $=(0,r.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),H={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},2259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h.call(this,e)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;c(this,"boolean",t),p(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;c(this,"number",t),p(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;c(this,"string",t),p(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){c(this,"symbol",!0),p(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);const n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=r.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,f)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,n,s;(this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type)&&(null!=(n=e.mixins)&&n.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(s=e.implements)&&s.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)},t._variance=function(e){var t;const n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var s=n(2352),i=n(9638),r=n(1373),a=n(7942);const{isDeclareExportDeclaration:o,isStatement:l}=s;function c(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function p(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const t of n)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function u(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function h(e){if(e.declaration){const t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function d(e){this.space(),this.token("&",!1,e),this.space()}function f(e){this.space(),this.token("|",!1,e),this.space()}},2264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,n,i,a,o,l){const c=r[e.type];if(!c)return!1;const p=new s.default(n,t,i,a);if(l)return(null==o||!o[a.parentKey])&&p.visitQueue([a]);for(const t of c)if((null==o||!o[t])&&p.visit(e,t))return!0;return!1};var s=n(1602),i=(n(9709),n(2352));n(9578);const{VISITOR_KEYS:r}=i},2352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return F.default}});var i=n(5682),r=n(5004),a=n(9018),o=n(4568),l=n(2246);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var c=n(5958),p=n(1009),u=n(6049),h=n(985);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var d=n(8079);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var f=n(5279),m=n(2107),y=n(245),T=n(5299),g=n(2425),x=n(6211),S=n(2598),b=n(7932),E=n(5766),P=n(8125),A=n(5586),v=n(3437),C=n(7980);Object.keys(C).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))});var w=n(3422);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var I=n(7931),N=n(2234),k=n(5010),O=n(3017),D=n(6133),_=n(6744),L=n(2402),M=n(9198),F=n(4544),B=n(9793);Object.keys(B).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))});var j=n(4001),R=n(9564),U=n(6219),K=n(5333),V=n(7639),q=n(5237),W=n(1343),J=n(329),Y=n(9420),X=n(5109),$=n(3357);Object.keys($).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))});var H=n(8943),z=n(6616),G=n(3828),Q=n(2687),Z=n(9127),ee=n(9722),te=n(3847),ne=n(3908),se=n(7003),ie=n(3571),re=n(7591),ae=n(9246),oe=n(2457),le=n(4460),ce=n(1384),pe=n(983),ue=n(499),he=n(4965),de=n(7446),fe=n(3937),me=n(8960);Object.keys(me).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))});var ye=n(3762),Te=n(640);t.react={isReactComponent:i.default,isCompatTag:r.default,buildChildren:a.default},t.toSequenceExpression=Te.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")},2402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(8960),i=n(5279),r=n(7639);function a(e,t=e.key){let n;return"method"===e.kind?a.increment()+"":(n=(0,s.isIdentifier)(t)?t.name:(0,s.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,r.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}a.uid=0,a.increment=function(){return a.uid>=Number.MAX_SAFE_INTEGER?a.uid=0:a.uid++}},2425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!1,!0)};var s=n(5279)},2457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isImportDefaultSpecifier)(e)||(0,s.isIdentifier)(e.imported||e.exported,{name:"default"})};var s=n(8960)},2485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var s=n(826),i=n(4466);const r=t.smart=(0,i.default)(s.smart),a=t.statement=(0,i.default)(s.statement),o=t.statements=(0,i.default)(s.statements),l=t.expression=(0,i.default)(s.expression),c=t.program=(0,i.default)(s.program);t.default=Object.assign(r.bind(void 0),{smart:r,statement:a,statements:o,expression:l,program:c,ast:r.ast})},2598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const s=`${t}Comments`;return e[s]?"leading"===t?e[s]=n.concat(e[s]):e[s].push(...n):e[s]=n,e}},2687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=s.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const s=t[i[n]];if(Array.isArray(s)){if(s.includes(e))return!0}else if(s===e)return!0}return!1};var s=n(329)},2716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var s=n(2352);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:r,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:T}=s;function g(e,t){return e?(d(e)||y(e)?(g(e.object,t),e.computed&&g(e.property,t)):o(e)||a(e)?(g(e.left,t),g(e.right,t)):c(e)||m(e)?(t.hasCall=!0,g(e.callee,t)):p(e)?t.hasFunction=!0:u(e)&&(t.hasHelper=t.hasHelper||e.callee&&S(e.callee)),t):t}function x(e){return g(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function S(e){return!!e&&(d(e)?S(e.object)||S(e.property):u(e)?"require"===e.name||95===e.name.charCodeAt(0):c(e)?S(e.callee):!(!o(e)&&!a(e))&&(u(e.left)&&S(e.left)||S(e.right)))}function b(e){return h(e)||f(e)||r(e)||u(e)||d(e)}const E=t.nodes={AssignmentExpression(e){const t=x(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression:e=>p(e.left)||p(e.right)?2:0,Literal:e=>T(e)&&"use strict"===e.value?2:0,CallExpression:e=>p(e.callee)||S(e)?3:0,OptionalCallExpression:e=>p(e.callee)?3:0,VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let s=S(n.id)&&!b(n.init);if(!s&&n.init){const e=x(n.init);s=S(n.init)&&e.hasCall||e.hasFunction}if(s)return 3}return 0},IfStatement:e=>l(e.consequent)?3:0};E.ObjectProperty=E.ObjectTypeProperty=E.ObjectMethod=function(e,t){return t.properties[0]===e?1:0},E.ObjectTypeCallProperty=function(e,t){var n;return t.callProperties[0]!==e||null!=(n=t.properties)&&n.length?0:1},E.ObjectTypeIndexer=function(e,t){var n,s;return t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(s=t.callProperties)&&s.length?0:1},E.ObjectTypeInternalSlot=function(e,t){var n,s,i;return t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(s=t.callProperties)&&s.length||null!=(i=t.indexers)&&i.length?0:1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(i[e]||[]).forEach(function(e){const n=t?3:0;E[e]=()=>n})})},2802:function(e,t,n){var s;!function(e,t,n){"use strict";var s,i=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))c.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(s=a(t,i))||s.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:r(n,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=n}}),f=p({"umd:@jridgewell/resolve-uri"(e,n){n.exports=t}}),m={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(m,{AnyMap:()=>M,FlattenMap:()=>M,GREATEST_LOWER_BOUND:()=>q,LEAST_UPPER_BOUND:()=>V,TraceMap:()=>W,allGeneratedPositionsFor:()=>z,decodedMap:()=>ne,decodedMappings:()=>Y,eachMapping:()=>G,encodedMap:()=>se,encodedMappings:()=>J,generatedPositionFor:()=>H,isIgnored:()=>ee,originalPositionFor:()=>$,presortedDecodedMap:()=>te,sourceContentFor:()=>Z,traceSegment:()=>X}),e.exports=(s=m,u(r({},"__esModule",{value:!0}),s));var y=h(d()),T=h(f());var g=0,x=1,S=2,b=3,E=4,P=1,A=2;function v(e,t){for(let n=t;n<e.length;n++)if(!C(e[n]))return n;return e.length}function C(e){for(let t=1;t<e.length;t++)if(e[t][g]<e[t-1][g])return!1;return!0}function w(e,t){return t||(e=e.slice()),e.sort(I)}function I(e,t){return e[g]-t[g]}var N=!1;function k(e,t,n){for(let s=n+1;s<e.length&&e[s][g]===t;n=s++);return n}function O(e,t,n){for(let s=n-1;s>=0&&e[s][g]===t;n=s--);return n}function D(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _(e,t,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let o=0,l=e.length-1;if(s===i){if(t===r)return N=-1!==a&&e[a][g]===t,a;t>=r?o=-1===a?0:a:l=a}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=function(e,t,n,s){for(;n<=s;){const i=n+(s-n>>1),r=e[i][g]-t;if(0===r)return N=!0,i;r<0?n=i+1:s=i-1}return N=!1,n-1}(e,t,o,l)}function L(e){return"string"==typeof e?JSON.parse(e):e}var M=function(e,t){const n=L(e);if(!("sections"in n))return new W(n,t);const s=[],i=[],r=[],a=[],o=[];return F(n,t,s,i,r,a,o,0,0,1/0,1/0),te({version:3,file:n.file,names:a,sources:i,sourcesContent:r,mappings:s,ignoreList:o})};function F(e,t,n,s,i,r,a,o,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:h,offset:d}=u[e];let f=c,m=p;if(e+1<u.length){const t=u[e+1].offset;f=Math.min(c,o+t.line),f===c?m=Math.min(p,l+t.column):f<c&&(m=l+t.column)}B(h,t,n,s,i,r,a,o+d.line,l+d.column,f,m)}}function B(e,t,n,s,i,r,a,o,l,c,p){const u=L(e);if("sections"in u)return F(...arguments);const h=new W(u,t),d=s.length,f=r.length,m=Y(h),{resolvedSources:y,sourcesContent:T,ignoreList:P}=h;if(j(s,y),j(r,h.names),T)j(i,T);else for(let e=0;e<y.length;e++)i.push(null);if(P)for(let e=0;e<P.length;e++)a.push(P[e]+d);for(let e=0;e<m.length;e++){const t=o+e;if(t>c)return;const s=R(n,t),i=0===e?l:0,r=m[e];for(let e=0;e<r.length;e++){const n=r[e],a=i+n[g];if(t===c&&a>=p)return;if(1===n.length){s.push([a]);continue}const o=d+n[x],l=n[S],u=n[b];s.push(4===n.length?[a,o,l,u]:[a,o,l,u,f+n[E]])}}}function j(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function R(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}var U="`line` must be greater than 0 (lines start at line 1)",K="`column` must be greater than or equal to 0 (columns start at column 0)",V=-1,q=1,W=class{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const s=L(e),{version:i,file:r,names:a,sourceRoot:o,sources:l,sourcesContent:c}=s;this.version=i,this.file=r,this.names=a||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=c,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const p=function(e,t){const n=function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(e),s=t?t+"/":"";return e=>(0,T.default)(s+(e||""),n)}(t,o);this.resolvedSources=l.map(p);const{mappings:u}=s;if("string"==typeof u)this._encoded=u,this._decoded=void 0;else{if(!Array.isArray(u))throw s.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(s)}`);this._encoded=void 0,this._decoded=function(e,t){const n=v(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=v(e,s+1))e[s]=w(e[s],t);return e}(u,n)}this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function J(e){var t,n;return null!=(n=(t=e)._encoded)?n:t._encoded=(0,y.encode)(e._decoded)}function Y(e){var t;return(t=e)._decoded||(t._decoded=(0,y.decode)(e._encoded))}function X(e,t,n){const s=Y(e);if(t>=s.length)return null;const i=s[t],r=oe(i,e._decodedMemo,t,n,q);return-1===r?null:i[r]}function $(e,t){let{line:n,column:s,bias:i}=t;if(n--,n<0)throw new Error(U);if(s<0)throw new Error(K);const r=Y(e);if(n>=r.length)return re(null,null,null,null);const a=r[n],o=oe(a,e._decodedMemo,n,s,i||q);if(-1===o)return re(null,null,null,null);const l=a[o];if(1===l.length)return re(null,null,null,null);const{names:c,resolvedSources:p}=e;return re(p[l[x]],l[S]+1,l[b],5===l.length?c[l[E]]:null)}function H(e,t){const{source:n,line:s,column:i,bias:r}=t;return le(e,n,s,i,r||q,!1)}function z(e,t){const{source:n,line:s,column:i,bias:r}=t;return le(e,n,s,i,r||V,!0)}function G(e,t){const n=Y(e),{names:s,resolvedSources:i}=e;for(let e=0;e<n.length;e++){const r=n[e];for(let n=0;n<r.length;n++){const a=r[n],o=e+1,l=a[0];let c=null,p=null,u=null,h=null;1!==a.length&&(c=i[a[1]],p=a[2]+1,u=a[3]),5===a.length&&(h=s[a[4]]),t({generatedLine:o,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:h})}}}function Q(e,t){const{sources:n,resolvedSources:s}=e;let i=n.indexOf(t);return-1===i&&(i=s.indexOf(t)),i}function Z(e,t){const{sourcesContent:n}=e;if(null==n)return null;const s=Q(e,t);return-1===s?null:n[s]}function ee(e,t){const{ignoreList:n}=e;if(null==n)return!1;const s=Q(e,t);return-1!==s&&n.includes(s)}function te(e,t){const n=new W(ie(e,[]),t);return n._decoded=e.mappings,n}function ne(e){return ie(e,Y(e))}function se(e){return ie(e,J(e))}function ie(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 re(e,t,n,s){return{source:e,line:t,column:n,name:s}}function ae(e,t){return{line:e,column:t}}function oe(e,t,n,s,i){let r=_(e,s,t,n);return N?r=(i===V?k:O)(e,s,r):i===V&&r++,-1===r||r===e.length?-1:r}function le(e,t,n,s,i,r){var a,o;if(--n<0)throw new Error(U);if(s<0)throw new Error(K);const{sources:l,resolvedSources:c}=e;let p=l.indexOf(t);if(-1===p&&(p=c.indexOf(t)),-1===p)return r?[]:ae(null,null);const u=(a=e)._bySourceMemos||(a._bySourceMemos=l.map(D)),h=((o=e)._bySources||(o._bySources=function(e,t){const n=t.map(()=>[]);for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.length;e++){const i=s[e];if(1===i.length)continue;const r=i[x],a=i[S],o=i[b],l=n[r];(l[a]||(l[a]=[])).push([o,t,i[g]])}}for(let e=0;e<n.length;e++){const t=n[e];for(let e=0;e<t.length;e++){const n=t[e];n&&n.sort(I)}}return n}(Y(e),u)))[p][n];if(null==h)return r?[]:ae(null,null);const d=u[p];if(r)return function(e,t,n,s,i){let r=oe(e,t,n,s,q);if(N||i!==V||r++,-1===r||r===e.length)return[];const a=N?s:e[r][g];N||(r=O(e,a,r));const o=k(e,a,r),l=[];for(;r<=o;r++){const t=e[r];l.push(ae(t[P]+1,t[A]))}return l}(h,d,n,s,i);const f=oe(h,d,n,s,i);if(-1===f)return ae(null,null);const m=h[f];return ae(m[P]+1,m[A])}}(e=n.nmd(e),n(4424),n(4318)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},2847:(e,t,n)=>{n(9896);var s=n(6928);n(857),n(607)(),e.exports=function(e){s.dirname(e.logPath);var t=function(){var e={};function t(e){return(t=new Date).getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+"/"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()+"\t"+e;var t}return e.log=function(e){console.log(t(e))},e.info=e.log,e.warn=function(e){console.warn(t(e))},e.error=function(e){console.error(t(e))},e}(e.APP_NAME);if(e.disable)for(var n in t)("error"!=n&&"warn"!=n||!e.showErrorsAndWarnings)&&(t[n]=function(){});return t}},2861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=i.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n),this.tokenChar(93)):this.print(n),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){const n=this.enterDelimited(),s=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(s||t<i-1)&&(this.token(",",void 0,t),this.space());this.token(t),n()},t._params=function(e,t,n){this.print(e.typeParameters);const s=a.call(this,t,n);s&&this.sourceIdentifierName(s.name,s.pos),this.tokenChar(40),this._parameters(e.params,")");const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,n;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const s=e.params[0];if(!r(s)||s.typeAnnotation||s.optional||null!=(t=s.leadingComments)&&t.length||null!=(n=s.trailingComments)&&n.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var s=n(2352),i=n(1373);const{isIdentifier:r}=s;function a(e,t){let n,s=e;if(!s&&t){const e=t.type;"VariableDeclarator"===e?s=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?s=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(s=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(s=t.key)}if(s){var i,r;if("Identifier"===s.type)n={pos:null==(i=s.loc)?void 0:i.start,name:(null==(r=s.loc)?void 0:r.identifierName)||s.name};else if("PrivateName"===s.type){var a;n={pos:null==(a=s.loc)?void 0:a.start,name:"#"+s.id.name}}else if("StringLiteral"===s.type){var o;n={pos:null==(o=s.loc)?void 0:o.start,name:s.value}}return n}}},2882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(8991),i=n(5879),r=n(1e3);const a=(e,t)=>n=>e(t(n));function o(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:a(a(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a(e.red,e.bold),message:a(e.red,e.bold),reset:e.reset}}const l=o(s.createColors(!0)),c=o(s.createColors(!1));function p(e){return e?l:c}const u=new Set(["as","async","from","get","of","set"]),h=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/;let f;{const e=/^[a-z][\w-]*$/i,t=function(t,n,s){if("name"===t.type){if(r.isKeyword(t.value)||r.isStrictReservedWord(t.value,!0)||u.has(t.value))return"keyword";if(e.test(t.value)&&("<"===s[n-1]||"</"===s.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&d.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};f=function*(e){let n;for(;n=i.default.exec(e);){const s=i.matchToToken(n);yield{type:t(s,n.index,e),value:s.value}}}}function m(e){if(""===e)return"";const t=p(!0);let n="";for(const{type:s,value:i}of f(e))n+=s in t?i.split(h).map(e=>t[s](e)).join("\n"):i;return n}let y=!1;const T=/\r\n|[\n\r\u2028\u2029]/;function g(e,t,n={}){const i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&s.isColorSupported&&n.highlightCode,r=p(i),a=e.split(T),{start:o,end:l,markerLines:c}=function(e,t,n){const s=Object.assign({column:0,line:-1},e.start),i=Object.assign({},s,e.end),{linesAbove:r=2,linesBelow:a=3}=n||{},o=s.line,l=s.column,c=i.line,p=i.column;let u=Math.max(o-(r+1),0),h=Math.min(t.length,c+a);-1===o&&(u=0),-1===c&&(h=t.length);const d=c-o,f={};if(d)for(let e=0;e<=d;e++){const n=e+o;if(l)if(0===e){const e=t[n-1].length;f[n]=[l,e-l+1]}else if(e===d)f[n]=[0,p];else{const s=t[n-e].length;f[n]=[0,s]}else f[n]=!0}else f[o]=l===p?!l||[l,0]:[l,p-l];return{start:u,end:h,markerLines:f}}(t,a,n),u=t.start&&"number"==typeof t.start.column,h=String(l).length;let d=(i?m(e):e).split(T,l).slice(o,l).map((e,t)=>{const s=o+1+t,i=` ${` ${s}`.slice(-h)} |`,a=c[s],l=!c[s+1];if(a){let t="";if(Array.isArray(a)){const s=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),o=a[1]||1;t=["\n ",r.gutter(i.replace(/\d/g," "))," ",s,r.marker("^").repeat(o)].join(""),l&&n.message&&(t+=" "+r.message(n.message))}return[r.marker(">"),r.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${r.gutter(i)}${e.length>0?` ${e}`:""}`}).join("\n");return n.message&&!u&&(d=`${" ".repeat(h+1)}${n.message}\n${d}`),i?r.reset(d):d}t.codeFrameColumns=g,t.default=function(e,t,n,s={}){if(!y){y=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return g(e,{start:{column:n=Math.max(n,0),line:t}},s)},t.highlight=m},3017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,s.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name)),t};var s=n(8960),i=n(8079)},3019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const s=(0,r.explode)(t);if(s.enter||s.exit)throw new Error("Should not be used with enter/exit visitors.");!function e(t,r,l,c,p,u,h,d){if(!l)return;const f=d||i.NodePath.get({hub:h,parentPath:t,parent:r,container:c,listKey:u,key:p});a.setScope.call(f);const m=s[l.type];if(m){if(m.enter)for(const e of m.enter)e.call(n,f,n);if(m.exit)for(const e of m.exit)e.call(n,f,n)}if(f.shouldSkip)return;const y=o[l.type];if(null!=y&&y.length)for(const t of y){const n=l[t];if(n)if(Array.isArray(n))for(let s=0;s<n.length;s++)e(f,l,n[s],n,s,t);else e(f,l,n,l,t,null)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var s=n(2352),i=n(5781),r=n(4950),a=n(9578);const{VISITOR_KEYS:o}=s},3043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let r=0;for(let e=0;e<n.length;e++)/[^ \t]/.exec(n[e])&&(r=e);let a="";for(let e=0;e<n.length;e++){const t=n[e],s=0===e,i=e===n.length-1,o=e===r;let l=t.replace(/\t/g," ");s||(l=l.replace(/^ +/,"")),i||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,i.inherits)((0,s.stringLiteral)(a),e))};var s=n(8079),i=n(2352)},3097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=f,t._callRemovalHooks=u,t._markRemoved=d,t._remove=h,t._removeFromScope=p,t.remove=function(){var e;f.call(this),c.resync.call(this),u.call(this)||(null!=(e=this.opts)&&e.noScope||p.call(this),this.shareCommentsWithSiblings(),h.call(this)),d.call(this)};var s=n(7860),i=n(7411),r=n(2037),a=n(9709),o=n(2352),l=n(8345),c=n(9578);function p(){const e=o.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(e=>this.scope.removeBinding(e))}function u(){if(this.parentPath)for(const e of s.hooks)if(e(this,this.parentPath))return!0}function h(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):r._replaceWith.call(this,null)}function d(){var e;this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED,this.parent&&(null==(e=(0,i.getCachedPaths)(this))||e.delete(this.node)),this.node=null}function f(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=r,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;const n=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"]),s=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function r(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return r(e,t)||s.has(e)}function o(e){return i.has(e)}},3141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every(e=>o(e))?i?i(e):a(e):e.every(e=>l(e))&&r?r(e):void 0};var s=n(2352);const{createFlowUnionType:i,createTSUnionType:r,createUnionTypeAnnotation:a,isFlowType:o,isTSType:l}=s},3193:e=>{"use strict";e.exports=require("string_decoder")},3205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&n&&(t[e]=Array.from(new Set([].concat(t[e],n[e]).filter(Boolean))))}},3286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},n=o.ArrayExpression;return a(n.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},n=o.ArrayPattern;return a(n.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},n=o.ArrayTypeAnnotation;return a(n.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,n=!1){const s={type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null},i=o.ArrowFunctionExpression;return a(i.params,s,"params",e,1),a(i.body,s,"body",t,1),a(i.async,s,"async",n),s},t.assignmentExpression=function(e,t,n){const s={type:"AssignmentExpression",operator:e,left:t,right:n},i=o.AssignmentExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.assignmentPattern=function(e,t){const n={type:"AssignmentPattern",left:e,right:t},s=o.AssignmentPattern;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),n},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},n=o.AwaitExpression;return a(n.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},n=o.BigIntLiteral;return a(n.value,t,"value",e),t},t.binaryExpression=function(e,t,n){const s={type:"BinaryExpression",operator:e,left:t,right:n},i=o.BinaryExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.bindExpression=function(e,t){const n={type:"BindExpression",object:e,callee:t},s=o.BindExpression;return a(s.object,n,"object",e,1),a(s.callee,n,"callee",t,1),n},t.blockStatement=function(e,t=[]){const n={type:"BlockStatement",body:e,directives:t},s=o.BlockStatement;return a(s.body,n,"body",e,1),a(s.directives,n,"directives",t,1),n},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},n=o.BooleanLiteral;return a(n.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},n=o.BooleanLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},n=o.BreakStatement;return a(n.label,t,"label",e,1),t},t.callExpression=function(e,t){const n={type:"CallExpression",callee:e,arguments:t},s=o.CallExpression;return a(s.callee,n,"callee",e,1),a(s.arguments,n,"arguments",t,1),n},t.catchClause=function(e=null,t){const n={type:"CatchClause",param:e,body:t},s=o.CatchClause;return a(s.param,n,"param",e,1),a(s.body,n,"body",t,1),n},t.classAccessorProperty=function(e,t=null,n=null,s=null,i=!1,r=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:s,computed:i,static:r},c=o.ClassAccessorProperty;return a(c.key,l,"key",e,1),a(c.value,l,"value",t,1),a(c.typeAnnotation,l,"typeAnnotation",n,1),a(c.decorators,l,"decorators",s,1),a(c.computed,l,"computed",i),a(c.static,l,"static",r),l},t.classBody=function(e){const t={type:"ClassBody",body:e},n=o.ClassBody;return a(n.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,n,s=null){const i={type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:s},r=o.ClassDeclaration;return a(r.id,i,"id",e,1),a(r.superClass,i,"superClass",t,1),a(r.body,i,"body",n,1),a(r.decorators,i,"decorators",s,1),i},t.classExpression=function(e=null,t=null,n,s=null){const i={type:"ClassExpression",id:e,superClass:t,body:n,decorators:s},r=o.ClassExpression;return a(r.id,i,"id",e,1),a(r.superClass,i,"superClass",t,1),a(r.body,i,"body",n,1),a(r.decorators,i,"decorators",s,1),i},t.classImplements=function(e,t=null){const n={type:"ClassImplements",id:e,typeParameters:t},s=o.ClassImplements;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.classMethod=function(e="method",t,n,s,i=!1,r=!1,l=!1,c=!1){const p={type:"ClassMethod",kind:e,key:t,params:n,body:s,computed:i,static:r,generator:l,async:c},u=o.ClassMethod;return a(u.kind,p,"kind",e),a(u.key,p,"key",t,1),a(u.params,p,"params",n,1),a(u.body,p,"body",s,1),a(u.computed,p,"computed",i),a(u.static,p,"static",r),a(u.generator,p,"generator",l),a(u.async,p,"async",c),p},t.classPrivateMethod=function(e="method",t,n,s,i=!1){const r={type:"ClassPrivateMethod",kind:e,key:t,params:n,body:s,static:i},l=o.ClassPrivateMethod;return a(l.kind,r,"kind",e),a(l.key,r,"key",t,1),a(l.params,r,"params",n,1),a(l.body,r,"body",s,1),a(l.static,r,"static",i),r},t.classPrivateProperty=function(e,t=null,n=null,s=!1){const i={type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:s},r=o.ClassPrivateProperty;return a(r.key,i,"key",e,1),a(r.value,i,"value",t,1),a(r.decorators,i,"decorators",n,1),a(r.static,i,"static",s),i},t.classProperty=function(e,t=null,n=null,s=null,i=!1,r=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:s,computed:i,static:r},c=o.ClassProperty;return a(c.key,l,"key",e,1),a(c.value,l,"value",t,1),a(c.typeAnnotation,l,"typeAnnotation",n,1),a(c.decorators,l,"decorators",s,1),a(c.computed,l,"computed",i),a(c.static,l,"static",r),l},t.conditionalExpression=function(e,t,n){const s={type:"ConditionalExpression",test:e,consequent:t,alternate:n},i=o.ConditionalExpression;return a(i.test,s,"test",e,1),a(i.consequent,s,"consequent",t,1),a(i.alternate,s,"alternate",n,1),s},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},n=o.ContinueStatement;return a(n.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},n=o.DecimalLiteral;return a(n.value,t,"value",e),t},t.declareClass=function(e,t=null,n=null,s){const i={type:"DeclareClass",id:e,typeParameters:t,extends:n,body:s},r=o.DeclareClass;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.declareExportAllDeclaration=function(e,t=null){const n={type:"DeclareExportAllDeclaration",source:e,attributes:t},s=o.DeclareExportAllDeclaration;return a(s.source,n,"source",e,1),a(s.attributes,n,"attributes",t,1),n},t.declareExportDeclaration=function(e=null,t=null,n=null,s=null){const i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n,attributes:s},r=o.DeclareExportDeclaration;return a(r.declaration,i,"declaration",e,1),a(r.specifiers,i,"specifiers",t,1),a(r.source,i,"source",n,1),a(r.attributes,i,"attributes",s,1),i},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},n=o.DeclareFunction;return a(n.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,n=null,s){const i={type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:s},r=o.DeclareInterface;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.declareModule=function(e,t,n=null){const s={type:"DeclareModule",id:e,body:t,kind:n},i=o.DeclareModule;return a(i.id,s,"id",e,1),a(i.body,s,"body",t,1),a(i.kind,s,"kind",n),s},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},n=o.DeclareModuleExports;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,n=null){const s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n},i=o.DeclareOpaqueType;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.supertype,s,"supertype",n,1),s},t.declareTypeAlias=function(e,t=null,n){const s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:n},i=o.DeclareTypeAlias;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.right,s,"right",n,1),s},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},n=o.DeclareVariable;return a(n.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},n=o.DeclaredPredicate;return a(n.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},n=o.Decorator;return a(n.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},n=o.Directive;return a(n.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},n=o.DirectiveLiteral;return a(n.value,t,"value",e),t},t.doExpression=function(e,t=!1){const n={type:"DoExpression",body:e,async:t},s=o.DoExpression;return a(s.body,n,"body",e,1),a(s.async,n,"async",t),n},t.doWhileStatement=function(e,t){const n={type:"DoWhileStatement",test:e,body:t},s=o.DoWhileStatement;return a(s.test,n,"test",e,1),a(s.body,n,"body",t,1),n},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumBooleanBody;return a(n.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},n=o.EnumBooleanMember;return a(n.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const n={type:"EnumDeclaration",id:e,body:t},s=o.EnumDeclaration;return a(s.id,n,"id",e,1),a(s.body,n,"body",t,1),n},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},n=o.EnumDefaultedMember;return a(n.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumNumberBody;return a(n.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const n={type:"EnumNumberMember",id:e,init:t},s=o.EnumNumberMember;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},n=o.EnumStringBody;return a(n.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const n={type:"EnumStringMember",id:e,init:t},s=o.EnumStringMember;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},n=o.EnumSymbolBody;return a(n.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},n=o.ExportAllDeclaration;return a(n.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},n=o.ExportDefaultDeclaration;return a(n.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},n=o.ExportDefaultSpecifier;return a(n.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],n=null){const s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n},i=o.ExportNamedDeclaration;return a(i.declaration,s,"declaration",e,1),a(i.specifiers,s,"specifiers",t,1),a(i.source,s,"source",n,1),s},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},n=o.ExportNamespaceSpecifier;return a(n.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const n={type:"ExportSpecifier",local:e,exported:t},s=o.ExportSpecifier;return a(s.local,n,"local",e,1),a(s.exported,n,"exported",t,1),n},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},n=o.ExpressionStatement;return a(n.expression,t,"expression",e,1),t},t.file=function(e,t=null,n=null){const s={type:"File",program:e,comments:t,tokens:n},i=o.File;return a(i.program,s,"program",e,1),a(i.comments,s,"comments",t,1),a(i.tokens,s,"tokens",n),s},t.forInStatement=function(e,t,n){const s={type:"ForInStatement",left:e,right:t,body:n},i=o.ForInStatement;return a(i.left,s,"left",e,1),a(i.right,s,"right",t,1),a(i.body,s,"body",n,1),s},t.forOfStatement=function(e,t,n,s=!1){const i={type:"ForOfStatement",left:e,right:t,body:n,await:s},r=o.ForOfStatement;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),a(r.body,i,"body",n,1),a(r.await,i,"await",s),i},t.forStatement=function(e=null,t=null,n=null,s){const i={type:"ForStatement",init:e,test:t,update:n,body:s},r=o.ForStatement;return a(r.init,i,"init",e,1),a(r.test,i,"test",t,1),a(r.update,i,"update",n,1),a(r.body,i,"body",s,1),i},t.functionDeclaration=function(e=null,t,n,s=!1,i=!1){const r={type:"FunctionDeclaration",id:e,params:t,body:n,generator:s,async:i},l=o.FunctionDeclaration;return a(l.id,r,"id",e,1),a(l.params,r,"params",t,1),a(l.body,r,"body",n,1),a(l.generator,r,"generator",s),a(l.async,r,"async",i),r},t.functionExpression=function(e=null,t,n,s=!1,i=!1){const r={type:"FunctionExpression",id:e,params:t,body:n,generator:s,async:i},l=o.FunctionExpression;return a(l.id,r,"id",e,1),a(l.params,r,"params",t,1),a(l.body,r,"body",n,1),a(l.generator,r,"generator",s),a(l.async,r,"async",i),r},t.functionTypeAnnotation=function(e=null,t,n=null,s){const i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:s},r=o.FunctionTypeAnnotation;return a(r.typeParameters,i,"typeParameters",e,1),a(r.params,i,"params",t,1),a(r.rest,i,"rest",n,1),a(r.returnType,i,"returnType",s,1),i},t.functionTypeParam=function(e=null,t){const n={type:"FunctionTypeParam",name:e,typeAnnotation:t},s=o.FunctionTypeParam;return a(s.name,n,"name",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.genericTypeAnnotation=function(e,t=null){const n={type:"GenericTypeAnnotation",id:e,typeParameters:t},s=o.GenericTypeAnnotation;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.identifier=function(e){const t={type:"Identifier",name:e},n=o.Identifier;return a(n.name,t,"name",e),t},t.ifStatement=function(e,t,n=null){const s={type:"IfStatement",test:e,consequent:t,alternate:n},i=o.IfStatement;return a(i.test,s,"test",e,1),a(i.consequent,s,"consequent",t,1),a(i.alternate,s,"alternate",n,1),s},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const n={type:"ImportAttribute",key:e,value:t},s=o.ImportAttribute;return a(s.key,n,"key",e,1),a(s.value,n,"value",t,1),n},t.importDeclaration=function(e,t){const n={type:"ImportDeclaration",specifiers:e,source:t},s=o.ImportDeclaration;return a(s.specifiers,n,"specifiers",e,1),a(s.source,n,"source",t,1),n},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},n=o.ImportDefaultSpecifier;return a(n.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const n={type:"ImportExpression",source:e,options:t},s=o.ImportExpression;return a(s.source,n,"source",e,1),a(s.options,n,"options",t,1),n},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},n=o.ImportNamespaceSpecifier;return a(n.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const n={type:"ImportSpecifier",local:e,imported:t},s=o.ImportSpecifier;return a(s.local,n,"local",e,1),a(s.imported,n,"imported",t,1),n},t.indexedAccessType=function(e,t){const n={type:"IndexedAccessType",objectType:e,indexType:t},s=o.IndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,n=null,s){const i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:s},r=o.InterfaceDeclaration;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.interfaceExtends=function(e,t=null){const n={type:"InterfaceExtends",id:e,typeParameters:t},s=o.InterfaceExtends;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.interfaceTypeAnnotation=function(e=null,t){const n={type:"InterfaceTypeAnnotation",extends:e,body:t},s=o.InterfaceTypeAnnotation;return a(s.extends,n,"extends",e,1),a(s.body,n,"body",t,1),n},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},n=o.InterpreterDirective;return a(n.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},n=o.IntersectionTypeAnnotation;return a(n.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const n={type:"JSXAttribute",name:e,value:t},s=o.JSXAttribute;return a(s.name,n,"name",e,1),a(s.value,n,"value",t,1),n},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},n=o.JSXClosingElement;return a(n.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,n,s=null){const i={type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:s},r=o.JSXElement;return a(r.openingElement,i,"openingElement",e,1),a(r.closingElement,i,"closingElement",t,1),a(r.children,i,"children",n,1),a(r.selfClosing,i,"selfClosing",s),i},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},n=o.JSXExpressionContainer;return a(n.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,n){const s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:n},i=o.JSXFragment;return a(i.openingFragment,s,"openingFragment",e,1),a(i.closingFragment,s,"closingFragment",t,1),a(i.children,s,"children",n,1),s},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},n=o.JSXIdentifier;return a(n.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const n={type:"JSXMemberExpression",object:e,property:t},s=o.JSXMemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),n},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const n={type:"JSXNamespacedName",namespace:e,name:t},s=o.JSXNamespacedName;return a(s.namespace,n,"namespace",e,1),a(s.name,n,"name",t,1),n},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,n=!1){const s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n},i=o.JSXOpeningElement;return a(i.name,s,"name",e,1),a(i.attributes,s,"attributes",t,1),a(i.selfClosing,s,"selfClosing",n),s},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},n=o.JSXSpreadAttribute;return a(n.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},n=o.JSXSpreadChild;return a(n.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},n=o.JSXText;return a(n.value,t,"value",e),t},t.labeledStatement=function(e,t){const n={type:"LabeledStatement",label:e,body:t},s=o.LabeledStatement;return a(s.label,n,"label",e,1),a(s.body,n,"body",t,1),n},t.logicalExpression=function(e,t,n){const s={type:"LogicalExpression",operator:e,left:t,right:n},i=o.LogicalExpression;return a(i.operator,s,"operator",e),a(i.left,s,"left",t,1),a(i.right,s,"right",n,1),s},t.memberExpression=function(e,t,n=!1,s=null){const i={type:"MemberExpression",object:e,property:t,computed:n,optional:s},r=o.MemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),a(r.computed,i,"computed",n),a(r.optional,i,"optional",s),i},t.metaProperty=function(e,t){const n={type:"MetaProperty",meta:e,property:t},s=o.MetaProperty;return a(s.meta,n,"meta",e,1),a(s.property,n,"property",t,1),n},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},n=o.ModuleExpression;return a(n.body,t,"body",e,1),t},t.newExpression=function(e,t){const n={type:"NewExpression",callee:e,arguments:t},s=o.NewExpression;return a(s.callee,n,"callee",e,1),a(s.arguments,n,"arguments",t,1),n},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},n=o.NullableTypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},n=o.NumberLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},n=o.ObjectExpression;return a(n.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,n,s,i=!1,r=!1,l=!1){const c={type:"ObjectMethod",kind:e,key:t,params:n,body:s,computed:i,generator:r,async:l},p=o.ObjectMethod;return a(p.kind,c,"kind",e),a(p.key,c,"key",t,1),a(p.params,c,"params",n,1),a(p.body,c,"body",s,1),a(p.computed,c,"computed",i),a(p.generator,c,"generator",r),a(p.async,c,"async",l),c},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},n=o.ObjectPattern;return a(n.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,n=!1,s=!1,i=null){const r={type:"ObjectProperty",key:e,value:t,computed:n,shorthand:s,decorators:i},l=o.ObjectProperty;return a(l.key,r,"key",e,1),a(l.value,r,"value",t,1),a(l.computed,r,"computed",n),a(l.shorthand,r,"shorthand",s),a(l.decorators,r,"decorators",i,1),r},t.objectTypeAnnotation=function(e,t=[],n=[],s=[],i=!1){const r={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:s,exact:i},l=o.ObjectTypeAnnotation;return a(l.properties,r,"properties",e,1),a(l.indexers,r,"indexers",t,1),a(l.callProperties,r,"callProperties",n,1),a(l.internalSlots,r,"internalSlots",s,1),a(l.exact,r,"exact",i),r},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},n=o.ObjectTypeCallProperty;return a(n.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,n,s=null){const i={type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:s,static:null},r=o.ObjectTypeIndexer;return a(r.id,i,"id",e,1),a(r.key,i,"key",t,1),a(r.value,i,"value",n,1),a(r.variance,i,"variance",s,1),i},t.objectTypeInternalSlot=function(e,t,n,s,i){const r={type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:s,method:i},l=o.ObjectTypeInternalSlot;return a(l.id,r,"id",e,1),a(l.value,r,"value",t,1),a(l.optional,r,"optional",n),a(l.static,r,"static",s),a(l.method,r,"method",i),r},t.objectTypeProperty=function(e,t,n=null){const s={type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null},i=o.ObjectTypeProperty;return a(i.key,s,"key",e,1),a(i.value,s,"value",t,1),a(i.variance,s,"variance",n,1),s},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},n=o.ObjectTypeSpreadProperty;return a(n.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,n=null,s){const i={type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:s},r=o.OpaqueType;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.supertype,i,"supertype",n,1),a(r.impltype,i,"impltype",s,1),i},t.optionalCallExpression=function(e,t,n){const s={type:"OptionalCallExpression",callee:e,arguments:t,optional:n},i=o.OptionalCallExpression;return a(i.callee,s,"callee",e,1),a(i.arguments,s,"arguments",t,1),a(i.optional,s,"optional",n),s},t.optionalIndexedAccessType=function(e,t){const n={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},s=o.OptionalIndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.optionalMemberExpression=function(e,t,n=!1,s){const i={type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:s},r=o.OptionalMemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),a(r.computed,i,"computed",n),a(r.optional,i,"optional",s),i},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},n=o.ParenthesizedExpression;return a(n.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},n=o.PipelineBareFunction;return a(n.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},n=o.PipelineTopicExpression;return a(n.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const n={type:"Placeholder",expectedNode:e,name:t},s=o.Placeholder;return a(s.expectedNode,n,"expectedNode",e),a(s.name,n,"name",t,1),n},t.privateName=function(e){const t={type:"PrivateName",id:e},n=o.PrivateName;return a(n.id,t,"id",e,1),t},t.program=function(e,t=[],n="script",s=null){const i={type:"Program",body:e,directives:t,sourceType:n,interpreter:s},r=o.Program;return a(r.body,i,"body",e,1),a(r.directives,i,"directives",t,1),a(r.sourceType,i,"sourceType",n),a(r.interpreter,i,"interpreter",s,1),i},t.qualifiedTypeIdentifier=function(e,t){const n={type:"QualifiedTypeIdentifier",id:e,qualification:t},s=o.QualifiedTypeIdentifier;return a(s.id,n,"id",e,1),a(s.qualification,n,"qualification",t,1),n},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},n=o.RecordExpression;return a(n.properties,t,"properties",e,1),t},t.regExpLiteral=c,t.regexLiteral=function(e,t=""){return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),c(e,t)},t.restElement=p,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),p(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},n=o.ReturnStatement;return a(n.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},n=o.SequenceExpression;return a(n.expressions,t,"expressions",e,1),t},t.spreadElement=u,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),u(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},n=o.StaticBlock;return a(n.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},n=o.StringLiteral;return a(n.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},n=o.StringLiteralTypeAnnotation;return a(n.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const n={type:"SwitchCase",test:e,consequent:t},s=o.SwitchCase;return a(s.test,n,"test",e,1),a(s.consequent,n,"consequent",t,1),n},t.switchStatement=function(e,t){const n={type:"SwitchStatement",discriminant:e,cases:t},s=o.SwitchStatement;return a(s.discriminant,n,"discriminant",e,1),a(s.cases,n,"cases",t,1),n},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const n={type:"TaggedTemplateExpression",tag:e,quasi:t},s=o.TaggedTemplateExpression;return a(s.tag,n,"tag",e,1),a(s.quasi,n,"quasi",t,1),n},t.templateElement=function(e,t=!1){const n={type:"TemplateElement",value:e,tail:t},s=o.TemplateElement;return a(s.value,n,"value",e),a(s.tail,n,"tail",t),n},t.templateLiteral=function(e,t){const n={type:"TemplateLiteral",quasis:e,expressions:t},s=o.TemplateLiteral;return a(s.quasis,n,"quasis",e,1),a(s.expressions,n,"expressions",t,1),n},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},n=o.ThrowStatement;return a(n.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,n=null){const s={type:"TryStatement",block:e,handler:t,finalizer:n},i=o.TryStatement;return a(i.block,s,"block",e,1),a(i.handler,s,"handler",t,1),a(i.finalizer,s,"finalizer",n,1),s},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},n=o.TSArrayType;return a(n.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const n={type:"TSAsExpression",expression:e,typeAnnotation:t},s=o.TSAsExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,n=null){const s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSCallSignatureDeclaration;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSConditionalType=t.tsConditionalType=function(e,t,n,s){const i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:s},r=o.TSConditionalType;return a(r.checkType,i,"checkType",e,1),a(r.extendsType,i,"extendsType",t,1),a(r.trueType,i,"trueType",n,1),a(r.falseType,i,"falseType",s,1),i},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,n=null){const s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSConstructSignatureDeclaration;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSConstructorType=t.tsConstructorType=function(e=null,t,n=null){const s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSConstructorType;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,n,s=null){const i={type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:s},r=o.TSDeclareFunction;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.params,i,"params",n,1),a(r.returnType,i,"returnType",s,1),i},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,n=null,s,i=null){const r={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:s,returnType:i},l=o.TSDeclareMethod;return a(l.decorators,r,"decorators",e,1),a(l.key,r,"key",t,1),a(l.typeParameters,r,"typeParameters",n,1),a(l.params,r,"params",s,1),a(l.returnType,r,"returnType",i,1),r},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},n=o.TSEnumBody;return a(n.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const n={type:"TSEnumDeclaration",id:e,members:t},s=o.TSEnumDeclaration;return a(s.id,n,"id",e,1),a(s.members,n,"members",t,1),n},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const n={type:"TSEnumMember",id:e,initializer:t},s=o.TSEnumMember;return a(s.id,n,"id",e,1),a(s.initializer,n,"initializer",t,1),n},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},n=o.TSExportAssignment;return a(n.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const n={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},s=o.TSExpressionWithTypeArguments;return a(s.expression,n,"expression",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},n=o.TSExternalModuleReference;return a(n.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,n=null){const s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n},i=o.TSFunctionType;return a(i.typeParameters,s,"typeParameters",e,1),a(i.parameters,s,"parameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const n={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},s=o.TSImportEqualsDeclaration;return a(s.id,n,"id",e,1),a(s.moduleReference,n,"moduleReference",t,1),n},t.tSImportType=t.tsImportType=function(e,t=null,n=null){const s={type:"TSImportType",argument:e,qualifier:t,typeParameters:n},i=o.TSImportType;return a(i.argument,s,"argument",e,1),a(i.qualifier,s,"qualifier",t,1),a(i.typeParameters,s,"typeParameters",n,1),s},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const n={type:"TSIndexSignature",parameters:e,typeAnnotation:t},s=o.TSIndexSignature;return a(s.parameters,n,"parameters",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const n={type:"TSIndexedAccessType",objectType:e,indexType:t},s=o.TSIndexedAccessType;return a(s.objectType,n,"objectType",e,1),a(s.indexType,n,"indexType",t,1),n},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},n=o.TSInferType;return a(n.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const n={type:"TSInstantiationExpression",expression:e,typeParameters:t},s=o.TSInstantiationExpression;return a(s.expression,n,"expression",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},n=o.TSInterfaceBody;return a(n.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,n=null,s){const i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:s},r=o.TSInterfaceDeclaration;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.extends,i,"extends",n,1),a(r.body,i,"body",s,1),i},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},n=o.TSIntersectionType;return a(n.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},n=o.TSLiteralType;return a(n.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,n=null){const s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n},i=o.TSMappedType;return a(i.typeParameter,s,"typeParameter",e,1),a(i.typeAnnotation,s,"typeAnnotation",t,1),a(i.nameType,s,"nameType",n,1),s},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,n,s=null){const i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:s,kind:null},r=o.TSMethodSignature;return a(r.key,i,"key",e,1),a(r.typeParameters,i,"typeParameters",t,1),a(r.parameters,i,"parameters",n,1),a(r.typeAnnotation,i,"typeAnnotation",s,1),i},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},n=o.TSModuleBlock;return a(n.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const n={type:"TSModuleDeclaration",id:e,body:t,kind:null},s=o.TSModuleDeclaration;return a(s.id,n,"id",e,1),a(s.body,n,"body",t,1),n},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,n=!1){const s={type:"TSNamedTupleMember",label:e,elementType:t,optional:n},i=o.TSNamedTupleMember;return a(i.label,s,"label",e,1),a(i.elementType,s,"elementType",t,1),a(i.optional,s,"optional",n),s},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},n=o.TSNamespaceExportDeclaration;return a(n.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},n=o.TSNonNullExpression;return a(n.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},n=o.TSOptionalType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},n=o.TSParameterProperty;return a(n.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},n=o.TSParenthesizedType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const n={type:"TSPropertySignature",key:e,typeAnnotation:t},s=o.TSPropertySignature;return a(s.key,n,"key",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const n={type:"TSQualifiedName",left:e,right:t},s=o.TSQualifiedName;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),n},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},n=o.TSRestType;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const n={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},s=o.TSSatisfiesExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const n={type:"TSTemplateLiteralType",quasis:e,types:t},s=o.TSTemplateLiteralType;return a(s.quasis,n,"quasis",e,1),a(s.types,n,"types",t,1),n},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},n=o.TSTupleType;return a(n.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,n){const s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n},i=o.TSTypeAliasDeclaration;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},n=o.TSTypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const n={type:"TSTypeAssertion",typeAnnotation:e,expression:t},s=o.TSTypeAssertion;return a(s.typeAnnotation,n,"typeAnnotation",e,1),a(s.expression,n,"expression",t,1),n},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},n=o.TSTypeLiteral;return a(n.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){const n={type:"TSTypeOperator",typeAnnotation:e,operator:t},s=o.TSTypeOperator;return a(s.typeAnnotation,n,"typeAnnotation",e,1),a(s.operator,n,"operator",t),n},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,n){const s={type:"TSTypeParameter",constraint:e,default:t,name:n},i=o.TSTypeParameter;return a(i.constraint,s,"constraint",e,1),a(i.default,s,"default",t,1),a(i.name,s,"name",n),s},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},n=o.TSTypeParameterDeclaration;return a(n.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},n=o.TSTypeParameterInstantiation;return a(n.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,n=null){const s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n},i=o.TSTypePredicate;return a(i.parameterName,s,"parameterName",e,1),a(i.typeAnnotation,s,"typeAnnotation",t,1),a(i.asserts,s,"asserts",n),s},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const n={type:"TSTypeQuery",exprName:e,typeParameters:t},s=o.TSTypeQuery;return a(s.exprName,n,"exprName",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const n={type:"TSTypeReference",typeName:e,typeParameters:t},s=o.TSTypeReference;return a(s.typeName,n,"typeName",e,1),a(s.typeParameters,n,"typeParameters",t,1),n},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},n=o.TSUnionType;return a(n.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},n=o.TupleExpression;return a(n.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},n=o.TupleTypeAnnotation;return a(n.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,n){const s={type:"TypeAlias",id:e,typeParameters:t,right:n},i=o.TypeAlias;return a(i.id,s,"id",e,1),a(i.typeParameters,s,"typeParameters",t,1),a(i.right,s,"right",n,1),s},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},n=o.TypeAnnotation;return a(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const n={type:"TypeCastExpression",expression:e,typeAnnotation:t},s=o.TypeCastExpression;return a(s.expression,n,"expression",e,1),a(s.typeAnnotation,n,"typeAnnotation",t,1),n},t.typeParameter=function(e=null,t=null,n=null){const s={type:"TypeParameter",bound:e,default:t,variance:n,name:null},i=o.TypeParameter;return a(i.bound,s,"bound",e,1),a(i.default,s,"default",t,1),a(i.variance,s,"variance",n,1),s},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},n=o.TypeParameterDeclaration;return a(n.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},n=o.TypeParameterInstantiation;return a(n.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},n=o.TypeofTypeAnnotation;return a(n.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,n=!0){const s={type:"UnaryExpression",operator:e,argument:t,prefix:n},i=o.UnaryExpression;return a(i.operator,s,"operator",e),a(i.argument,s,"argument",t,1),a(i.prefix,s,"prefix",n),s},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},n=o.UnionTypeAnnotation;return a(n.types,t,"types",e,1),t},t.updateExpression=function(e,t,n=!1){const s={type:"UpdateExpression",operator:e,argument:t,prefix:n},i=o.UpdateExpression;return a(i.operator,s,"operator",e),a(i.argument,s,"argument",t,1),a(i.prefix,s,"prefix",n),s},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},n=o.V8IntrinsicIdentifier;return a(n.name,t,"name",e),t},t.variableDeclaration=function(e,t){const n={type:"VariableDeclaration",kind:e,declarations:t},s=o.VariableDeclaration;return a(s.kind,n,"kind",e),a(s.declarations,n,"declarations",t,1),n},t.variableDeclarator=function(e,t=null){const n={type:"VariableDeclarator",id:e,init:t},s=o.VariableDeclarator;return a(s.id,n,"id",e,1),a(s.init,n,"init",t,1),n},t.variance=function(e){const t={type:"Variance",kind:e},n=o.Variance;return a(n.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const n={type:"WhileStatement",test:e,body:t},s=o.WhileStatement;return a(s.test,n,"test",e,1),a(s.body,n,"body",t,1),n},t.withStatement=function(e,t){const n={type:"WithStatement",object:e,body:t},s=o.WithStatement;return a(s.object,n,"object",e,1),a(s.body,n,"body",t,1),n},t.yieldExpression=function(e=null,t=!1){const n={type:"YieldExpression",argument:e,delegate:t},s=o.YieldExpression;return a(s.argument,n,"argument",e,1),a(s.delegate,n,"delegate",t),n};var s=n(7446),i=n(3762),r=n(7596);const{validateInternal:a}=s,{NODE_FIELDS:o}=r;function l(e){const t={type:"NumericLiteral",value:e},n=o.NumericLiteral;return a(n.value,t,"value",e),t}function c(e,t=""){const n={type:"RegExpLiteral",pattern:e,flags:t},s=o.RegExpLiteral;return a(s.pattern,n,"pattern",e),a(s.flags,n,"flags",t),n}function p(e){const t={type:"RestElement",argument:e},n=o.RestElement;return a(n.argument,t,"argument",e,1),t}function u(e){const t={type:"SpreadElement",argument:e},n=o.SpreadElement;return a(n.argument,t,"argument",e,1),t}},3357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:s,exit:r}=t;i(e,s,r,n,[])};var s=n(9793);function i(e,t,n,r,a){const o=s.VISITOR_KEYS[e.type];if(o){t&&t(e,a,r);for(const s of o){const o=e[s];if(Array.isArray(o))for(let l=0;l<o.length;l++){const c=o[l];c&&(a.push({node:e,key:s,index:l}),i(c,t,n,r,a),a.pop())}else o&&(a.push({node:e,key:s}),i(o,t,n,r,a),a.pop())}n&&n(e,a,r)}}},3383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){r(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const s=this.getSibling(this.key-1),i=this.getSibling(this.key+1),r=Boolean(s.node),o=Boolean(i.node);r&&(n&&s.addComments("trailing",a(n,s.node.trailingComments)),t&&!o&&s.addComments("trailing",t)),o&&(t&&i.addComments("leading",a(t,i.node.leadingComments)),n&&!r&&i.addComments("leading",n))};var s=n(2352);const{addComment:i,addComments:r}=s;function a(e,t){if(null==t||!t.length)return e;const n=new Set(t);return e.filter(e=>!n.has(e))}},3422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],s=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],r=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],a=t.BOOLEAN_BINARY_OPERATORS=[...r,...s],o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...o,...a,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...o.map(e=>e+"="),...n.map(e=>e+"=")],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],p=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...p],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},3437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var s=n(3422)},3438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{metadata:a,names:o}=function(e,t,n){let s="BABEL_TPL$";const r=t.join("");do{s="$$"+s}while(r.includes(s));const{names:a,code:o}=function(e,t){const n=[];let s=e[0];for(let i=1;i<e.length;i++){const r=`${t}${i-1}`;n.push(r),s+=r+e[i]}return{names:n,code:s}}(t,s);return{metadata:(0,i.default)(e,e.code(o),{parser:n.parser,placeholderWhitelist:new Set(a.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders}),names:a}}(e,t,n);return t=>{const n={};return t.forEach((e,t)=>{n[o[t]]=e}),t=>{const i=(0,s.normalizeReplacements)(t);return i&&Object.keys(i).forEach(e=>{if(hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,r.default)(a,i?Object.assign(i,n):n))}}};var s=n(9815),i=n(4858),r=n(7427)},3571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const n=s.PLACEHOLDERS_ALIAS[e];return!(null==n||!n.includes(t))};var s=n(9793)},3599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:n,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=n,this.kind=s,"var"!==s&&"hoisted"!==s||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:s}=e;n;({parentPath:n,key:s}=n)){if(n.isFunctionParent())return!1;if("left"===s&&n.isForXStatement()||t&&"body"===s&&n.isLoop())return!0}return!1}(n)||this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},3762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s="",i=e){if(n.has(i))return;n.add(i);const{internal:r,trace:a}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const s=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(e=>` at ${e}`).join("\n")}}();r||console.warn(`${s}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${a}`)};const n=new Set},3828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,s.default)(t,n):!n&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,r.default)(t.expectedNode,e))};var s=n(6616),i=n(4460),r=n(3571),a=n(9793)},3847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isVariableDeclaration)(e)&&("var"!==e.kind||e[i])};var s=n(8960),i=Symbol.for("var used to be block scoped")},3874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(2352),i=s,r=n(2264),a=n(4950),o=n(9578);const{getAssignmentIdentifiers:l}=i,c={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},n){const{name:s}=e.key;var i;!e.shorthand||s!==n.oldName&&s!==n.newName||t.getBindingIdentifier(s)!==n.binding.identifier||(e.shorthand=!1,null!=(i=e.extra)&&i.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(s.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:n}=this,{scope:i,path:o}=e,l=o.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());l&&l.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(l);const p=arguments[0]||i.block,u={discriminant:!0};s.isMethod(p)&&(p.computed&&(u.key=!0),s.isObjectMethod(p)||(u.decorators=!0)),(0,r.traverseNode)(p,(0,a.explode)(c),i,this,i.path,u),arguments[0]||(i.removeOwnBinding(t),i.bindings[n]=e,this.binding.identifier.name=n),l&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},3908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!s.VISITOR_KEYS[e.type])};var s=n(9793)},3937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,s.default)(e,n,t)};var s=n(4965)},3962:(e,t)=>{"use strict";function n(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,n)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},3973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=c,t.readInt=l,t.readStringContents=function(e,t,n,s,i,o){const l=n,c=s,p=i;let u="",h=null,d=n;const{length:f}=t;for(;;){if(n>=f){o.unterminated(l,c,p),u+=t.slice(d,n);break}const m=t.charCodeAt(n);if(r(e,m,t,n)){u+=t.slice(d,n);break}if(92===m){u+=t.slice(d,n);const r=a(t,n,s,i,"template"===e,o);null!==r.ch||h?u+=r.ch:h={pos:n,lineStart:s,curLine:i},({pos:n,lineStart:s,curLine:i}=r),d=n}else 8232===m||8233===m?(++i,s=++n):10===m||13===m?"template"===e?(u+=t.slice(d,n)+"\n",++n,13===m&&10===t.charCodeAt(n)&&++n,++i,d=s=n):o.unterminated(l,c,p):++n}return{pos:n,str:u,firstInvalidLoc:h,lineStart:s,curLine:i,containsInvalid:!!h}};var n=function(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])},i={bin:e=>48===e||49===e,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 r(e,t,n,s){return"template"===e?96===t||36===t&&123===n.charCodeAt(s+1):t===("double"===e?34:39)}function a(e,t,n,s,i,r){const a=!i;t++;const l=e=>({pos:t,ch:e,lineStart:n,curLine:s}),p=e.charCodeAt(t++);switch(p){case 110:return l("\n");case 114:return l("\r");case 120:{let i;return({code:i,pos:t}=o(e,t,n,s,2,!1,a,r)),l(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=c(e,t,n,s,a,r)),l(null===i?null:String.fromCodePoint(i))}case 116:return l("\t");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++s;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);r.strictNumericEscape(t-1,n,s);default:if(p>=48&&p<=55){const a=t-1;let o=/^[0-7]+/.exec(e.slice(a,t+2))[0],c=parseInt(o,8);c>255&&(o=o.slice(0,-1),c=parseInt(o,8)),t+=o.length-1;const p=e.charCodeAt(t);if("0"!==o||56===p||57===p){if(i)return l(null);r.strictNumericEscape(a,n,s)}return l(String.fromCharCode(c))}return l(String.fromCharCode(p))}}function o(e,t,n,s,i,r,a,o){const c=t;let p;return({n:p,pos:t}=l(e,t,n,s,16,i,r,!1,o,!a)),null===p&&(a?o.invalidEscapeSequence(c,n,s):t=c-1),{code:p,pos:t}}function l(e,t,r,a,o,l,c,p,u,h){const d=t,f=16===o?s.hex:s.decBinOct,m=16===o?i.hex:10===o?i.dec:8===o?i.oct:i.bin;let y=!1,T=0;for(let s=0,i=null==l?1/0:l;s<i;++s){const s=e.charCodeAt(t);let i;if(95===s&&"bail"!==p){const n=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(p){if(Number.isNaN(s)||!m(s)||f.has(n)||f.has(s)){if(h)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,a)}}else{if(h)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,a)}++t;continue}if(i=s>=97?s-97+10:s>=65?s-65+10:n(s)?s-48:1/0,i>=o){if(i<=9&&h)return{n:null,pos:t};if(i<=9&&u.invalidDigit(t,r,a,o))i=0;else{if(!c)break;i=0,y=!0}}++t,T=T*o+i}return t===d||null!=l&&t-d!==l||y?{n:null,pos:t}:{n:T,pos:t}}function c(e,t,n,s,i,r){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=o(e,t,n,s,e.indexOf("}",t)-t,!0,i,r)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};r.invalidCodePoint(t,n,s)}}else({code:a,pos:t}=o(e,t,n,s,4,!1,i,r));return{code:a,pos:t}}},4001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,s.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var s=n(8079)},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}},4068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(9320),i=n(2802);t.default=class{constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const r=this._map=new s.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(n=e.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,s.setSourceContent)(r,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,s.setSourceContent)(r,e.replace(/\\/g,"/"),t[e])}else(0,s.setSourceContent)(r,this._sourceFileName,t)}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,n,r,a,o){var l;let c;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(c=(0,i.originalPositionFor)(this._inputMap,{line:t,column:n}),!c.name&&a){const e=(0,i.originalPositionFor)(this._inputMap,a);e.name&&(r=e.name)}}else c={name:null,source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:n};(0,s.maybeAddMapping)(this._map,{name:r,generated:e,source:null==(l=c)?void 0:l.source,original:c})}}},4089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=[];let c=!0;for(const p of t)if((0,i.isEmptyStatement)(p)||(c=!1),(0,i.isExpression)(p))l.push(p);else if((0,i.isExpressionStatement)(p))l.push(p.expression);else if((0,i.isVariableDeclaration)(p)){if("var"!==p.kind)return;for(const e of p.declarations){const t=(0,s.default)(e);for(const e of Object.keys(t))n.push({kind:p.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,r.assignmentExpression)("=",e.id,e.init))}c=!0}else if((0,i.isIfStatement)(p)){const t=p.consequent?e([p.consequent],n):(0,a.buildUndefinedNode)(),s=p.alternate?e([p.alternate],n):(0,a.buildUndefinedNode)();if(!t||!s)return;l.push((0,r.conditionalExpression)(p.test,t,s))}else if((0,i.isBlockStatement)(p)){const t=e(p.body,n);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(p))return;0===t.indexOf(p)&&(c=!0)}return c&&l.push((0,a.buildUndefinedNode)()),1===l.length?l[0]:(0,r.sequenceExpression)(l)};var s=n(329),i=n(8960),r=n(8079),a=n(985),o=n(5279)},4318:function(e,t,n){var s;!function(e){"use strict";var t,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var s in t)n(e,s,{get:t[s],enumerable:!0})})(a,{decode:()=>C,decodeGeneratedRanges:()=>E,decodeOriginalScopes:()=>x,encode:()=>N,encodeGeneratedRanges:()=>P,encodeOriginalScopes:()=>S}),e.exports=(t=a,((e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))r.call(e,l)||l===a||n(e,l,{get:()=>t[l],enumerable:!(o=s(t,l))||o.enumerable});return e})(n({},"__esModule",{value:!0}),t));var o=",".charCodeAt(0),l=";".charCodeAt(0),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),u=new Uint8Array(128);for(let e=0;e<64;e++){const t=c.charCodeAt(e);p[e]=t,u[t]=e}function h(e,t){let n=0,s=0,i=0;do{const t=e.next();i=u[t],n|=(31&i)<<s,s+=5}while(32&i);const r=1&n;return n>>>=1,r&&(n=-2147483648|-n),t+n}function d(e,t,n){let s=t-n;s=s<0?-s<<1|1:s<<1;do{let t=31&s;s>>>=5,s>0&&(t|=32),e.write(p[t])}while(s>0);return t}function f(e,t){return!(e.pos>=t)&&e.peek()!==o}var m="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},y=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=m.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+m.decode(e.subarray(0,n)):t}},T=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,s=t.indexOf(e,n);return-1===s?t.length:s}},g=[];function x(e){const{length:t}=e,n=new T(e),s=[],i=[];let r=0;for(;n.pos<t;n.pos++){r=h(n,r);const e=h(n,0);if(!f(n,t)){const t=i.pop();t[2]=r,t[3]=e;continue}const a=h(n,0),o=1&h(n,0)?[r,e,0,0,a,h(n,0)]:[r,e,0,0,a];let l=g;if(f(n,t)){l=[];do{const e=h(n,0);l.push(e)}while(f(n,t))}o.vars=l,s.push(o),i.push(o)}return s}function S(e){const t=new y;for(let n=0;n<e.length;)n=b(e,n,t,[0]);return t.flush()}function b(e,t,n,s){const i=e[t],{0:r,1:a,2:l,3:c,4:p,vars:u}=i;t>0&&n.write(o),s[0]=d(n,r,s[0]),d(n,a,0),d(n,p,0),d(n,6===i.length?1:0,0),6===i.length&&d(n,i[5],0);for(const e of u)d(n,e,0);for(t++;t<e.length;){const i=e[t],{0:r,1:a}=i;if(r>l||r===l&&a>=c)break;t=b(e,t,n,s)}return n.write(o),s[0]=d(n,l,s[0]),d(n,c,0),t}function E(e){const{length:t}=e,n=new T(e),s=[],i=[];let r=0,a=0,o=0,l=0,c=0,p=0,u=0,d=0;do{const e=n.indexOf(";");let t=0;for(;n.pos<e;n.pos++){if(t=h(n,t),!f(n,e)){const e=i.pop();e[2]=r,e[3]=t;continue}const m=h(n,0),y=2&m,T=4&m;let x,S=null,b=g;if(1&m){const e=h(n,a);o=h(n,a===e?o:0),a=e,x=[r,t,0,0,e,o]}else x=[r,t,0,0];if(x.isScope=!!T,y){const e=l,t=c;l=h(n,l);const s=e===l;c=h(n,s?c:0),p=h(n,s&&t===c?p:0),S=[l,c,p]}if(x.callsite=S,f(n,e)){b=[];do{u=r,d=t;const e=h(n,0);let s;if(e<-1){s=[[h(n,0)]];for(let t=-1;t>e;t--){const e=u;u=h(n,u),d=h(n,u===e?d:0);const t=h(n,0);s.push([t,u,d])}}else s=[[e]];b.push(s)}while(f(n,e))}x.bindings=b,s.push(x),i.push(x)}r++,n.pos=e+1}while(n.pos<t);return s}function P(e){if(0===e.length)return"";const t=new y;for(let n=0;n<e.length;)n=A(e,n,t,[0,0,0,0,0,0,0]);return t.flush()}function A(e,t,n,s){const i=e[t],{0:r,1:a,2:l,3:c,isScope:p,callsite:u,bindings:h}=i;if(s[0]<r?(v(n,s[0],r),s[0]=r,s[1]=0):t>0&&n.write(o),s[1]=d(n,i[1],s[1]),d(n,(6===i.length?1:0)|(u?2:0)|(p?4:0),0),6===i.length){const{4:e,5:t}=i;e!==s[2]&&(s[3]=0),s[2]=d(n,e,s[2]),s[3]=d(n,t,s[3])}if(u){const{0:e,1:t,2:r}=i.callsite;e!==s[4]?(s[5]=0,s[6]=0):t!==s[5]&&(s[6]=0),s[4]=d(n,e,s[4]),s[5]=d(n,t,s[5]),s[6]=d(n,r,s[6])}if(h)for(const e of h){e.length>1&&d(n,-e.length,0),d(n,e[0][0],0);let t=r,s=a;for(let i=1;i<e.length;i++){const r=e[i];t=d(n,r[1],t),s=d(n,r[2],s),d(n,r[0],0)}}for(t++;t<e.length;){const i=e[t],{0:r,1:a}=i;if(r>l||r===l&&a>=c)break;t=A(e,t,n,s)}return s[0]<l?(v(n,s[0],l),s[0]=l,s[1]=0):n.write(o),s[1]=d(n,c,s[1]),t}function v(e,t,n){do{e.write(l)}while(++t<n)}function C(e){const{length:t}=e,n=new T(e),s=[];let i=0,r=0,a=0,o=0,l=0;do{const e=n.indexOf(";"),t=[];let c=!0,p=0;for(i=0;n.pos<e;){let s;i=h(n,i),i<p&&(c=!1),p=i,f(n,e)?(r=h(n,r),a=h(n,a),o=h(n,o),f(n,e)?(l=h(n,l),s=[i,r,a,o,l]):s=[i,r,a,o]):s=[i],t.push(s),n.pos++}c||w(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}function w(e){e.sort(I)}function I(e,t){return e[0]-t[0]}function N(e){const t=new y;let n=0,s=0,i=0,r=0;for(let a=0;a<e.length;a++){const c=e[a];if(a>0&&t.write(l),0===c.length)continue;let p=0;for(let e=0;e<c.length;e++){const a=c[e];e>0&&t.write(o),p=d(t,a[0],p),1!==a.length&&(n=d(t,a[1],n),s=d(t,a[2],s),i=d(t,a[3],i),4!==a.length&&(r=d(t,a[4],r)))}}return t.flush()}}(e=n.nmd(e)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},4424:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(e){return e.startsWith("/")}function i(e){return/^[.?#]/.test(e)}function r(e){const n=t.exec(e);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function a(e,t,n,s,i,r,a){return{scheme:e,user:t,host:n,port:s,path:i,query:r,hash:a,type:7}}function o(t){if(function(e){return e.startsWith("//")}(t)){const e=r("http:"+t);return e.scheme="",e.type=6,e}if(s(t)){const e=r("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),i=t[2];return a("file:","",t[1]||"","",s(i)?i:"/"+i,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return r(t);const i=r("http://foo.com/"+t);return i.scheme="",i.host="",i.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,i}function l(e,t){const n=t<=4,s=e.path.split("/");let i=1,r=0,a=!1;for(let e=1;e<s.length;e++){const t=s[e];t?(a=!1,"."!==t&&(".."!==t?(s[i++]=t,r++):r?(a=!0,r--,i--):n&&(s[i++]=t))):a=!0}let o="";for(let e=1;e<i;e++)o+="/"+s[e];(!o||a&&!o.endsWith("/.."))&&(o+="/"),e.path=o}return function(e,t){if(!e&&!t)return"";const n=o(e);let s=n.type;if(t&&7!==s){const e=o(t),i=e.type;switch(s){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:!function(e,t){l(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>s&&(s=i)}l(n,s);const r=n.query+n.hash;switch(s){case 2:case 3:return r;case 4:{const s=n.path.slice(1);return s?i(t||e)&&!i(s)?"./"+s+r:s+r:r||"."}case 5:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}}()},4436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||c(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=i.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(a(e.property)&&"number"==typeof e.property.value&&(t=!0),t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!r(t,{callee:e})&&!o(t)&&!l(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const n=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),n(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:n,property:s}=e;if(this.print(e.object),!t&&o(s))throw new TypeError("Got a MemberExpression for MemberExpression property");a(s)&&"number"==typeof s.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(s),this.tokenChar(93)):(n||this.tokenChar(46),this.print(s))},t.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var s=n(2352),i=n(1373);const{isCallExpression:r,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:c}=s},4460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e)return!1;if(s.ALIAS_KEYS[t])return!1;const n=s.FLIPPED_ALIAS_KEYS[t];return!(null==n||!n.includes(e))};var s=n(9793)},4466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=new WeakMap,c=new WeakMap,p=n||(0,s.validate)(null);return Object.assign((n,...a)=>{if("string"==typeof n){if(a.length>1)throw new Error("Unexpected extra params.");return o((0,i.default)(t,n,(0,s.merge)(p,(0,s.validate)(a[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,r.default)(t,n,p),l.set(n,e)),o(e(a))}if("object"==typeof n&&n){if(a.length>0)throw new Error("Unexpected extra params.");return e(t,(0,s.merge)(p,(0,s.validate)(n)))}throw new Error("Unexpected template param "+typeof n)},{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(t,e,(0,s.merge)((0,s.merge)(p,(0,s.validate)(n[0])),a))()}if(Array.isArray(e)){let i=c.get(e);return i||(i=(0,r.default)(t,e,(0,s.merge)(p,a)),c.set(e,i)),i(n)()}throw new Error("Unexpected template param "+typeof e)}})};var s=n(9815),i=n(5252),r=n(3438);const a=(0,s.validate)({placeholderPattern:!1});function o(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+=`\n =============\n${t}`,e}}}},4544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(983),i=n(8079);t.default=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if("bigint"==typeof t)return t<0?(0,i.unaryExpression)("-",(0,i.bigIntLiteral)(-t)):(0,i.bigIntLiteral)(t);if(function(e){return"[object RegExp]"===r(e)}(t)){const e=t.source,n=/\/([a-z]*)$/.exec(t.toString())[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const n=[];for(const r of Object.keys(t)){let a,o=!1;(0,s.default)(r)?"__proto__"===r?(o=!0,a=(0,i.stringLiteral)(r)):a=(0,i.identifier)(r):a=(0,i.stringLiteral)(r),n.push((0,i.objectProperty)(a,e(t[r]),o))}return(0,i.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};const r=Function.call.bind(Object.prototype.toString)},4568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,s.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var s=n(3908)},4858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{placeholderWhitelist:s,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}=n,c=function(e,t,n){const s=(t.plugins||[]).slice();!1!==n&&s.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:s});try{return(0,i.parse)(e,t)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,r.codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,n.parser,l);m(c,{preserveComments:o}),e.validate(c);const p={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:a,syntacticPlaceholders:l};return y(c,g,p),Object.assign({ast:c},p.syntactic.placeholders.length?p.syntactic:p.legacy)};var s=n(2352),i=n(2172),r=n(2882);const{isCallExpression:a,isExpressionStatement:o,isFunction:l,isIdentifier:c,isJSXIdentifier:p,isNewExpression:u,isPlaceholder:h,isStatement:d,isStringLiteral:f,removePropertiesDeep:m,traverse:y}=s,T=/^[_$A-Z0-9]+$/;function g(e,t,n){var s;let i,r=n.syntactic.placeholders.length>0;if(h(e)){if(!1===n.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,r=!0}else{if(r||n.syntacticPlaceholders)return;if(c(e)||p(e))i=e.name;else{if(!f(e))return;i=e.value}}if(r&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(r||!1!==n.placeholderPattern&&(n.placeholderPattern||T).test(i)||null!=(s=n.placeholderWhitelist)&&s.has(i)))return;t=t.slice();const{node:m,key:y}=t[t.length-1];let g;f(e)||h(e,{expectedNode:"StringLiteral"})?g="string":u(m)&&"arguments"===y||a(m)&&"arguments"===y||l(m)&&"params"===y?g="param":o(m)&&!h(e)?(g="statement",t=t.slice(0,-1)):g=d(e)&&h(e)?"statement":"other";const{placeholders:x,placeholderNames:S}=r?n.syntactic:n.legacy;x.push({name:i,type:g,resolve:e=>function(e,t){let n=e;for(let e=0;e<t.length-1;e++){const{key:s,index:i}=t[e];n=void 0===i?n[s]:n[s][i]}const{key:s,index:i}=t[t.length-1];return{parent:n,key:s,index:i}}(e,t),isDuplicate:S.has(i)}),S.add(i)}},4950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return T([P,e])},t.explode=f,t.isExplodedVisitor=d,t.merge=T,t.verify=m;var s=n(5562),i=n(7973),r=n(2352),a=n(9578);const{DEPRECATED_KEYS:o,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:p,__internal__deprecationWarning:u}=r;function h(e){return e in s}function d(e){return null==e?void 0:e._exploded}function f(e){if(d(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(b(t))continue;const n=t.split("|");if(1===n.length)continue;const s=e[t];delete e[t];for(const t of n)e[t]=s}m(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(b(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),x(e);for(const t of Object.keys(e)){if(b(t))continue;if(!h(t))continue;const n=e[t];for(const e of Object.keys(n))n[e]=S(t,n[e]);delete e[t];const i=s[t];if(null!==i)for(const t of i)null!=e[t]||(e[t]={}),E(e[t],n);else E(e,n)}for(const t of Object.keys(e)){if(b(t))continue;let n=c[t];if(t in o){const e=o[t];u(t,e,"Visitor "),n=[e]}else if(t in l){const e=l[t];u(t,e,"Visitor "),n=c[e]}if(!n)continue;const s=e[t];delete e[t];for(const t of n){const n=e[t];n?E(n,s):e[t]=Object.assign({},s)}}for(const t of Object.keys(e))b(t)||x(e[t]);return e}function m(e){if(!e._verified){if("function"==typeof e)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("enter"!==t&&"exit"!==t||y(t,e[t]),b(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.28.5`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);y(`${t}.${e}`,n[e])}}e._verified=!0}}function y(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function T(e,t=[],n){const s={_verified:!0,_exploded:!0};Object.defineProperty(s,"_exploded",{enumerable:!1}),Object.defineProperty(s,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){const r=f(e[i]),a=t[i];let o=r;(a||n)&&(o=g(o,a,n)),E(s,o);for(const e of Object.keys(r)){if(b(e))continue;let t=r[e];(a||n)&&(t=g(t,a,n)),E(s[e]||(s[e]={}),t)}}return s}function g(e,t,n){const s={};for(const i of["enter","exit"]){let r=e[i];Array.isArray(r)&&(r=r.map(function(e){let s=e;return t&&(s=function(n){e.call(t,n,t)}),n&&(s=n(null==t?void 0:t.key,i,s)),s!==e&&(s.toString=()=>e.toString()),s}),s[i]=r)}return s}function x(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function S(e,t){const n=i[`is${e}`],s=function(e){if(n.call(e))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function b(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function E(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}const P={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e))}}},4960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,n,s,i){const r=this._queueCursor;r===this._queue.length&&this._allocQueue();const a=this._queue[r];a.char=e,a.repeat=t,a.line=n,a.column=s,a.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const s=e.length,i=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!n&&!this._map)return void(i.column+=s);const{column:r,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let p=e.indexOf("\n"),u=0;for(0!==p&&this._mark(c,r,a,o,l);-1!==p;)i.line++,i.column=0,u=p+1,u<s&&void 0!==c&&this._mark(++c,0,void 0,void 0,l),p=e.indexOf("\n",u);i.column+=s-u}_mark(e,t,n,s,i){var r;null==(r=this._map)||r.mark(this._position,e,t,n,s,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let n=e-1;n>=0&&10===this._queue[n].char;n--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const n=e.identifierName,s=this._sourcePosition;n&&(this._canMarkIdName=!1,s.identifierName=n),t(),n&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){const s=t[e],i=this._sourcePosition;s&&(i.line=s.line,i.column=Math.max(s.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,s=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=s),s+=t.repeat}return-1===n?this._position.column+s:s-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},4965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!i(e))return!1;const r=Array.isArray(t)?t:t.split("."),a=[];let o;for(o=e;i(o);o=null!=(l=o.object)?l:o.meta){var l;a.push(o.property)}if(a.push(o),a.length<r.length)return!1;if(!n&&a.length>r.length)return!1;for(let e=0,t=a.length-1;e<r.length;e++,t--){const n=a[t];let i;if((0,s.isIdentifier)(n))i=n.name;else if((0,s.isStringLiteral)(n))i=n.value;else if((0,s.isThisExpression)(n))i="this";else if((0,s.isSuper)(n))i="super";else{if(!(0,s.isPrivateName)(n))return!1;i="#"+n.id.name}if(r[e]!==i)return!1}return!0};var s=n(8960);function i(e){return(0,s.isMemberExpression)(e)||(0,s.isMetaProperty)(e)}},5004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},5010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,s.isBlockStatement)(e))return e;let n=[];return(0,s.isEmptyStatement)(e)?n=[]:((0,s.isStatement)(e)||(e=(0,s.isFunction)(t)?(0,i.returnStatement)(e):(0,i.expressionStatement)(e)),n=[e]),(0,i.blockStatement)(n)};var s=n(8960),i=n(8079)},5109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let n,r="";if((0,s.isObjectProperty)(t,{value:e})?n=i(t):(0,s.isObjectMethod)(e)||(0,s.isClassMethod)(e)?(n=i(e),"get"===e.kind?r="get ":"set"===e.kind&&(r="set ")):(0,s.isVariableDeclarator)(t,{init:e})?n=t.id:(0,s.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const a=(0,s.isLiteral)(n)?function(e){return(0,s.isNullLiteral)(e)?"null":(0,s.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,s.isTemplateLiteral)(e)?e.quasis.map(e=>e.value.raw).join(""):void 0!==e.value?String(e.value):null}(n):(0,s.isIdentifier)(n)?n.name:(0,s.isPrivateName)(n)?n.id.name:null;return null==a?null:{name:r+a,originalNode:n}};var s=n(8960);function i(e){if(!e.computed||(0,s.isLiteral)(e.key))return e.key}},5158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyUnionShapeCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var s=n(3828),i=n(983),r=n(1e3),a=n(3973),o=n(3422),l=n(7596);const c=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});t.classMethodOrPropertyUnionShapeCommon=c;const p=(0,l.defineAliasedType)("Standardized");p("ArrayExpression",{fields:{elements:{validate:(0,l.arrayOf)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),p("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(n,i,r){((0,s.default)("Pattern",n.left)?t:e)(n,i,r)}}(),{oneOf:o.ASSIGNMENT_OPERATORS}):(0,l.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){("in"===n.operator?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),p("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("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"]}),p("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),p("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"]}),p("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("DebuggerStatement",{aliases:["Statement"]}),p("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"]}),p("EmptyStatement",{aliases:["Statement"]}),p("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),p("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const u=()=>({params:(0,l.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=u;const h=()=>({returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=h;const d=()=>Object.assign({},u(),{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=d,p("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},d(),h(),{body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,n,i){(0,s.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}():void 0}),p("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const f=()=>({typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=f,p("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},f(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign(function(e,t,n){if(!(0,i.default)(n,!1))throw new TypeError(`"${n}" is not a valid identifier name`)},{type:"string"})):(0,l.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,n){const i=/\.(\w+)$/.exec(t.toString());if(!i)return;const[,a]=i,o={computed:!1};if("property"===a){if((0,s.default)("MemberExpression",e,o))return;if((0,s.default)("OptionalMemberExpression",e,o))return}else if("key"===a){if((0,s.default)("Property",e,o))return;if((0,s.default)("Method",e,o))return}else if("exported"===a){if((0,s.default)("ExportSpecifier",e))return}else if("imported"===a){if((0,s.default)("ImportSpecifier",e,{imported:n}))return}else if("meta"===a&&(0,s.default)("MetaProperty",e,{meta:n}))return;if(((0,r.isKeyword)(n.name)||(0,r.isReservedWord)(n.name,!1))&&"this"!==n.name)throw new TypeError(`"${n.name}" is not a valid identifier`)}:void 0}),p("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),p("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.chain)((0,l.assertValueType)("number"),Object.assign(function(e,t,n){(1/n<0||!Number.isFinite(n))&&new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${n}) instead.`)},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("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,n){const s=/[^dgimsuvy]/.exec(n);if(s)throw new TypeError(`"${s[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,l.assertValueType)("string"),default:""}}}),p("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")}}}),p("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,l.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),n=function(n,s,i){(n.computed?t:e)(n,s,i)};return n.oneOfNodeTypes=["Expression","Identifier","PrivateName"],n}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}})}),p("NewExpression",{inherits:"CallExpression"}),p("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),p("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,l.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),p("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},c(),{fields:Object.assign({},u(),h(),{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression"),n=function(n,s,i){(n.computed?t:e)(n,s,i)};return n.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],n}()},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),p("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign(function(e,t,n){if(n){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:!1},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,l.assertNodeType)("Expression");return function(n,i,r){((0,s.default)("ObjectPattern",n)?e:t)(r,"value",r.value)}}():void 0}),p("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},f(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const n=/(\w+)\[(\d+)\]/.exec(t.toString());if(!n)throw new Error("Internal Babel error: malformed key.");const[,s,i]=n;if(e[s].length>+i+1)throw new TypeError(`RestElement must be last element of ${s}`)}:void 0}),p("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,l.validateArrayOfType)("Expression")},aliases:["Expression"]}),p("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),p("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:(0,l.validateArrayOfType)("Statement")}}),p("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:(0,l.validateArrayOfType)("SwitchCase")}}),p("ThisExpression",{aliases:["Expression"]}),p("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("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:!0,validate:(0,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),p("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const","using","await using")},declarations:(0,l.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,l.assertNodeType)("Identifier","Placeholder"),t=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),n=(0,l.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,r,a){const{kind:o,declarations:l}=a,c=(0,s.default)("ForXStatement",i,{left:a});if(c&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(const s of l)"const"===o||"let"===o||"var"===o?c||s.init?t(s,"id",s.id):e(s,"id",s.id):n(s,"id",s.id)}})():void 0}),p("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,l.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}})}),p("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))}})}),p("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),p("ClassBody",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),p("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),p("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,n,i){(0,s.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}():void 0});const m=t.importAttributes={attributes:{optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")}};p("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"))},m)}),p("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"))}}),p("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign(function(e,t,n){if(n&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(n&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,l.assertNodeType)("Declaration")}},m,{specifiers:{default:[],validate:(0,l.arrayOf)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(n,s,i){(n.source?e:t)(n,s,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))})}),p("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,l.assertOneOf)("type","value"),optional:!0}}}),p("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"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(n,i,r){(0,s.default)("VariableDeclaration",r)?e(n,i,r):t(n,i,r)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),p("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},m,{module:{optional:!0,validate:(0,l.assertValueType)("boolean")},phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},specifiers:(0,l.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}})}),p("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),p("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},source:{validate:(0,l.assertNodeType)("Expression")},options:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("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,n){let i;switch(n.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta"}if(!(0,s.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,l.assertNodeType)("Identifier")},property:{validate:(0,l.assertNodeType)("Identifier")}}});const y=()=>({abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression");return function(n,s,i){(n.computed?t:e)(n,s,i)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=y;const T=()=>Object.assign({},u(),y(),{params:(0,l.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=T,p("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},c(),{fields:Object.assign({},T(),h(),{body:{validate:(0,l.assertNodeType)("BlockStatement")}})})),p("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{properties:(0,l.validateArrayOfType)("RestElement","ObjectProperty")})}),p("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Super",{aliases:["Expression"]}),p("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.chain)((0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}}),function(e){const t=e.value.raw;let n=!1;const s=()=>{throw new Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:r}=(0,a.readStringContents)("template",t,0,0,0,{unterminated(){n=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!n)throw new Error("Invalid raw");e.value.cooked=r?null:i})},tail:{default:!1}}}),p("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,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),p("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,n){if(n&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,l.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),p("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"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},c(),{fields:Object.assign({},y(),{value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},c(!0),{fields:Object.assign({},y(),{key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return function(n,s,i){(n.computed?t:e)(n,s,i)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,l.assertNodeType)("PrivateName")},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,l.assertValueType)("boolean"),default:!1},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}}}),p("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},T(),h(),{kind:{validate:(0,l.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,l.assertNodeType)("PrivateName")},body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),p("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")}}}),p("StaticBlock",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),p("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,l.assertNodeType)("StringLiteral")}}})},5237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),r=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(c&&!l.includes(c)){if((0,s.isAnyTypeAnnotation)(c))return[c];if((0,s.isFlowBaseAnnotation)(c))a.set(c.type,c);else if((0,s.isUnionTypeAnnotation)(c))o.has(c.types)||(n.push(...c.types),o.add(c.types));else{if((0,s.isGenericTypeAnnotation)(c)){const t=i(c.id);if(r.has(t)){let n=r.get(t);n.typeParameters?c.typeParameters&&(n.typeParameters.params.push(...c.typeParameters.params),n.typeParameters.params=e(n.typeParameters.params)):n=c.typeParameters}else r.set(t,c);continue}l.push(c)}}}for(const[,e]of a)l.push(e);for(const[,e]of r)l.push(e);return l};var s=n(8960);function i(e){return(0,s.isIdentifier)(e)?e.name:`${e.id.name}.${i(e.qualification)}`}},5252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let a;return t=e.code(t),o=>{const l=(0,s.normalizeReplacements)(o);return a||(a=(0,i.default)(e,t,n)),e.unwrap((0,r.default)(a,l))}};var s=n(9815),i=n(4858),r=n(7427)},5279:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,n=!1){return l(e,t,n,new Map)};var s=n(9793),i=n(8960);const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function a(e,t,n,s){return e&&"string"==typeof e.type?l(e,t,n,s):e}function o(e,t,n,s){return Array.isArray(e)?e.map(e=>a(e,t,n,s)):a(e,t,n,s)}function l(e,t=!0,n=!1,a){if(!e)return e;const{type:l}=e,p={type:e.type};if((0,i.isIdentifier)(e))p.name=e.name,r(e,"optional")&&"boolean"==typeof e.optional&&(p.optional=e.optional),r(e,"typeAnnotation")&&(p.typeAnnotation=t?o(e.typeAnnotation,!0,n,a):e.typeAnnotation),r(e,"decorators")&&(p.decorators=t?o(e.decorators,!0,n,a):e.decorators);else{if(!r(s.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const u of Object.keys(s.NODE_FIELDS[l]))r(e,u)&&(p[u]=t?(0,i.isFile)(e)&&"comments"===u?c(e.comments,t,n,a):o(e[u],!0,n,a):e[u])}return r(e,"loc")&&(p.loc=n?null:e.loc),r(e,"leadingComments")&&(p.leadingComments=c(e.leadingComments,t,n,a)),r(e,"innerComments")&&(p.innerComments=c(e.innerComments,t,n,a)),r(e,"trailingComments")&&(p.trailingComments=c(e.trailingComments,t,n,a)),r(e,"extra")&&(p.extra=Object.assign({},e.extra)),p}function c(e,t,n,s){return e&&t?e.map(e=>{const t=s.get(e);if(t)return t;const{type:i,value:r,loc:a}=e,o={type:i,value:r,loc:a};return n&&(o.loc=null),s.set(e,o),o}):e}},5299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e,!0,!0)};var s=n(5279)},5333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=t.preserveComments?i:r;for(const t of n)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const s=Object.getOwnPropertySymbols(e);for(const t of s)e[t]=null};var s=n(3422);const i=["tokens","start","end","loc","raw","rawValue"],r=[...s.COMMENT_KEYS,"comments",...i]},5562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},5586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("trailingComments",e,t)};var s=n(3205)},5589:(e,t,n)=>{"use strict";var s=n(7596),i=n(9187),r=n(5158);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)(...i.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}})},5682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const s=(0,n(3937).default)("React.Component");t.default=s},5689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},5753:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(7833):e.exports=n(6033)},5766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("leadingComments",e,t)};var s=n(3205)},5781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,n(9578);var s=n(4950);t.visitors=s;var i=n(2352),r=n(7411),a=n(2264),o=n(9709),l=n(6814),c=n(7878);const{VISITOR_KEYS:p,removeProperties:u,traverseFast:h}=i;function d(e,t={},n,i,r,o){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)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(!r&&o)throw new Error("visitSelf can only be used when providing a NodePath.");p[e.type]&&(s.explode(t),(0,a.traverseNode)(e,t,n,i,r,void 0,o))}}t.default=d,d.visitors=s,d.verify=s.verify,d.explode=s.explode,d.cheap=function(e,t){h(e,t)},d.node=function(e,t,n,s,i,r){(0,a.traverseNode)(e,t,n,s,i,r)},d.clearNode=function(e,t){u(e,t)},d.removeProperties=function(e,t){return h(e,d.clearNode,t),e},d.hasType=function(e,t,n){return(null==n||!n.includes(e.type))&&(e.type===t||h(e,function(e){return null!=n&&n.includes(e.type)?h.skip:e.type===t?h.stop:void 0}))},d.cache=r},5879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),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:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},5884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(n+e),i=t.indexOf("--");return-1!==s&&(-1===i||s<i)}},5958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8079);t.default=function(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)}},6033:(e,t,n)=>{const s=n(2018),i=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let s=0;s<n.length;s++)e.inspectOpts[n[s]]=t.inspectOpts[n[s]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:s,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),r=` ${i};1m${s} [0m`;n[0]=r+n[0].split("\n").join("\n"+r),n.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+s+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)},t.destroy=i.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=n(7687);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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[n]=s,e},{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},6049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map(e=>(0,r.isTSTypeAnnotation)(e)?e.typeAnnotation:e),n=(0,i.default)(t);return 1===n.length?n[0]:(0,s.tsUnionType)(n)};var s=n(8079),i=n(8812),r=n(8960)},6106:(e,t,n)=>{"use strict";var s=n(7596),i=n(5158),r=n(3828);const a=(0,s.defineAliasedType)("TypeScript"),o=(0,s.assertValueType)("boolean"),l=()=>({returnType:{validate:(0,s.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});a("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,s.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}}}),a("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,i.functionDeclarationCommon)(),l())}),a("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,i.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,i.classMethodOrDeclareMethodCommon)(),l())})),a("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,s.validateType)("TSEntityName"),right:(0,s.validateType)("Identifier")}});const c=()=>({typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,s.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation")}),p={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c()};a("TSCallSignatureDeclaration",p),a("TSConstructSignatureDeclaration",p);const u=()=>({key:(0,s.validateType)("Expression"),computed:{default:!1},optional:(0,s.validateOptional)(o)});a("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,s.validateOptional)(o),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,s.assertOneOf)("get","set")}})}),a("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},c(),u(),{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 h=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of h)a(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});a("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const d={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};a("TSFunctionType",Object.assign({},d,{fields:c()})),a("TSConstructorType",Object.assign({},d,{fields:Object.assign({},c(),{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:!1},elementType:(0,s.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,s.validateArrayOfType)("TSType")}};a("TSUnionType",f),a("TSIntersectionType",f),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"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,s.assertValueType)("string"),default:"keyof"},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)(!0,!1,"+","-")),optional:(0,s.validateOptional)((0,s.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,s.validateOptionalType)("TSType"),nameType:(0,s.validateOptionalType)("TSType")})}),a("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,s.validateArrayOfType)("TemplateElement"),types:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSType")),function(e,t,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),a("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,s.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,s.assertOneOf)("-"),n=(0,s.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(s,i,a){(0,r.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):n(s,i,a)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}}),a("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}}),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 m={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TSType")}};a("TSAsExpression",m),a("TSSatisfiesExpression",m),a("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,s.validateType)("TSType"),expression:(0,s.validateType)("Expression")}}),a("TSEnumBody",{visitor:["members"],fields:{members:(0,s.validateArrayOfType)("TSEnumMember")}}),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"),body:(0,s.validateOptionalType)("TSEnumBody")}}),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"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,s.validateType)("StringLiteral"),qualifier:(0,s.validateOptionalType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,s.assertNodeType)("ObjectExpression"),optional:!0}}}),a("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,s.validate)(o)},{id:(0,s.validateType)("Identifier"),moduleReference:(0,s.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}})}),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:!0},out:{validate:(0,s.assertValueType)("boolean"),optional:!0},const:{validate:(0,s.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,s.assertNodeType)("TSType"),optional:!0},default:{validate:(0,s.assertNodeType)("TSType"),optional:!0}}})},6109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=T,t._getPattern=g,t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?T.call(this,e,t):g.call(this,n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getAssignmentIdentifiers=function(){return r(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],s=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const r=a.keys[i.node.type];if(i.isIdentifier())e?(s[i.node.name]=s[i.node.name]||[]).push(i):s[i.node.name]=i;else{if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(r)for(let e=0;e<r.length;e++){const t=r[e],s=i.get(t);Array.isArray(s)?n.push(...s):s.node&&n.push(s)}}}return s},t.getBindingIdentifiers=function(e){return a(this.node,e)},t.getCompletionRecords=function(e=!1){return y(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return o(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var s=n(9709),i=n(2352);const{getAssignmentIdentifiers:r,getBindingIdentifiers:a,getOuterBindingIdentifiers:o,numericLiteral:l,unaryExpression:c}=i,p=0,u=1;function h(e,t,n){return e&&t.push(...y(e,n)),t}function d(e){e.forEach(e=>{e.type=u})}function f(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(c("void",l(0))):e.path.remove())})}function m(e,t){const n=[];if(t.canHaveBreak){let s=[];for(let i=0;i<e.length;i++){const r=e[i],a=Object.assign({},t,{inCaseClause:!1});r.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;const o=y(r,a);if(o.length>0&&o.every(e=>e.type===u)){s.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))?(d(s),n.push(...s),s.some(e=>e.path.isDeclaration())&&(n.push(...o),t.shouldPreserveBreak||f(o,!0)),t.shouldPreserveBreak||f(o,!1)):(n.push(...o),t.shouldPopulateBreak||t.shouldPreserveBreak||f(o,!0));break}if(i===e.length-1)n.push(...o);else{s=[];for(let e=0;e<o.length;e++){const t=o[e];t.type===u&&n.push(t),t.type===p&&s.push(t)}}}}else if(e.length)for(let s=e.length-1;s>=0;s--){const i=y(e[s],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){n.push(...i);break}}return n}function y(e,t){let n=[];if(e.isIfStatement())n=h(e.get("consequent"),n,t),n=h(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return h(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return m(e.get("body"),t);if(e.isFunction())return y(e.get("body"),t);if(e.isTryStatement())n=h(e.get("block"),n,t),n=h(e.get("handler"),n,t);else{if(e.isCatchClause())return h(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let s=[];for(let i=0;i<e.length;i++){const r=y(e[i],n),a=[],o=[];for(const e of r)e.type===p&&a.push(e),e.type===u&&o.push(e);a.length&&(s=a),t.push(...o)}return t.push(...s),t}(e.get("cases"),n,t);if(e.isSwitchCase())return m(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push(function(e){return{type:u,path:e}}(e)):n.push(function(e){return{type:p,path:e}}(e))}}return n}function T(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map((r,a)=>s.default.get({listKey:e,parentPath:this,parent:n,container:i,key:a}).setContext(t)):s.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function g(e,t){let n=this;for(const s of e)n="."===s?n.parentPath:Array.isArray(n)?n[s]:n.get(s,t);return n}},6133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8960);t.default=function(e){if((0,s.isExpressionStatement)(e)&&(e=e.expression),(0,s.isExpression)(e))return e;if((0,s.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,s.isFunction)(e)&&(e.type="FunctionExpression"),!(0,s.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}},6184:(e,t,n)=>{"use strict";var s=n(7596);const i=(0,s.defineAliasedType)("JSX");i("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,s.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,s.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,s.assertNodeType)("JSXClosingElement")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,s.assertValueType)("boolean"),optional:!0}})}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,s.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,s.assertNodeType)("JSXIdentifier")},name:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),i("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,s.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),i("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")}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},6211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,s.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var s=n(2598)},6219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,s.memberExpression)(t,e.object),e};var s=n(8079),i=n(2352)},6271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const n=e.tokenMap.getIndexes(t);if(!n)return null;let s=1,i=0,r=0;const a=()=>{for(;r<t.body.length&&null==t.body[r].start;)r++};return a(),o=>{r<=o&&(r=o+1,a());const l=r===t.body.length?t.end:t.body[r].start;let c;for(;s<n.length&&e.tokenMap.matchesOriginal(c=e._tokens[n[s]],";")&&c.start<l;)e.token(";",void 0,i++),s++}}(this,e);null==t||t(-1);const n=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),n(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(i(t)||r(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var s=n(2352);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:r}=s},6585:e=>{var t=1e3,n=60*t,s=60*n,i=24*s,r=7*i;function a(e,t,n,s){var i=t>=1.5*n;return Math.round(e/n)+" "+s+(i?"s":"")}e.exports=function(e,o){o=o||{};var l,c,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\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(a){var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return o*r;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*s;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===p&&isFinite(e))return o.long?(l=e,(c=Math.abs(l))>=i?a(l,c,i,"day"):c>=s?a(l,c,s,"hour"):c>=n?a(l,c,n,"minute"):c>=t?a(l,c,t,"second"):l+" ms"):function(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=s?Math.round(e/s)+"h":r>=n?Math.round(e/n)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const s of n)if(e[s]!==t[s])return!1;return!0}},6636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(4960),i=n(1373),r=i,a=n(2352),o=n(9594),l=n(6735),c=n(4014);const{isExpression:p,isFunction:u,isStatement:h,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:m}=a,y=/e/i,T=/\.0+$/,g=/[\n\r\u2028\u2029]/,x=/[\n\r\u2028\u2029]|\*\//;function S(e){return"CommentLine"===e.type||g.test(e.value)}const{needsParens:b}=r;class E{constructor(e,t,n=null,r=null){this.tokenContext=i.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=n,this._originalCode=r,this._indentRepeat=e.indent.style.length,this._inputMap=(null==t?void 0:t._inputMap)||null,this._buf=new s.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=i.TokenContext.forOfHead,null):(this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&i.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=i.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new o.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!y.test(e)&&!T.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,n=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);const s=this.getLastChar(),r=e.charCodeAt(0);(33===s&&("--"===e||61===r)||43===r&&43===s||45===r&&45===s||46===r&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:n}=this;if(!n.preserveFormat)return void(n.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const s=null==t?void 0:t[e];null!=s&&this._catchUpTo(s)}_catchUpTo({line:e,column:t,index:n}){const s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let e=0;e<s;e++)this._newline();const i=s>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,n){var s,a,o;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,c=this.format,u=c.concise;e._compact&&(c.concise=!0);const h=this[l];if(void 0===h)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const f=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!f);const m=null==(s=e.extra)?void 0:s.parenthesized;let y=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||b(e,d,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(a=e.leadingComments)&&a.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==d?void 0:d.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:y=!0}let T,g,x=!1;var E;!y&&this._noLineTerminator&&(null!=(o=e.leadingComments)&&o.some(S)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,x=!0),y||(t||(t=!!d&&this._noLineTerminatorAfterNode===d&&r.isLastChild(d,e)),t&&(null!=(E=e.trailingComments)&&E.some(S)?p(e)&&(y=!0):(T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),y&&(this.tokenChar(40),x&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate&&(g=this.tokenContext,this.tokenContext=i.TokenContext.normal),T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);const P="Program"===l||"File"===l?null:e.loc;this.exactSource(P,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),x&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,g&&(this.tokenContext=g)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,n),this._currentNode=d,c.concise=u,this._insideAux=f,void 0!==T&&(this._noLineTerminatorAfterNode=T),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n,s,i,r,a){if(null==e||!e.length)return;if(null==n&&this.format.retainLines){var o;const t=null==(o=e[0].loc)?void 0:o.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent();const l={nextNodeStartLine:0},c=null==s?void 0:s.bind(this),p=e.length;for(let n=0;n<p;n++){const s=e[n];var u;if(s&&(t&&this._printNewline(0===n,l),this.print(s,void 0,a||0),null==r||r(s,n),null!=c&&(n<p-1?c(n,!1):i&&c(n,!0)),t))if(null!=(u=s.trailingComments)&&u.length||(this._lastCommentLine=0),n+1===p)this.newline(1);else{var h;const t=e[n+1];l.nextNodeStartLine=(null==(h=t.loc)?void 0:h.start.line)||0,this._printNewline(!0,l)}}n&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,n){const{innerComments:s,trailingComments:i}=e;null!=s&&s.length&&this._printComments(2,s,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){var n;this._endsWithInnerRaw&&this.printInnerComments(null==(n=this.tokenMap)?void 0:n.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,n=t.innerComments;if(null==n||!n.length)return;const s=this.endsWith(32),i=this._indentInnerComments,r=this._printedComments.size;i&&this.indent(),this._printComments(1,n,t,void 0,void 0,e),s&&r!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n){this.printJoin(e,!0,null!=t&&t,void 0,void 0,void 0,n)}printList(e,t,n,s,i,r){this.printJoin(e,n,s,null!=i?i:P,t,r)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const s=t.nextNodeStartLine,i=this._lastCommentLine;if(s>0&&i>0){const e=s-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&x.test(e.value))return 2;if(t&&this.tokenMap){const n=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(n&&n.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const n=this._noLineTerminator,s="CommentBlock"===e.type,i=s&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const r=this.getLastChar();let a;if(91!==r&&123!==r&&40!==r&&this.space(),s){if(a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?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();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=n?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:n}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(a,s),this._printSemicolonBeforeNextNode=n,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(a,s);s||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,s,i=0,r){const a=n.loc,o=t.length;let l=!!a;const c=l?a.start.line:0,p=l?a.end.line:0;let y=0,T=0;const x=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const S=t[a],b=this._shouldPrintComment(S,r);if(2===b){l=!1;break}if(l&&S.loc&&1===b){const t=S.loc.start.line,n=S.loc.end.line;if(0===e){let e=0;0===a?!this._buf.hasContent()||"CommentLine"!==S.type&&t===n||(e=T=1):e=t-y,y=n,x(e),this._printComment(S,1),a+1===o&&(x(Math.max(c-y,T)),y=c)}else if(1===e){const e=t-(0===a?c:y);y=n,x(e),this._printComment(S,1),a+1===o&&(x(Math.min(1,p-y)),y=p)}else{const e=t-(0===a?p-i:y);y=n,x(e),this._printComment(S,1)}}else{if(l=!1,1!==b)continue;if(1===o){const t=S.loc?S.loc.start.line===S.loc.end.line:!g.test(S.value),i=t&&!h(n)&&!d(s)&&!f(s)&&!m(n);0===e?this._printComment(S,i&&"ObjectExpression"!==n.type||t&&u(s,{body:n})?1:0):i&&2===e?this._printComment(S,1):this._printComment(S,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(S,0):this._printComment(S,0===a?2:a===o-1?3:0)}}2===e&&l&&y&&(this._lastCommentLine=y)}}function P(e,t){this.token(",",!1,e),t||this.space()}Object.assign(E.prototype,l),(0,c.addDeprecatedGenerators)(E),t.default=E},6735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(2226);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var i=n(4436);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var r=n(521);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var a=n(6271);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var o=n(2861);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var l=n(9638);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var c=n(7942);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var p=n(2259);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var u=n(546);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var h=n(3962);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var d=n(9276);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))})},6744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const n of e)t+=(0,i.isIdentifierChar)(n.codePointAt(0))?n:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,s.default)(t)||(t=`_${t}`),t||"_"};var s=n(983),i=n(1e3)},6779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var s=n(3286);function i(e){return s[e]}n(3762),t.ArrayExpression=i("arrayExpression"),t.AssignmentExpression=i("assignmentExpression"),t.BinaryExpression=i("binaryExpression"),t.InterpreterDirective=i("interpreterDirective"),t.Directive=i("directive"),t.DirectiveLiteral=i("directiveLiteral"),t.BlockStatement=i("blockStatement"),t.BreakStatement=i("breakStatement"),t.CallExpression=i("callExpression"),t.CatchClause=i("catchClause"),t.ConditionalExpression=i("conditionalExpression"),t.ContinueStatement=i("continueStatement"),t.DebuggerStatement=i("debuggerStatement"),t.DoWhileStatement=i("doWhileStatement"),t.EmptyStatement=i("emptyStatement"),t.ExpressionStatement=i("expressionStatement"),t.File=i("file"),t.ForInStatement=i("forInStatement"),t.ForStatement=i("forStatement"),t.FunctionDeclaration=i("functionDeclaration"),t.FunctionExpression=i("functionExpression"),t.Identifier=i("identifier"),t.IfStatement=i("ifStatement"),t.LabeledStatement=i("labeledStatement"),t.StringLiteral=i("stringLiteral"),t.NumericLiteral=i("numericLiteral"),t.NullLiteral=i("nullLiteral"),t.BooleanLiteral=i("booleanLiteral"),t.RegExpLiteral=i("regExpLiteral"),t.LogicalExpression=i("logicalExpression"),t.MemberExpression=i("memberExpression"),t.NewExpression=i("newExpression"),t.Program=i("program"),t.ObjectExpression=i("objectExpression"),t.ObjectMethod=i("objectMethod"),t.ObjectProperty=i("objectProperty"),t.RestElement=i("restElement"),t.ReturnStatement=i("returnStatement"),t.SequenceExpression=i("sequenceExpression"),t.ParenthesizedExpression=i("parenthesizedExpression"),t.SwitchCase=i("switchCase"),t.SwitchStatement=i("switchStatement"),t.ThisExpression=i("thisExpression"),t.ThrowStatement=i("throwStatement"),t.TryStatement=i("tryStatement"),t.UnaryExpression=i("unaryExpression"),t.UpdateExpression=i("updateExpression"),t.VariableDeclaration=i("variableDeclaration"),t.VariableDeclarator=i("variableDeclarator"),t.WhileStatement=i("whileStatement"),t.WithStatement=i("withStatement"),t.AssignmentPattern=i("assignmentPattern"),t.ArrayPattern=i("arrayPattern"),t.ArrowFunctionExpression=i("arrowFunctionExpression"),t.ClassBody=i("classBody"),t.ClassExpression=i("classExpression"),t.ClassDeclaration=i("classDeclaration"),t.ExportAllDeclaration=i("exportAllDeclaration"),t.ExportDefaultDeclaration=i("exportDefaultDeclaration"),t.ExportNamedDeclaration=i("exportNamedDeclaration"),t.ExportSpecifier=i("exportSpecifier"),t.ForOfStatement=i("forOfStatement"),t.ImportDeclaration=i("importDeclaration"),t.ImportDefaultSpecifier=i("importDefaultSpecifier"),t.ImportNamespaceSpecifier=i("importNamespaceSpecifier"),t.ImportSpecifier=i("importSpecifier"),t.ImportExpression=i("importExpression"),t.MetaProperty=i("metaProperty"),t.ClassMethod=i("classMethod"),t.ObjectPattern=i("objectPattern"),t.SpreadElement=i("spreadElement"),t.Super=i("super"),t.TaggedTemplateExpression=i("taggedTemplateExpression"),t.TemplateElement=i("templateElement"),t.TemplateLiteral=i("templateLiteral"),t.YieldExpression=i("yieldExpression"),t.AwaitExpression=i("awaitExpression"),t.Import=i("import"),t.BigIntLiteral=i("bigIntLiteral"),t.ExportNamespaceSpecifier=i("exportNamespaceSpecifier"),t.OptionalMemberExpression=i("optionalMemberExpression"),t.OptionalCallExpression=i("optionalCallExpression"),t.ClassProperty=i("classProperty"),t.ClassAccessorProperty=i("classAccessorProperty"),t.ClassPrivateProperty=i("classPrivateProperty"),t.ClassPrivateMethod=i("classPrivateMethod"),t.PrivateName=i("privateName"),t.StaticBlock=i("staticBlock"),t.ImportAttribute=i("importAttribute"),t.AnyTypeAnnotation=i("anyTypeAnnotation"),t.ArrayTypeAnnotation=i("arrayTypeAnnotation"),t.BooleanTypeAnnotation=i("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=i("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=i("nullLiteralTypeAnnotation"),t.ClassImplements=i("classImplements"),t.DeclareClass=i("declareClass"),t.DeclareFunction=i("declareFunction"),t.DeclareInterface=i("declareInterface"),t.DeclareModule=i("declareModule"),t.DeclareModuleExports=i("declareModuleExports"),t.DeclareTypeAlias=i("declareTypeAlias"),t.DeclareOpaqueType=i("declareOpaqueType"),t.DeclareVariable=i("declareVariable"),t.DeclareExportDeclaration=i("declareExportDeclaration"),t.DeclareExportAllDeclaration=i("declareExportAllDeclaration"),t.DeclaredPredicate=i("declaredPredicate"),t.ExistsTypeAnnotation=i("existsTypeAnnotation"),t.FunctionTypeAnnotation=i("functionTypeAnnotation"),t.FunctionTypeParam=i("functionTypeParam"),t.GenericTypeAnnotation=i("genericTypeAnnotation"),t.InferredPredicate=i("inferredPredicate"),t.InterfaceExtends=i("interfaceExtends"),t.InterfaceDeclaration=i("interfaceDeclaration"),t.InterfaceTypeAnnotation=i("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=i("intersectionTypeAnnotation"),t.MixedTypeAnnotation=i("mixedTypeAnnotation"),t.EmptyTypeAnnotation=i("emptyTypeAnnotation"),t.NullableTypeAnnotation=i("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=i("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=i("numberTypeAnnotation"),t.ObjectTypeAnnotation=i("objectTypeAnnotation"),t.ObjectTypeInternalSlot=i("objectTypeInternalSlot"),t.ObjectTypeCallProperty=i("objectTypeCallProperty"),t.ObjectTypeIndexer=i("objectTypeIndexer"),t.ObjectTypeProperty=i("objectTypeProperty"),t.ObjectTypeSpreadProperty=i("objectTypeSpreadProperty"),t.OpaqueType=i("opaqueType"),t.QualifiedTypeIdentifier=i("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=i("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=i("stringTypeAnnotation"),t.SymbolTypeAnnotation=i("symbolTypeAnnotation"),t.ThisTypeAnnotation=i("thisTypeAnnotation"),t.TupleTypeAnnotation=i("tupleTypeAnnotation"),t.TypeofTypeAnnotation=i("typeofTypeAnnotation"),t.TypeAlias=i("typeAlias"),t.TypeAnnotation=i("typeAnnotation"),t.TypeCastExpression=i("typeCastExpression"),t.TypeParameter=i("typeParameter"),t.TypeParameterDeclaration=i("typeParameterDeclaration"),t.TypeParameterInstantiation=i("typeParameterInstantiation"),t.UnionTypeAnnotation=i("unionTypeAnnotation"),t.Variance=i("variance"),t.VoidTypeAnnotation=i("voidTypeAnnotation"),t.EnumDeclaration=i("enumDeclaration"),t.EnumBooleanBody=i("enumBooleanBody"),t.EnumNumberBody=i("enumNumberBody"),t.EnumStringBody=i("enumStringBody"),t.EnumSymbolBody=i("enumSymbolBody"),t.EnumBooleanMember=i("enumBooleanMember"),t.EnumNumberMember=i("enumNumberMember"),t.EnumStringMember=i("enumStringMember"),t.EnumDefaultedMember=i("enumDefaultedMember"),t.IndexedAccessType=i("indexedAccessType"),t.OptionalIndexedAccessType=i("optionalIndexedAccessType"),t.JSXAttribute=i("jsxAttribute"),t.JSXClosingElement=i("jsxClosingElement"),t.JSXElement=i("jsxElement"),t.JSXEmptyExpression=i("jsxEmptyExpression"),t.JSXExpressionContainer=i("jsxExpressionContainer"),t.JSXSpreadChild=i("jsxSpreadChild"),t.JSXIdentifier=i("jsxIdentifier"),t.JSXMemberExpression=i("jsxMemberExpression"),t.JSXNamespacedName=i("jsxNamespacedName"),t.JSXOpeningElement=i("jsxOpeningElement"),t.JSXSpreadAttribute=i("jsxSpreadAttribute"),t.JSXText=i("jsxText"),t.JSXFragment=i("jsxFragment"),t.JSXOpeningFragment=i("jsxOpeningFragment"),t.JSXClosingFragment=i("jsxClosingFragment"),t.Noop=i("noop"),t.Placeholder=i("placeholder"),t.V8IntrinsicIdentifier=i("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=i("argumentPlaceholder"),t.BindExpression=i("bindExpression"),t.Decorator=i("decorator"),t.DoExpression=i("doExpression"),t.ExportDefaultSpecifier=i("exportDefaultSpecifier"),t.RecordExpression=i("recordExpression"),t.TupleExpression=i("tupleExpression"),t.DecimalLiteral=i("decimalLiteral"),t.ModuleExpression=i("moduleExpression"),t.TopicReference=i("topicReference"),t.PipelineTopicExpression=i("pipelineTopicExpression"),t.PipelineBareFunction=i("pipelineBareFunction"),t.PipelinePrimaryTopicReference=i("pipelinePrimaryTopicReference"),t.VoidPattern=i("voidPattern"),t.TSParameterProperty=i("tsParameterProperty"),t.TSDeclareFunction=i("tsDeclareFunction"),t.TSDeclareMethod=i("tsDeclareMethod"),t.TSQualifiedName=i("tsQualifiedName"),t.TSCallSignatureDeclaration=i("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=i("tsConstructSignatureDeclaration"),t.TSPropertySignature=i("tsPropertySignature"),t.TSMethodSignature=i("tsMethodSignature"),t.TSIndexSignature=i("tsIndexSignature"),t.TSAnyKeyword=i("tsAnyKeyword"),t.TSBooleanKeyword=i("tsBooleanKeyword"),t.TSBigIntKeyword=i("tsBigIntKeyword"),t.TSIntrinsicKeyword=i("tsIntrinsicKeyword"),t.TSNeverKeyword=i("tsNeverKeyword"),t.TSNullKeyword=i("tsNullKeyword"),t.TSNumberKeyword=i("tsNumberKeyword"),t.TSObjectKeyword=i("tsObjectKeyword"),t.TSStringKeyword=i("tsStringKeyword"),t.TSSymbolKeyword=i("tsSymbolKeyword"),t.TSUndefinedKeyword=i("tsUndefinedKeyword"),t.TSUnknownKeyword=i("tsUnknownKeyword"),t.TSVoidKeyword=i("tsVoidKeyword"),t.TSThisType=i("tsThisType"),t.TSFunctionType=i("tsFunctionType"),t.TSConstructorType=i("tsConstructorType"),t.TSTypeReference=i("tsTypeReference"),t.TSTypePredicate=i("tsTypePredicate"),t.TSTypeQuery=i("tsTypeQuery"),t.TSTypeLiteral=i("tsTypeLiteral"),t.TSArrayType=i("tsArrayType"),t.TSTupleType=i("tsTupleType"),t.TSOptionalType=i("tsOptionalType"),t.TSRestType=i("tsRestType"),t.TSNamedTupleMember=i("tsNamedTupleMember"),t.TSUnionType=i("tsUnionType"),t.TSIntersectionType=i("tsIntersectionType"),t.TSConditionalType=i("tsConditionalType"),t.TSInferType=i("tsInferType"),t.TSParenthesizedType=i("tsParenthesizedType"),t.TSTypeOperator=i("tsTypeOperator"),t.TSIndexedAccessType=i("tsIndexedAccessType"),t.TSMappedType=i("tsMappedType"),t.TSTemplateLiteralType=i("tsTemplateLiteralType"),t.TSLiteralType=i("tsLiteralType"),t.TSExpressionWithTypeArguments=i("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=i("tsInterfaceDeclaration"),t.TSInterfaceBody=i("tsInterfaceBody"),t.TSTypeAliasDeclaration=i("tsTypeAliasDeclaration"),t.TSInstantiationExpression=i("tsInstantiationExpression"),t.TSAsExpression=i("tsAsExpression"),t.TSSatisfiesExpression=i("tsSatisfiesExpression"),t.TSTypeAssertion=i("tsTypeAssertion"),t.TSEnumBody=i("tsEnumBody"),t.TSEnumDeclaration=i("tsEnumDeclaration"),t.TSEnumMember=i("tsEnumMember"),t.TSModuleDeclaration=i("tsModuleDeclaration"),t.TSModuleBlock=i("tsModuleBlock"),t.TSImportType=i("tsImportType"),t.TSImportEqualsDeclaration=i("tsImportEqualsDeclaration"),t.TSExternalModuleReference=i("tsExternalModuleReference"),t.TSNonNullExpression=i("tsNonNullExpression"),t.TSExportAssignment=i("tsExportAssignment"),t.TSNamespaceExportDeclaration=i("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=i("tsTypeAnnotation"),t.TSTypeParameterInstantiation=i("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=i("tsTypeParameterDeclaration"),t.TSTypeParameter=i("tsTypeParameter"),t.NumberLiteral=s.numberLiteral,t.RegexLiteral=s.regexLiteral,t.RestProperty=s.restProperty,t.SpreadProperty=s.spreadProperty},6814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(3874),i=n(5781),r=(n(3019),n(3599)),a=n(2352),o=a,l=n(7411);const c=n(120),p=n(9961),{assignmentExpression:u,callExpression:h,cloneNode:d,getBindingIdentifiers:f,identifier:m,isArrayExpression:y,isBinary:T,isCallExpression:g,isClass:x,isClassBody:S,isClassDeclaration:b,isExportAllDeclaration:E,isExportDefaultDeclaration:P,isExportNamedDeclaration:A,isFunctionDeclaration:v,isIdentifier:C,isImportDeclaration:w,isLiteral:I,isMemberExpression:N,isMethod:k,isModuleSpecifier:O,isNullLiteral:D,isObjectExpression:_,isProperty:L,isPureish:M,isRegExpLiteral:F,isSuper:B,isTaggedTemplateExpression:j,isTemplateLiteral:R,isThisExpression:U,isUnaryExpression:K,isVariableDeclaration:V,expressionStatement:q,matchesPattern:W,memberExpression:J,numericLiteral:Y,toIdentifier:X,variableDeclaration:$,variableDeclarator:H,isRecordExpression:z,isTupleExpression:G,isObjectProperty:Q,isTopicReference:Z,isMetaProperty:ee,isPrivateName:te,isExportDeclaration:ne,buildUndefinedNode:se,sequenceExpression:ie}=a;function re(e,t){switch(null==e?void 0:e.type){default:var n;if(w(e)||ne(e))if((E(e)||A(e)||w(e))&&e.source)re(e.source,t);else if((A(e)||w(e))&&null!=(n=e.specifiers)&&n.length)for(const n of e.specifiers)re(n,t);else(P(e)||A(e))&&e.declaration&&re(e.declaration,t);else O(e)?re(e.local,t):!I(e)||D(e)||F(e)||R(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":re(e.object,t),re(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":re(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const n of e.properties)re(n,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":re(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":re(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),re(e.argument,t);break;case"AwaitExpression":t.push("await"),re(e.argument,t);break;case"AssignmentExpression":re(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":re(e.id,t);break;case"ParenthesizedExpression":re(e.expression,t);break;case"MetaProperty":re(e.meta,t),re(e.property,t);break;case"JSXElement":re(e.openingElement,t);break;case"JSXOpeningElement":re(e.name,t);break;case"JSXFragment":re(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":re(e.namespace,t),re(e.name,t)}}function ae(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var oe=Symbol.for("should not be considered a local binding");const le={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){o.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){const{node:t,scope:n}=e;if(E(t))return;const s=t.declaration;if(b(s)||v(s)){const t=s.id;if(!t)return;const i=n.getBinding(t.name);null==i||i.reference(e)}else if(V(s))for(const t of s.declarations)for(const s of Object.keys(f(t))){const t=n.getBinding(s);null==t||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){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const n of t)e.scope.registerBinding("param",n);e.isFunctionExpression()&&e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let ce,pe=0;class ue{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.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,n=l.scope.get(t);if((null==n?void 0:n.path)===e)return n;l.scope.set(t,this),this.uid=pe++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,n=this.path;do{var s;const e="key"===n.key||"decorators"===n.listKey;n=n.parentPath,e&&n.isMethod()&&(n=n.parentPath),null!=(s=n)&&s.isScope()&&(t=n)}while(n&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),d(t)}generateUidIdentifier(e){return m(this.generateUid(e))}generateUid(e="temp"){let t;e=X(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do{t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const s=this.getProgramParent();return s.references[t]=!0,s.uids[t]=!0,t}generateUidBasedOnNode(e,t){const n=[];re(e,n);let s=n.join("$");return s=s.replace(/^_/,"")||t||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return m(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||B(e)||Z(e))return!0;if(C(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),d(n))}}checkBlockScopedCollisions(e,t,n,s){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(s,`Duplicate declaration "${n}"`,TypeError)}rename(e,t){const n=this.getBinding(e);n&&(t||(t=this.generateUidIdentifier(e).name),new s.default(n,e,t).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 n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.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"),{kind:n}=e.node;for(const e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,n=e.get("specifiers");for(const e of n){const n=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(n?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return se()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t)){var n;null==(n=this.getBinding(s))||n.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const s=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(i)){s.references[t]=!0;for(const s of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===s)continue;this.checkBlockScopedCollisions(i,e,t,s)}i?i.reassign(n):this.bindings[t]=new r.default({identifier:s,scope:this,path:n,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(C(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(U(e)||ee(e)||Z(e)||te(e))return!0;var n,s,i;if(x(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&!((null==(n=e.decorators)?void 0:n.length)>0)&&this.isPure(e.body,t);if(S(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(T(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(y(e)||G(e)){for(const n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}if(_(e)||z(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(k(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(s=e.decorators)?void 0:s.length)>0);if(L(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(i=e.decorators)?void 0:i.length)>0||(Q(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(K(e))return this.isPure(e.argument,t);if(R(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return j(e)?W(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):N(e)?!e.computed&&C(e.object)&&"Symbol"===e.object.name&&C(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):g(e)?W(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&o.isStringLiteral(e.arguments[0]):M(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;ae(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);const n=t,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ce||(ce=i.default.visitors.merge([{Scope(e){ae(e.scope)}},le])),"Program"!==e.type){const t=ce[e.type];if(t)for(const n of t.enter)n.call(s,e,s)}e.traverse(ce,s),this.crawling=!1;for(const e of s.assignments){const t=e.getAssignmentIdentifiers();for(const s of Object.keys(t))e.scope.getBinding(s)||n.addGlobal(t[s]);e.scope.registerConstantViolation(e)}for(const e of s.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(const e of s.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:n,unique:s,kind:i="var",id:r}=e;if(!n&&!s&&("var"===i||"let"===i)&&function(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}(t)&&g(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&C(r))return t.pushContainer("params",r),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const a=null==e._blockHoist?2:e._blockHoist,o=`declaration:${i}:${a}`;let l=!s&&t.getData(o);if(!l){const e=$(i,[]);e._blockHoist=a,[l]=t.unshiftContainer("body",[e]),s||t.setData(o,l)}const c=H(r,n),p=l.node.declarations.push(c);t.scope.registerBinding(i,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 n of Object.keys(t.bindings))n in e==0&&(e[n]=t.bindings[n]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{const i=n.getOwnBinding(e);var s;if(i){if(null==(s=t)||!s.isPattern()||"param"===i.kind||"local"===i.kind)return i}else if(!i&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let n,s,i;"object"==typeof t?(n=t.noGlobals,s=t.noUids,i=t.upToScope):"boolean"==typeof t&&(n=t);let r=this;do{if(i===r)break;if(r.hasOwnBinding(e))return!0}while(r=r.parent);return!(s||!this.hasUid(e))||!(n||!ue.globals.includes(e))||!(n||!ue.contextVariables.includes(e))}parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do{t.uids[e]&&(t.uids[e]=!1)}while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const n of Object.keys(this.bindings)){const s=this.bindings[n];if(!s)continue;const{path:i}=s;if(!i.isVariableDeclarator())continue;const{parent:r,parentPath:a}=i;if("var"!==r.kind||t.has(r))continue;let o;t.add(i.parent);const l=[];for(const t of r.declarations){null!=o||(o=t.id),t.init&&l.push(u("=",t.id,t.init));const n=Object.keys(f(t,!1,!0,!0));for(const s of n)e(m(s),null!=t.init)}if(a.parentPath.isForXStatement({left:r}))a.replaceWith(o);else if(0===l.length)a.remove();else{const e=1===l.length?l[0]:ie(l);a.parentPath.isForStatement({init:r})?a.replaceWith(e):a.replaceWith(q(e))}}}}t.default=ue,ue.globals=[...c,...p],ue.contextVariables=["arguments","undefined","Infinity","NaN"],ue.prototype._renameFromMap=function(e,t,n,s){e[t]&&(e[n]=s,e[t]=null)},ue.prototype.traverse=function(e,t,n){(0,i.default)(e,t,this,n,this.path)},ue.prototype._generateUid=function(e,t){let n=e;return t>1&&(n+=t),`_${n}`},ue.prototype.toArray=function(e,t,n){if(C(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(y(e))return e;if(C(e,{name:"arguments"}))return h(J(J(J(m("Array"),m("prototype")),m("slice")),m("call")),[e]);let s;const i=[e];return!0===t?s="toConsumableArray":"number"==typeof t?(i.push(Y(t)),s="slicedToArray"):s="toArray",n&&(i.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),h(this.path.hub.addHelper(s),i)},ue.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const n of e){let e=this;do{for(const s of Object.keys(e.bindings)){const i=e.bindings[s];i.kind===n&&(t[s]=i)}e=e.parent}while(e)}return t},Object.defineProperties(ue.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},6928:e=>{"use strict";e.exports=require("path")},7003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(s.NODE_FIELDS[t.type]||t.type),r=s.VISITOR_KEYS[t.type];for(const s of i){const i=t[s],a=n[s];if(typeof i!=typeof a)return!1;if(null!=i||null!=a){if(null==i||null==a)return!1;if(Array.isArray(i)){if(!Array.isArray(a))return!1;if(i.length!==a.length)return!1;for(let t=0;t<i.length;t++)if(!e(i[t],a[t]))return!1}else if("object"!=typeof i||null!=r&&r.includes(s)){if(!e(i,a))return!1}else for(const e of Object.keys(i))if(i[e]!==a[e])return!1}}return!0};var s=n(9793)},7095:(e,t,n)=>{"use strict";var s=n(7596);(0,s.default)("ArgumentPlaceholder",{}),(0,s.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,s.assertNodeType)("Expression")},callee:{validate:(0,s.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(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:!1}}}),(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"]}),(0,s.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},7145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(2352),i=s;const{react:r}=s,{cloneNode:a,jsxExpressionContainer:o,variableDeclaration:l,variableDeclarator:c}=i,p={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&r.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const s of n.constantViolations)if(s.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{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=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),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),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const s=this.bindings[n];if("param"!==s.kind&&"params"!==s.path.parentKey&&this.getAttachmentParentForPath(s.path).key>=e.key){this.attachAfter=!0,e=s.path;for(const t of s.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.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);return e}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(p,this),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 n=c(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[i]=e[s]([e.isVariableDeclarator()?n:l("var",[n])]),r=this.path.parentPath;return r.isJSXElement()&&this.path.container===r.node.children&&(t=o(t)),this.path.replaceWith(a(t)),i.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},7159:e=>{"use strict";const t={},n=t.hasOwnProperty,s=(e,t)=>{for(const s in e)n.call(e,s)&&t(s,e[s])},i=e=>"\\u"+("0000"+e).slice(-4),r=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},a=t.toString,o=Array.isArray,l=e=>"bigint"==typeof e,c={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},p=/[\\\b\f\n\r\t]/,u=/[0-9]/,h=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,f=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{const n=()=>{A=P,++t.indentLevel,P=t.indent.repeat(t.indentLevel)},y={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},T=t&&t.json;var g,x;T&&(y.quotes="double",y.wrap=!0),g=y,t=(x=t)?(s(x,(e,t)=>{g[e]=t}),g):g,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const S="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",b=t.compact,E=t.lowercaseHex;let P=t.indent.repeat(t.indentLevel),A="";const v=t.__inline1__,C=t.__inline2__,w=b?"":"\n";let I,N=!0;const k="binary"==t.numbers,O="octal"==t.numbers,D="decimal"==t.numbers,_="hexadecimal"==t.numbers;if(T&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(L=e)&&"[object String]"!=a.call(L)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(b||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(o(e))return I=[],t.wrap=!0,v&&(t.__inline1__=!1,t.__inline2__=!0),C||n(),((e,t)=>{const n=e.length;let s=-1;for(;++s<n;)t(e[s])})(e,e=>{N=!1,C&&(t.__inline2__=!1),I.push((b||C?"":P)+m(e,t))}),N?"[]":C?"["+I.join(", ")+"]":"["+w+I.join(","+w)+w+(b?"":A)+"]";if((e=>"number"==typeof e||"[object Number]"==a.call(e))(e)||l(e)){if(T)return JSON.stringify(Number(e));let t;if(D)t=String(e);else if(_){let n=e.toString(16);E||(n=n.toUpperCase()),t="0x"+n}else k?t="0b"+e.toString(2):O&&(t="0o"+e.toString(8));return l(e)?t+"n":t}return l(e)?T?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==a.call(e))(e)?(I=[],t.wrap=!0,n(),s(e,(e,n)=>{N=!1,I.push((b?"":P)+m(e,t)+":"+(b?"":" ")+m(n,t))}),N?"{}":"{"+w+I.join(","+w)+w+(b?"":A)+"}"):T?JSON.stringify(e)||"null":String(e)}var L;const M=t.escapeEverything?d:f;return I=e.replace(M,(e,n,s,a,o,l)=>{if(n){if(t.minimal)return n;const e=n.charCodeAt(0),s=n.charCodeAt(1);return t.es6?"\\u{"+r(1024*(e-55296)+s-56320+65536,E)+"}":i(r(e,E))+i(r(s,E))}if(s)return i(r(s.charCodeAt(0),E));if("\0"==e&&!T&&!u.test(l.charAt(o+1)))return"\\0";if(a)return a==S||t.escapeEverything?"\\"+a:a;if(p.test(e))return c[e];if(t.minimal&&!h.test(e))return e;const d=r(e.charCodeAt(0),E);return T||d.length>2?i(d):"\\x"+("00"+d).slice(-2)}),"`"==S&&(I=I.replace(/\$\{/g,"\\${")),t.isScriptContext&&(I=I.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,T?"\\u003C!--":"\\x3C!--")),t.wrap&&(I=S+I+S),I};m.version="3.0.2",e.exports=m},7317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=C,t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!(a(t)||!p(t))&&n.type===t.type},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(a(t))return!0;if(b(t)){for(const n of t.types)if(a(n)||w(e,n,!0))return!0;return!1}return w(e,t,!0)},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||(e=C.call(this)||r(),(S(e)||T(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return w(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return!("Array"!==e||!(y(t)||o(t)||x(t)))||(u(t)&&h(t.id,{name:e})||g(t)&&h(t.typeName,{name:e}))};var s=n(9937),i=n(2352);const{anyTypeAnnotation:r,isAnyTypeAnnotation:a,isArrayTypeAnnotation:o,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:p,isGenericTypeAnnotation:u,isIdentifier:h,isMixedTypeAnnotation:d,isNumberTypeAnnotation:f,isStringTypeAnnotation:m,isTSArrayType:y,isTSTypeAnnotation:T,isTSTypeReference:g,isTupleTypeAnnotation:x,isTypeAnnotation:S,isUnionTypeAnnotation:b,isVoidTypeAnnotation:E,stringTypeAnnotation:P,voidTypeAnnotation:A}=i,v=new WeakSet;function C(){const e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!v.has(e)){v.add(e);try{var t;let n=s[e.type];if(n)return n.call(this,e);if(n=s[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{v.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?P():"left"===e.key&&t.isForOfStatement()?r():A()}}function w(e,t,n){if("string"===e)return m(t);if("number"===e)return f(t);if("boolean"===e)return l(t);if("any"===e)return a(t);if("mixed"===e)return d(t);if("empty"===e)return c(t);if("void"===e)return E(t);if(n)return!1;throw new Error(`Unknown base type ${e}`)}},7411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),r()},t.clearPath=i,t.clearScope=r,t.getCachedPaths=function(e){const{parent:t,parentPath:s}=e;return n.get(t)},t.getOrCreateCachedPaths=function(e,t){let s=n.get(e);return s||n.set(e,s=new Map),s},t.scope=t.path=void 0;let n=t.path=new WeakMap,s=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function r(){t.scope=s=new WeakMap}},7427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=r(e.ast);return 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{var s;!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>r(e)):"object"==typeof n&&(n=r(n)));const{parent:s,key:d,index:f}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=u(n)),!n||!p(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===f?n?Array.isArray(n)?n=i(n):"string"==typeof n?n=o(l(n)):c(n)||(n=o(n)):n=a():n&&!Array.isArray(n)&&("string"==typeof n&&(n=l(n)),c(n)||(n=o(n)));else if("param"===e.type){if("string"==typeof n&&(n=l(n)),void 0===f)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=l(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");function m(e,t,n){const s=e[t];e[t]=n,"Identifier"!==s.type&&"Placeholder"!==s.type||(s.typeAnnotation&&(n.typeAnnotation=s.typeAnnotation),s.optional&&(n.optional=s.optional),s.decorators&&(n.decorators=s.decorators))}if(void 0===f)h(s,d,n),m(s,d,n);else{const t=s[d].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(f,1):Array.isArray(n)?t.splice(f,1,...n):m(t,f,n):m(t,f,n),h(s,d,t),s[d]=t}}(e,n,null!=(s=t&&t[e.name])?s:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n};var s=n(2352);const{blockStatement:i,cloneNode:r,emptyStatement:a,expressionStatement:o,identifier:l,isStatement:c,isStringLiteral:p,stringLiteral:u,validate:h}=s},7446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const a=s.NODE_FIELDS[e.type];if(!a)return;i(e,t,n,a[t]),r(e,t,n)},t.validateChild=r,t.validateField=i,t.validateInternal=function(e,t,n,i,r){if(null!=e&&e.validate&&(!e.optional||null!=i)&&(e.validate(t,n,i),r)){var a;const e=i.type;if(null==e)return;null==(a=s.NODE_PARENT_VALIDATIONS[e])||a.call(s.NODE_PARENT_VALIDATIONS,t,n,i)}};var s=n(9793);function i(e,t,n,s){null!=s&&s.validate&&(s.optional&&null==n||s.validate(e,t,n))}function r(e,t,n){var i;const r=null==n?void 0:n.type;null!=r&&(null==(i=s.NODE_PARENT_VALIDATIONS[r])||i.call(s.NODE_PARENT_VALIDATIONS,e,t,n))}},7591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!n||"ObjectPattern"!==n.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==n||!n.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},7596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_UNION_SHAPES__PRIVATE=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=T,t.assertNodeOrValueType=function(...e){function t(t,n,r){const a=d(r);for(const o of e)if(a===o||(0,s.default)(o,r))return void(0,i.validateChild)(t,n,r);throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==r?void 0:r.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=x,t.assertOneOf=function(...e){function t(t,n,s){if(!e.includes(s))throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function n(n,s,r){const a=[];for(const s of t)try{(0,i.validateField)(n,s,r[s],e[s])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw new TypeError(`Property ${s} of ${n.type} expected to have the following:\n${a.join("\n")}`)}return n.shapeOf=e,n},t.assertValueType=S,t.chain=b,t.default=v,t.defineAliasedType=function(...e){return(t,n={})=>{let s=n.aliases;var i;s||(n.inherits&&(s=null==(i=A[n.inherits].aliases)?void 0:i.slice()),null!=s||(s=[]),n.aliases=s);const r=e.filter(e=>!s.includes(e));s.unshift(...r),v(t,n)}},t.validate=f,t.validateArrayOfType=function(...e){return f(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:x(...e),optional:!0}},t.validateType=function(...e){return f(x(...e))};var s=n(3828),i=n(7446);const r=t.VISITOR_KEYS={},a=t.ALIAS_KEYS={},o=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},p=t.DEPRECATED_KEYS={},u=t.NODE_PARENT_VALIDATIONS={},h=t.NODE_UNION_SHAPES__PRIVATE={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function m(e){return b(S("array"),T(e))}function y(...e){return m(x(...e))}function T(e){const t=process.env.BABEL_TYPES_8_BREAKING?i.validateChild:()=>{};function n(n,s,i){if(!Array.isArray(i))return;let r=0;const a={toString:()=>`${s}[${r}]`};for(;r<i.length;r++){const s=i[r];e(n,a,s),t(n,a,s)}}return n.each=e,n}const g=t.allExpandedTypes=[];function x(...e){const t=new Set;function n(n,r,a){const o=null==a?void 0:a.type;if(null!=o){if(t.has(o))return void(0,i.validateChild)(n,r,a);if("Placeholder"===o)for(const t of e)if((0,s.default)(t,a))return void(0,i.validateChild)(n,r,a)}throw new TypeError(`Property ${r} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}return g.push({types:e,set:t}),n.oneOfNodeTypes=e,n}function S(e){function t(t,n,s){if(d(s)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(s)}`)}return t.type=e,t}function b(...e){function t(...t){for(const n of e)n(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const E=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),P=new Set(["default","optional","deprecated","validate"]),A={};function v(e,t={}){const n=t.inherits&&A[t.inherits]||{};let s=t.fields;if(!s&&(s={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");s[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],f=t.aliases||n.aliases||[],m=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(!E.has(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(p[t.deprecatedAlias]=e);for(const e of i.concat(m))s[e]=s[e]||{};for(const t of Object.keys(s)){const n=s[t];void 0===n.default||m.includes(t)||(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=S(d(n.default)));for(const s of Object.keys(n))if(!P.has(s))throw new Error(`Unknown field key "${s}" on ${e}.${t}`)}r[e]=t.visitor=i,c[e]=t.builder=m,l[e]=t.fields=s,a[e]=t.aliases=f,f.forEach(t=>{o[t]=o[t]||[],o[t].push(e)}),t.validate&&(u[e]=t.validate),t.unionShape&&(h[e]=t.unionShape),A[e]=t}},7639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,s.default)(e,i.default,t),e};var s=n(8943),i=n(5333)},7687:(e,t,n)=>{"use strict";const s=n(857),i=n(2018),r=n(5884),{env:a}=process;let o;function l(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const i=function(){if("FORCE_COLOR"in a)return"true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}();void 0!==i&&(o=i);const l=n?o:i;if(0===l)return 0;if(n){if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2}if(e&&!t&&void 0===l)return 0;const c=l||0;if("dumb"===a.TERM)return c;if("win32"===process.platform){const e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:c;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:c}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}r("no-color")||r("no-colors")||r("color=false")||r("color=never")?o=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(o=1),e.exports={supportsColor:l,stdout:l({isTTY:i.isatty(1)}),stderr:l({isTTY:i.isatty(2)})}},7740:(e,t,n)=>{var s=function(){var e=n(2352),t="*",s=[],i=[],r=[],a=[];function o(t,n){n.filePath||(n.filePath="No file path provided"),t.node.skipMeOnVisit||(e.isMemberExpression(t)&&"extend"===t.node.property.name&&function(t,n){var s=t.parent.callee;if(s){var r=s.object;extendClass=h(r);var a=t.parent.arguments;1===a.length&&e.isObjectExpression(l)?l=a[0]:e.isStringLiteral(l);var o,l="";if(a.length){if(1===a.length&&e.isObjectExpression(a[0]))o=a[0];else{if(2!==a.length)return;e.isStringLiteral(a[0])&&e.isObjectExpression(a[1])&&(l=a[0],o=a[1])}className=l.value?l.value:"";var c,u=function(t){var n=[],s=[],i=[],r=!1;if(e.isObjectExpression(t)){var a=t.properties;for(var o in a)if(!r&&"interfaces"===a[o].key.name.toLowerCase()&&e.isArrayExpression(a[o].value)){r=!0;var l=a[o].value.elements;for(var c in l){var u=p(l[c]);i.push(u)}}else s.push(a[o].key.name)}return n.push(s),n.push(i),n}(o),d=u[0],T=u[1],g=!!(c=className)&&/^((\w+\.)+\w+)$/.test(c),x=f(className);if(className&&!x&&!g)throw{message:"JSParser Error: The 'extend' you are trying to make has an invalid name. Example: '...extend(\"a.b.C\", {...overrides...})'), for class: "+extendClass+" file: "+n.fullPathName,errCode:1};var S="";if(g){n.logger&&n.logger.info(S);var b=g?className:"";return S=m(b,extendClass.reverse().join("."),d,"",n.fullPathName,T),void y(b,n.fullPathName,S)}n.logger&&n.logger.info(S);var E={file:n.filePath,line:t.node.property.loc.start.line,column:t.node.property.loc.start.column+1,className};S=m(g?className:"",extendClass.reverse().join("."),d,E,"",T),i.push(S)}}}(t,n),e.isNewExpression(t)&&function(t,n){if(!n.interfaceNames)throw"JSParser Error: No interface names are provided! You can pass them in config.interfaceNames as an array!";var s=h(t.node.callee),i=!1,a=n.interfaceNames,o=s.reverse().join(".");for(var l in a){var c=a[l].trim();if(c===o){o=c,i=!0;break}}if(i){var p,u="";if(1===t.node.arguments.length)p=t.node.arguments[0];else{if(2!==t.node.arguments.length)throw{message:"JSParser Error: Not enough or too many arguments passed("+t.node.arguments.length+") when trying to extend interface: "+c+" in file: "+n.fullPathName,errCode:1};u=t.node.arguments[0],p=t.node.arguments[1]}var d=f(u.value),y=function(t){var n=[];if(e.isObjectExpression(t)){var s=t.properties;for(var i in s)n.push(s[i].key.name)}return n}(p),T={file:n.filePath,line:t.node.loc.start.line,column:t.node.loc.start.column+1,className:d?u.value:""},g=m("",o,y.join(","),T,"");n.logger&&n.logger.info(g),r.push(g)}}(t,n),e.isIdentifier(t)&&"__extends"===t.node.name&&function(t,n){var s;try{s=function(t,n,s){var i=d(t,5,s);if(i){if(!e.isCallExpression(i.node))throw{message:"JSParser Error: Node type is not a call expression. File="+s.fullPathName+" line="+t.node.loc.start.line,errCode:1};var r=i.node.arguments[0]}return h(r).reverse().join(".")}(t,0,n)}catch(e){return void n.logger.warn(e.message)}var r=function(t){var n=[],s=d(t,3);for(var i in s.node.body){var r=s.node.body[i];e.isExpressionStatement(r)&&e.isAssignmentExpression(r.expression)&&r.expression.left.property&&n.push(r.expression.left.property.name)}return n}(t),a="",o=function(t,n){var s,i,r,a,o,l,c=!1;if(t.node.body&&t.node.body.length>=3&&(e.isFunctionDeclaration(t.node.body[1])&&t.node.body[1].id&&(s=t.node.body[1].id.name),e.isReturnStatement(t.node.body[t.node.body.length-1])&&(i=t.node.body[t.node.body.length-1].argument.name)),s===i&&s){var p=t.node.body[1],u=function(t){if(e.isExpressionStatement(t)&&e.isCallExpression(t.expression)){var n=t.expression.arguments;if(2==n.length)return n[1].name}}(t.node.body[0]);if(u){var h=[],d=[];if(p.body.body.forEach(t=>{e.isVariableDeclaration(t)?h.push(t):e.isExpressionStatement(t)&&d.push(t)}),h.length>0||d.length>0){var f=(o=u,((l=h.filter(t=>e.isLogicalExpression(t.declarations[0].init)&&e.isCallExpression(t.declarations[0].init.left)&&t.declarations[0].init.left.callee.object.name===o)).length>0?l[0].declarations[0].init.left:null)||function(t,n){var s=t.filter(t=>e.isAssignmentExpression(t.expression)&&e.isLogicalExpression(t.expression.right)&&e.isCallExpression(t.expression.right.left)&&t.expression.right.left.callee.object.name===n);return s.length>0?s[0].expression.right.left:null}(d,u));if(f){var m=f.callee.property;r=m.loc.start.column+1,a=m.loc.start.line,c=!0}}}}return c||n.logger.info("[WARN] TypeScript-extended class has a super() call in an unsupported format. ctor function name: "+s),{line:a,column:r}}(d(t,3,n),n),u=d(t,1,n);e.isCallExpression(u)&&(a=u.node.arguments[0].name);var f,T,g,x=function(e){var t=d(e,3).node.body;for(var n in t){var s=t[n];if(c(s))return l(s.expression).arguments[0].elements}return null}(t),S=!1,b=[];if(x||(x=function(e){var t=d(e,7),n=t.getSibling(t.key+1).node;return n&&c(n)?l(n.expression).arguments[0].elements:null}(t)),x)for(var E in x){var P=x[E];if(e.isCallExpression(P)){if(P.callee.name===n.interfacesDecoratorName){P.callee.skipMeOnVisit=!0;var A=P.arguments[0].elements;for(var E in A){var v=p(A[E]);b.push(v)}}P.callee.name===n.extendDecoratorName&&(P.callee.skipMeOnVisit=!0,S=!0,f=void 0===n.extendDecoratorName?"JavaProxy":n.extendDecoratorName,T=P.arguments[0].value)}}S?function(e,t,n,s,i,r){t.logger&&t.logger.info("\t+in "+n+" anchor");var a=e,o=m(a,s,i,"",t.fullPathName,r);t.logger&&t.logger.info(o),y(a,t.fullPathName,o)}(T,n,f,s,r,b):(g=m("",s,r,{file:n.filePath,line:o.line,column:o.column,className:a},"",b),n.logger&&n.logger.info(g),i.push(g))}(t,n))}function l(t){if(!t)return null;for(var n=t.right;e.isAssignmentExpression(n);)n=n.right;return n}function c(t){var n=l(t.expression);return e.isExpressionStatement(t)&&e.isAssignmentExpression(t.expression)&&n.callee&&"__decorate"===n.callee.name&&n.arguments&&e.isArrayExpression(n.arguments[0])}function p(t){var n="";return e.isMemberExpression(t)&&(n+=u(t.object),n+=t.property.name),n}function u(t){var n="";return e.isMemberExpression(t)&&(e.isMemberExpression(t.object)?(n+=u(t.object),n+=t.property.name+"."):(n+=t.object.name+".",n+=t.property.name+".")),n}function h(t){for(var n=[],s=!1;void 0!==t;){if(!e.isMemberExpression(t)){s&&n.push(t.name);break}s=!0,n.push(t.property.name),t=t.object}return n}function d(e,t,n){if(!e)throw{message:"JSParser Error: No parent found for node in file: "+n.fullPathName,errCode:1};return 0===t?e:d(e.parentPath,--t)}function f(e){return!(!e||""==e)&&/^(\w+)$/.test(e)}function m(e,n,s,i,r,a=""){const o=i.file?i.file.replace(/[-\\/\\. ]/g,"_"):"",l=i.line?i.line:"",c=i.column?i.column:"",p=i.className?i.className:"";return`${n}${t}${o}${t}${l}${t}${c}${t}${p}${t}${s}${t}${e}${t}${r}${t}${a}`}function y(e,t,n){-1===a.indexOf(e)?(s.push(n),a.push(e)):(console.log("Warning: there already is an extend called "+e+"."),-1===t.indexOf("tns_modules")&&(console.log("Warning: The static binding generator will generate extend from:"+t+" implementation"),s.push(n),a.push(e)))}return o.getProxyExtendInfo=function(){var e=s.slice();return s=[],e},o.getCommonExtendInfo=function(){var e=[];for(var t in i)"*"!==i[t][0]&&e.push(i[t]);return i=[],e},o.getInterfaceInfo=function(){var e=r.slice();return r=[],e},{es5Visitor:o}}();e.exports=s},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(i=s))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]},7878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},7931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const n=(0,s.default)(e[t],e);return e[t]=n,n};var s=n(5010)},7932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)("innerComments",e,t)};var s=n(3205)},7942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.tokenChar(91);const s=this.enterDelimited();for(let e=0;e<t.length;e++){const s=t[e];s?(e>0&&this.space(),this.print(s),(e<n-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}s(),this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=this.format.jsescOption,s=e.value,r=s+"";n.numbers?this.number(i(s,n),s):null==t?this.number(r,s):this.format.minified?this.number(t.length<r.length?t:r,s):this.number(t,s)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(r(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){const t=e.properties;let n,s;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",s="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);n="#{",s="}"}this.token(n),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(s),!0,!0),this.space()),this.token(s)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!c.has(e)){const t=JSON.stringify(e),n=Array.from(c,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let s,i;if("bar"===this.format.recordAndTupleSyntaxType)s="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);s="#[",i="]"}this.token(s);for(let e=0;e<t.length;e++){const s=t[e];s&&(e>0&&this.space(),this.print(s),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===o)return l;o=e;const{name:t}=e,n=this.tokenMap.find(e,e=>e.value===t);return n?(l=this._originalCode.slice(n.start,n.end),l):l=e.name};var s=n(2352),i=n(7159);const{isAssignmentPattern:r,isIdentifier:a}=s;let o=null,l="";const c=new Set(["^^","@@","^","%","#"])},7973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){const{node:e,parent:t}=this,n=this.parentPath.parent;return u(e)&&i(e,t,n)},t.isBlockScoped=function(){return r(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():o(this.node)},t.isFlow=function(){const{node:e}=this;return!(!l(e)&&(h(e)?"type"!==e.importKind&&"typeof"!==e.importKind:a(e)?"type"!==e.exportKind:!d(e)||"type"!==e.importKind&&"typeof"!==e.importKind))},t.isForAwaitStatement=function(){return A(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return g(this.node,this.parent)},t.isReferencedIdentifier=function(e){const{node:t,parent:n}=this;return(u(t,e)||!!f(t,e)&&!(!m(n)&&v(t.name)))&&g(t,n,this.parentPath.parent)},t.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return y(e)&&g(e,t)},t.isRestProperty=function(){var e;return T(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return x(this.node,this.parent)},t.isSpreadProperty=function(){var e;return T(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){const{node:e,parent:t}=this;if(S(e)){if(E(e)){if(p(t,{left:e}))return!1;if(c(t,{init:e}))return!1}return!0}return!1},t.isUser=function(){var e;return!(null==(e=this.node)||!e.loc)},t.isVar=function(){return b(this.node)};var s=n(2352);const{isBinding:i,isBlockScoped:r,isExportDeclaration:a,isExpression:o,isFlow:l,isForStatement:c,isForXStatement:p,isIdentifier:u,isImportDeclaration:h,isImportSpecifier:d,isJSXIdentifier:f,isJSXMemberExpression:m,isMemberExpression:y,isRestElement:T,isReferenced:g,isScope:x,isStatement:S,isVar:b,isVariableDeclaration:E,react:P,isForOfStatement:A}=s,{isCompatTag:v}=P;t.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},7980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var s=n(9793);t.STANDARDIZED_TYPES=s.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=s.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=s.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=s.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=s.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=s.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=s.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=s.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=s.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=s.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=s.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=s.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=s.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=s.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=s.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=s.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=s.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=s.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=s.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=s.FLIPPED_ALIAS_KEYS.Class;const i=t.IMPORTOREXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=s.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=s.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=s.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=s.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=s.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=s.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=s.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=s.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=i},8079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(3286);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var i=n(6779);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},8125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,s.default)(e,t),(0,i.default)(e,t),(0,r.default)(e,t),e};var s=n(5586),i=n(5766),r=n(7932)},8345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=A,t._containerInsertAfter=C,t._containerInsertBefore=v,t._verifyNodeList=k,t.insertAfter=function(e){if(a._assertUnremoved.call(this),this.isSequenceExpression())return w(this.get("expressions")).insertAfter(e);const t=k.call(this,e),{parentPath:n,parent:s}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||g(s)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>x(e)?m(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){const e=this;if(e.node){const s=e.node;let{scope:i}=this;if(i.path.isPattern())return p(s),e.replaceWith(d(c([],s),[])),e.get("callee.body").insertAfter(t),[e];if(I(e))t.unshift(s);else if(T(s)&&E(s.callee))t.unshift(s),t.push(P());else if(function(e,t){if(!y(e)||!S(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(s,i))t.unshift(s),t.push(f(s.left));else if(i.isPure(s,!0))t.push(s);else{n.isMethod({computed:!0,key:s})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(m(u("=",f(e),s))),t.push(m(f(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return C.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[s]=this.replaceWith(h(n?[e]:[]));return s.pushContainer("body",t)}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?")},t.insertBefore=function(e){a._assertUnremoved.call(this);const t=k.call(this,e),{parentPath:n,parent:s}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||g(s)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return v.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[s]=this.replaceWith(h(n?[e]:[]));return s.unshiftContainer("body",t)}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?")},t.pushContainer=function(e,t){a._assertUnremoved.call(this);const n=k.call(this,t),s=this.node[e];return i.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){a._assertUnremoved.call(this);const n=k.call(this,t),s=this.node[e],r=i.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:0}).setContext(this.context);return v.call(r,n)},t.updateSiblingKeys=N;var s=n(7411),i=n(9709),r=n(9578),a=n(3097),o=n(2352),l=n(7145);const{arrowFunctionExpression:c,assertExpression:p,assignmentExpression:u,blockStatement:h,callExpression:d,cloneNode:f,expressionStatement:m,isAssignmentExpression:y,isCallExpression:T,isExportNamedDeclaration:g,isExpression:x,isIdentifier:S,isSequenceExpression:b,isSuper:E,thisExpression:P}=o;function A(e,t){N.call(this,e,t.length);const n=[];this.container.splice(e,0,...t);for(let i=0;i<t.length;i++){var s;const t=e+i,a=this.getSibling(t);n.push(a),null!=(s=this.context)&&s.queue&&r.pushContext.call(a,this.context)}const i=r._getQueueContexts.call(this);for(const e of n){r.setScope.call(e),e.debug("Inserted.");for(const t of i)t.maybeQueue(e,!0)}return n}function v(e){return A.call(this,this.key,e)}function C(e){return A.call(this,this.key+1,e)}const w=e=>e[e.length-1];function I(e){return b(e.parent)&&(w(e.parent.expressions)!==e.node||I(e.parentPath))}function N(e,t){if(!this.parent)return;const n=(0,s.getCachedPaths)(this);if(n)for(const[,s]of n)"number"==typeof s.key&&s.container===this.container&&s.key>=e&&(s.key+=t)}function k(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let s;if(n?"object"!=typeof n?s="contains a non-object node":n.type?n instanceof i.default&&(s="has a NodePath when it expected a raw object"):s="without a type":s="has falsy node",s){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${s} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},8721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=p,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);if(55296==(64512&s)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(s=65536+((1023&s)<<10)+(1023&t))}if(t){if(t=!1,!c(s))return!1}else if(!p(s))return!1}return!t},t.isIdentifierStart=c;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),r=new RegExp("["+n+s+"]");n=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,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function l(e,t){let n=65536;for(let s=0,i=t.length;s<i;s+=2){if(n+=t[s],n>e)return!1;if(n+=t[s+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,a)))}function p(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},8812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),r=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(!c)continue;if(l.includes(c))continue;if((0,s.isTSAnyKeyword)(c))return[c];if((0,s.isTSBaseType)(c)){a.set(c.type,c);continue}if((0,s.isTSUnionType)(c)){o.has(c.types)||(n.push(...c.types),o.add(c.types));continue}const p="typeParameters";if((0,s.isTSTypeReference)(c)&&c[p]){const t=c[p],n=i(c.typeName);if(r.has(n)){let s=r.get(n);const i=s[p];i?(i.params.push(...t.params),i.params=e(i.params)):s=t}else r.set(n,c);continue}l.push(c)}for(const[,e]of a)l.push(e);for(const[,e]of r)l.push(e);return l};var s=n(8960);function i(e){return(0,s.isIdentifier)(e)?e.name:(0,s.isThisExpression)(e)?"this":`${e.right.name}.${i(e.left)}`}},8943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(9793);const i=Symbol(),r=Symbol();function a(e,t,n){if(!e)return!1;const o=s.VISITOR_KEYS[e.type];if(!o)return!1;const l=t(e,n=n||{});if(void 0!==l)switch(l){case i:return!1;case r:return!0}for(const s of o){const i=e[s];if(i)if(Array.isArray(i)){for(const e of i)if(a(e,t,n))return!0}else if(a(i,t,n))return!0}return!1}a.skip=i,a.stop=r},8960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&("ClassAccessorProperty"===e.type&&(null==t||(0,s.default)(e,t)))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,s.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,s.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,s.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,s.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,s.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,s.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isImportOrExportDeclaration=r,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,s.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,s.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,s.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),r(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,s.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,s.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,s.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,s.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,s.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,s.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,s.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,s.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,s.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,s.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,s.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,s.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,s.default)(e,t))},t.isVoidPattern=function(e,t){return!!e&&"VoidPattern"===e.type&&(null==t||(0,s.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,s.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,s.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,s.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,s.default)(e,t))};var s=n(6616),i=n(3762);function r(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,s.default)(e,t)}},8991:e=>{let t=process||{},n=t.argv||[],s=t.env||{},i=!(s.NO_COLOR||n.includes("--no-color"))&&(!!s.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==s.TERM||!!s.CI),r=(e,t,n=e)=>s=>{let i=""+s,r=i.indexOf(t,e.length);return~r?e+a(i,t,n,r)+t:e+i+t},a=(e,t,n,s)=>{let i="",r=0;do{i+=e.substring(r,s)+n,r=s+t.length,s=e.indexOf(t,r)}while(~s);return i+e.substring(r)},o=(e=i)=>{let t=e?r:()=>String;return{isColorSupported:e,reset:t("[0m","[0m"),bold:t("[1m","[22m","[22m[1m"),dim:t("[2m","[22m","[22m[2m"),italic:t("[3m","[23m"),underline:t("[4m","[24m"),inverse:t("[7m","[27m"),hidden:t("[8m","[28m"),strikethrough:t("[9m","[29m"),black:t("[30m","[39m"),red:t("[31m","[39m"),green:t("[32m","[39m"),yellow:t("[33m","[39m"),blue:t("[34m","[39m"),magenta:t("[35m","[39m"),cyan:t("[36m","[39m"),white:t("[37m","[39m"),gray:t("[90m","[39m"),bgBlack:t("[40m","[49m"),bgRed:t("[41m","[49m"),bgGreen:t("[42m","[49m"),bgYellow:t("[43m","[49m"),bgBlue:t("[44m","[49m"),bgMagenta:t("[45m","[49m"),bgCyan:t("[46m","[49m"),bgWhite:t("[47m","[49m"),blackBright:t("[90m","[39m"),redBright:t("[91m","[39m"),greenBright:t("[92m","[39m"),yellowBright:t("[93m","[39m"),blueBright:t("[94m","[39m"),magentaBright:t("[95m","[39m"),cyanBright:t("[96m","[39m"),whiteBright:t("[97m","[39m"),bgBlackBright:t("[100m","[49m"),bgRedBright:t("[101m","[49m"),bgGreenBright:t("[102m","[49m"),bgYellowBright:t("[103m","[49m"),bgBlueBright:t("[104m","[49m"),bgMagentaBright:t("[105m","[49m"),bgCyanBright:t("[106m","[49m"),bgWhiteBright:t("[107m","[49m")}};e.exports=o(),e.exports.createColors=o},8992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=a;var s=n(4068),i=n(6636);function r(e,t,n){if(t.experimental_preserveFormat){if("string"!=typeof e)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&&"auto"!==t.compact)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(n.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached 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:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};var i;s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"hash",s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:r,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return r&&!o(r)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}function a(e,t={},n){const a=r(n,t,e),o=t.sourceMaps?new s.default(t,n):null;return new i.default(a,o,e.tokens,"string"==typeof n?n:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=r(n,t,e),this._map=t.sourceMaps?new s.default(t,n):null}generate(){return new i.default(this._format,this._map).generate(this._ast)}},t.default=a},9018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let r=e.children[n];(0,s.isJSXText)(r)?(0,i.default)(r,t):((0,s.isJSXExpressionContainer)(r)&&(r=r.expression),(0,s.isJSXEmptyExpression)(r)||t.push(r))}return t};var s=n(8960),i=n(3043)},9023:e=>{"use strict";e.exports=require("util")},9127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.isFunctionDeclaration)(e)||(0,s.isClassDeclaration)(e)||(0,i.default)(e)};var s=n(8960),i=n(3847)},9187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var s=n(7596);const i=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of i){const t=s.ALIAS_KEYS[e];null!=t&&t.length&&(r[e]=t)}const a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(r).forEach(e=>{r[e].forEach(t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)})})},9198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(8960),i=n(8079);t.default=function(e,t){if((0,s.isStatement)(e))return e;let n,r=!1;if((0,s.isClass)(e))r=!0,n="ClassDeclaration";else if((0,s.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0,s.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}},9246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(!(0,s.isBlockStatement)(e)||!(0,s.isFunction)(t)&&!(0,s.isCatchClause)(t))&&(!(!(0,s.isPattern)(e)||!(0,s.isFunction)(t)&&!(0,s.isCatchClause)(t))||(0,s.isScopable)(e))};var s=n(8960)},9276:(e,t)=>{"use strict";function n(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function s(e,t,n){var s;let i=0;null!=(s=e.tokenMap)&&s.startMatches(t,n)&&(i=1,e.token(n)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(n,void 0,e+i),this.space()})}function i(e,t){!0!==t&&e.token(t)}function r(e){a(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)})}function a(e,t,n){e.token("{");const s=e.enterDelimited();n(),s(),e.rightBrace(t)}function o(e,t,n){var s;const i=new Set;for(const e of n)e&&i.add(e);null==(s=e.tokenMap)||s.find(t,t=>!!i.has(t.value)&&(e.token(t.value),e.space(),i.delete(t.value),0===i.size));for(const t of i)e.word(t),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){const{type:t,expression:n,typeAnnotation:s}=e;this.print(n,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(s)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=r,t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:s}=e;t&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(s),this.space(),r.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:n}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:n,options:s}=e;this.word("import"),this.tokenChar(40),this.print(t),s&&(this.tokenChar(44),this.print(s)),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n));const i=e.typeParameters;i&&this.print(i)},t.TSIndexSignature=function(e){const{readonly:t,static:s}=e;s&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),n(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){a(this,e,()=>this.printJoin(e.body,!0,!0))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:s,extends:i,body:r}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(s),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(r)},t.TSIntersectionType=function(e){s(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:s,typeAnnotation:r}=e;this.tokenChar(123);const a=this.enterDelimited();this.space(),s&&(i(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),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),n&&(i(this,n),this.tokenChar(63)),r&&(this.tokenChar(58),this.space(),this.print(r)),this.space(),a(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSModuleBlock=function(e){a(this,e,()=>this.printSequence(e.body,!0))},t.TSModuleDeclaration=function(e){const{declare:t,id:n,kind:s}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=s?s:"Identifier"===n.type?"namespace":"module"),this.space()),this.print(n),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),n(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:s,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(s),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},t.TSTypeLiteral=function(e){a(this,e,()=>this.printJoin(e.members,!0,!0))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){s(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;o(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),o(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")"),this.space();const s=e.typeAnnotation;this.print(s)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")");const s=e.typeAnnotation;this.print(s)}},9320:function(e,t,n){var s;!function(e,t,n){"use strict";var s,i=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))c.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(s=a(t,i))||s.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:r(n,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,n){n.exports=t}}),f=p({"umd:@jridgewell/trace-mapping"(e,t){t.exports=n}}),m={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(m,{GenMapping:()=>w,addMapping:()=>N,addSegment:()=>I,allMappings:()=>B,fromMap:()=>F,maybeAddMapping:()=>O,maybeAddSegment:()=>k,setIgnore:()=>_,setSourceContent:()=>D,toDecodedMap:()=>L,toEncodedMap:()=>M}),e.exports=(s=m,u(r({},"__esModule",{value:!0}),s));var y=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function T(e,t){return e._indexes[t]}function g(e,t){const n=T(e,t);if(void 0!==n)return n;const{array:s,_indexes:i}=e,r=s.push(t);return i[t]=r-1}var x=h(d()),S=h(f()),b=0,E=1,P=2,A=3,v=4,C=-1,w=class{constructor({file:e,sourceRoot:t}={}){this._names=new y,this._sources=new y,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new y}};function I(e,t,n,s,i,r,a,o){return j(!1,e,t,n,s,i,r,a,o)}function N(e,t){return K(!1,e,t)}var k=(e,t,n,s,i,r,a,o)=>j(!0,e,t,n,s,i,r,a,o),O=(e,t)=>K(!0,e,t);function D(e,t,n){const{_sources:s,_sourcesContent:i}=e;i[g(s,t)]=n}function _(e,t,n=!0){const{_sources:s,_sourcesContent:i,_ignoreList:r}=e,a=g(s,t);a===i.length&&(i[a]=null),n?g(r,a):function(e,t){const n=T(e,t);if(void 0===n)return;const{array:s,_indexes:i}=e;for(let e=n+1;e<s.length;e++){const t=s[e];s[e-1]=t,i[t]--}i[t]=void 0,s.pop()}(r,a)}function L(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:i,_ignoreList:r}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}function M(e){const t=L(e);return Object.assign({},t,{mappings:(0,x.encode)(t.mappings)})}function F(e){const t=new S.TraceMap(e),n=new w({file:t.file,sourceRoot:t.sourceRoot});return U(n._names,t.names),U(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map(()=>null),n._mappings=(0,S.decodedMappings)(t),t.ignoreList&&U(n._ignoreList,t.ignoreList),n}function B(e){const t=[],{_mappings:n,_sources:s,_names:i}=e;for(let e=0;e<n.length;e++){const r=n[e];for(let n=0;n<r.length;n++){const a=r[n],o={line:e+1,column:a[b]};let l,c,p;1!==a.length&&(l=s.array[a[E]],c={line:a[P]+1,column:a[A]},5===a.length&&(p=i.array[a[v]])),t.push({generated:o,source:l,original:c,name:p})}}return t}function j(e,t,n,s,i,r,a,o,l){const{_mappings:c,_sources:p,_sourcesContent:u,_names:h}=t,d=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(c,n),f=function(e,t){let n=e.length;for(let s=n-1;s>=0&&!(t>=e[s][b]);n=s--);return n}(d,s);if(!i){if(e&&function(e,t){return 0===t||1===e[t-1].length}(d,f))return;return R(d,f,[s])}const m=g(p,i),y=o?g(h,o):C;if(m===u.length&&(u[m]=null!=l?l:null),!e||!function(e,t,n,s,i,r){if(0===t)return!1;const a=e[t-1];return 1!==a.length&&n===a[E]&&s===a[P]&&i===a[A]&&r===(5===a.length?a[v]:C)}(d,f,m,r,a,y))return R(d,f,o?[s,m,r,a,y]:[s,m,r,a])}function R(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function U(e,t){for(let n=0;n<t.length;n++)g(e,t[n])}function K(e,t,n){const{generated:s,source:i,original:r,name:a,content:o}=n;return i?j(e,t,s.line-1,s.column,i,r.line-1,r.column,a,o):j(e,t,s.line-1,s.column,null,null,null,null,null)}}(e=n.nmd(e),n(4318),n(2802)),e.exports="default"in(s=e).exports?s.exports.default:s.exports},9420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(329);t.default=function(e,t){return(0,s.default)(e,t,!0)}},9564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of s.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of s.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var s=n(3422),i=n(8125)},9578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=d,t._resyncList=f,t._resyncParent=h,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||r._markRemoved.call(this)},t.call=o,t.isDenylisted=c,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;if(!a.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(h.call(this),f.call(this),d.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),u.call(this),this},t.setKey=m,t.setScope=u,t.setup=function(e,t,n,s){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,m.call(this,s)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;const n=this.context;return this.shouldSkip||o.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(p(this,n),this.debug("Recursing into..."),this.shouldStop=(0,s.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),p(this,n),o.call(this,"exit"),this.shouldStop)};var s=n(2264),i=n(9709),r=n(3097),a=n(2352);function o(e){const t=this.opts;return this.debug(e),!(!this.node||!l.call(this,t[e]))||!!this.node&&l.call(this,null==(n=t[this.node.type])?void 0:n[e]);var n}function l(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)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(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function c(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function p(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function u(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let n,s=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&s.isMethod()||"discriminant"===this.key&&s.isSwitchStatement())&&(s=s.parentPath);s&&!n;){var i;if(null!=(i=s.opts)&&i.noScope)return;n=s.scope,s=s.parentPath}this.scope=this.getScope(n),null==(t=this.scope)||t.init()}function h(){this.parentPath&&(this.parent=this.parentPath.node)}function d(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void m.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void m.call(this,e);this.key=null}}function f(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function m(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=c},9594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var s=n(2352);const{traverseFast:i,VISITOR_KEYS:r}=s;t.TokenMap=class{constructor(e,t,n){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=n,i(e,e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){const s=n[e],i=this._tokens[s];if(t(i,s))return i}return null}findLastIndex(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){const s=n[e];if(t(this._tokens[s],s))return s}return-1}findMatching(e,t,n=0){const s=this._nodesToTokenIndexes.get(e);if(s){let i=0;const r=n;if(r>1){const s=this._nodesOccurrencesCountCache.get(e);s&&s.test===t&&s.count<r&&(i=s.i+1,n-=s.count+1)}for(;i<s.length;i++){const a=this._tokens[s[i]];if(this.matchesOriginal(a,t)){if(0===n)return r>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:r,i}),a;n--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const s=this._tokens[n[0]];return s.start===e.start&&this.matchesOriginal(s,t)}endMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const s=this._tokens[n[n.length-1]];return s.end===e.end&&this.matchesOriginal(s,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let s=t;const i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=r[e.type];for(const n of t){const t=e[n];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||i.next();const a=[];for(const e of i){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,s,n),i=t.first;for(let e=s;e<i;e++)a.push(e);s=t.last+1}for(let e=s;e<=n;e++)a.push(e);return a}_findTokensOfNode(e,t,n){const s=this._tokensCache.get(e);if(s)return s;const i=this._findFirstTokenOfNode(e.start,t,n),r=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:r}),{first:i,last:r}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){const s=n+t>>1;if(e<this._tokens[s].start)n=s-1;else{if(!(e>this._tokens[s].start))return s;t=s+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){const s=n+t>>1;if(e<this._tokens[s].end)n=s-1;else{if(!(e>this._tokens[s].end))return s;t=s+1}}return n}}},9638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){h(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t),p(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(h(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),p(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const s=e.specifiers.slice(0);let i=!1;for(;;){const e=s[0];if(!a(e)&&!o(e))break;i=!0,this.print(s.shift()),s.length&&(this.tokenChar(44),this.space())}let r=!1;var t,n;(s.length||!s.length&&!i)&&(r=!0,this.tokenChar(123),s.length&&(this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,r)):this.print(e.source)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,n;this.word("import"),this.space();const s="type"===e.importKind||"typeof"===e.importKind;s?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),r=!!i.length;for(;r;){const e=i[0];if(!l(e)&&!c(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let a=!1;i.length?(a=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):s&&!r&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(r||s)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var n;const{importAttributesKeyword:s}=this.format,{attributes:i,assertions:r}=e;i&&!s&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u&&(u=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const a="assert"===s||!s&&r;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===s||!s&&null!=(n=e.extra)&&n.deprecatedWithLegacySyntax))return void this.printList(i||r);const o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||r,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)};var s=n(2352),i=n(1373);const{isClassDeclaration:r,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=s;let u=!1;function h(e,t){r(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},9709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var s=n(5562),i=n(5753),r=n(5781),a=n(6814),o=n(2352),l=o,c=n(7411),p=n(8992),u=n(940),h=n(7317),d=n(2037),f=n(299),m=n(2257),y=n(854),T=n(9578),g=T,x=n(3097),S=n(8345),b=n(6109),E=n(3383),P=n(7973);const{validate:A}=o,v=i("babel"),C=(t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4,t.default=class e{constructor(e,t){this.contexts=[],this.state=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._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:n,parent:s,container:i,listKey:r,key:a}){if(!t&&n&&(t=n.hub),!s)throw new Error("To get a node path the parent needs to exist");const o=i[a],l=c.getOrCreateCachedPaths(s,n);let p=l.get(o);return p||(p=new e(t,s),o&&l.set(o,p)),T.setup.call(p,n,i,r,a),p}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,r.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 n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){v.enabled&&v(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,p.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}}),w={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:h.getTypeAnnotation,isBaseType:h.isBaseType,couldBeBaseType:h.couldBeBaseType,baseTypeStrictlyMatches:h.baseTypeStrictlyMatches,isGenericType:h.isGenericType,replaceWithMultiple:d.replaceWithMultiple,replaceWithSourceString:d.replaceWithSourceString,replaceWith:d.replaceWith,replaceExpressionWithStatements:d.replaceExpressionWithStatements,replaceInline:d.replaceInline,evaluateTruthy:f.evaluateTruthy,evaluate:f.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:g.isDenylisted,visit:g.visit,skip:g.skip,skipKey:g.skipKey,stop:g.stop,setContext:g.setContext,requeue:g.requeue,requeueComputedKeyAndDecorators:g.requeueComputedKeyAndDecorators,remove:x.remove,insertBefore:S.insertBefore,insertAfter:S.insertAfter,unshiftContainer:S.unshiftContainer,pushContainer:S.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(C.prototype,w),C.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")],Object.assign(C.prototype,{has:y[String("has")],is:y[String("is")],isnt:y[String("isnt")],equals:y[String("equals")],hoist:S[String("hoist")],updateSiblingKeys:S.updateSiblingKeys,call:g.call,isBlacklisted:g[String("isBlacklisted")],setScope:g.setScope,resync:g.resync,popContext:g.popContext,pushContext:g.pushContext,setup:g.setup,setKey:g.setKey}),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,Object.assign(C.prototype,{_getTypeAnnotation:h._getTypeAnnotation,_replaceWith:d._replaceWith,_resolve:y._resolve,_call:g._call,_resyncParent:g._resyncParent,_resyncKey:g._resyncKey,_resyncList:g._resyncList,_resyncRemoved:g._resyncRemoved,_getQueueContexts:g._getQueueContexts,_removeFromScope:x._removeFromScope,_callRemovalHooks:x._callRemovalHooks,_remove:x._remove,_markRemoved:x._markRemoved,_assertUnremoved:x._assertUnremoved,_containerInsert:S._containerInsert,_containerInsertBefore:S._containerInsertBefore,_containerInsertAfter:S._containerInsertAfter,_verifyNodeList:S._verifyNodeList,_getKey:b._getKey,_getPattern:b._getPattern});for(const e of l.TYPES){const t=`is${e}`,n=l[t];C.prototype[t]=function(e){return n(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,P);for(const e of Object.keys(s))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e))},9722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(0,s.default)(e.type,"Immutable")||!!(0,i.isIdentifier)(e)&&"undefined"===e.name};var s=n(4460),i=n(8960)},9793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return s.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return s.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return r.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return s.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return s.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return s.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return s.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return s.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return s.VISITOR_KEYS}}),n(5158),n(9897),n(6184),n(5589),n(7095),n(6106);var s=n(7596),i=n(9187),r=n(5689);Object.keys(r.DEPRECATED_ALIASES).forEach(e=>{s.FLIPPED_ALIAS_KEYS[e]=s.FLIPPED_ALIAS_KEYS[r.DEPRECATED_ALIASES[e]]});for(const{types:e,set:t}of s.allExpandedTypes)for(const n of e){const e=s.FLIPPED_ALIAS_KEYS[n];e?e.forEach(t.add,t):t.add(n)}t.TYPES=[].concat(Object.keys(s.VISITOR_KEYS),Object.keys(s.FLIPPED_ALIAS_KEYS),Object.keys(s.DEPRECATED_KEYS))},9815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:s=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:r=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:r}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:s,placeholderPattern:i,preserveComments:r,syntacticPlaceholders:a}=t,o=function(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}(t,n);if(null!=s&&!(s instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=r&&"boolean"!=typeof r)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=s||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:s||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==r?void 0:r,syntacticPlaceholders:null==a?void 0:a}};const n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},9896:e=>{"use strict";e.exports=require("fs")},9897:(e,t,n)=>{"use strict";var s=n(5158),i=n(7596);const r=(0,i.defineAliasedType)("Flow"),a=e=>{const t="DeclareClass"===e;r(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements"))}:{},{body:(0,i.validateType)("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),a("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),a("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier","StringLiteral"),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))},s.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))},s.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validateArrayOfType)("FunctionTypeParam"),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),a("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,i.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,i.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,i.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,i.validateType)("Identifier","StringLiteral"),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},9937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=C,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(l.includes(t))return g();if(a.includes(t))return d();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?g():t.isBaseType("string")||e.isBaseType("string")?x():b([x(),g()])}},t.BooleanLiteral=function(){return d()},t.CallExpression=function(){const{callee:e}=this.node;return N(e)?h(x()):I(e)||k(e)||P(e,{name:"Array"})?h(u()):O(e)?h(S([x(),u()])):D(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,r.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return m(y("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,r.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return m(e.callee)},t.NullLiteral=function(){return T()},t.NumericLiteral=function(){return g()},t.ObjectExpression=function(){return m(y("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return m(y("RegExp"))},t.RestElement=w,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return x()},t.TSAsExpression=v,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return D(this.get("tag"))},t.TemplateLiteral=function(){return x()},t.TypeCastExpression=A,t.UnaryExpression=function(e){const t=e.operator;return"void"===t?E():c.includes(t)?g():p.includes(t)?x():o.includes(t)?d():void 0},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return g()},t.VariableDeclarator=function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()};var s=n(2352),i=n(354),r=n(3141);const{BOOLEAN_BINARY_OPERATORS:a,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:c,STRING_UNARY_OPERATORS:p,anyTypeAnnotation:u,arrayTypeAnnotation:h,booleanTypeAnnotation:d,buildMatchMemberExpression:f,genericTypeAnnotation:m,identifier:y,nullLiteralTypeAnnotation:T,numberTypeAnnotation:g,stringTypeAnnotation:x,tupleTypeAnnotation:S,unionTypeAnnotation:b,voidTypeAnnotation:E,isIdentifier:P}=s;function A(e){return e.typeAnnotation}function v(e){return e.typeAnnotation}function C(){return m(y("Array"))}function w(){return C()}A.validParent=!0,v.validParent=!0,w.validParent=!0;const I=f("Array.from"),N=f("Object.keys"),k=f("Object.values"),O=f("Object.entries");function D(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.async)return t.generator?m(y("AsyncIterator")):m(y("Promise"));if(t.generator)return m(y("Iterator"));if(e.node.returnType)return e.node.returnType}}},9961:e=>{"use strict";e.exports=JSON.parse('["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);const s=process.env.JS_PARSER_ENABLE_LOGGING&&"true"===process.env.JS_PARSER_ENABLE_LOGGING.trim()||process.argv&&process.argv.includes("enableVerboseLogging"),i=process.env.JS_PARSER_ERROR_LOGGING&&"true"===process.env.JS_PARSER_ERROR_LOGGING.trim()||!s&&process.argv&&process.argv.includes("enableErrorLogging"),r={logPath:n(6928).join(__dirname,"logs","i.txt"),strategy:"console",APP_NAME:"js_parser",showErrorsAndWarnings:i,disable:!s},a=n(9896),o=n(2172),l=n(5781),c=n(175),p=n(2847)(r),u=n(6928),h=n(7740),d=n(857).EOL;let f=`${__dirname}/../`,m="out/out_parsed_typescript.txt",y="input_parsed_typescript",T="sbg-interface-names.txt",g=P(T),x="sbg-bindings.txt",S=[],b=[];process.env.JS_PARSER_OUT_FILE&&(m=process.env.JS_PARSER_OUT_FILE.trim()),process.env.JS_PARSER_INPUT_DIR&&(y=process.env.JS_PARSER_INPUT_DIR.trim()),process.env.JS_PARSER_INTERFACE_FILE_PATH&&(g=process.env.JS_PARSER_INTERFACE_FILE_PATH.trim()),y=a.readFileSync(P("sbg-input-file.txt"),"UTF-8").trim();try{a.unlinkSync(P(x))}catch(e){}m=P(x),g=P(T);let E=P("sbg-js-parsed-files.txt");function P(e){return u.resolve(`${f}/${e}`)}const A=u.join(y,"..","internal","ts_helpers.js"),v=function(e,t){t.errCode&&1===t.errCode?(p.error(`Error processing '${e}': ${t.message}`),p.error("PROCESS EXITING..."),process.stderr.write(t.message),process.exit(4)):p.error(`Error processing '${e}:' `+t)};var C,w,I;(C=E,w=b,I=A,new Promise(function(e,t){a.createReadStream(C).pipe(c()).on("data",function(e){/\S/.test(e)&&w.push(e.toString().trim())}).on("error",function(e){return t(e)}).on("close",function(t){return e(I)})})).then(function(e){return new Promise(function(t,n){a.readFile(e,"utf8",function(s,i){if(s)return p.warn("+DIDN'T parse ast from file "+e),n(s);p.info("+parsing ast from "+e);const r=o.parse(i,{minify:!1,plugins:[["@babel/plugin-proposal-decorators",{decoratorsBeforeExport:!0}]]});return t(r)})})}).then(function(e,t){return new Promise(function(e,t){a.createReadStream(g).pipe(c()).on("data",function(e){/\S/.test(e)&&S.push(e.toString().trim())}).on("error",function(e){return t(!1)}).on("close",function(t){return y=u.normalize(y),e(y)})})}).then(function(e,t){if(!a.existsSync(e))throw"The input dir: "+e+" does not exist!";!function(e){for(let t=0;t<e.length;t+=1){const n=e[t];p.info("Visiting JavaScript/ES Module file: "+n),N(n).then(k.bind(null,n)).then(D.bind(null,n)).then(_).catch(v.bind(null,n))}}(b)}).catch(v.bind(null,E));const N=function(e,t){return new Promise(function(t,n){a.readFile(e,function(s,i){if(s)return p.warn(`+DIDN'T get content of file: ${e}!`),n(s);const r={filePath:e,data:i.toString()};return t(r)})})},k=function(e,t,n){return new Promise(function(s,i){if(n)return p.warn(`+DIDN'T parse ast from file: ${e}!`),i(n);const r={minify:!1,plugins:[["@babel/plugin-proposal-decorators",{decoratorsBeforeExport:!0}],"objectRestSpread"]};e.endsWith(".mjs")?(r.sourceType="module",p.info(`Parsing ES module: ${e}`)):p.info(`Parsing CommonJS file: ${e}`);const a=o.parse(t.data,r);return t.ast=a,s(t)})};function O(e,t,n){return n.indexOf(e)===t}const D=function(e,t,n){return new Promise(function(s,i){if(n)return p.warn(`+DIDN'T visit ast for file: ${e}!`),i(n);l.default(t.ast,{enter:function(e){const n=(t.filePath.endsWith(".mjs")?".mjs":".js").length,s={logger:p,extendDecoratorName:"JavaProxy",interfacesDecoratorName:"Interfaces",filePath:t.filePath.substring(y.length+1,t.filePath.length-n)||"",fullPathName:t.filePath.substring(y.length+1).replace(/[\\]/g,"/"),interfaceNames:S};h.es5Visitor(e,s)}});const r=h.es5Visitor.getProxyExtendInfo(),a=h.es5Visitor.getCommonExtendInfo(),o=h.es5Visitor.getInterfaceInfo();return s(r.concat(a).concat(o).filter(O).join(d))})},_=function(e,t){return new Promise(function(n,s){""!=e.trim()?a.appendFile(m,e+d,function(i){return t?(p.warn("Error from writeToFile: "+t),s(t)):i?(p.warn("Error writing file: "+i),s(i)):(p.info("+appended '"+e+"' to file: "+m),n(e))}):p.info("No need to generate anything. (UP-TO-DATE)")})}})();
|