diff --git a/packages/next/build/babel/preset.ts b/packages/next/build/babel/preset.ts index 5215020169879e8..2bb4ec390f0311b 100644 --- a/packages/next/build/babel/preset.ts +++ b/packages/next/build/babel/preset.ts @@ -198,7 +198,7 @@ module.exports = ( ], require('./plugins/amp-attributes'), isProduction && [ - require('babel-plugin-transform-react-remove-prop-types'), + require('next/dist/compiled/babel/plugin-transform-react-remove-prop-types'), { removeImport: true, }, diff --git a/packages/next/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.ts b/packages/next/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.ts index 047320273a44913..04c1b9c8946e3b8 100644 --- a/packages/next/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.ts +++ b/packages/next/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.ts @@ -1,4 +1,4 @@ -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' import path from 'path' import { webpack } from 'next/dist/compiled/webpack/webpack' diff --git a/packages/next/build/webpack/loaders/babel-loader/src/index.js b/packages/next/build/webpack/loaders/babel-loader/src/index.js index 4e41b72e190bca6..17234d6bad3af53 100644 --- a/packages/next/build/webpack/loaders/babel-loader/src/index.js +++ b/packages/next/build/webpack/loaders/babel-loader/src/index.js @@ -1,5 +1,5 @@ // import babel from 'next/dist/compiled/babel/core' -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' import { tracer, traceAsyncFn, traceFn } from '../../../../tracer' import cache from './cache' import transform from './transform' diff --git a/packages/next/build/webpack/loaders/emit-file-loader.js b/packages/next/build/webpack/loaders/emit-file-loader.js index 3401d0d10363cb9..4002ba7f4990661 100644 --- a/packages/next/build/webpack/loaders/emit-file-loader.js +++ b/packages/next/build/webpack/loaders/emit-file-loader.js @@ -1,4 +1,4 @@ -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' module.exports = function (content, sourceMap) { this.cacheable() diff --git a/packages/next/build/webpack/loaders/error-loader.ts b/packages/next/build/webpack/loaders/error-loader.ts index 510059027f271c1..67cf4eb94320930 100644 --- a/packages/next/build/webpack/loaders/error-loader.ts +++ b/packages/next/build/webpack/loaders/error-loader.ts @@ -1,5 +1,5 @@ import chalk from 'chalk' -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' import path from 'path' import { webpack } from 'next/dist/compiled/webpack/webpack' diff --git a/packages/next/build/webpack/loaders/next-babel-loader.js b/packages/next/build/webpack/loaders/next-babel-loader.js index 3f47a6cb4eeebea..7fab9e126f65183 100644 --- a/packages/next/build/webpack/loaders/next-babel-loader.js +++ b/packages/next/build/webpack/loaders/next-babel-loader.js @@ -155,7 +155,7 @@ const customBabelLoader = babelLoader((babel) => { } options.plugins.push([ - require.resolve('babel-plugin-transform-define'), + require.resolve('next/dist/compiled/babel/plugin-transform-define'), { 'process.env.NODE_ENV': development ? 'development' : 'production', 'typeof window': isServer ? 'undefined' : 'object', diff --git a/packages/next/build/webpack/loaders/next-client-pages-loader.ts b/packages/next/build/webpack/loaders/next-client-pages-loader.ts index d836e309e9e033b..cb7725fb03cc59e 100644 --- a/packages/next/build/webpack/loaders/next-client-pages-loader.ts +++ b/packages/next/build/webpack/loaders/next-client-pages-loader.ts @@ -1,4 +1,4 @@ -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' import { tracer, traceFn } from '../../tracer' export type ClientPagesLoaderOptions = { diff --git a/packages/next/build/webpack/plugins/mini-css-extract-plugin/src/loader.js b/packages/next/build/webpack/plugins/mini-css-extract-plugin/src/loader.js index 4eeba0b83086582..302ba3ddc60a13d 100644 --- a/packages/next/build/webpack/plugins/mini-css-extract-plugin/src/loader.js +++ b/packages/next/build/webpack/plugins/mini-css-extract-plugin/src/loader.js @@ -1,6 +1,6 @@ import NativeModule from 'module' -import loaderUtils from 'loader-utils' +import loaderUtils from 'next/dist/compiled/loader-utils' import { webpack, isWebpack5, diff --git a/packages/next/bundles/babel/bundle.js b/packages/next/bundles/babel/bundle.js index 20d16dc70e00479..488b51f232bdca3 100644 --- a/packages/next/bundles/babel/bundle.js +++ b/packages/next/bundles/babel/bundle.js @@ -36,10 +36,18 @@ function pluginSyntaxJsx() { return require('@babel/plugin-syntax-jsx') } +function pluginTransformDefine() { + return require('babel-plugin-transform-define') +} + function pluginTransformModulesCommonjs() { return require('@babel/plugin-transform-modules-commonjs') } +function pluginTransformReactRemovePropTypes() { + return require('babel-plugin-transform-react-remove-prop-types') +} + function pluginTransformRuntime() { return require('@babel/plugin-transform-runtime') } @@ -66,7 +74,9 @@ module.exports = { pluginSyntaxBigint, pluginSyntaxDynamicImport, pluginSyntaxJsx, + pluginTransformDefine, pluginTransformModulesCommonjs, + pluginTransformReactRemovePropTypes, pluginTransformRuntime, presetEnv, presetReact, diff --git a/packages/next/bundles/babel/packages/plugin-transform-define.js b/packages/next/bundles/babel/packages/plugin-transform-define.js new file mode 100644 index 000000000000000..761eddefe615fe1 --- /dev/null +++ b/packages/next/bundles/babel/packages/plugin-transform-define.js @@ -0,0 +1 @@ +module.exports = require('./bundle').pluginTransformDefine() diff --git a/packages/next/bundles/babel/packages/plugin-transform-react-remove-prop-types.js b/packages/next/bundles/babel/packages/plugin-transform-react-remove-prop-types.js new file mode 100644 index 000000000000000..8fced4e92a01c36 --- /dev/null +++ b/packages/next/bundles/babel/packages/plugin-transform-react-remove-prop-types.js @@ -0,0 +1 @@ +module.exports = require('./bundle').pluginTransformReactRemovePropTypes() diff --git a/packages/next/compiled/babel/bundle.js b/packages/next/compiled/babel/bundle.js index a97696f346cf1eb..36b6194a4ec2ad6 100644 --- a/packages/next/compiled/babel/bundle.js +++ b/packages/next/compiled/babel/bundle.js @@ -10,7 +10,7 @@ module.exports=(()=>{var e={44954:e=>{"use strict";e.exports=JSON.parse('{"es6.a })(UMD_ROOT, function (FACTORY_PARAMETERS) { FACTORY_BODY }); - `(e);function buildGlobal(e){const r=t().identifier("babelHelpers");const s=[];const n=t().functionExpression(null,[t().identifier("global")],t().blockStatement(s));const a=t().program([t().expressionStatement(t().callExpression(n,[t().conditionalExpression(t().binaryExpression("===",t().unaryExpression("typeof",t().identifier("global")),t().stringLiteral("undefined")),t().identifier("self"),t().identifier("global"))]))]);s.push(t().variableDeclaration("var",[t().variableDeclarator(r,t().assignmentExpression("=",t().memberExpression(t().identifier("global"),r),t().objectExpression([])))]));buildHelpers(s,r,e);return a}function buildModule(e){const r=[];const s=buildHelpers(r,null,e);r.unshift(t().exportNamedDeclaration(null,Object.keys(s).map(e=>{return t().exportSpecifier(t().cloneNode(s[e]),t().identifier(e))})));return t().program(r,[],"module")}function buildUmd(e){const r=t().identifier("babelHelpers");const s=[];s.push(t().variableDeclaration("var",[t().variableDeclarator(r,t().identifier("global"))]));buildHelpers(s,r,e);return t().program([a({FACTORY_PARAMETERS:t().identifier("global"),BROWSER_ARGUMENTS:t().assignmentExpression("=",t().memberExpression(t().identifier("root"),r),t().objectExpression([])),COMMON_ARGUMENTS:t().identifier("exports"),AMD_ARGUMENTS:t().arrayExpression([t().stringLiteral("exports")]),FACTORY_BODY:s,UMD_ROOT:t().identifier("this")})])}function buildVar(e){const r=t().identifier("babelHelpers");const s=[];s.push(t().variableDeclaration("var",[t().variableDeclarator(r,t().objectExpression([]))]));const n=t().program(s);buildHelpers(s,r,e);s.push(t().expressionStatement(r));return n}function buildHelpers(e,r,s){const a=e=>{return r?t().memberExpression(r,t().identifier(e)):t().identifier(`_${e}`)};const i={};helpers().list.forEach(function(t){if(s&&s.indexOf(t)<0)return;const r=i[t]=a(t);helpers().ensure(t,n.default);const{nodes:o}=helpers().get(t,a,r);e.push(...o)});return i}function _default(e,t="global"){let r;const s={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(s){r=s(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}},93063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromAstAsync=t.transformFromAstSync=t.transformFromAst=void 0;function _gensync(){const e=_interopRequireDefault(r(67941));_gensync=function(){return e};return e}var s=_interopRequireDefault(r(98534));var n=r(58109);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,_gensync().default)(function*(e,t,r){const a=yield*(0,s.default)(r);if(a===null)return null;if(!e)throw new Error("No AST given");return yield*(0,n.run)(a,t,e)});const i=function transformFromAst(e,t,r,s){if(typeof r==="function"){s=r;r=undefined}if(s===undefined){return a.sync(e,t,r)}a.errback(e,t,r,s)};t.transformFromAst=i;const o=a.sync;t.transformFromAstSync=o;const l=a.async;t.transformFromAstAsync=l},38126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFileAsync=t.transformFileSync=t.transformFile=void 0;function _gensync(){const e=_interopRequireDefault(r(67941));_gensync=function(){return e};return e}var s=_interopRequireDefault(r(98534));var n=r(58109);var a=_interopRequireWildcard(r(60153));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}({});const i=(0,_gensync().default)(function*(e,t){const r=Object.assign({},t,{filename:e});const i=yield*(0,s.default)(r);if(i===null)return null;const o=yield*a.readFile(e,"utf8");return yield*(0,n.run)(i,o)});const o=i.errback;t.transformFile=o;const l=i.sync;t.transformFileSync=l;const u=i.async;t.transformFileAsync=u},52101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformAsync=t.transformSync=t.transform=void 0;function _gensync(){const e=_interopRequireDefault(r(67941));_gensync=function(){return e};return e}var s=_interopRequireDefault(r(98534));var n=r(58109);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,_gensync().default)(function*transform(e,t){const r=yield*(0,s.default)(t);if(r===null)return null;return yield*(0,n.run)(r,e)});const i=function transform(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(r===undefined)return a.sync(e,t);a.errback(e,t,r)};t.transform=i;const o=a.sync;t.transformSync=o;const l=a.async;t.transformAsync=l},43733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loadBlockHoistPlugin;function _sortBy(){const e=_interopRequireDefault(r(52169));_sortBy=function(){return e};return e}var s=_interopRequireDefault(r(98534));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let n;function loadBlockHoistPlugin(){if(!n){const e=s.default.sync({babelrc:false,configFile:false,plugins:[a]});n=e?e.passes[0][0]:undefined;if(!n)throw new Error("Assertion failure")}return n}const a={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){let t=false;for(let r=0;r{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.default=void 0;function helpers(){const e=_interopRequireWildcard(s(56976));helpers=function(){return e};return e}function _traverse(){const e=_interopRequireWildcard(s(18442));_traverse=function(){return e};return e}function _codeFrame(){const e=s(36553);_codeFrame=function(){return e};return e}function t(){const e=_interopRequireWildcard(s(63760));t=function(){return e};return e}function _helperModuleTransforms(){const e=s(8580);_helperModuleTransforms=function(){return e};return e}function _semver(){const e=_interopRequireDefault(s(62519));_semver=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}const n={enter(e,t){const r=e.node.loc;if(r){t.loc=r;e.stop()}}};class File{constructor(e,{code:t,ast:r,inputMap:s}){this._map=new Map;this.opts=void 0;this.declarations={};this.path=null;this.ast={};this.scope=void 0;this.metadata={};this.code="";this.inputMap=null;this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)};this.opts=e;this.code=t;this.ast=r;this.inputMap=s;this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext();this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){if(e){this.path.get("interpreter").replaceWith(t().interpreterDirective(e))}else{this.path.get("interpreter").remove()}}set(e,t){if(e==="helpersNamespace"){throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility."+"If you are using @babel/plugin-external-helpers you will need to use a newer "+"version than the one you currently have installed. "+"If you have your own implementation, you'll want to explore using 'helperGenerator' "+"alongside 'file.availableHelper()'.")}this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}getModuleName(){return(0,_helperModuleTransforms().getModuleName)(this.opts,this.opts)}addImport(){throw new Error("This API has been removed. If you're looking for this "+"functionality in Babel 7, you should import the "+"'@babel/helper-module-imports' module and use the functions exposed "+" from that module, such as 'addNamed' or 'addDefault'.")}availableHelper(e,t){let r;try{r=helpers().minVersion(e)}catch(e){if(e.code!=="BABEL_HELPER_UNKNOWN")throw e;return false}if(typeof t!=="string")return true;if(_semver().default.valid(t))t=`^${t}`;return!_semver().default.intersects(`<${r}`,t)&&!_semver().default.intersects(`>=8.0.0`,t)}addHelper(e){const r=this.declarations[e];if(r)return t().cloneNode(r);const s=this.get("helperGenerator");if(s){const t=s(e);if(t)return t}helpers().ensure(e,File);const n=this.declarations[e]=this.scope.generateUidIdentifier(e);const a={};for(const t of helpers().getDependencies(e)){a[t]=this.addHelper(t)}const{nodes:i,globals:o}=helpers().get(e,e=>a[e],n,Object.keys(this.scope.getAllBindings()));o.forEach(e=>{if(this.path.scope.hasBinding(e,true)){this.path.scope.rename(e)}});i.forEach(e=>{e._compact=true});this.path.unshiftContainer("body",i);this.path.get("body").forEach(e=>{if(i.indexOf(e.node)===-1)return;if(e.isVariableDeclaration())this.scope.registerDeclaration(e)});return n}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(e,t,r=SyntaxError){let s=e&&(e.loc||e._loc);if(!s&&e){const r={loc:null};(0,_traverse().default)(e,n,this.scope,r);s=r.loc;let a="This is an error on an internal node. Probably an internal error.";if(s)a+=" Location has been estimated.";t+=` (${a})`}if(s){const{highlightCode:e=true}=this.opts;t+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:s.start.line,column:s.start.column+1},end:s.end&&s.start.line===s.end.line?{line:s.end.line,column:s.end.column+1}:undefined},{highlightCode:e})}return new r(t)}}r.default=File},37151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=generateCode;function _convertSourceMap(){const e=_interopRequireDefault(r(36301));_convertSourceMap=function(){return e};return e}function _generator(){const e=_interopRequireDefault(r(43187));_generator=function(){return e};return e}var s=_interopRequireDefault(r(10390));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function generateCode(e,t){const{opts:r,ast:n,code:a,inputMap:i}=t;const o=[];for(const t of e){for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(n,r.generatorOpts,a,_generator().default);if(e!==undefined)o.push(e)}}}let l;if(o.length===0){l=(0,_generator().default)(n,r.generatorOpts,a)}else if(o.length===1){l=o[0];if(typeof l.then==="function"){throw new Error(`You appear to be using an async codegen plugin, `+`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.`)}}else{throw new Error("More than one plugin attempted to override codegen.")}let{code:u,map:c}=l;if(c&&i){c=(0,s.default)(i.toObject(),c)}if(r.sourceMaps==="inline"||r.sourceMaps==="both"){u+="\n"+_convertSourceMap().default.fromObject(c).toComment()}if(r.sourceMaps==="inline"){c=null}return{outputCode:u,outputMap:c}}},10390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=mergeSourceMap;function _sourceMap(){const e=_interopRequireDefault(r(96241));_sourceMap=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function mergeSourceMap(e,t){const r=buildMappingData(e);const s=buildMappingData(t);const n=new(_sourceMap().default.SourceMapGenerator);for(const{source:e}of r.sources){if(typeof e.content==="string"){n.setSourceContent(e.path,e.content)}}if(s.sources.length===1){const e=s.sources[0];const t=new Map;eachInputGeneratedRange(r,(r,s,a)=>{eachOverlappingGeneratedOutputRange(e,r,e=>{const r=makeMappingKey(e);if(t.has(r))return;t.set(r,e);n.addMapping({source:a.path,original:{line:s.line,column:s.columnStart},generated:{line:e.line,column:e.columnStart},name:s.name})})});for(const e of t.values()){if(e.columnEnd===Infinity){continue}const r={line:e.line,columnStart:e.columnEnd};const s=makeMappingKey(r);if(t.has(s)){continue}n.addMapping({generated:{line:r.line,column:r.columnStart}})}}const a=n.toJSON();if(typeof r.sourceRoot==="string"){a.sourceRoot=r.sourceRoot}return a}function makeMappingKey(e){return`${e.line}/${e.columnStart}`}function eachOverlappingGeneratedOutputRange(e,t,r){const s=filterApplicableOriginalRanges(e,t);for(const{generated:e}of s){for(const t of e){r(t)}}}function filterApplicableOriginalRanges({mappings:e},{line:t,columnStart:r,columnEnd:s}){return filterSortedArray(e,({original:e})=>{if(t>e.line)return-1;if(t=e.columnEnd)return-1;if(s<=e.columnStart)return 1;return 0})}function eachInputGeneratedRange(e,t){for(const{source:r,mappings:s}of e.sources){for(const{original:e,generated:n}of s){for(const s of n){t(s,e,r)}}}}function buildMappingData(e){const t=new(_sourceMap().default.SourceMapConsumer)(Object.assign({},e,{sourceRoot:null}));const r=new Map;const s=new Map;let n=null;t.computeColumnSpans();t.eachMapping(e=>{if(e.originalLine===null)return;let a=r.get(e.source);if(!a){a={path:e.source,content:t.sourceContentFor(e.source,true)};r.set(e.source,a)}let i=s.get(a);if(!i){i={source:a,mappings:[]};s.set(a,i)}const o={line:e.originalLine,columnStart:e.originalColumn,columnEnd:Infinity,name:e.name};if(n&&n.source===a&&n.mapping.line===e.originalLine){n.mapping.columnEnd=e.originalColumn}n={source:a,mapping:o};i.mappings.push({original:o,generated:t.allGeneratedPositionsFor({source:e.source,line:e.originalLine,column:e.originalColumn}).map(e=>({line:e.line,columnStart:e.column,columnEnd:e.lastColumn+1}))})},null,_sourceMap().default.SourceMapConsumer.ORIGINAL_ORDER);return{file:e.file,sourceRoot:e.sourceRoot,sources:Array.from(s.values())}}function findInsertionLocation(e,t){let r=0;let s=e.length;while(r=0){s=n}else{r=n+1}}let n=r;if(n=0&&t(e[n])>=0){n--}return n+1}return n}function filterSortedArray(e,t){const r=findInsertionLocation(e,t);const s=[];for(let n=r;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=run;function _traverse(){const e=_interopRequireDefault(r(18442));_traverse=function(){return e};return e}var s=_interopRequireDefault(r(84938));var n=_interopRequireDefault(r(43733));var a=_interopRequireDefault(r(78593));var i=_interopRequireDefault(r(19093));var o=_interopRequireDefault(r(37151));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function*run(e,t,r){const s=yield*(0,i.default)(e.passes,(0,a.default)(e),t,r);const n=s.opts;try{yield*transformFile(s,e.passes)}catch(e){var l;e.message=`${(l=n.filename)!=null?l:"unknown"}: ${e.message}`;if(!e.code){e.code="BABEL_TRANSFORM_ERROR"}throw e}let u,c;try{if(n.code!==false){({outputCode:u,outputMap:c}=(0,o.default)(e.passes,s))}}catch(e){var p;e.message=`${(p=n.filename)!=null?p:"unknown"}: ${e.message}`;if(!e.code){e.code="BABEL_GENERATE_ERROR"}throw e}return{metadata:s.metadata,options:n,ast:n.ast===true?s.ast:null,code:u===undefined?null:u,map:c===undefined?null:c,sourceType:s.ast.program.sourceType}}function*transformFile(e,t){for(const r of t){const t=[];const a=[];const i=[];for(const o of r.concat([(0,n.default)()])){const r=new s.default(e,o.key,o.options);t.push([o,r]);a.push(r);i.push(o.visitor)}for(const[r,s]of t){const t=r.pre;if(t){const r=t.call(s,e);yield*[];if(isThenable(r)){throw new Error(`You appear to be using an plugin with an async .pre, `+`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.`)}}}const o=_traverse().default.visitors.merge(i,a,e.opts.wrapPluginVisitorMethod);(0,_traverse().default)(e.ast,o,e.scope);for(const[r,s]of t){const t=r.post;if(t){const r=t.call(s,e);yield*[];if(isThenable(r)){throw new Error(`You appear to be using an plugin with an async .post, `+`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.`)}}}}}function isThenable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!!e.then&&typeof e.then==="function"}},19093:(e,r,s)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.default=normalizeFile;function _fs(){const e=_interopRequireDefault(s(35747));_fs=function(){return e};return e}function _path(){const e=_interopRequireDefault(s(85622));_path=function(){return e};return e}function _debug(){const e=_interopRequireDefault(s(31185));_debug=function(){return e};return e}function _cloneDeep(){const e=_interopRequireDefault(s(60956));_cloneDeep=function(){return e};return e}function t(){const e=_interopRequireWildcard(s(63760));t=function(){return e};return e}function _convertSourceMap(){const e=_interopRequireDefault(s(36301));_convertSourceMap=function(){return e};return e}var n=_interopRequireDefault(s(13317));var a=_interopRequireDefault(s(92798));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=(0,_debug().default)("babel:transform:file");const o=1e6;function*normalizeFile(e,r,s,c){s=`${s||""}`;if(c){if(c.type==="Program"){c=t().file(c,[],[])}else if(c.type!=="File"){throw new Error("AST root must be a Program or File node")}const{cloneInputAst:e}=r;if(e){c=(0,_cloneDeep().default)(c)}}else{c=yield*(0,a.default)(e,r,s)}let p=null;if(r.inputSourceMap!==false){if(typeof r.inputSourceMap==="object"){p=_convertSourceMap().default.fromObject(r.inputSourceMap)}if(!p){const e=extractComments(l,c);if(e){try{p=_convertSourceMap().default.fromComment(e)}catch(e){i("discarding unknown inline input sourcemap",e)}}}if(!p){const e=extractComments(u,c);if(typeof r.filename==="string"&&e){try{const t=u.exec(e);const s=_fs().default.readFileSync(_path().default.resolve(_path().default.dirname(r.filename),t[1]));if(s.length>o){i("skip merging input map > 1 MB")}else{p=_convertSourceMap().default.fromJSON(s)}}catch(e){i("discarding unknown file input sourcemap",e)}}else if(e){i("discarding un-loadable file input sourcemap")}}}return new n.default(r,{code:s,ast:c,inputMap:p})}const l=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/;const u=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function extractCommentsFromList(e,t,r){if(t){t=t.filter(({value:t})=>{if(e.test(t)){r=t;return false}return true})}return[t,r]}function extractComments(e,r){let s=null;t().traverseFast(r,t=>{[t.leadingComments,s]=extractCommentsFromList(e,t.leadingComments,s);[t.innerComments,s]=extractCommentsFromList(e,t.innerComments,s);[t.trailingComments,s]=extractCommentsFromList(e,t.trailingComments,s)});return s}},78593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=normalizeOptions;function _path(){const e=_interopRequireDefault(r(85622));_path=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function normalizeOptions(e){const{filename:t,cwd:r,filenameRelative:s=(typeof t==="string"?_path().default.relative(r,t):"unknown"),sourceType:n="module",inputSourceMap:a,sourceMaps:i=!!a,moduleRoot:o,sourceRoot:l=o,sourceFileName:u=_path().default.basename(s),comments:c=true,compact:p="auto"}=e.options;const f=e.options;const d=Object.assign({},f,{parserOpts:Object.assign({sourceType:_path().default.extname(s)===".mjs"?"module":n,sourceFileName:t,plugins:[]},f.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:f.auxiliaryCommentBefore,auxiliaryCommentAfter:f.auxiliaryCommentAfter,retainLines:f.retainLines,comments:c,shouldPrintComment:f.shouldPrintComment,compact:p,minified:f.minified,sourceMaps:i,sourceRoot:l,sourceFileName:u},f.generatorOpts)});for(const t of e.passes){for(const e of t){if(e.manipulateOptions){e.manipulateOptions(d,d.parserOpts)}}}return d}},84938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class PluginPass{constructor(e,t,r){this._map=new Map;this.key=void 0;this.file=void 0;this.opts=void 0;this.cwd=void 0;this.filename=void 0;this.key=t;this.file=e;this.opts=r||{};this.cwd=e.opts.cwd;this.filename=e.opts.filename}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}addImport(){return this.file.addImport()}getModuleName(){return this.file.getModuleName()}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t.default=PluginPass},19078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;const r=/^[ \t]+$/;class Buffer{constructor(e){this._map=null;this._buf=[];this._last="";this._queue=[];this._position={line:1,column:0};this._sourcePosition={identifierName:null,line:null,column:null,filename:null};this._disallowedPop=null;this._map=e}get(){this._flush();const e=this._map;const t={code:this._buf.join("").trimRight(),map:null,rawMappings:e==null?void 0:e.getRawMappings()};if(e){Object.defineProperty(t,"map",{configurable:true,enumerable:true,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:true})}})}return t}append(e){this._flush();const{line:t,column:r,filename:s,identifierName:n,force:a}=this._sourcePosition;this._append(e,t,r,n,s,a)}queue(e){if(e==="\n"){while(this._queue.length>0&&r.test(this._queue[0][0])){this._queue.shift()}}const{line:t,column:s,filename:n,identifierName:a,force:i}=this._sourcePosition;this._queue.unshift([e,t,s,a,n,i])}_flush(){let e;while(e=this._queue.pop())this._append(...e)}_append(e,t,r,s,n,a){this._buf.push(e);this._last=e[e.length-1];let i=e.indexOf("\n");let o=0;if(i!==0){this._mark(t,r,s,n,a)}while(i!==-1){this._position.line++;this._position.column=0;o=i+1;if(o0&&this._queue[0][0]==="\n"){this._queue.shift()}}removeLastSemicolon(){if(this._queue.length>0&&this._queue[0][0]===";"){this._queue.shift()}}endsWith(e){if(e.length===1){let t;if(this._queue.length>0){const e=this._queue[0][0];t=e[e.length-1]}else{t=this._last}return t===e}const t=this._last+this._queue.reduce((e,t)=>t[0]+e,"");if(e.length<=t.length){return t.slice(-e.length)===e}return false}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,true);t();this.source("end",e);this._disallowPop("start",e)}source(e,t,r){if(e&&!t)return;this._normalizePosition(e,t,this._sourcePosition,r)}withSource(e,t,r){if(!this._map)return r();const s=this._sourcePosition.line;const n=this._sourcePosition.column;const a=this._sourcePosition.filename;const i=this._sourcePosition.identifierName;this.source(e,t);r();if((!this._sourcePosition.force||this._sourcePosition.line!==s||this._sourcePosition.column!==n||this._sourcePosition.filename!==a)&&(!this._disallowedPop||this._disallowedPop.line!==s||this._disallowedPop.column!==n||this._disallowedPop.filename!==a)){this._sourcePosition.line=s;this._sourcePosition.column=n;this._sourcePosition.filename=a;this._sourcePosition.identifierName=i;this._sourcePosition.force=false;this._disallowedPop=null}}_disallowPop(e,t){if(e&&!t)return;this._disallowedPop=this._normalizePosition(e,t)}_normalizePosition(e,t,r,s){const n=t?t[e]:null;if(r===undefined){r={identifierName:null,line:null,column:null,filename:null,force:false}}const a=r.line;const i=r.column;const o=r.filename;r.identifierName=e==="start"&&(t==null?void 0:t.identifierName)||null;r.line=n==null?void 0:n.line;r.column=n==null?void 0:n.column;r.filename=t==null?void 0:t.filename;if(s||r.line!==a||r.column!==i||r.filename!==o){r.force=s}return r}getCurrentColumn(){const e=this._queue.reduce((e,t)=>t[0]+e,"");const t=e.lastIndexOf("\n");return t===-1?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce((e,t)=>t[0]+e,"");let t=0;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.File=File;t.Program=Program;t.BlockStatement=BlockStatement;t.Noop=Noop;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;function File(e){if(e.program){this.print(e.program.interpreter,e)}this.print(e.program,e)}function Program(e){this.printInnerComments(e,false);this.printSequence(e.directives,e);if(e.directives&&e.directives.length)this.newline();this.printSequence(e.body,e)}function BlockStatement(e){var t;this.token("{");this.printInnerComments(e);const r=(t=e.directives)==null?void 0:t.length;if(e.body.length||r){this.newline();this.printSequence(e.directives,e,{indent:true});if(r)this.newline();this.printSequence(e.body,e,{indent:true});this.removeTrailingNewline();this.source("end",e.loc);if(!this.endsWith("\n"))this.newline();this.rightBrace()}else{this.source("end",e.loc);this.token("}")}}function Noop(){}function Directive(e){this.print(e.value,e);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const s=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(t!=null){this.token(t);return}const{value:n}=e;if(!s.test(n)){this.token(`"${n}"`)}else if(!r.test(n)){this.token(`'${n}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}\n`)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},80111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassExpression=t.ClassDeclaration=ClassDeclaration;t.ClassBody=ClassBody;t.ClassProperty=ClassProperty;t.ClassPrivateProperty=ClassPrivateProperty;t.ClassMethod=ClassMethod;t.ClassPrivateMethod=ClassPrivateMethod;t._classMethodHead=_classMethodHead;t.StaticBlock=StaticBlock;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function ClassDeclaration(e,t){if(!this.format.decoratorsBeforeExport||!s.isExportDefaultDeclaration(t)&&!s.isExportNamedDeclaration(t)){this.printJoin(e.decorators,e)}if(e.declare){this.word("declare");this.space()}if(e.abstract){this.word("abstract");this.space()}this.word("class");if(e.id){this.space();this.print(e.id,e)}this.print(e.typeParameters,e);if(e.superClass){this.space();this.word("extends");this.space();this.print(e.superClass,e);this.print(e.superTypeParameters,e)}if(e.implements){this.space();this.word("implements");this.space();this.printList(e.implements,e)}this.space();this.print(e.body,e)}function ClassBody(e){this.token("{");this.printInnerComments(e);if(e.body.length===0){this.token("}")}else{this.newline();this.indent();this.printSequence(e.body,e);this.dedent();if(!this.endsWith("\n"))this.newline();this.rightBrace()}}function ClassProperty(e){this.printJoin(e.decorators,e);this.tsPrintClassMemberModifiers(e,true);if(e.computed){this.token("[");this.print(e.key,e);this.token("]")}else{this._variance(e);this.print(e.key,e)}if(e.optional){this.token("?")}if(e.definite){this.token("!")}this.print(e.typeAnnotation,e);if(e.value){this.space();this.token("=");this.space();this.print(e.value,e)}this.semicolon()}function ClassPrivateProperty(e){this.printJoin(e.decorators,e);if(e.static){this.word("static");this.space()}this.print(e.key,e);this.print(e.typeAnnotation,e);if(e.value){this.space();this.token("=");this.space();this.print(e.value,e)}this.semicolon()}function ClassMethod(e){this._classMethodHead(e);this.space();this.print(e.body,e)}function ClassPrivateMethod(e){this._classMethodHead(e);this.space();this.print(e.body,e)}function _classMethodHead(e){this.printJoin(e.decorators,e);this.tsPrintClassMemberModifiers(e,false);this._methodHead(e)}function StaticBlock(e){this.word("static");this.space();this.token("{");if(e.body.length===0){this.token("}")}else{this.newline();this.printSequence(e.body,e,{indent:true});this.rightBrace()}}},94447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnaryExpression=UnaryExpression;t.DoExpression=DoExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.UpdateExpression=UpdateExpression;t.ConditionalExpression=ConditionalExpression;t.NewExpression=NewExpression;t.SequenceExpression=SequenceExpression;t.ThisExpression=ThisExpression;t.Super=Super;t.Decorator=Decorator;t.OptionalMemberExpression=OptionalMemberExpression;t.OptionalCallExpression=OptionalCallExpression;t.CallExpression=CallExpression;t.Import=Import;t.EmptyStatement=EmptyStatement;t.ExpressionStatement=ExpressionStatement;t.AssignmentPattern=AssignmentPattern;t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=AssignmentExpression;t.BindExpression=BindExpression;t.MemberExpression=MemberExpression;t.MetaProperty=MetaProperty;t.PrivateName=PrivateName;t.V8IntrinsicIdentifier=V8IntrinsicIdentifier;t.AwaitExpression=t.YieldExpression=void 0;var s=_interopRequireWildcard(r(63760));var n=_interopRequireWildcard(r(40523));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function UnaryExpression(e){if(e.operator==="void"||e.operator==="delete"||e.operator==="typeof"||e.operator==="throw"){this.word(e.operator);this.space()}else{this.token(e.operator)}this.print(e.argument,e)}function DoExpression(e){this.word("do");this.space();this.print(e.body,e)}function ParenthesizedExpression(e){this.token("(");this.print(e.expression,e);this.token(")")}function UpdateExpression(e){if(e.prefix){this.token(e.operator);this.print(e.argument,e)}else{this.startTerminatorless(true);this.print(e.argument,e);this.endTerminatorless();this.token(e.operator)}}function ConditionalExpression(e){this.print(e.test,e);this.space();this.token("?");this.space();this.print(e.consequent,e);this.space();this.token(":");this.space();this.print(e.alternate,e)}function NewExpression(e,t){this.word("new");this.space();this.print(e.callee,e);if(this.format.minified&&e.arguments.length===0&&!e.optional&&!s.isCallExpression(t,{callee:e})&&!s.isMemberExpression(t)&&!s.isNewExpression(t)){return}this.print(e.typeArguments,e);this.print(e.typeParameters,e);if(e.optional){this.token("?.")}this.token("(");this.printList(e.arguments,e);this.token(")")}function SequenceExpression(e){this.printList(e.expressions,e)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function Decorator(e){this.token("@");this.print(e.expression,e);this.newline()}function OptionalMemberExpression(e){this.print(e.object,e);if(!e.computed&&s.isMemberExpression(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(s.isLiteral(e.property)&&typeof e.property.value==="number"){t=true}if(e.optional){this.token("?.")}if(t){this.token("[");this.print(e.property,e);this.token("]")}else{if(!e.optional){this.token(".")}this.print(e.property,e)}}function OptionalCallExpression(e){this.print(e.callee,e);this.print(e.typeArguments,e);this.print(e.typeParameters,e);if(e.optional){this.token("?.")}this.token("(");this.printList(e.arguments,e);this.token(")")}function CallExpression(e){this.print(e.callee,e);this.print(e.typeArguments,e);this.print(e.typeParameters,e);this.token("(");this.printList(e.arguments,e);this.token(")")}function Import(){this.word("import")}function buildYieldAwait(e){return function(t){this.word(e);if(t.delegate){this.token("*")}if(t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t);this.endTerminatorless(e)}}}const a=buildYieldAwait("yield");t.YieldExpression=a;const i=buildYieldAwait("await");t.AwaitExpression=i;function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(e){this.print(e.expression,e);this.semicolon()}function AssignmentPattern(e){this.print(e.left,e);if(e.left.optional)this.token("?");this.print(e.left.typeAnnotation,e);this.space();this.token("=");this.space();this.print(e.right,e)}function AssignmentExpression(e,t){const r=this.inForStatementInitCounter&&e.operator==="in"&&!n.needsParens(e,t);if(r){this.token("(")}this.print(e.left,e);this.space();if(e.operator==="in"||e.operator==="instanceof"){this.word(e.operator)}else{this.token(e.operator)}this.space();this.print(e.right,e);if(r){this.token(")")}}function BindExpression(e){this.print(e.object,e);this.token("::");this.print(e.callee,e)}function MemberExpression(e){this.print(e.object,e);if(!e.computed&&s.isMemberExpression(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(s.isLiteral(e.property)&&typeof e.property.value==="number"){t=true}if(t){this.token("[");this.print(e.property,e);this.token("]")}else{this.token(".");this.print(e.property,e)}}function MetaProperty(e){this.print(e.meta,e);this.token(".");this.print(e.property,e)}function PrivateName(e){this.token("#");this.print(e.id,e)}function V8IntrinsicIdentifier(e){this.token("%");this.word(e.name)}},95755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnyTypeAnnotation=AnyTypeAnnotation;t.ArrayTypeAnnotation=ArrayTypeAnnotation;t.BooleanTypeAnnotation=BooleanTypeAnnotation;t.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;t.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;t.DeclareClass=DeclareClass;t.DeclareFunction=DeclareFunction;t.InferredPredicate=InferredPredicate;t.DeclaredPredicate=DeclaredPredicate;t.DeclareInterface=DeclareInterface;t.DeclareModule=DeclareModule;t.DeclareModuleExports=DeclareModuleExports;t.DeclareTypeAlias=DeclareTypeAlias;t.DeclareOpaqueType=DeclareOpaqueType;t.DeclareVariable=DeclareVariable;t.DeclareExportDeclaration=DeclareExportDeclaration;t.DeclareExportAllDeclaration=DeclareExportAllDeclaration;t.EnumDeclaration=EnumDeclaration;t.EnumBooleanBody=EnumBooleanBody;t.EnumNumberBody=EnumNumberBody;t.EnumStringBody=EnumStringBody;t.EnumSymbolBody=EnumSymbolBody;t.EnumDefaultedMember=EnumDefaultedMember;t.EnumBooleanMember=EnumBooleanMember;t.EnumNumberMember=EnumNumberMember;t.EnumStringMember=EnumStringMember;t.ExistsTypeAnnotation=ExistsTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.FunctionTypeParam=FunctionTypeParam;t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=InterfaceExtends;t._interfaceish=_interfaceish;t._variance=_variance;t.InterfaceDeclaration=InterfaceDeclaration;t.InterfaceTypeAnnotation=InterfaceTypeAnnotation;t.IntersectionTypeAnnotation=IntersectionTypeAnnotation;t.MixedTypeAnnotation=MixedTypeAnnotation;t.EmptyTypeAnnotation=EmptyTypeAnnotation;t.NullableTypeAnnotation=NullableTypeAnnotation;t.NumberTypeAnnotation=NumberTypeAnnotation;t.StringTypeAnnotation=StringTypeAnnotation;t.ThisTypeAnnotation=ThisTypeAnnotation;t.TupleTypeAnnotation=TupleTypeAnnotation;t.TypeofTypeAnnotation=TypeofTypeAnnotation;t.TypeAlias=TypeAlias;t.TypeAnnotation=TypeAnnotation;t.TypeParameterDeclaration=t.TypeParameterInstantiation=TypeParameterInstantiation;t.TypeParameter=TypeParameter;t.OpaqueType=OpaqueType;t.ObjectTypeAnnotation=ObjectTypeAnnotation;t.ObjectTypeInternalSlot=ObjectTypeInternalSlot;t.ObjectTypeCallProperty=ObjectTypeCallProperty;t.ObjectTypeIndexer=ObjectTypeIndexer;t.ObjectTypeProperty=ObjectTypeProperty;t.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;t.QualifiedTypeIdentifier=QualifiedTypeIdentifier;t.SymbolTypeAnnotation=SymbolTypeAnnotation;t.UnionTypeAnnotation=UnionTypeAnnotation;t.TypeCastExpression=TypeCastExpression;t.Variance=Variance;t.VoidTypeAnnotation=VoidTypeAnnotation;Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return a.NumericLiteral}});Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return a.StringLiteral}});var s=_interopRequireWildcard(r(63760));var n=r(65132);var a=r(717);function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(e){this.print(e.elementType,e);this.token("[");this.token("]")}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(e,t){if(!s.isDeclareExportDeclaration(t)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(e)}function DeclareFunction(e,t){if(!s.isDeclareExportDeclaration(t)){this.word("declare");this.space()}this.word("function");this.space();this.print(e.id,e);this.print(e.id.typeAnnotation.typeAnnotation,e);if(e.predicate){this.space();this.print(e.predicate,e)}this.semicolon()}function InferredPredicate(){this.token("%");this.word("checks")}function DeclaredPredicate(e){this.token("%");this.word("checks");this.token("(");this.print(e.value,e);this.token(")")}function DeclareInterface(e){this.word("declare");this.space();this.InterfaceDeclaration(e)}function DeclareModule(e){this.word("declare");this.space();this.word("module");this.space();this.print(e.id,e);this.space();this.print(e.body,e)}function DeclareModuleExports(e){this.word("declare");this.space();this.word("module");this.token(".");this.word("exports");this.print(e.typeAnnotation,e)}function DeclareTypeAlias(e){this.word("declare");this.space();this.TypeAlias(e)}function DeclareOpaqueType(e,t){if(!s.isDeclareExportDeclaration(t)){this.word("declare");this.space()}this.OpaqueType(e)}function DeclareVariable(e,t){if(!s.isDeclareExportDeclaration(t)){this.word("declare");this.space()}this.word("var");this.space();this.print(e.id,e);this.print(e.id.typeAnnotation,e);this.semicolon()}function DeclareExportDeclaration(e){this.word("declare");this.space();this.word("export");this.space();if(e.default){this.word("default");this.space()}FlowExportDeclaration.apply(this,arguments)}function DeclareExportAllDeclaration(){this.word("declare");this.space();n.ExportAllDeclaration.apply(this,arguments)}function EnumDeclaration(e){const{id:t,body:r}=e;this.word("enum");this.space();this.print(t,e);this.print(r,e)}function enumExplicitType(e,t,r){if(r){e.space();e.word("of");e.space();e.word(t)}e.space()}function enumBody(e,t){const{members:r}=t;e.token("{");e.indent();e.newline();for(const s of r){e.print(s,t);e.newline()}e.dedent();e.token("}")}function EnumBooleanBody(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t);enumBody(this,e)}function EnumNumberBody(e){const{explicitType:t}=e;enumExplicitType(this,"number",t);enumBody(this,e)}function EnumStringBody(e){const{explicitType:t}=e;enumExplicitType(this,"string",t);enumBody(this,e)}function EnumSymbolBody(e){enumExplicitType(this,"symbol",true);enumBody(this,e)}function EnumDefaultedMember(e){const{id:t}=e;this.print(t,e);this.token(",")}function enumInitializedMember(e,t){const{id:r,init:s}=t;e.print(r,t);e.space();e.token("=");e.space();e.print(s,t);e.token(",")}function EnumBooleanMember(e){enumInitializedMember(this,e)}function EnumNumberMember(e){enumInitializedMember(this,e)}function EnumStringMember(e){enumInitializedMember(this,e)}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e);if(!s.isStatement(t))this.semicolon()}else{this.token("{");if(e.specifiers.length){this.space();this.printList(e.specifiers,e);this.space()}this.token("}");if(e.source){this.space();this.word("from");this.space();this.print(e.source,e)}this.semicolon()}}function ExistsTypeAnnotation(){this.token("*")}function FunctionTypeAnnotation(e,t){this.print(e.typeParameters,e);this.token("(");this.printList(e.params,e);if(e.rest){if(e.params.length){this.token(",");this.space()}this.token("...");this.print(e.rest,e)}this.token(")");if(t.type==="ObjectTypeCallProperty"||t.type==="DeclareFunction"||t.type==="ObjectTypeProperty"&&t.method){this.token(":")}else{this.space();this.token("=>")}this.space();this.print(e.returnType,e)}function FunctionTypeParam(e){this.print(e.name,e);if(e.optional)this.token("?");if(e.name){this.token(":");this.space()}this.print(e.typeAnnotation,e)}function InterfaceExtends(e){this.print(e.id,e);this.print(e.typeParameters,e)}function _interfaceish(e){this.print(e.id,e);this.print(e.typeParameters,e);if(e.extends.length){this.space();this.word("extends");this.space();this.printList(e.extends,e)}if(e.mixins&&e.mixins.length){this.space();this.word("mixins");this.space();this.printList(e.mixins,e)}if(e.implements&&e.implements.length){this.space();this.word("implements");this.space();this.printList(e.implements,e)}this.space();this.print(e.body,e)}function _variance(e){if(e.variance){if(e.variance.kind==="plus"){this.token("+")}else if(e.variance.kind==="minus"){this.token("-")}}}function InterfaceDeclaration(e){this.word("interface");this.space();this._interfaceish(e)}function andSeparator(){this.space();this.token("&");this.space()}function InterfaceTypeAnnotation(e){this.word("interface");if(e.extends&&e.extends.length){this.space();this.word("extends");this.space();this.printList(e.extends,e)}this.space();this.print(e.body,e)}function IntersectionTypeAnnotation(e){this.printJoin(e.types,e,{separator:andSeparator})}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(e){this.token("?");this.print(e.typeAnnotation,e)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(e){this.token("[");this.printList(e.types,e);this.token("]")}function TypeofTypeAnnotation(e){this.word("typeof");this.space();this.print(e.argument,e)}function TypeAlias(e){this.word("type");this.space();this.print(e.id,e);this.print(e.typeParameters,e);this.space();this.token("=");this.space();this.print(e.right,e);this.semicolon()}function TypeAnnotation(e){this.token(":");this.space();if(e.optional)this.token("?");this.print(e.typeAnnotation,e)}function TypeParameterInstantiation(e){this.token("<");this.printList(e.params,e,{});this.token(">")}function TypeParameter(e){this._variance(e);this.word(e.name);if(e.bound){this.print(e.bound,e)}if(e.default){this.space();this.token("=");this.space();this.print(e.default,e)}}function OpaqueType(e){this.word("opaque");this.space();this.word("type");this.space();this.print(e.id,e);this.print(e.typeParameters,e);if(e.supertype){this.token(":");this.space();this.print(e.supertype,e)}if(e.impltype){this.space();this.token("=");this.space();this.print(e.impltype,e)}this.semicolon()}function ObjectTypeAnnotation(e){if(e.exact){this.token("{|")}else{this.token("{")}const t=e.properties.concat(e.callProperties||[],e.indexers||[],e.internalSlots||[]);if(t.length){this.space();this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:true,statement:true,iterator:()=>{if(t.length!==1||e.inexact){this.token(",");this.space()}}});this.space()}if(e.inexact){this.indent();this.token("...");if(t.length){this.newline()}this.dedent()}if(e.exact){this.token("|}")}else{this.token("}")}}function ObjectTypeInternalSlot(e){if(e.static){this.word("static");this.space()}this.token("[");this.token("[");this.print(e.id,e);this.token("]");this.token("]");if(e.optional)this.token("?");if(!e.method){this.token(":");this.space()}this.print(e.value,e)}function ObjectTypeCallProperty(e){if(e.static){this.word("static");this.space()}this.print(e.value,e)}function ObjectTypeIndexer(e){if(e.static){this.word("static");this.space()}this._variance(e);this.token("[");if(e.id){this.print(e.id,e);this.token(":");this.space()}this.print(e.key,e);this.token("]");this.token(":");this.space();this.print(e.value,e)}function ObjectTypeProperty(e){if(e.proto){this.word("proto");this.space()}if(e.static){this.word("static");this.space()}if(e.kind==="get"||e.kind==="set"){this.word(e.kind);this.space()}this._variance(e);this.print(e.key,e);if(e.optional)this.token("?");if(!e.method){this.token(":");this.space()}this.print(e.value,e)}function ObjectTypeSpreadProperty(e){this.token("...");this.print(e.argument,e)}function QualifiedTypeIdentifier(e){this.print(e.qualification,e);this.token(".");this.print(e.id,e)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(){this.space();this.token("|");this.space()}function UnionTypeAnnotation(e){this.printJoin(e.types,e,{separator:orSeparator})}function TypeCastExpression(e){this.token("(");this.print(e.expression,e);this.print(e.typeAnnotation,e);this.token(")")}function Variance(e){if(e.kind==="plus"){this.token("+")}else{this.token("-")}}function VoidTypeAnnotation(){this.word("void")}},52506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(60699);Object.keys(s).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})});var n=r(94447);Object.keys(n).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})});var a=r(15994);Object.keys(a).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})});var i=r(80111);Object.keys(i).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})});var o=r(92250);Object.keys(o).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})});var l=r(65132);Object.keys(l).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})});var u=r(717);Object.keys(u).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===u[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return u[e]}})});var c=r(95755);Object.keys(c).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===c[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return c[e]}})});var p=r(10530);Object.keys(p).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===p[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})});var f=r(10412);Object.keys(f).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})});var d=r(74871);Object.keys(d).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})})},10412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXIdentifier=JSXIdentifier;t.JSXNamespacedName=JSXNamespacedName;t.JSXMemberExpression=JSXMemberExpression;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;t.JSXElement=JSXElement;t.JSXOpeningElement=JSXOpeningElement;t.JSXClosingElement=JSXClosingElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXFragment=JSXFragment;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXClosingFragment=JSXClosingFragment;function JSXAttribute(e){this.print(e.name,e);if(e.value){this.token("=");this.print(e.value,e)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace,e);this.token(":");this.print(e.name,e)}function JSXMemberExpression(e){this.print(e.object,e);this.token(".");this.print(e.property,e)}function JSXSpreadAttribute(e){this.token("{");this.token("...");this.print(e.argument,e);this.token("}")}function JSXExpressionContainer(e){this.token("{");this.print(e.expression,e);this.token("}")}function JSXSpreadChild(e){this.token("{");this.token("...");this.print(e.expression,e);this.token("}")}function JSXText(e){const t=this.getPossibleRaw(e);if(t!=null){this.token(t)}else{this.token(e.value)}}function JSXElement(e){const t=e.openingElement;this.print(t,e);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t,e)}this.dedent();this.print(e.closingElement,e)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.token("<");this.print(e.name,e);this.print(e.typeParameters,e);if(e.attributes.length>0){this.space();this.printJoin(e.attributes,e,{separator:spaceSeparator})}if(e.selfClosing){this.space();this.token("/>")}else{this.token(">")}}function JSXClosingElement(e){this.token("")}function JSXEmptyExpression(e){this.printInnerComments(e)}function JSXFragment(e){this.print(e.openingFragment,e);this.indent();for(const t of e.children){this.print(t,e)}this.dedent();this.print(e.closingFragment,e)}function JSXOpeningFragment(){this.token("<");this.token(">")}function JSXClosingFragment(){this.token("")}},92250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._params=_params;t._parameters=_parameters;t._param=_param;t._methodHead=_methodHead;t._predicate=_predicate;t._functionHead=_functionHead;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t.ArrowFunctionExpression=ArrowFunctionExpression;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function _params(e){this.print(e.typeParameters,e);this.token("(");this._parameters(e.params,e);this.token(")");this.print(e.returnType,e)}function _parameters(e,t){for(let r=0;re.loc.start.line){this.indent();this.print(t,e);this.dedent();this._catchUp("start",e.body.loc)}else{this.print(t,e)}this.token(")")}else{this.print(t,e)}}else{this._params(e)}this._predicate(e);this.space();this.token("=>");this.space();this.print(e.body,e)}function hasTypes(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}},65132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ImportSpecifier=ImportSpecifier;t.ImportDefaultSpecifier=ImportDefaultSpecifier;t.ExportDefaultSpecifier=ExportDefaultSpecifier;t.ExportSpecifier=ExportSpecifier;t.ExportNamespaceSpecifier=ExportNamespaceSpecifier;t.ExportAllDeclaration=ExportAllDeclaration;t.ExportNamedDeclaration=ExportNamedDeclaration;t.ExportDefaultDeclaration=ExportDefaultDeclaration;t.ImportDeclaration=ImportDeclaration;t.ImportAttribute=ImportAttribute;t.ImportNamespaceSpecifier=ImportNamespaceSpecifier;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function ImportSpecifier(e){if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}this.print(e.imported,e);if(e.local&&e.local.name!==e.imported.name){this.space();this.word("as");this.space();this.print(e.local,e)}}function ImportDefaultSpecifier(e){this.print(e.local,e)}function ExportDefaultSpecifier(e){this.print(e.exported,e)}function ExportSpecifier(e){this.print(e.local,e);if(e.exported&&e.local.name!==e.exported.name){this.space();this.word("as");this.space();this.print(e.exported,e)}}function ExportNamespaceSpecifier(e){this.token("*");this.space();this.word("as");this.space();this.print(e.exported,e)}function ExportAllDeclaration(e){this.word("export");this.space();if(e.exportKind==="type"){this.word("type");this.space()}this.token("*");this.space();this.word("from");this.space();this.print(e.source,e);this.printAssertions(e);this.semicolon()}function ExportNamedDeclaration(e){if(this.format.decoratorsBeforeExport&&s.isClassDeclaration(e.declaration)){this.printJoin(e.declaration.decorators,e)}this.word("export");this.space();ExportDeclaration.apply(this,arguments)}function ExportDefaultDeclaration(e){if(this.format.decoratorsBeforeExport&&s.isClassDeclaration(e.declaration)){this.printJoin(e.declaration.decorators,e)}this.word("export");this.space();this.word("default");this.space();ExportDeclaration.apply(this,arguments)}function ExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e);if(!s.isStatement(t))this.semicolon()}else{if(e.exportKind==="type"){this.word("type");this.space()}const t=e.specifiers.slice(0);let r=false;for(;;){const n=t[0];if(s.isExportDefaultSpecifier(n)||s.isExportNamespaceSpecifier(n)){r=true;this.print(t.shift(),e);if(t.length){this.token(",");this.space()}}else{break}}if(t.length||!t.length&&!r){this.token("{");if(t.length){this.space();this.printList(t,e);this.space()}this.token("}")}if(e.source){this.space();this.word("from");this.space();this.print(e.source,e);this.printAssertions(e)}this.semicolon()}}function ImportDeclaration(e){var t;this.word("import");this.space();if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}const r=e.specifiers.slice(0);if(r==null?void 0:r.length){for(;;){const t=r[0];if(s.isImportDefaultSpecifier(t)||s.isImportNamespaceSpecifier(t)){this.print(r.shift(),e);if(r.length){this.token(",");this.space()}}else{break}}if(r.length){this.token("{");this.space();this.printList(r,e);this.space();this.token("}")}this.space();this.word("from");this.space()}this.print(e.source,e);this.printAssertions(e);if((t=e.attributes)==null?void 0:t.length){this.space();this.word("with");this.space();this.printList(e.attributes,e)}this.semicolon()}function ImportAttribute(e){this.print(e.key);this.token(":");this.space();this.print(e.value)}function ImportNamespaceSpecifier(e){this.token("*");this.space();this.word("as");this.space();this.print(e.local,e)}},15994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WithStatement=WithStatement;t.IfStatement=IfStatement;t.ForStatement=ForStatement;t.WhileStatement=WhileStatement;t.DoWhileStatement=DoWhileStatement;t.LabeledStatement=LabeledStatement;t.TryStatement=TryStatement;t.CatchClause=CatchClause;t.SwitchStatement=SwitchStatement;t.SwitchCase=SwitchCase;t.DebuggerStatement=DebuggerStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForOfStatement=t.ForInStatement=void 0;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function WithStatement(e){this.word("with");this.space();this.token("(");this.print(e.object,e);this.token(")");this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.token("(");this.print(e.test,e);this.token(")");this.space();const t=e.alternate&&s.isIfStatement(getLastStatement(e.consequent));if(t){this.token("{");this.newline();this.indent()}this.printAndIndentOnComments(e.consequent,e);if(t){this.dedent();this.newline();this.token("}")}if(e.alternate){if(this.endsWith("}"))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate,e)}}function getLastStatement(e){if(!s.isStatement(e.body))return e;return getLastStatement(e.body)}function ForStatement(e){this.word("for");this.space();this.token("(");this.inForStatementInitCounter++;this.print(e.init,e);this.inForStatementInitCounter--;this.token(";");if(e.test){this.space();this.print(e.test,e)}this.token(";");if(e.update){this.space();this.print(e.update,e)}this.token(")");this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.token("(");this.print(e.test,e);this.token(")");this.printBlock(e)}const n=function(e){return function(t){this.word("for");this.space();if(e==="of"&&t.await){this.word("await");this.space()}this.token("(");this.print(t.left,t);this.space();this.word(e);this.space();this.print(t.right,t);this.token(")");this.printBlock(t)}};const a=n("in");t.ForInStatement=a;const i=n("of");t.ForOfStatement=i;function DoWhileStatement(e){this.word("do");this.space();this.print(e.body,e);this.space();this.word("while");this.space();this.token("(");this.print(e.test,e);this.token(")");this.semicolon()}function buildLabelStatement(e,t="label"){return function(r){this.word(e);const s=r[t];if(s){this.space();const e=t=="label";const n=this.startTerminatorless(e);this.print(s,r);this.endTerminatorless(n)}this.semicolon()}}const o=buildLabelStatement("continue");t.ContinueStatement=o;const l=buildLabelStatement("return","argument");t.ReturnStatement=l;const u=buildLabelStatement("break");t.BreakStatement=u;const c=buildLabelStatement("throw","argument");t.ThrowStatement=c;function LabeledStatement(e){this.print(e.label,e);this.token(":");this.space();this.print(e.body,e)}function TryStatement(e){this.word("try");this.space();this.print(e.block,e);this.space();if(e.handlers){this.print(e.handlers[0],e)}else{this.print(e.handler,e)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer,e)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.token("(");this.print(e.param,e);this.print(e.param.typeAnnotation,e);this.token(")");this.space()}this.print(e.body,e)}function SwitchStatement(e){this.word("switch");this.space();this.token("(");this.print(e.discriminant,e);this.token(")");this.space();this.token("{");this.printSequence(e.cases,e,{indent:true,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}});this.token("}")}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test,e);this.token(":")}else{this.word("default");this.token(":")}if(e.consequent.length){this.newline();this.printSequence(e.consequent,e,{indent:true})}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function variableDeclarationIndent(){this.token(",");this.newline();if(this.endsWith("\n"))for(let e=0;e<4;e++)this.space(true)}function constDeclarationIndent(){this.token(",");this.newline();if(this.endsWith("\n"))for(let e=0;e<6;e++)this.space(true)}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}this.word(e.kind);this.space();let r=false;if(!s.isFor(t)){for(const t of e.declarations){if(t.init){r=true}}}let n;if(r){n=e.kind==="const"?constDeclarationIndent:variableDeclarationIndent}this.printList(e.declarations,e,{separator:n});if(s.isFor(t)){if(t.left===e||t.init===e)return}this.semicolon()}function VariableDeclarator(e){this.print(e.id,e);if(e.definite)this.token("!");this.print(e.id.typeAnnotation,e);if(e.init){this.space();this.token("=");this.space();this.print(e.init,e)}}},60699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateElement=TemplateElement;t.TemplateLiteral=TemplateLiteral;function TaggedTemplateExpression(e){this.print(e.tag,e);this.print(e.typeParameters,e);this.print(e.quasi,e)}function TemplateElement(e,t){const r=t.quasis[0]===e;const s=t.quasis[t.quasis.length-1]===e;const n=(r?"`":"}")+e.value.raw+(s?"`":"${");this.token(n)}function TemplateLiteral(e){const t=e.quasis;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Identifier=Identifier;t.ArgumentPlaceholder=ArgumentPlaceholder;t.SpreadElement=t.RestElement=RestElement;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.RecordExpression=RecordExpression;t.TupleExpression=TupleExpression;t.RegExpLiteral=RegExpLiteral;t.BooleanLiteral=BooleanLiteral;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.StringLiteral=StringLiteral;t.BigIntLiteral=BigIntLiteral;t.DecimalLiteral=DecimalLiteral;t.PipelineTopicExpression=PipelineTopicExpression;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;var s=_interopRequireWildcard(r(63760));var n=_interopRequireDefault(r(18459));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function Identifier(e){this.exactSource(e.loc,()=>{this.word(e.name)})}function ArgumentPlaceholder(){this.token("?")}function RestElement(e){this.token("...");this.print(e.argument,e)}function ObjectExpression(e){const t=e.properties;this.token("{");this.printInnerComments(e);if(t.length){this.space();this.printList(t,e,{indent:true,statement:true});this.space()}this.token("}")}function ObjectMethod(e){this.printJoin(e.decorators,e);this._methodHead(e);this.space();this.print(e.body,e)}function ObjectProperty(e){this.printJoin(e.decorators,e);if(e.computed){this.token("[");this.print(e.key,e);this.token("]")}else{if(s.isAssignmentPattern(e.value)&&s.isIdentifier(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}this.print(e.key,e);if(e.shorthand&&s.isIdentifier(e.key)&&s.isIdentifier(e.value)&&e.key.name===e.value.name){return}}this.token(":");this.space();this.print(e.value,e)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.token("[");this.printInnerComments(e);for(let s=0;s0)this.space();this.print(n,e);if(s0)this.space();this.print(n,e);if(s{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypeParameter=TSTypeParameter;t.TSParameterProperty=TSParameterProperty;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSQualifiedName=TSQualifiedName;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSPropertySignature=TSPropertySignature;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.TSMethodSignature=TSMethodSignature;t.TSIndexSignature=TSIndexSignature;t.TSAnyKeyword=TSAnyKeyword;t.TSBigIntKeyword=TSBigIntKeyword;t.TSUnknownKeyword=TSUnknownKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSVoidKeyword=TSVoidKeyword;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSNullKeyword=TSNullKeyword;t.TSNeverKeyword=TSNeverKeyword;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSThisType=TSThisType;t.TSFunctionType=TSFunctionType;t.TSConstructorType=TSConstructorType;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.TSTypeReference=TSTypeReference;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeLiteral=TSTypeLiteral;t.tsPrintTypeLiteralOrInterfaceBody=tsPrintTypeLiteralOrInterfaceBody;t.tsPrintBraced=tsPrintBraced;t.TSArrayType=TSArrayType;t.TSTupleType=TSTupleType;t.TSOptionalType=TSOptionalType;t.TSRestType=TSRestType;t.TSNamedTupleMember=TSNamedTupleMember;t.TSUnionType=TSUnionType;t.TSIntersectionType=TSIntersectionType;t.tsPrintUnionOrIntersectionType=tsPrintUnionOrIntersectionType;t.TSConditionalType=TSConditionalType;t.TSInferType=TSInferType;t.TSParenthesizedType=TSParenthesizedType;t.TSTypeOperator=TSTypeOperator;t.TSIndexedAccessType=TSIndexedAccessType;t.TSMappedType=TSMappedType;t.TSLiteralType=TSLiteralType;t.TSExpressionWithTypeArguments=TSExpressionWithTypeArguments;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSInterfaceBody=TSInterfaceBody;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSAsExpression=TSAsExpression;t.TSTypeAssertion=TSTypeAssertion;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSModuleDeclaration=TSModuleDeclaration;t.TSModuleBlock=TSModuleBlock;t.TSImportType=TSImportType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSExternalModuleReference=TSExternalModuleReference;t.TSNonNullExpression=TSNonNullExpression;t.TSExportAssignment=TSExportAssignment;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;function TSTypeAnnotation(e){this.token(":");this.space();if(e.optional)this.token("?");this.print(e.typeAnnotation,e)}function TSTypeParameterInstantiation(e){this.token("<");this.printList(e.params,e,{});this.token(">")}function TSTypeParameter(e){this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint,e)}if(e.default){this.space();this.token("=");this.space();this.print(e.default,e)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e){if(e.declare){this.word("declare");this.space()}this._functionHead(e);this.token(";")}function TSDeclareMethod(e){this._classMethodHead(e);this.token(";")}function TSQualifiedName(e){this.print(e.left,e);this.token(".");this.print(e.right,e)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSPropertySignature(e){const{readonly:t,initializer:r}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation,e);if(r){this.space();this.token("=");this.space();this.print(r,e)}this.token(";")}function tsPrintPropertyOrMethodName(e){if(e.computed){this.token("[")}this.print(e.key,e);if(e.computed){this.token("]")}if(e.optional){this.token("?")}}function TSMethodSignature(e){this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSIndexSignature(e){const{readonly:t}=e;if(t){this.word("readonly");this.space()}this.token("[");this._parameters(e.parameters,e);this.token("]");this.print(e.typeAnnotation,e);this.token(";")}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t,parameters:r}=e;this.print(t,e);this.token("(");this._parameters(r,e);this.token(")");this.space();this.token("=>");this.space();this.print(e.typeAnnotation.typeAnnotation,e)}function TSTypeReference(e){this.print(e.typeName,e);this.print(e.typeParameters,e)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName)}function TSTypeLiteral(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function tsPrintTypeLiteralOrInterfaceBody(e,t){this.tsPrintBraced(e,t)}function tsPrintBraced(e,t){this.token("{");if(e.length){this.indent();this.newline();for(const r of e){this.print(r,t);this.newline()}this.dedent();this.rightBrace()}else{this.token("}")}}function TSArrayType(e){this.print(e.elementType,e);this.token("[]")}function TSTupleType(e){this.token("[");this.printList(e.elementTypes,e);this.token("]")}function TSOptionalType(e){this.print(e.typeAnnotation,e);this.token("?")}function TSRestType(e){this.token("...");this.print(e.typeAnnotation,e)}function TSNamedTupleMember(e){this.print(e.label,e);if(e.optional)this.token("?");this.token(":");this.space();this.print(e.elementType,e)}function TSUnionType(e){this.tsPrintUnionOrIntersectionType(e,"|")}function TSIntersectionType(e){this.tsPrintUnionOrIntersectionType(e,"&")}function tsPrintUnionOrIntersectionType(e,t){this.printJoin(e.types,e,{separator(){this.space();this.token(t);this.space()}})}function TSConditionalType(e){this.print(e.checkType);this.space();this.word("extends");this.space();this.print(e.extendsType);this.space();this.token("?");this.space();this.print(e.trueType);this.space();this.token(":");this.space();this.print(e.falseType)}function TSInferType(e){this.token("infer");this.space();this.print(e.typeParameter)}function TSParenthesizedType(e){this.token("(");this.print(e.typeAnnotation,e);this.token(")")}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation,e)}function TSIndexedAccessType(e){this.print(e.objectType,e);this.token("[");this.print(e.indexType,e);this.token("]")}function TSMappedType(e){const{nameType:t,optional:r,readonly:s,typeParameter:n}=e;this.token("{");this.space();if(s){tokenIfPlusMinus(this,s);this.word("readonly");this.space()}this.token("[");this.word(n.name);this.space();this.word("in");this.space();this.print(n.constraint,n);if(t){this.space();this.word("as");this.space();this.print(t,e)}this.token("]");if(r){tokenIfPlusMinus(this,r);this.token("?")}this.token(":");this.space();this.print(e.typeAnnotation,e);this.space();this.token("}")}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSLiteralType(e){this.print(e.literal,e)}function TSExpressionWithTypeArguments(e){this.print(e.expression,e);this.print(e.typeParameters,e)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:s,extends:n,body:a}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r,e);this.print(s,e);if(n){this.space();this.word("extends");this.space();this.printList(n,e)}this.space();this.print(a,e)}function TSInterfaceBody(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:s,typeAnnotation:n}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r,e);this.print(s,e);this.space();this.token("=");this.space();this.print(n,e);this.token(";")}function TSAsExpression(e){const{expression:t,typeAnnotation:r}=e;this.print(t,e);this.space();this.word("as");this.space();this.print(r,e)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.token("<");this.print(t,e);this.token(">");this.space();this.print(r,e)}function TSEnumDeclaration(e){const{declare:t,const:r,id:s,members:n}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(s,e);this.space();this.tsPrintBraced(n,e)}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t,e);if(r){this.space();this.token("=");this.space();this.print(r,e)}this.token(",")}function TSModuleDeclaration(e){const{declare:t,id:r}=e;if(t){this.word("declare");this.space()}if(!e.global){this.word(r.type==="Identifier"?"namespace":"module");this.space()}this.print(r,e);if(!e.body){this.token(";");return}let s=e.body;while(s.type==="TSModuleDeclaration"){this.token(".");this.print(s.id,s);s=s.body}this.space();this.print(s,e)}function TSModuleBlock(e){this.tsPrintBraced(e.body,e)}function TSImportType(e){const{argument:t,qualifier:r,typeParameters:s}=e;this.word("import");this.token("(");this.print(t,e);this.token(")");if(r){this.token(".");this.print(r,e)}if(s){this.print(s,e)}}function TSImportEqualsDeclaration(e){const{isExport:t,id:r,moduleReference:s}=e;if(t){this.word("export");this.space()}this.word("import");this.space();this.print(r,e);this.space();this.token("=");this.space();this.print(s,e);this.token(";")}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression,e);this.token(")")}function TSNonNullExpression(e){this.print(e.expression,e);this.token("!")}function TSExportAssignment(e){this.word("export");this.space();this.token("=");this.space();this.print(e.expression,e);this.token(";")}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id,e)}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t,parameters:r}=e;this.print(t,e);this.token("(");this._parameters(r,e);this.token(")");this.print(e.typeAnnotation,e)}function tsPrintClassMemberModifiers(e,t){if(t&&e.declare){this.word("declare");this.space()}if(e.accessibility){this.word(e.accessibility);this.space()}if(e.static){this.word("static");this.space()}if(e.abstract){this.word("abstract");this.space()}if(t&&e.readonly){this.word("readonly");this.space()}}},43187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=_default;t.CodeGenerator=void 0;var s=_interopRequireDefault(r(43575));var n=_interopRequireDefault(r(79287));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Generator extends n.default{constructor(e,t={},r){const n=normalizeOptions(r,t);const a=t.sourceMaps?new s.default(t,r):null;super(n,a);this.ast=void 0;this.ast=e}generate(){return super.generate(this.ast)}}function normalizeOptions(e,t){const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:true,style:" ",base:0},decoratorsBeforeExport:!!t.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:true},t.jsescOption),recordAndTupleSyntaxType:t.recordAndTupleSyntaxType};{r.jsonCompatibleStrings=t.jsonCompatibleStrings}if(r.minified){r.compact=true;r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)}else{r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0)}if(r.compact==="auto"){r.compact=e.length>5e5;if(r.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of ${"500KB"}.`)}}if(r.compact){r.indent.adjustMultilineComment=false}return r}class CodeGenerator{constructor(e,t,r){this._generator=new Generator(e,t,r)}generate(){return this._generator.generate()}}t.CodeGenerator=CodeGenerator;function _default(e,t,r){const s=new Generator(e,t,r);return s.generate()}},40523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.needsWhitespace=needsWhitespace;t.needsWhitespaceBefore=needsWhitespaceBefore;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsParens=needsParens;var s=_interopRequireWildcard(r(61269));var n=_interopRequireWildcard(r(90761));var a=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function expandAliases(e){const t={};function add(e,r){const s=t[e];t[e]=s?function(e,t,n){const a=s(e,t,n);return a==null?r(e,t,n):a}:r}for(const t of Object.keys(e)){const r=a.FLIPPED_ALIAS_KEYS[t];if(r){for(const s of r){add(s,e[t])}}else{add(t,e[t])}}return t}const i=expandAliases(n);const o=expandAliases(s.nodes);const l=expandAliases(s.list);function find(e,t,r,s){const n=e[t.type];return n?n(t,r,s):null}function isOrHasCallExpression(e){if(a.isCallExpression(e)){return true}return a.isMemberExpression(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){if(!e)return 0;if(a.isExpressionStatement(e)){e=e.expression}let s=find(o,e,t);if(!s){const n=find(l,e,t);if(n){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NullableTypeAnnotation=NullableTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.UpdateExpression=UpdateExpression;t.ObjectExpression=ObjectExpression;t.DoExpression=DoExpression;t.Binary=Binary;t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=UnionTypeAnnotation;t.TSAsExpression=TSAsExpression;t.TSTypeAssertion=TSTypeAssertion;t.TSIntersectionType=t.TSUnionType=TSUnionType;t.TSInferType=TSInferType;t.BinaryExpression=BinaryExpression;t.SequenceExpression=SequenceExpression;t.AwaitExpression=t.YieldExpression=YieldExpression;t.ClassExpression=ClassExpression;t.UnaryLike=UnaryLike;t.FunctionExpression=FunctionExpression;t.ArrowFunctionExpression=ArrowFunctionExpression;t.ConditionalExpression=ConditionalExpression;t.OptionalCallExpression=t.OptionalMemberExpression=OptionalMemberExpression;t.AssignmentExpression=AssignmentExpression;t.LogicalExpression=LogicalExpression;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}const n={"||":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};const a=(e,t)=>(s.isClassDeclaration(t)||s.isClassExpression(t))&&t.superClass===e;const i=(e,t)=>(s.isMemberExpression(t)||s.isOptionalMemberExpression(t))&&t.object===e||(s.isCallExpression(t)||s.isOptionalCallExpression(t)||s.isNewExpression(t))&&t.callee===e||s.isTaggedTemplateExpression(t)&&t.tag===e||s.isTSNonNullExpression(t);function NullableTypeAnnotation(e,t){return s.isArrayTypeAnnotation(t)}function FunctionTypeAnnotation(e,t,r){return s.isUnionTypeAnnotation(t)||s.isIntersectionTypeAnnotation(t)||s.isArrayTypeAnnotation(t)||s.isTypeAnnotation(t)&&s.isArrowFunctionExpression(r[r.length-3])}function UpdateExpression(e,t){return i(e,t)||a(e,t)}function ObjectExpression(e,t,r){return isFirstInStatement(r,{considerArrow:true})}function DoExpression(e,t,r){return isFirstInStatement(r)}function Binary(e,t){if(e.operator==="**"&&s.isBinaryExpression(t,{operator:"**"})){return t.left===e}if(a(e,t)){return true}if(i(e,t)||s.isUnaryLike(t)||s.isAwaitExpression(t)){return true}if(s.isBinary(t)){const r=t.operator;const a=n[r];const i=e.operator;const o=n[i];if(a===o&&t.right===e&&!s.isLogicalExpression(t)||a>o){return true}}}function UnionTypeAnnotation(e,t){return s.isArrayTypeAnnotation(t)||s.isNullableTypeAnnotation(t)||s.isIntersectionTypeAnnotation(t)||s.isUnionTypeAnnotation(t)}function TSAsExpression(){return true}function TSTypeAssertion(){return true}function TSUnionType(e,t){return s.isTSArrayType(t)||s.isTSOptionalType(t)||s.isTSIntersectionType(t)||s.isTSUnionType(t)||s.isTSRestType(t)}function TSInferType(e,t){return s.isTSArrayType(t)||s.isTSOptionalType(t)}function BinaryExpression(e,t){return e.operator==="in"&&(s.isVariableDeclarator(t)||s.isFor(t))}function SequenceExpression(e,t){if(s.isForStatement(t)||s.isThrowStatement(t)||s.isReturnStatement(t)||s.isIfStatement(t)&&t.test===e||s.isWhileStatement(t)&&t.test===e||s.isForInStatement(t)&&t.right===e||s.isSwitchStatement(t)&&t.discriminant===e||s.isExpressionStatement(t)&&t.expression===e){return false}return true}function YieldExpression(e,t){return s.isBinary(t)||s.isUnaryLike(t)||i(e,t)||s.isAwaitExpression(t)&&s.isYieldExpression(e)||s.isConditionalExpression(t)&&e===t.test||a(e,t)}function ClassExpression(e,t,r){return isFirstInStatement(r,{considerDefaultExports:true})}function UnaryLike(e,t){return i(e,t)||s.isBinaryExpression(t,{operator:"**",left:e})||a(e,t)}function FunctionExpression(e,t,r){return isFirstInStatement(r,{considerDefaultExports:true})}function ArrowFunctionExpression(e,t){return s.isExportDeclaration(t)||ConditionalExpression(e,t)}function ConditionalExpression(e,t){if(s.isUnaryLike(t)||s.isBinary(t)||s.isConditionalExpression(t,{test:e})||s.isAwaitExpression(t)||s.isTSTypeAssertion(t)||s.isTSAsExpression(t)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return s.isCallExpression(t,{callee:e})||s.isMemberExpression(t,{object:e})}function AssignmentExpression(e,t,r){if(s.isObjectPattern(e.left)){return true}else{return ConditionalExpression(e,t,r)}}function LogicalExpression(e,t){switch(e.operator){case"||":if(!s.isLogicalExpression(t))return false;return t.operator==="??"||t.operator==="&&";case"&&":return s.isLogicalExpression(t,{operator:"??"});case"??":return s.isLogicalExpression(t)&&t.operator!=="??"}}function isFirstInStatement(e,{considerArrow:t=false,considerDefaultExports:r=false}={}){let n=e.length-1;let a=e[n];n--;let o=e[n];while(n>=0){if(s.isExpressionStatement(o,{expression:a})||r&&s.isExportDefaultDeclaration(o,{declaration:a})||t&&s.isArrowFunctionExpression(o,{body:a})){return true}if(i(a,o)&&!s.isNewExpression(o)||s.isSequenceExpression(o)&&o.expressions[0]===a||s.isConditional(o,{test:a})||s.isBinary(o,{left:a})||s.isAssignmentExpression(o,{left:a})){a=o;n--;o=e[n]}else{return false}}return false}},61269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.list=t.nodes=void 0;var s=_interopRequireWildcard(r(63760));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function crawl(e,t={}){if(s.isMemberExpression(e)||s.isOptionalMemberExpression(e)){crawl(e.object,t);if(e.computed)crawl(e.property,t)}else if(s.isBinary(e)||s.isAssignmentExpression(e)){crawl(e.left,t);crawl(e.right,t)}else if(s.isCallExpression(e)||s.isOptionalCallExpression(e)){t.hasCall=true;crawl(e.callee,t)}else if(s.isFunction(e)){t.hasFunction=true}else if(s.isIdentifier(e)){t.hasHelper=t.hasHelper||isHelper(e.callee)}return t}function isHelper(e){if(s.isMemberExpression(e)){return isHelper(e.object)||isHelper(e.property)}else if(s.isIdentifier(e)){return e.name==="require"||e.name[0]==="_"}else if(s.isCallExpression(e)){return isHelper(e.callee)}else if(s.isBinary(e)||s.isAssignmentExpression(e)){return s.isIdentifier(e.left)&&isHelper(e.left)||isHelper(e.right)}else{return false}}function isType(e){return s.isLiteral(e)||s.isObjectExpression(e)||s.isArrayExpression(e)||s.isIdentifier(e)||s.isMemberExpression(e)}const n={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction){return{before:t.hasFunction,after:true}}},SwitchCase(e,t){return{before:e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}},LogicalExpression(e){if(s.isFunction(e.left)||s.isFunction(e.right)){return{after:true}}},Literal(e){if(e.value==="use strict"){return{after:true}}},CallExpression(e){if(s.isFunction(e.callee)||isHelper(e)){return{before:true,after:true}}},OptionalCallExpression(e){if(s.isFunction(e.callee)){return{before:true,after:true}}},VariableDeclaration(e){for(let t=0;te.init)},ArrayExpression(e){return e.elements},ObjectExpression(e){return e.properties}};t.list=a;[["Function",true],["Class",true],["Loop",true],["LabeledStatement",true],["SwitchStatement",true],["TryStatement",true]].forEach(function([e,t]){if(typeof t==="boolean"){t={after:t,before:t}}[e].concat(s.FLIPPED_ALIAS_KEYS[e]||[]).forEach(function(e){n[e]=function(){return t}})})},79287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var s=_interopRequireDefault(r(19078));var n=_interopRequireWildcard(r(40523));var a=_interopRequireWildcard(r(63760));var i=_interopRequireWildcard(r(52506));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;if(a&&(a.get||a.set)){Object.defineProperty(r,n,a)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=/e/i;const l=/\.0+$/;const u=/^0[box]/;const c=/^\s*[@#]__PURE__\s*$/;class Printer{constructor(e,t){this.inForStatementInitCounter=0;this._printStack=[];this._indent=0;this._insideAux=false;this._printedCommentStarts={};this._parenPushNewlineState=null;this._noLineTerminator=false;this._printAuxAfterOnNextUserNode=false;this._printedComments=new WeakSet;this._endsWithInteger=false;this._endsWithWord=false;this.format=e||{};this._buf=new s.default(t)}generate(e){this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){if(this.format.compact||this.format.concise)return;this._indent++}dedent(){if(this.format.compact||this.format.concise)return;this._indent--}semicolon(e=false){this._maybeAddAuxComment();this._append(";",!e)}rightBrace(){if(this.format.minified){this._buf.removeLastSemicolon()}this.token("}")}space(e=false){if(this.format.compact)return;if(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\n")||e){this._space()}}word(e){if(this._endsWithWord||this.endsWith("/")&&e.indexOf("/")===0){this._space()}this._maybeAddAuxComment();this._append(e);this._endsWithWord=true}number(e){this.word(e);this._endsWithInteger=Number.isInteger(+e)&&!u.test(e)&&!o.test(e)&&!l.test(e)&&e[e.length-1]!=="."}token(e){if(e==="--"&&this.endsWith("!")||e[0]==="+"&&this.endsWith("+")||e[0]==="-"&&this.endsWith("-")||e[0]==="."&&this._endsWithInteger){this._space()}this._maybeAddAuxComment();this._append(e)}newline(e){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}if(this.endsWith("\n\n"))return;if(typeof e!=="number")e=1;e=Math.min(2,e);if(this.endsWith("{\n")||this.endsWith(":\n"))e--;if(e<=0)return;for(let t=0;t{s.call(this,e,t)});this._printTrailingComments(e);if(o)this.token(")");this._printStack.pop();this.format.concise=r;this._insideAux=i}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e})}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e})}}getPossibleRaw(e){const t=e.extra;if(t&&t.raw!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r={}){if(!(e==null?void 0:e.length))return;if(r.indent)this.indent();const s={addNewlines:r.addNewlines};for(let n=0;n0;if(r)this.indent();this.print(e,t);if(r)this.dedent()}printBlock(e){const t=e.body;if(!a.isEmptyStatement(t)){this.space()}this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(false,e))}_printLeadingComments(e){this._printComments(this._getComments(true,e),true)}printInnerComments(e,t=true){var r;if(!((r=e.innerComments)==null?void 0:r.length))return;if(t)this.indent();this._printComments(e.innerComments);if(t)this.dedent()}printSequence(e,t,r={}){r.statement=true;return this.printJoin(e,t,r)}printList(e,t,r={}){if(r.separator==null){r.separator=commaSeparator}return this.printJoin(e,t,r)}_printNewline(e,t,r,s){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}let a=0;if(this._buf.hasContent()){if(!e)a++;if(s.addNewlines)a+=s.addNewlines(e,t)||0;const i=e?n.needsWhitespaceBefore:n.needsWhitespaceAfter;if(i(t,r))a++}this.newline(a)}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;this._printedComments.add(e);if(e.start!=null){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=true}const r=e.type==="CommentBlock";const s=r&&!t&&!this._noLineTerminator;if(s&&this._buf.hasContent())this.newline(1);if(!this.endsWith("[")&&!this.endsWith("{"))this.space();let n=!r&&!this._noLineTerminator?`//${e.value}\n`:`/*${e.value}*/`;if(r&&this.format.indent.adjustMultilineComment){var a;const t=(a=e.loc)==null?void 0:a.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");n=n.replace(e,"\n")}const r=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());n=n.replace(/\n(?!$)/g,`\n${" ".repeat(r)}`)}if(this.endsWith("/"))this._space();this.withSource("start",e.loc,()=>{this._append(n)});if(s)this.newline(1)}_printComments(e,t){if(!(e==null?void 0:e.length))return;if(t&&e.length===1&&c.test(e[0].value)){this._printComment(e[0],this._buf.hasContent()&&!this.endsWith("\n"))}else{for(const t of e){this._printComment(t)}}}printAssertions(e){var t;if((t=e.assertions)==null?void 0:t.length){this.space();this.word("assert");this.space();this.token("{");this.space();this.printList(e.assertions,e);this.space();this.token("}")}}}t.default=Printer;Object.assign(Printer.prototype,i);function commaSeparator(){this.token(",");this.space()}},43575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var s=_interopRequireDefault(r(96241));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class SourceMap{constructor(e,t){this._cachedMap=null;this._code=t;this._opts=e;this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new s.default.SourceMapGenerator({sourceRoot:this._opts.sourceRoot});const t=this._code;if(typeof t==="string"){e.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),t)}else if(typeof t==="object"){Object.keys(t).forEach(r=>{e.setSourceContent(r.replace(/\\/g,"/"),t[r])})}this._rawMappings.forEach(t=>e.addMapping(t),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,r,s,n,a,i){if(this._lastGenLine!==e&&r===null)return;if(!i&&this._lastGenLine===e&&this._lastSourceLine===r&&this._lastSourceColumn===s){return}this._cachedMap=null;this._lastGenLine=e;this._lastSourceLine=r;this._lastSourceColumn=s;this._rawMappings.push({name:n||undefined,generated:{line:e,column:t},source:r==null?undefined:(a||this._opts.sourceFileName).replace(/\\/g,"/"),original:r==null?undefined:{line:r,column:s}})}}t.default=SourceMap},18459:e=>{"use strict";const t={};const r=t.hasOwnProperty;const s=(e,t)=>{for(const s in e){if(r.call(e,s)){t(s,e[s])}}};const n=(e,t)=>{if(!t){return e}s(t,(t,r)=>{e[t]=r});return e};const a=(e,t)=>{const r=e.length;let s=-1;while(++s{return i.call(e)=="[object Object]"};const c=e=>{return typeof e=="string"||i.call(e)=="[object String]"};const p=e=>{return typeof e=="number"||i.call(e)=="[object Number]"};const f=e=>{return typeof e=="function"};const d=e=>{return i.call(e)=="[object Map]"};const y=e=>{return i.call(e)=="[object Set]"};const h={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const m=/["'\\\b\f\n\r\t]/;const g=/[0-9]/;const b=/[ !#-&\(-\[\]-_a-~]/;const x=(e,t)=>{const r=()=>{j=P;++t.indentLevel;P=t.indent.repeat(t.indentLevel)};const i={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const v=t&&t.json;if(v){i.quotes="double";i.wrap=true}t=n(i,t);if(t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"){t.quotes="single"}const E=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'";const T=t.compact;const S=t.lowercaseHex;let P=t.indent.repeat(t.indentLevel);let j="";const w=t.__inline1__;const A=t.__inline2__;const D=T?"":"\n";let O;let _=true;const C=t.numbers=="binary";const I=t.numbers=="octal";const k=t.numbers=="decimal";const R=t.numbers=="hexadecimal";if(v&&e&&f(e.toJSON)){e=e.toJSON()}if(!c(e)){if(d(e)){if(e.size==0){return"new Map()"}if(!T){t.__inline1__=true;t.__inline2__=false}return"new Map("+x(Array.from(e),t)+")"}if(y(e)){if(e.size==0){return"new Set()"}return"new Set("+x(Array.from(e),t)+")"}if(l(e)){if(e.length==0){return"Buffer.from([])"}return"Buffer.from("+x(Array.from(e),t)+")"}if(o(e)){O=[];t.wrap=true;if(w){t.__inline1__=false;t.__inline2__=true}if(!A){r()}a(e,e=>{_=false;if(A){t.__inline2__=false}O.push((T||A?"":P)+x(e,t))});if(_){return"[]"}if(A){return"["+O.join(", ")+"]"}return"["+D+O.join(","+D)+D+(T?"":j)+"]"}else if(p(e)){if(v){return JSON.stringify(e)}if(k){return String(e)}if(R){let t=e.toString(16);if(!S){t=t.toUpperCase()}return"0x"+t}if(C){return"0b"+e.toString(2)}if(I){return"0o"+e.toString(8)}}else if(!u(e)){if(v){return JSON.stringify(e)||"null"}return String(e)}else{O=[];t.wrap=true;r();s(e,(e,r)=>{_=false;O.push((T?"":P)+x(e,t)+":"+(T?"":" ")+x(r,t))});if(_){return"{}"}return"{"+D+O.join(","+D)+D+(T?"":j)+"}"}}const M=e;let N=-1;const F=M.length;O="";while(++N=55296&&e<=56319&&F>N+1){const t=M.charCodeAt(N+1);if(t>=56320&&t<=57343){const r=(e-55296)*1024+t-56320+65536;let s=r.toString(16);if(!S){s=s.toUpperCase()}O+="\\u{"+s+"}";++N;continue}}}if(!t.escapeEverything){if(b.test(e)){O+=e;continue}if(e=='"'){O+=E==e?'\\"':e;continue}if(e=="`"){O+=E==e?"\\`":e;continue}if(e=="'"){O+=E==e?"\\'":e;continue}}if(e=="\0"&&!v&&!g.test(M.charAt(N+1))){O+="\\0";continue}if(m.test(e)){O+=h[e];continue}const r=e.charCodeAt(0);if(t.minimal&&r!=8232&&r!=8233){O+=e;continue}let s=r.toString(16);if(!S){s=s.toUpperCase()}const n=s.length>2||v;const a="\\"+(n?"u":"x")+("0000"+s).slice(n?-4:-2);O+=a;continue}if(t.wrap){O=E+O+E}if(E=="`"){O=O.replace(/\$\{/g,"\\${")}if(t.isScriptContext){return O.replace(/<\/(script|style)/gi,"<\\/$1").replace(/