@storybook/addon-onboarding 8.0.0-rc.1 → 8.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preset.js +18 -18
- package/package.json +10 -10
package/dist/preset.js
CHANGED
|
@@ -343,27 +343,27 @@ Expected ${val.length+1} quasis but got ${node.quasis.length}`)})}}});defineType
|
|
|
343
343
|
`,result,isEmpty=!0,useBinNumbers=options.numbers=="binary",useOctNumbers=options.numbers=="octal",useDecNumbers=options.numbers=="decimal",useHexNumbers=options.numbers=="hexadecimal";if(json&&argument&&isFunction(argument.toJSON)&&(argument=argument.toJSON()),!isString(argument)){if(isMap(argument))return argument.size==0?"new Map()":(compact||(options.__inline1__=!0,options.__inline2__=!1),"new Map("+jsesc(Array.from(argument),options)+")");if(isSet(argument))return argument.size==0?"new Set()":"new Set("+jsesc(Array.from(argument),options)+")";if(isBuffer(argument))return argument.length==0?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(argument),options)+")";if(isArray(argument))return result=[],options.wrap=!0,inline1&&(options.__inline1__=!1,options.__inline2__=!0),inline2||increaseIndentation(),forEach(argument,value=>{isEmpty=!1,inline2&&(options.__inline2__=!1),result.push((compact||inline2?"":indent)+jsesc(value,options));}),isEmpty?"[]":inline2?"["+result.join(", ")+"]":"["+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"]";if(isNumber(argument)){if(json)return JSON.stringify(argument);if(useDecNumbers)return String(argument);if(useHexNumbers){let hexadecimal=argument.toString(16);return lowercaseHex||(hexadecimal=hexadecimal.toUpperCase()),"0x"+hexadecimal}if(useBinNumbers)return "0b"+argument.toString(2);if(useOctNumbers)return "0o"+argument.toString(8)}else return isObject(argument)?(result=[],options.wrap=!0,increaseIndentation(),forOwn(argument,(key,value)=>{isEmpty=!1,result.push((compact?"":indent)+jsesc(key,options)+":"+(compact?"":" ")+jsesc(value,options));}),isEmpty?"{}":"{"+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"}"):json?JSON.stringify(argument)||"null":String(argument)}let string=argument,index=-1,length=string.length;for(result="";++index<length;){let character=string.charAt(index);if(options.es6){let first=string.charCodeAt(index);if(first>=55296&&first<=56319&&length>index+1){let second=string.charCodeAt(index+1);if(second>=56320&&second<=57343){let hexadecimal2=((first-55296)*1024+second-56320+65536).toString(16);lowercaseHex||(hexadecimal2=hexadecimal2.toUpperCase()),result+="\\u{"+hexadecimal2+"}",++index;continue}}}if(!options.escapeEverything){if(regexWhitelist.test(character)){result+=character;continue}if(character=='"'){result+=quote==character?'\\"':character;continue}if(character=="`"){result+=quote==character?"\\`":character;continue}if(character=="'"){result+=quote==character?"\\'":character;continue}}if(character=="\0"&&!json&&!regexDigit.test(string.charAt(index+1))){result+="\\0";continue}if(regexSingleEscape.test(character)){result+=singleEscapes[character];continue}let charCode=character.charCodeAt(0);if(options.minimal&&charCode!=8232&&charCode!=8233){result+=character;continue}let hexadecimal=charCode.toString(16);lowercaseHex||(hexadecimal=hexadecimal.toUpperCase());let longhand=hexadecimal.length>2||json,escaped="\\"+(longhand?"u":"x")+("0000"+hexadecimal).slice(longhand?-4:-2);result+=escaped;}return options.wrap&&(result=quote+result+quote),quote=="`"&&(result=result.replace(/\$\{/g,"\\${")),options.isScriptContext?result.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,json?"\\u003C!--":"\\x3C!--"):result};jsesc.version="2.5.2";module.exports=jsesc;}});var require_types=__commonJS({"../../node_modules/@babel/generator/lib/generators/types.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.ArgumentPlaceholder=ArgumentPlaceholder;exports.ArrayPattern=exports.ArrayExpression=ArrayExpression;exports.BigIntLiteral=BigIntLiteral;exports.BooleanLiteral=BooleanLiteral;exports.DecimalLiteral=DecimalLiteral;exports.Identifier=Identifier;exports.NullLiteral=NullLiteral;exports.NumericLiteral=NumericLiteral;exports.ObjectPattern=exports.ObjectExpression=ObjectExpression;exports.ObjectMethod=ObjectMethod;exports.ObjectProperty=ObjectProperty;exports.PipelineBareFunction=PipelineBareFunction;exports.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;exports.PipelineTopicExpression=PipelineTopicExpression;exports.RecordExpression=RecordExpression;exports.RegExpLiteral=RegExpLiteral;exports.SpreadElement=exports.RestElement=RestElement;exports.StringLiteral=StringLiteral;exports.TopicReference=TopicReference;exports.TupleExpression=TupleExpression;var _t=require_lib13(),_jsesc=require_jsesc(),{isAssignmentPattern,isIdentifier}=_t;function Identifier(node){var _node$loc;this.sourceIdentifierName(((_node$loc=node.loc)==null?void 0:_node$loc.identifierName)||node.name),this.word(node.name);}function ArgumentPlaceholder(){this.tokenChar(63);}function RestElement(node){this.token("..."),this.print(node.argument,node);}function ObjectExpression(node){let props=node.properties;this.tokenChar(123),props.length&&(this.space(),this.printList(props,node,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",node.loc,-1),this.tokenChar(125);}function ObjectMethod(node){this.printJoin(node.decorators,node),this._methodHead(node),this.space(),this.print(node.body,node);}function ObjectProperty(node){if(this.printJoin(node.decorators,node),node.computed)this.tokenChar(91),this.print(node.key,node),this.tokenChar(93);else {if(isAssignmentPattern(node.value)&&isIdentifier(node.key)&&node.key.name===node.value.left.name){this.print(node.value,node);return}if(this.print(node.key,node),node.shorthand&&isIdentifier(node.key)&&isIdentifier(node.value)&&node.key.name===node.value.name)return}this.tokenChar(58),this.space(),this.print(node.value,node);}function ArrayExpression(node){let elems=node.elements,len=elems.length;this.tokenChar(91);for(let i=0;i<elems.length;i++){let elem=elems[i];elem?(i>0&&this.space(),this.print(elem,node),i<len-1&&this.tokenChar(44)):this.tokenChar(44);}this.tokenChar(93);}function RecordExpression(node){let props=node.properties,startToken,endToken;if(this.format.recordAndTupleSyntaxType==="bar")startToken="{|",endToken="|}";else {if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);startToken="#{",endToken="}";}this.token(startToken),props.length&&(this.space(),this.printList(props,node,{indent:!0,statement:!0}),this.space()),this.token(endToken);}function TupleExpression(node){let elems=node.elements,len=elems.length,startToken,endToken;if(this.format.recordAndTupleSyntaxType==="bar")startToken="[|",endToken="|]";else if(this.format.recordAndTupleSyntaxType==="hash")startToken="#[",endToken="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(startToken);for(let i=0;i<elems.length;i++){let elem=elems[i];elem&&(i>0&&this.space(),this.print(elem,node),i<len-1&&this.tokenChar(44));}this.token(endToken);}function RegExpLiteral(node){this.word(`/${node.pattern}/${node.flags}`);}function BooleanLiteral(node){this.word(node.value?"true":"false");}function NullLiteral(){this.word("null");}function NumericLiteral(node){let raw=this.getPossibleRaw(node),opts=this.format.jsescOption,value=node.value,str=value+"";opts.numbers?this.number(_jsesc(value,opts),value):raw==null?this.number(str,value):this.format.minified?this.number(raw.length<str.length?raw:str,value):this.number(raw,value);}function StringLiteral(node){let raw=this.getPossibleRaw(node);if(!this.format.minified&&raw!==void 0){this.token(raw);return}let val=_jsesc(node.value,this.format.jsescOption);this.token(val);}function BigIntLiteral(node){let raw=this.getPossibleRaw(node);if(!this.format.minified&&raw!==void 0){this.word(raw);return}this.word(node.value+"n");}function DecimalLiteral(node){let raw=this.getPossibleRaw(node);if(!this.format.minified&&raw!==void 0){this.word(raw);return}this.word(node.value+"m");}var validTopicTokenSet=new Set(["^^","@@","^","%","#"]);function TopicReference(){let{topicToken}=this.format;if(validTopicTokenSet.has(topicToken))this.token(topicToken);else {let givenTopicTokenJSON=JSON.stringify(topicToken),validTopics=Array.from(validTopicTokenSet,v=>JSON.stringify(v));throw new Error(`The "topicToken" generator option must be one of ${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`)}}function PipelineTopicExpression(node){this.print(node.expression,node);}function PipelineBareFunction(node){this.print(node.callee,node);}function PipelinePrimaryTopicReference(){this.tokenChar(35);}}});var require_flow2=__commonJS({"../../node_modules/@babel/generator/lib/generators/flow.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.AnyTypeAnnotation=AnyTypeAnnotation;exports.ArrayTypeAnnotation=ArrayTypeAnnotation;exports.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;exports.BooleanTypeAnnotation=BooleanTypeAnnotation;exports.DeclareClass=DeclareClass;exports.DeclareExportAllDeclaration=DeclareExportAllDeclaration;exports.DeclareExportDeclaration=DeclareExportDeclaration;exports.DeclareFunction=DeclareFunction;exports.DeclareInterface=DeclareInterface;exports.DeclareModule=DeclareModule;exports.DeclareModuleExports=DeclareModuleExports;exports.DeclareOpaqueType=DeclareOpaqueType;exports.DeclareTypeAlias=DeclareTypeAlias;exports.DeclareVariable=DeclareVariable;exports.DeclaredPredicate=DeclaredPredicate;exports.EmptyTypeAnnotation=EmptyTypeAnnotation;exports.EnumBooleanBody=EnumBooleanBody;exports.EnumBooleanMember=EnumBooleanMember;exports.EnumDeclaration=EnumDeclaration;exports.EnumDefaultedMember=EnumDefaultedMember;exports.EnumNumberBody=EnumNumberBody;exports.EnumNumberMember=EnumNumberMember;exports.EnumStringBody=EnumStringBody;exports.EnumStringMember=EnumStringMember;exports.EnumSymbolBody=EnumSymbolBody;exports.ExistsTypeAnnotation=ExistsTypeAnnotation;exports.FunctionTypeAnnotation=FunctionTypeAnnotation;exports.FunctionTypeParam=FunctionTypeParam;exports.IndexedAccessType=IndexedAccessType;exports.InferredPredicate=InferredPredicate;exports.InterfaceDeclaration=InterfaceDeclaration;exports.GenericTypeAnnotation=exports.ClassImplements=exports.InterfaceExtends=InterfaceExtends;exports.InterfaceTypeAnnotation=InterfaceTypeAnnotation;exports.IntersectionTypeAnnotation=IntersectionTypeAnnotation;exports.MixedTypeAnnotation=MixedTypeAnnotation;exports.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;exports.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(exports,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.NumericLiteral}});exports.NumberTypeAnnotation=NumberTypeAnnotation;exports.ObjectTypeAnnotation=ObjectTypeAnnotation;exports.ObjectTypeCallProperty=ObjectTypeCallProperty;exports.ObjectTypeIndexer=ObjectTypeIndexer;exports.ObjectTypeInternalSlot=ObjectTypeInternalSlot;exports.ObjectTypeProperty=ObjectTypeProperty;exports.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;exports.OpaqueType=OpaqueType;exports.OptionalIndexedAccessType=OptionalIndexedAccessType;exports.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(exports,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.StringLiteral}});exports.StringTypeAnnotation=StringTypeAnnotation;exports.SymbolTypeAnnotation=SymbolTypeAnnotation;exports.ThisTypeAnnotation=ThisTypeAnnotation;exports.TupleTypeAnnotation=TupleTypeAnnotation;exports.TypeAlias=TypeAlias;exports.TypeAnnotation=TypeAnnotation;exports.TypeCastExpression=TypeCastExpression;exports.TypeParameter=TypeParameter;exports.TypeParameterDeclaration=exports.TypeParameterInstantiation=TypeParameterInstantiation;exports.TypeofTypeAnnotation=TypeofTypeAnnotation;exports.UnionTypeAnnotation=UnionTypeAnnotation;exports.Variance=Variance;exports.VoidTypeAnnotation=VoidTypeAnnotation;exports._interfaceish=_interfaceish;exports._variance=_variance;var _t=require_lib13(),_modules=require_modules(),_types2=require_types(),{isDeclareExportDeclaration,isStatement}=_t;function AnyTypeAnnotation(){this.word("any");}function ArrayTypeAnnotation(node){this.print(node.elementType,node,!0),this.tokenChar(91),this.tokenChar(93);}function BooleanTypeAnnotation(){this.word("boolean");}function BooleanLiteralTypeAnnotation(node){this.word(node.value?"true":"false");}function NullLiteralTypeAnnotation(){this.word("null");}function DeclareClass(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(node);}function DeclareFunction(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation.typeAnnotation,node),node.predicate&&(this.space(),this.print(node.predicate,node)),this.semicolon();}function InferredPredicate(){this.tokenChar(37),this.word("checks");}function DeclaredPredicate(node){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(node.value,node),this.tokenChar(41);}function DeclareInterface(node){this.word("declare"),this.space(),this.InterfaceDeclaration(node);}function DeclareModule(node){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(node.id,node),this.space(),this.print(node.body,node);}function DeclareModuleExports(node){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(node.typeAnnotation,node);}function DeclareTypeAlias(node){this.word("declare"),this.space(),this.TypeAlias(node);}function DeclareOpaqueType(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space()),this.OpaqueType(node);}function DeclareVariable(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation,node),this.semicolon();}function DeclareExportDeclaration(node){this.word("declare"),this.space(),this.word("export"),this.space(),node.default&&(this.word("default"),this.space()),FlowExportDeclaration.call(this,node);}function DeclareExportAllDeclaration(node){this.word("declare"),this.space(),_modules.ExportAllDeclaration.call(this,node);}function EnumDeclaration(node){let{id,body}=node;this.word("enum"),this.space(),this.print(id,node),this.print(body,node);}function enumExplicitType(context,name,hasExplicitType){hasExplicitType&&(context.space(),context.word("of"),context.space(),context.word(name)),context.space();}function enumBody(context,node){let{members}=node;context.token("{"),context.indent(),context.newline();for(let member of members)context.print(member,node),context.newline();node.hasUnknownMembers&&(context.token("..."),context.newline()),context.dedent(),context.token("}");}function EnumBooleanBody(node){let{explicitType}=node;enumExplicitType(this,"boolean",explicitType),enumBody(this,node);}function EnumNumberBody(node){let{explicitType}=node;enumExplicitType(this,"number",explicitType),enumBody(this,node);}function EnumStringBody(node){let{explicitType}=node;enumExplicitType(this,"string",explicitType),enumBody(this,node);}function EnumSymbolBody(node){enumExplicitType(this,"symbol",!0),enumBody(this,node);}function EnumDefaultedMember(node){let{id}=node;this.print(id,node),this.tokenChar(44);}function enumInitializedMember(context,node){let{id,init}=node;context.print(id,node),context.space(),context.token("="),context.space(),context.print(init,node),context.token(",");}function EnumBooleanMember(node){enumInitializedMember(this,node);}function EnumNumberMember(node){enumInitializedMember(this,node);}function EnumStringMember(node){enumInitializedMember(this,node);}function FlowExportDeclaration(node){if(node.declaration){let declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon();}else this.tokenChar(123),node.specifiers.length&&(this.space(),this.printList(node.specifiers,node),this.space()),this.tokenChar(125),node.source&&(this.space(),this.word("from"),this.space(),this.print(node.source,node)),this.semicolon();}function ExistsTypeAnnotation(){this.tokenChar(42);}function FunctionTypeAnnotation(node,parent){this.print(node.typeParameters,node),this.tokenChar(40),node.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(node.this.typeAnnotation,node),(node.params.length||node.rest)&&(this.tokenChar(44),this.space())),this.printList(node.params,node),node.rest&&(node.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(node.rest,node)),this.tokenChar(41);let type=parent?.type;type!=null&&(type==="ObjectTypeCallProperty"||type==="ObjectTypeInternalSlot"||type==="DeclareFunction"||type==="ObjectTypeProperty"&&parent.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(node.returnType,node);}function FunctionTypeParam(node){this.print(node.name,node),node.optional&&this.tokenChar(63),node.name&&(this.tokenChar(58),this.space()),this.print(node.typeAnnotation,node);}function InterfaceExtends(node){this.print(node.id,node),this.print(node.typeParameters,node,!0);}function _interfaceish(node){var _node$extends;if(this.print(node.id,node),this.print(node.typeParameters,node),(_node$extends=node.extends)!=null&&_node$extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node)),node.type==="DeclareClass"){var _node$mixins,_node$implements;(_node$mixins=node.mixins)!=null&&_node$mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(node.mixins,node)),(_node$implements=node.implements)!=null&&_node$implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(node.implements,node));}this.space(),this.print(node.body,node);}function _variance(node){var _node$variance;let kind=(_node$variance=node.variance)==null?void 0:_node$variance.kind;kind!=null&&(kind==="plus"?this.tokenChar(43):kind==="minus"&&this.tokenChar(45));}function InterfaceDeclaration(node){this.word("interface"),this.space(),this._interfaceish(node);}function andSeparator(){this.space(),this.tokenChar(38),this.space();}function InterfaceTypeAnnotation(node){var _node$extends2;this.word("interface"),(_node$extends2=node.extends)!=null&&_node$extends2.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node)),this.space(),this.print(node.body,node);}function IntersectionTypeAnnotation(node){this.printJoin(node.types,node,{separator:andSeparator});}function MixedTypeAnnotation(){this.word("mixed");}function EmptyTypeAnnotation(){this.word("empty");}function NullableTypeAnnotation(node){this.tokenChar(63),this.print(node.typeAnnotation,node);}function NumberTypeAnnotation(){this.word("number");}function StringTypeAnnotation(){this.word("string");}function ThisTypeAnnotation(){this.word("this");}function TupleTypeAnnotation(node){this.tokenChar(91),this.printList(node.types,node),this.tokenChar(93);}function TypeofTypeAnnotation(node){this.word("typeof"),this.space(),this.print(node.argument,node);}function TypeAlias(node){this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),this.space(),this.tokenChar(61),this.space(),this.print(node.right,node),this.semicolon();}function TypeAnnotation(node){this.tokenChar(58),this.space(),node.optional&&this.tokenChar(63),this.print(node.typeAnnotation,node);}function TypeParameterInstantiation(node){this.tokenChar(60),this.printList(node.params,node,{}),this.tokenChar(62);}function TypeParameter(node){this._variance(node),this.word(node.name),node.bound&&this.print(node.bound,node),node.default&&(this.space(),this.tokenChar(61),this.space(),this.print(node.default,node));}function OpaqueType(node){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),node.supertype&&(this.tokenChar(58),this.space(),this.print(node.supertype,node)),node.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(node.impltype,node)),this.semicolon();}function ObjectTypeAnnotation(node){node.exact?this.token("{|"):this.tokenChar(123);let props=[...node.properties,...node.callProperties||[],...node.indexers||[],...node.internalSlots||[]];props.length&&(this.newline(),this.space(),this.printJoin(props,node,{addNewlines(leading){if(leading&&!props[0])return 1},indent:!0,statement:!0,iterator:()=>{(props.length!==1||node.inexact)&&(this.tokenChar(44),this.space());}}),this.space()),node.inexact&&(this.indent(),this.token("..."),props.length&&this.newline(),this.dedent()),node.exact?this.token("|}"):this.tokenChar(125);}function ObjectTypeInternalSlot(node){node.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(node.id,node),this.tokenChar(93),this.tokenChar(93),node.optional&&this.tokenChar(63),node.method||(this.tokenChar(58),this.space()),this.print(node.value,node);}function ObjectTypeCallProperty(node){node.static&&(this.word("static"),this.space()),this.print(node.value,node);}function ObjectTypeIndexer(node){node.static&&(this.word("static"),this.space()),this._variance(node),this.tokenChar(91),node.id&&(this.print(node.id,node),this.tokenChar(58),this.space()),this.print(node.key,node),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(node.value,node);}function ObjectTypeProperty(node){node.proto&&(this.word("proto"),this.space()),node.static&&(this.word("static"),this.space()),(node.kind==="get"||node.kind==="set")&&(this.word(node.kind),this.space()),this._variance(node),this.print(node.key,node),node.optional&&this.tokenChar(63),node.method||(this.tokenChar(58),this.space()),this.print(node.value,node);}function ObjectTypeSpreadProperty(node){this.token("..."),this.print(node.argument,node);}function QualifiedTypeIdentifier(node){this.print(node.qualification,node),this.tokenChar(46),this.print(node.id,node);}function SymbolTypeAnnotation(){this.word("symbol");}function orSeparator(){this.space(),this.tokenChar(124),this.space();}function UnionTypeAnnotation(node){this.printJoin(node.types,node,{separator:orSeparator});}function TypeCastExpression(node){this.tokenChar(40),this.print(node.expression,node),this.print(node.typeAnnotation,node),this.tokenChar(41);}function Variance(node){node.kind==="plus"?this.tokenChar(43):this.tokenChar(45);}function VoidTypeAnnotation(){this.word("void");}function IndexedAccessType(node){this.print(node.objectType,node,!0),this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);}function OptionalIndexedAccessType(node){this.print(node.objectType,node),node.optional&&this.token("?."),this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);}}});var require_base3=__commonJS({"../../node_modules/@babel/generator/lib/generators/base.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.BlockStatement=BlockStatement;exports.Directive=Directive;exports.DirectiveLiteral=DirectiveLiteral;exports.File=File;exports.InterpreterDirective=InterpreterDirective;exports.Placeholder=Placeholder;exports.Program=Program;function File(node){node.program&&this.print(node.program.interpreter,node),this.print(node.program,node);}function Program(node){var _node$directives;this.noIndentInnerCommentsHere(),this.printInnerComments();let directivesLen=(_node$directives=node.directives)==null?void 0:_node$directives.length;if(directivesLen){var _node$directives$trai;let newline=node.body.length?2:1;this.printSequence(node.directives,node,{trailingCommentsLineOffset:newline}),(_node$directives$trai=node.directives[directivesLen-1].trailingComments)!=null&&_node$directives$trai.length||this.newline(newline);}this.printSequence(node.body,node);}function BlockStatement(node){var _node$directives2;this.tokenChar(123);let directivesLen=(_node$directives2=node.directives)==null?void 0:_node$directives2.length;if(directivesLen){var _node$directives$trai2;let newline=node.body.length?2:1;this.printSequence(node.directives,node,{indent:!0,trailingCommentsLineOffset:newline}),(_node$directives$trai2=node.directives[directivesLen-1].trailingComments)!=null&&_node$directives$trai2.length||this.newline(newline);}this.printSequence(node.body,node,{indent:!0}),this.rightBrace(node);}function Directive(node){this.print(node.value,node),this.semicolon();}var unescapedSingleQuoteRE=/(?:^|[^\\])(?:\\\\)*'/,unescapedDoubleQuoteRE=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(node){let raw=this.getPossibleRaw(node);if(!this.format.minified&&raw!==void 0){this.token(raw);return}let{value}=node;if(!unescapedDoubleQuoteRE.test(value))this.token(`"${value}"`);else if(!unescapedSingleQuoteRE.test(value))this.token(`'${value}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function InterpreterDirective(node){this.token(`#!${node.value}`),this.newline(1,!0);}function Placeholder(node){this.token("%%"),this.print(node.name),this.token("%%"),node.expectedNode==="Statement"&&this.semicolon();}}});var require_jsx2=__commonJS({"../../node_modules/@babel/generator/lib/generators/jsx.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.JSXAttribute=JSXAttribute;exports.JSXClosingElement=JSXClosingElement;exports.JSXClosingFragment=JSXClosingFragment;exports.JSXElement=JSXElement;exports.JSXEmptyExpression=JSXEmptyExpression;exports.JSXExpressionContainer=JSXExpressionContainer;exports.JSXFragment=JSXFragment;exports.JSXIdentifier=JSXIdentifier;exports.JSXMemberExpression=JSXMemberExpression;exports.JSXNamespacedName=JSXNamespacedName;exports.JSXOpeningElement=JSXOpeningElement;exports.JSXOpeningFragment=JSXOpeningFragment;exports.JSXSpreadAttribute=JSXSpreadAttribute;exports.JSXSpreadChild=JSXSpreadChild;exports.JSXText=JSXText;function JSXAttribute(node){this.print(node.name,node),node.value&&(this.tokenChar(61),this.print(node.value,node));}function JSXIdentifier(node){this.word(node.name);}function JSXNamespacedName(node){this.print(node.namespace,node),this.tokenChar(58),this.print(node.name,node);}function JSXMemberExpression(node){this.print(node.object,node),this.tokenChar(46),this.print(node.property,node);}function JSXSpreadAttribute(node){this.tokenChar(123),this.token("..."),this.print(node.argument,node),this.tokenChar(125);}function JSXExpressionContainer(node){this.tokenChar(123),this.print(node.expression,node),this.tokenChar(125);}function JSXSpreadChild(node){this.tokenChar(123),this.token("..."),this.print(node.expression,node),this.tokenChar(125);}function JSXText(node){let raw=this.getPossibleRaw(node);raw!==void 0?this.token(raw,!0):this.token(node.value,!0);}function JSXElement(node){let open=node.openingElement;if(this.print(open,node),!open.selfClosing){this.indent();for(let child of node.children)this.print(child,node);this.dedent(),this.print(node.closingElement,node);}}function spaceSeparator(){this.space();}function JSXOpeningElement(node){this.tokenChar(60),this.print(node.name,node),this.print(node.typeParameters,node),node.attributes.length>0&&(this.space(),this.printJoin(node.attributes,node,{separator:spaceSeparator})),node.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62);}function JSXClosingElement(node){this.token("</"),this.print(node.name,node),this.tokenChar(62);}function JSXEmptyExpression(){this.printInnerComments();}function JSXFragment(node){this.print(node.openingFragment,node),this.indent();for(let child of node.children)this.print(child,node);this.dedent(),this.print(node.closingFragment,node);}function JSXOpeningFragment(){this.tokenChar(60),this.tokenChar(62);}function JSXClosingFragment(){this.token("</"),this.tokenChar(62);}}});var require_typescript2=__commonJS({"../../node_modules/@babel/generator/lib/generators/typescript.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.TSAnyKeyword=TSAnyKeyword;exports.TSArrayType=TSArrayType;exports.TSSatisfiesExpression=exports.TSAsExpression=TSTypeExpression;exports.TSBigIntKeyword=TSBigIntKeyword;exports.TSBooleanKeyword=TSBooleanKeyword;exports.TSCallSignatureDeclaration=TSCallSignatureDeclaration;exports.TSConditionalType=TSConditionalType;exports.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;exports.TSConstructorType=TSConstructorType;exports.TSDeclareFunction=TSDeclareFunction;exports.TSDeclareMethod=TSDeclareMethod;exports.TSEnumDeclaration=TSEnumDeclaration;exports.TSEnumMember=TSEnumMember;exports.TSExportAssignment=TSExportAssignment;exports.TSExpressionWithTypeArguments=TSExpressionWithTypeArguments;exports.TSExternalModuleReference=TSExternalModuleReference;exports.TSFunctionType=TSFunctionType;exports.TSImportEqualsDeclaration=TSImportEqualsDeclaration;exports.TSImportType=TSImportType;exports.TSIndexSignature=TSIndexSignature;exports.TSIndexedAccessType=TSIndexedAccessType;exports.TSInferType=TSInferType;exports.TSInstantiationExpression=TSInstantiationExpression;exports.TSInterfaceBody=TSInterfaceBody;exports.TSInterfaceDeclaration=TSInterfaceDeclaration;exports.TSIntersectionType=TSIntersectionType;exports.TSIntrinsicKeyword=TSIntrinsicKeyword;exports.TSLiteralType=TSLiteralType;exports.TSMappedType=TSMappedType;exports.TSMethodSignature=TSMethodSignature;exports.TSModuleBlock=TSModuleBlock;exports.TSModuleDeclaration=TSModuleDeclaration;exports.TSNamedTupleMember=TSNamedTupleMember;exports.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;exports.TSNeverKeyword=TSNeverKeyword;exports.TSNonNullExpression=TSNonNullExpression;exports.TSNullKeyword=TSNullKeyword;exports.TSNumberKeyword=TSNumberKeyword;exports.TSObjectKeyword=TSObjectKeyword;exports.TSOptionalType=TSOptionalType;exports.TSParameterProperty=TSParameterProperty;exports.TSParenthesizedType=TSParenthesizedType;exports.TSPropertySignature=TSPropertySignature;exports.TSQualifiedName=TSQualifiedName;exports.TSRestType=TSRestType;exports.TSStringKeyword=TSStringKeyword;exports.TSSymbolKeyword=TSSymbolKeyword;exports.TSThisType=TSThisType;exports.TSTupleType=TSTupleType;exports.TSTypeAliasDeclaration=TSTypeAliasDeclaration;exports.TSTypeAnnotation=TSTypeAnnotation;exports.TSTypeAssertion=TSTypeAssertion;exports.TSTypeLiteral=TSTypeLiteral;exports.TSTypeOperator=TSTypeOperator;exports.TSTypeParameter=TSTypeParameter;exports.TSTypeParameterDeclaration=exports.TSTypeParameterInstantiation=TSTypeParameterInstantiation;exports.TSTypePredicate=TSTypePredicate;exports.TSTypeQuery=TSTypeQuery;exports.TSTypeReference=TSTypeReference;exports.TSUndefinedKeyword=TSUndefinedKeyword;exports.TSUnionType=TSUnionType;exports.TSUnknownKeyword=TSUnknownKeyword;exports.TSVoidKeyword=TSVoidKeyword;exports.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;exports.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;exports.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;exports.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;exports.tsPrintTypeLiteralOrInterfaceBody=tsPrintTypeLiteralOrInterfaceBody;function TSTypeAnnotation(node){this.tokenChar(58),this.space(),node.optional&&this.tokenChar(63),this.print(node.typeAnnotation,node);}function TSTypeParameterInstantiation(node,parent){this.tokenChar(60),this.printList(node.params,node,{}),parent.type==="ArrowFunctionExpression"&&node.params.length===1&&this.tokenChar(44),this.tokenChar(62);}function TSTypeParameter(node){node.in&&(this.word("in"),this.space()),node.out&&(this.word("out"),this.space()),this.word(node.name),node.constraint&&(this.space(),this.word("extends"),this.space(),this.print(node.constraint,node)),node.default&&(this.space(),this.tokenChar(61),this.space(),this.print(node.default,node));}function TSParameterProperty(node){node.accessibility&&(this.word(node.accessibility),this.space()),node.readonly&&(this.word("readonly"),this.space()),this._param(node.parameter);}function TSDeclareFunction(node,parent){node.declare&&(this.word("declare"),this.space()),this._functionHead(node,parent),this.tokenChar(59);}function TSDeclareMethod(node){this._classMethodHead(node),this.tokenChar(59);}function TSQualifiedName(node){this.print(node.left,node),this.tokenChar(46),this.print(node.right,node);}function TSCallSignatureDeclaration(node){this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);}function TSConstructSignatureDeclaration(node){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);}function TSPropertySignature(node){let{readonly}=node;readonly&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(node),this.print(node.typeAnnotation,node),this.tokenChar(59);}function tsPrintPropertyOrMethodName(node){node.computed&&this.tokenChar(91),this.print(node.key,node),node.computed&&this.tokenChar(93),node.optional&&this.tokenChar(63);}function TSMethodSignature(node){let{kind}=node;(kind==="set"||kind==="get")&&(this.word(kind),this.space()),this.tsPrintPropertyOrMethodName(node),this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);}function TSIndexSignature(node){let{readonly,static:isStatic}=node;isStatic&&(this.word("static"),this.space()),readonly&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(node.parameters,node),this.tokenChar(93),this.print(node.typeAnnotation,node),this.tokenChar(59);}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(node){this.tsPrintFunctionOrConstructorType(node);}function TSConstructorType(node){node.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(node);}function tsPrintFunctionOrConstructorType(node){let{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.tokenChar(40),this._parameters(parameters,node),this.tokenChar(41),this.space(),this.token("=>"),this.space();let returnType=node.typeAnnotation;this.print(returnType.typeAnnotation,node);}function TSTypeReference(node){this.print(node.typeName,node,!0),this.print(node.typeParameters,node,!0);}function TSTypePredicate(node){node.asserts&&(this.word("asserts"),this.space()),this.print(node.parameterName),node.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(node.typeAnnotation.typeAnnotation));}function TSTypeQuery(node){this.word("typeof"),this.space(),this.print(node.exprName),node.typeParameters&&this.print(node.typeParameters,node);}function TSTypeLiteral(node){this.tsPrintTypeLiteralOrInterfaceBody(node.members,node);}function tsPrintTypeLiteralOrInterfaceBody(members,node){tsPrintBraced(this,members,node);}function tsPrintBraced(printer,members,node){if(printer.token("{"),members.length){printer.indent(),printer.newline();for(let member of members)printer.print(member,node),printer.newline();printer.dedent();}printer.rightBrace(node);}function TSArrayType(node){this.print(node.elementType,node,!0),this.token("[]");}function TSTupleType(node){this.tokenChar(91),this.printList(node.elementTypes,node),this.tokenChar(93);}function TSOptionalType(node){this.print(node.typeAnnotation,node),this.tokenChar(63);}function TSRestType(node){this.token("..."),this.print(node.typeAnnotation,node);}function TSNamedTupleMember(node){this.print(node.label,node),node.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(node.elementType,node);}function TSUnionType(node){tsPrintUnionOrIntersectionType(this,node,"|");}function TSIntersectionType(node){tsPrintUnionOrIntersectionType(this,node,"&");}function tsPrintUnionOrIntersectionType(printer,node,sep){printer.printJoin(node.types,node,{separator(){this.space(),this.token(sep),this.space();}});}function TSConditionalType(node){this.print(node.checkType),this.space(),this.word("extends"),this.space(),this.print(node.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(node.trueType),this.space(),this.tokenChar(58),this.space(),this.print(node.falseType);}function TSInferType(node){this.token("infer"),this.space(),this.print(node.typeParameter);}function TSParenthesizedType(node){this.tokenChar(40),this.print(node.typeAnnotation,node),this.tokenChar(41);}function TSTypeOperator(node){this.word(node.operator),this.space(),this.print(node.typeAnnotation,node);}function TSIndexedAccessType(node){this.print(node.objectType,node,!0),this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);}function TSMappedType(node){let{nameType,optional,readonly,typeParameter}=node;this.tokenChar(123),this.space(),readonly&&(tokenIfPlusMinus(this,readonly),this.word("readonly"),this.space()),this.tokenChar(91),this.word(typeParameter.name),this.space(),this.word("in"),this.space(),this.print(typeParameter.constraint,typeParameter),nameType&&(this.space(),this.word("as"),this.space(),this.print(nameType,node)),this.tokenChar(93),optional&&(tokenIfPlusMinus(this,optional),this.tokenChar(63)),this.tokenChar(58),this.space(),this.print(node.typeAnnotation,node),this.space(),this.tokenChar(125);}function tokenIfPlusMinus(self2,tok){tok!==!0&&self2.token(tok);}function TSLiteralType(node){this.print(node.literal,node);}function TSExpressionWithTypeArguments(node){this.print(node.expression,node),this.print(node.typeParameters,node);}function TSInterfaceDeclaration(node){let{declare,id,typeParameters,extends:extendz,body}=node;declare&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(id,node),this.print(typeParameters,node),extendz!=null&&extendz.length&&(this.space(),this.word("extends"),this.space(),this.printList(extendz,node)),this.space(),this.print(body,node);}function TSInterfaceBody(node){this.tsPrintTypeLiteralOrInterfaceBody(node.body,node);}function TSTypeAliasDeclaration(node){let{declare,id,typeParameters,typeAnnotation}=node;declare&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(id,node),this.print(typeParameters,node),this.space(),this.tokenChar(61),this.space(),this.print(typeAnnotation,node),this.tokenChar(59);}function TSTypeExpression(node){var _expression$trailingC;let{type,expression,typeAnnotation}=node,forceParens=!!((_expression$trailingC=expression.trailingComments)!=null&&_expression$trailingC.length);this.print(expression,node,!0,void 0,forceParens),this.space(),this.word(type==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(typeAnnotation,node);}function TSTypeAssertion(node){let{typeAnnotation,expression}=node;this.tokenChar(60),this.print(typeAnnotation,node),this.tokenChar(62),this.space(),this.print(expression,node);}function TSInstantiationExpression(node){this.print(node.expression,node),this.print(node.typeParameters,node);}function TSEnumDeclaration(node){let{declare,const:isConst,id,members}=node;declare&&(this.word("declare"),this.space()),isConst&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(id,node),this.space(),tsPrintBraced(this,members,node);}function TSEnumMember(node){let{id,initializer}=node;this.print(id,node),initializer&&(this.space(),this.tokenChar(61),this.space(),this.print(initializer,node)),this.tokenChar(44);}function TSModuleDeclaration(node){let{declare,id}=node;if(declare&&(this.word("declare"),this.space()),node.global||(this.word(id.type==="Identifier"?"namespace":"module"),this.space()),this.print(id,node),!node.body){this.tokenChar(59);return}let body=node.body;for(;body.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(body.id,body),body=body.body;this.space(),this.print(body,node);}function TSModuleBlock(node){tsPrintBraced(this,node.body,node);}function TSImportType(node){let{argument,qualifier,typeParameters}=node;this.word("import"),this.tokenChar(40),this.print(argument,node),this.tokenChar(41),qualifier&&(this.tokenChar(46),this.print(qualifier,node)),typeParameters&&this.print(typeParameters,node);}function TSImportEqualsDeclaration(node){let{isExport,id,moduleReference}=node;isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(id,node),this.space(),this.tokenChar(61),this.space(),this.print(moduleReference,node),this.tokenChar(59);}function TSExternalModuleReference(node){this.token("require("),this.print(node.expression,node),this.tokenChar(41);}function TSNonNullExpression(node){this.print(node.expression,node),this.tokenChar(33);}function TSExportAssignment(node){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(node.expression,node),this.tokenChar(59);}function TSNamespaceExportDeclaration(node){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(node.id,node);}function tsPrintSignatureDeclarationBase(node){let{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.tokenChar(40),this._parameters(parameters,node),this.tokenChar(41);let returnType=node.typeAnnotation;this.print(returnType,node);}function tsPrintClassMemberModifiers(node){let isField=node.type==="ClassAccessorProperty"||node.type==="ClassProperty";isField&&node.declare&&(this.word("declare"),this.space()),node.accessibility&&(this.word(node.accessibility),this.space()),node.static&&(this.word("static"),this.space()),node.override&&(this.word("override"),this.space()),node.abstract&&(this.word("abstract"),this.space()),isField&&node.readonly&&(this.word("readonly"),this.space());}}});var require_generators=__commonJS({"../../node_modules/@babel/generator/lib/generators/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});var _templateLiterals=require_template_literals();Object.keys(_templateLiterals).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_templateLiterals[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _templateLiterals[key]}});});var _expressions=require_expressions();Object.keys(_expressions).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_expressions[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _expressions[key]}});});var _statements=require_statements();Object.keys(_statements).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_statements[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _statements[key]}});});var _classes=require_classes();Object.keys(_classes).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_classes[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _classes[key]}});});var _methods=require_methods();Object.keys(_methods).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_methods[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _methods[key]}});});var _modules=require_modules();Object.keys(_modules).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_modules[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _modules[key]}});});var _types=require_types();Object.keys(_types).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_types[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _types[key]}});});var _flow=require_flow2();Object.keys(_flow).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_flow[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _flow[key]}});});var _base=require_base3();Object.keys(_base).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_base[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _base[key]}});});var _jsx=require_jsx2();Object.keys(_jsx).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_jsx[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _jsx[key]}});});var _typescript=require_typescript2();Object.keys(_typescript).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_typescript[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _typescript[key]}});});}});var require_printer2=__commonJS({"../../node_modules/@babel/generator/lib/printer.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _buffer=require_buffer(),n=require_node3(),_t=require_lib13(),generatorFunctions=require_generators(),{isFunction,isStatement,isClassBody,isTSInterfaceBody,isTSEnumDeclaration}=_t,SCIENTIFIC_NOTATION=/e/i,ZERO_DECIMAL_INTEGER=/\.0+$/,HAS_NEWLINE=/[\n\r\u2028\u2029]/,HAS_NEWLINE_OR_BlOCK_COMMENT_END=/[\n\r\u2028\u2029]|\*\//,{needsParens}=n,Printer=class{constructor(format,map){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=format,this._indentRepeat=format.indent.style.length,this._inputMap=map?._inputMap,this._buf=new _buffer.default(map,format.indent.style[0]);}generate(ast){return this.print(ast),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++;}dedent(){this.format.compact||this.format.concise||this._indent--;}semicolon(force=!1){this._maybeAddAuxComment(),force?this._appendChar(59):this._queue(59),this._noLineTerminator=!1;}rightBrace(node){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",node.loc,-1),this.tokenChar(125);}rightParens(node){this.sourceWithOffset("end",node.loc,-1),this.tokenChar(41);}space(force=!1){if(!this.format.compact){if(force)this._space();else if(this._buf.hasContent()){let lastCp=this.getLastChar();lastCp!==32&&lastCp!==10&&this._space();}}}word(str,noLineTerminatorAfter=!1){this._maybePrintInnerComments(),(this._endsWithWord||str.charCodeAt(0)===47&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(str,!1),this._endsWithWord=!0,this._noLineTerminator=noLineTerminatorAfter;}number(str,number){function isNonDecimalLiteral(str2){if(str2.length>2&&str2.charCodeAt(0)===48){let secondChar=str2.charCodeAt(1);return secondChar===98||secondChar===111||secondChar===120}return !1}this.word(str),this._endsWithInteger=Number.isInteger(number)&&!isNonDecimalLiteral(str)&&!SCIENTIFIC_NOTATION.test(str)&&!ZERO_DECIMAL_INTEGER.test(str)&&str.charCodeAt(str.length-1)!==46;}token(str,maybeNewline=!1){this._maybePrintInnerComments();let lastChar=this.getLastChar(),strFirst=str.charCodeAt(0);(lastChar===33&&(str==="--"||strFirst===61)||strFirst===43&&lastChar===43||strFirst===45&&lastChar===45||strFirst===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(str,maybeNewline),this._noLineTerminator=!1;}tokenChar(char){this._maybePrintInnerComments();let lastChar=this.getLastChar();(char===43&&lastChar===43||char===45&&lastChar===45||char===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(char),this._noLineTerminator=!1;}newline(i=1,force){if(!(i<=0)){if(!force){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}i>2&&(i=2),i-=this._buf.getNewlineCount();for(let j=0;j<i;j++)this._newline();}}endsWith(char){return this.getLastChar()===char}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline();}exactSource(loc,cb){if(!loc){cb();return}this._catchUp("start",loc),this._buf.exactSource(loc,cb);}source(prop,loc){loc&&(this._catchUp(prop,loc),this._buf.source(prop,loc));}sourceWithOffset(prop,loc,columnOffset){loc&&(this._catchUp(prop,loc),this._buf.sourceWithOffset(prop,loc,columnOffset));}withSource(prop,loc,cb){if(!loc){cb();return}this._catchUp(prop,loc),this._buf.withSource(prop,loc,cb);}sourceIdentifierName(identifierName,pos){if(!this._buf._canMarkIdName)return;let sourcePosition=this._buf._sourcePosition;sourcePosition.identifierNamePos=pos,sourcePosition.identifierName=identifierName;}_space(){this._queue(32);}_newline(){this._queue(10);}_append(str,maybeNewline){this._maybeAddParen(str),this._maybeIndent(str.charCodeAt(0)),this._buf.append(str,maybeNewline),this._endsWithWord=!1,this._endsWithInteger=!1;}_appendChar(char){this._maybeAddParenChar(char),this._maybeIndent(char),this._buf.appendChar(char),this._endsWithWord=!1,this._endsWithInteger=!1;}_queue(char){this._maybeAddParenChar(char),this._maybeIndent(char),this._buf.queue(char),this._endsWithWord=!1,this._endsWithInteger=!1;}_maybeIndent(firstChar){this._indent&&firstChar!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent());}_shouldIndent(firstChar){if(this._indent&&firstChar!==10&&this.endsWith(10))return !0}_maybeAddParenChar(char){let parenPushNewlineState=this._parenPushNewlineState;if(parenPushNewlineState&&char!==32){if(char!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),parenPushNewlineState.printed=!0;}}_maybeAddParen(str){let parenPushNewlineState=this._parenPushNewlineState;if(!parenPushNewlineState)return;let len=str.length,i;for(i=0;i<len&&str.charCodeAt(i)===32;i++);if(i===len)return;let cha=str.charCodeAt(i);if(cha!==10){if(cha!==47||i+1===len){this._parenPushNewlineState=null;return}let chaPost=str.charCodeAt(i+1);if(chaPost===42)return;if(chaPost!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),parenPushNewlineState.printed=!0;}catchUp(line){if(!this.format.retainLines)return;let count=line-this._buf.getCurrentLine();for(let i=0;i<count;i++)this._newline();}_catchUp(prop,loc){var _loc$prop;if(!this.format.retainLines)return;let line=loc==null||(_loc$prop=loc[prop])==null?void 0:_loc$prop.line;if(line!=null){let count=line-this._buf.getCurrentLine();for(let i=0;i<count;i++)this._newline();}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(node,parent,isLabel){if(isLabel)this._noLineTerminator=!0,this.print(node,parent);else {let terminatorState={printed:!1};this._parenPushNewlineState=terminatorState,this.print(node,parent),terminatorState.printed&&(this.dedent(),this.newline(),this.tokenChar(41));}}print(node,parent,noLineTerminatorAfter,trailingCommentsLineOffset,forceParens){var _node$extra,_node$leadingComments;if(!node)return;this._endsWithInnerRaw=!1;let nodeType=node.type,format=this.format,oldConcise=format.concise;node._compact&&(format.concise=!0);let printMethod=this[nodeType];if(printMethod===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);this._printStack.push(node);let oldInAux=this._insideAux;this._insideAux=node.loc==null,this._maybeAddAuxComment(this._insideAux&&!oldInAux);let parenthesized=(_node$extra=node.extra)==null?void 0:_node$extra.parenthesized,shouldPrintParens=forceParens||parenthesized&&format.retainFunctionParens&&nodeType==="FunctionExpression"||needsParens(node,parent,this._printStack);if(!shouldPrintParens&&parenthesized&&(_node$leadingComments=node.leadingComments)!=null&&_node$leadingComments.length&&node.leadingComments[0].type==="CommentBlock")switch(parent?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(parent.callee!==node)break;default:shouldPrintParens=!0;}shouldPrintParens&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(node,parent);let loc=nodeType==="Program"||nodeType==="File"?null:node.loc;this.exactSource(loc,printMethod.bind(this,node,parent)),shouldPrintParens?(this._printTrailingComments(node,parent),this.tokenChar(41),this._noLineTerminator=noLineTerminatorAfter):noLineTerminatorAfter&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(node,parent)):this._printTrailingComments(node,parent,trailingCommentsLineOffset),this._printStack.pop(),format.concise=oldConcise,this._insideAux=oldInAux,this._endsWithInnerRaw=!1;}_maybeAddAuxComment(enteredPositionlessNode){enteredPositionlessNode&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment();}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let comment=this.format.auxiliaryCommentBefore;comment&&this._printComment({type:"CommentBlock",value:comment},0);}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let comment=this.format.auxiliaryCommentAfter;comment&&this._printComment({type:"CommentBlock",value:comment},0);}getPossibleRaw(node){let extra=node.extra;if(extra?.raw!=null&&extra.rawValue!=null&&node.value===extra.rawValue)return extra.raw}printJoin(nodes,parent,opts={}){if(!(nodes!=null&&nodes.length))return;let{indent}=opts;if(indent==null&&this.format.retainLines){var _nodes$0$loc;let startLine=(_nodes$0$loc=nodes[0].loc)==null?void 0:_nodes$0$loc.start.line;startLine!=null&&startLine!==this._buf.getCurrentLine()&&(indent=!0);}indent&&this.indent();let newlineOpts={addNewlines:opts.addNewlines,nextNodeStartLine:0},separator=opts.separator?opts.separator.bind(this):null,len=nodes.length;for(let i=0;i<len;i++){let node=nodes[i];if(node&&(opts.statement&&this._printNewline(i===0,newlineOpts),this.print(node,parent,void 0,opts.trailingCommentsLineOffset||0),opts.iterator==null||opts.iterator(node,i),i<len-1&&separator?.(),opts.statement)){var _node$trailingComment;if((_node$trailingComment=node.trailingComments)!=null&&_node$trailingComment.length||(this._lastCommentLine=0),i+1===len)this.newline(1);else {var _nextNode$loc;let nextNode=nodes[i+1];newlineOpts.nextNodeStartLine=((_nextNode$loc=nextNode.loc)==null?void 0:_nextNode$loc.start.line)||0,this._printNewline(!0,newlineOpts);}}}indent&&this.dedent();}printAndIndentOnComments(node,parent){let indent=node.leadingComments&&node.leadingComments.length>0;indent&&this.indent(),this.print(node,parent),indent&&this.dedent();}printBlock(parent){let node=parent.body;node.type!=="EmptyStatement"&&this.space(),this.print(node,parent);}_printTrailingComments(node,parent,lineOffset){let{innerComments,trailingComments}=node;innerComments!=null&&innerComments.length&&this._printComments(2,innerComments,node,parent,lineOffset),trailingComments!=null&&trailingComments.length&&this._printComments(2,trailingComments,node,parent,lineOffset);}_printLeadingComments(node,parent){let comments=node.leadingComments;comments!=null&&comments.length&&this._printComments(0,comments,node,parent);}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0;}printInnerComments(){let node=this._printStack[this._printStack.length-1],comments=node.innerComments;if(!(comments!=null&&comments.length))return;let hasSpace=this.endsWith(32),indent=this._indentInnerComments,printedCommentsCount=this._printedComments.size;indent&&this.indent(),this._printComments(1,comments,node),hasSpace&&printedCommentsCount!==this._printedComments.size&&this.space(),indent&&this.dedent();}noIndentInnerCommentsHere(){this._indentInnerComments=!1;}printSequence(nodes,parent,opts={}){opts.statement=!0,(opts.indent)!=null||(opts.indent=!1),this.printJoin(nodes,parent,opts);}printList(items,parent,opts={}){opts.separator==null&&(opts.separator=commaSeparator),this.printJoin(items,parent,opts);}_printNewline(newLine,opts){let format=this.format;if(format.retainLines||format.compact)return;if(format.concise){this.space();return}if(!newLine)return;let startLine=opts.nextNodeStartLine,lastCommentLine=this._lastCommentLine;if(startLine>0&&lastCommentLine>0){let offset=startLine-lastCommentLine;if(offset>=0){this.newline(offset||1);return}}this._buf.hasContent()&&this.newline(1);}_shouldPrintComment(comment){return comment.ignore||this._printedComments.has(comment)?0:this._noLineTerminator&&HAS_NEWLINE_OR_BlOCK_COMMENT_END.test(comment.value)?2:(this._printedComments.add(comment),this.format.shouldPrintComment(comment.value)?1:0)}_printComment(comment,skipNewLines){let noLineTerminator=this._noLineTerminator,isBlockComment=comment.type==="CommentBlock",printNewLines=isBlockComment&&skipNewLines!==1&&!this._noLineTerminator;printNewLines&&this._buf.hasContent()&&skipNewLines!==2&&this.newline(1);let lastCharCode=this.getLastChar();lastCharCode!==91&&lastCharCode!==123&&this.space();let val;if(isBlockComment){let{_parenPushNewlineState}=this;if(_parenPushNewlineState?.printed===!1&&HAS_NEWLINE.test(comment.value)&&(this.tokenChar(40),this.indent(),_parenPushNewlineState.printed=!0),val=`/*${comment.value}*/`,this.format.indent.adjustMultilineComment){var _comment$loc;let offset=(_comment$loc=comment.loc)==null?void 0:_comment$loc.start.column;if(offset){let newlineRegex=new RegExp("\\n\\s{1,"+offset+"}","g");val=val.replace(newlineRegex,`
|
|
344
344
|
`);}if(this.format.concise)val=val.replace(/\n(?!$)/g,`
|
|
345
345
|
`);else {let indentSize=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(indentSize+=this._getIndent()),val=val.replace(/\n(?!$)/g,`
|
|
346
|
-
${" ".repeat(indentSize)}`);}}}else noLineTerminator?val=`/*${comment.value}*/`:val=`//${comment.value}`;this.endsWith(47)&&this._space(),this.source("start",comment.loc),this._append(val,isBlockComment),!isBlockComment&&!noLineTerminator&&this.newline(1,!0),printNewLines&&skipNewLines!==3&&this.newline(1);}_printComments(type,comments,node,parent,lineOffset=0){let nodeLoc=node.loc,len=comments.length,hasLoc=!!nodeLoc,nodeStartLine=hasLoc?nodeLoc.start.line:0,nodeEndLine=hasLoc?nodeLoc.end.line:0,lastLine=0,leadingCommentNewline=0,maybeNewline=this._noLineTerminator?function(){}:this.newline.bind(this);for(let i=0;i<len;i++){let comment=comments[i],shouldPrint=this._shouldPrintComment(comment);if(shouldPrint===2){hasLoc=!1;break}if(hasLoc&&comment.loc&&shouldPrint===1){let commentStartLine=comment.loc.start.line,commentEndLine=comment.loc.end.line;if(type===0){let offset=0;i===0?this._buf.hasContent()&&(comment.type==="CommentLine"||commentStartLine!=commentEndLine)&&(offset=leadingCommentNewline=1):offset=commentStartLine-lastLine,lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1),i+1===len&&(maybeNewline(Math.max(nodeStartLine-lastLine,leadingCommentNewline)),lastLine=nodeStartLine);}else if(type===1){let offset=commentStartLine-(i===0?nodeStartLine:lastLine);lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1),i+1===len&&(maybeNewline(Math.min(1,nodeEndLine-lastLine)),lastLine=nodeEndLine);}else {let offset=commentStartLine-(i===0?nodeEndLine-lineOffset:lastLine);lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1);}}else {if(hasLoc=!1,shouldPrint!==1)continue;if(len===1){let singleLine=comment.loc?comment.loc.start.line===comment.loc.end.line:!HAS_NEWLINE.test(comment.value),shouldSkipNewline=singleLine&&!isStatement(node)&&!isClassBody(parent)&&!isTSInterfaceBody(parent)&&!isTSEnumDeclaration(parent);type===0?this._printComment(comment,shouldSkipNewline&&node.type!=="ObjectExpression"||singleLine&&isFunction(parent,{body:node})?1:0):shouldSkipNewline&&type===2?this._printComment(comment,1):this._printComment(comment,0);}else type===1&&!(node.type==="ObjectExpression"&&node.properties.length>1)&&node.type!=="ClassBody"&&node.type!=="TSInterfaceBody"?this._printComment(comment,i===0?2:i===len-1?3:0):this._printComment(comment,0);}}type===2&&hasLoc&&lastLine&&(this._lastCommentLine=lastLine);}};Object.assign(Printer.prototype,generatorFunctions);Printer.prototype.Noop=function(){};exports.default=Printer;function commaSeparator(){this.tokenChar(44),this.space();}}});var require_lib14=__commonJS({"../../node_modules/@babel/generator/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=generate;var _sourceMap=require_source_map2(),_printer=require_printer2();function normalizeOptions(code,opts){var _opts$recordAndTupleS;let format={auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,shouldPrintComment:opts.shouldPrintComment,retainLines:opts.retainLines,retainFunctionParens:opts.retainFunctionParens,comments:opts.comments==null||opts.comments,compact:opts.compact,minified:opts.minified,concise:opts.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},opts.jsescOption),recordAndTupleSyntaxType:(_opts$recordAndTupleS=opts.recordAndTupleSyntaxType)!=null?_opts$recordAndTupleS:"hash",topicToken:opts.topicToken,importAttributesKeyword:opts.importAttributesKeyword};format.decoratorsBeforeExport=opts.decoratorsBeforeExport,format.jsescOption.json=opts.jsonCompatibleStrings,format.minified?(format.compact=!0,format.shouldPrintComment=format.shouldPrintComment||(()=>format.comments)):format.shouldPrintComment=format.shouldPrintComment||(value=>format.comments||value.includes("@license")||value.includes("@preserve")),format.compact==="auto"&&(format.compact=typeof code=="string"&&code.length>5e5,format.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`)),format.compact&&(format.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore,auxiliaryCommentAfter,shouldPrintComment}=format;return auxiliaryCommentBefore&&!shouldPrintComment(auxiliaryCommentBefore)&&(format.auxiliaryCommentBefore=void 0),auxiliaryCommentAfter&&!shouldPrintComment(auxiliaryCommentAfter)&&(format.auxiliaryCommentAfter=void 0),format}exports.CodeGenerator=class{constructor(ast,opts={},code){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=ast,this._format=normalizeOptions(code,opts),this._map=opts.sourceMaps?new _sourceMap.default(opts,code):null;}generate(){return new _printer.default(this._format,this._map).generate(this._ast)}};function generate(ast,opts={},code){let format=normalizeOptions(code,opts),map=opts.sourceMaps?new _sourceMap.default(opts,code):null;return new _printer.default(format,map).generate(ast)}}});var tslib_es6_exports={};__export(tslib_es6_exports,{__addDisposableResource:()=>__addDisposableResource,__assign:()=>__assign,__asyncDelegator:()=>__asyncDelegator,__asyncGenerator:()=>__asyncGenerator,__asyncValues:()=>__asyncValues,__await:()=>__await,__awaiter:()=>__awaiter,__classPrivateFieldGet:()=>__classPrivateFieldGet,__classPrivateFieldIn:()=>__classPrivateFieldIn,__classPrivateFieldSet:()=>__classPrivateFieldSet,__createBinding:()=>__createBinding,__decorate:()=>__decorate,__disposeResources:()=>__disposeResources,__esDecorate:()=>__esDecorate,__exportStar:()=>__exportStar,__extends:()=>__extends,__generator:()=>__generator,__importDefault:()=>__importDefault,__importStar:()=>__importStar,__makeTemplateObject:()=>__makeTemplateObject,__metadata:()=>__metadata,__param:()=>__param,__propKey:()=>__propKey,__read:()=>__read,__rest:()=>__rest,__runInitializers:()=>__runInitializers,__setFunctionName:()=>__setFunctionName,__spread:()=>__spread,__spreadArray:()=>__spreadArray,__spreadArrays:()=>__spreadArrays,__values:()=>__values,default:()=>tslib_es6_default});function __extends(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t}function __decorate(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __param(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex);}}function __esDecorate(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(f!==void 0&&typeof f!="function")throw new TypeError("Function expected");return f}for(var kind=contextIn.kind,key=kind==="getter"?"get":kind==="setter"?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),_,done=!1,i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]=p==="access"?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null));};var result=(0, decorators[i])(kind==="accessor"?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if(kind==="accessor"){if(result===void 0)continue;if(result===null||typeof result!="object")throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_);}else (_=accept(result))&&(kind==="field"?initializers.unshift(_):descriptor[key]=_);}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0;}function __runInitializers(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0}function __propKey(x){return typeof x=="symbol"?x:"".concat(x)}function __setFunctionName(f,name,prefix){return typeof name=="symbol"&&(name=name.description?"[".concat(name.description,"]"):""),Object.defineProperty(f,"name",{configurable:!0,value:prefix?"".concat(prefix," ",name):name})}function __metadata(metadataKey,metadataValue){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(metadataKey,metadataValue)}function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());})}function __generator(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;g&&(g=0,op[0]&&(_=0)),_;)try{if(f=1,y&&(t=op[0]&2?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[op[0]&2,t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_);}catch(e){op=[6,e],y=0;}finally{f=t=0;}if(op[0]&5)throw op[1];return {value:op[0]?op[1]:void 0,done:!0}}}function __exportStar(m,o){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(o,p)&&__createBinding(o,m,p);}function __values(o){var s=typeof Symbol=="function"&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&typeof o.length=="number")return {next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,n){var m=typeof Symbol=="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)ar.push(r.value);}catch(error){e={error};}finally{try{r&&!r.done&&(m=i.return)&&m.call(i);}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}function __spreadArray(to,from,pack){if(pack||arguments.length===2)for(var i=0,l=from.length,ar;i<l;i++)(ar||!(i in from))&&(ar||(ar=Array.prototype.slice.call(from,0,i)),ar[i]=from[i]);return to.concat(ar||Array.prototype.slice.call(from))}function __await(v){return this instanceof __await?(this.v=v,this):new __await(v)}function __asyncGenerator(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){g[n]&&(i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v);})});}function resume(n,v){try{step(g[n](v));}catch(e){settle(q[0][3],e);}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r);}function fulfill(value){resume("next",value);}function reject(value){resume("throw",value);}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1]);}}function __asyncDelegator(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return (p=!p)?{value:__await(o[n](v)),done:!1}:f?f(v):v}:f;}}function __asyncValues(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value);})};}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v2){resolve({value:v2,done:d});},reject);}}function __makeTemplateObject(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked}function __importStar(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result}function __importDefault(mod){return mod&&mod.__esModule?mod:{default:mod}}function __classPrivateFieldGet(receiver,state,kind,f){if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof state=="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return kind==="m"?f:kind==="a"?f.call(receiver):f?f.value:state.get(receiver)}function __classPrivateFieldSet(receiver,state,value,kind,f){if(kind==="m")throw new TypeError("Private method is not writable");if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof state=="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return kind==="a"?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value}function __classPrivateFieldIn(state,receiver){if(receiver===null||typeof receiver!="object"&&typeof receiver!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof state=="function"?receiver===state:state.has(receiver)}function __addDisposableResource(env,value,async){if(value!=null){if(typeof value!="object"&&typeof value!="function")throw new TypeError("Object expected.");var dispose;if(async){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");dispose=value[Symbol.asyncDispose];}if(dispose===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");dispose=value[Symbol.dispose];}if(typeof dispose!="function")throw new TypeError("Object not disposable.");env.stack.push({value,dispose,async});}else async&&env.stack.push({async:!0});return value}function __disposeResources(env){function fail(e){env.error=env.hasError?new _SuppressedError(e,env.error,"An error was suppressed during disposal."):e,env.hasError=!0;}function next(){for(;env.stack.length;){var rec=env.stack.pop();try{var result=rec.dispose&&rec.dispose.call(rec.value);if(rec.async)return Promise.resolve(result).then(next,function(e){return fail(e),next()})}catch(e){fail(e);}}if(env.hasError)throw env.error}return next()}var extendStatics,__assign,__createBinding,__setModuleDefault,_SuppressedError,tslib_es6_default,init_tslib_es6=__esm({"../../node_modules/tslib/tslib.es6.mjs"(){extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d2,b2){d2.__proto__=b2;}||function(d2,b2){for(var p in b2)Object.prototype.hasOwnProperty.call(b2,p)&&(d2[p]=b2[p]);},extendStatics(d,b)};__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);}return t},__assign.apply(this,arguments)};__createBinding=Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k];};__setModuleDefault=Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v});}:function(o,v){o.default=v;};_SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name="SuppressedError",e.error=error,e.suppressed=suppressed,e};tslib_es6_default={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};}});var require_shared=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/shared.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.maybeSetModuleExports=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2());function default_1(fork){var types=fork.use(types_1.default),Type=types.Type,builtin=types.builtInTypes,isNumber=builtin.number;function geq(than){return Type.from(function(value){return isNumber.check(value)&&value>=than},isNumber+" >= "+than)}var defaults={null:function(){return null},emptyArray:function(){return []},false:function(){return !1},true:function(){return !0},undefined:function(){},"use strict":function(){return "use strict"}},naiveIsPrimitive=Type.or(builtin.string,builtin.number,builtin.boolean,builtin.null,builtin.undefined),isPrimitive=Type.from(function(value){if(value===null)return !0;var type=typeof value;return !(type==="object"||type==="function")},naiveIsPrimitive.toString());return {geq,defaults,isPrimitive}}exports.default=default_1;function maybeSetModuleExports(moduleGetter){try{var nodeModule=moduleGetter(),originalExports=nodeModule.exports,defaultExport=originalExports.default;}catch{return}defaultExport&&defaultExport!==originalExports&&typeof originalExports=="object"&&(Object.assign(defaultExport,originalExports,{default:defaultExport}),originalExports.__esModule&&Object.defineProperty(defaultExport,"__esModule",{value:!0}),nodeModule.exports=defaultExport);}exports.maybeSetModuleExports=maybeSetModuleExports;}});var require_types2=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/types.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});exports.Def=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),Op=Object.prototype,objToStr=Op.toString,hasOwn=Op.hasOwnProperty,BaseType=function(){function BaseType2(){}return BaseType2.prototype.assert=function(value,deep){if(!this.check(value,deep)){var str=shallowStringify(value);throw new Error(str+" does not match type "+this)}return !0},BaseType2.prototype.arrayOf=function(){var elemType=this;return new ArrayType(elemType)},BaseType2}(),ArrayType=function(_super){tslib_1.__extends(ArrayType2,_super);function ArrayType2(elemType){var _this=_super.call(this)||this;return _this.elemType=elemType,_this.kind="ArrayType",_this}return ArrayType2.prototype.toString=function(){return "["+this.elemType+"]"},ArrayType2.prototype.check=function(value,deep){var _this=this;return Array.isArray(value)&&value.every(function(elem){return _this.elemType.check(elem,deep)})},ArrayType2}(BaseType),IdentityType=function(_super){tslib_1.__extends(IdentityType2,_super);function IdentityType2(value){var _this=_super.call(this)||this;return _this.value=value,_this.kind="IdentityType",_this}return IdentityType2.prototype.toString=function(){return String(this.value)},IdentityType2.prototype.check=function(value,deep){var result=value===this.value;return !result&&typeof deep=="function"&&deep(this,value),result},IdentityType2}(BaseType),ObjectType=function(_super){tslib_1.__extends(ObjectType2,_super);function ObjectType2(fields){var _this=_super.call(this)||this;return _this.fields=fields,_this.kind="ObjectType",_this}return ObjectType2.prototype.toString=function(){return "{ "+this.fields.join(", ")+" }"},ObjectType2.prototype.check=function(value,deep){return objToStr.call(value)===objToStr.call({})&&this.fields.every(function(field){return field.type.check(value[field.name],deep)})},ObjectType2}(BaseType),OrType=function(_super){tslib_1.__extends(OrType2,_super);function OrType2(types){var _this=_super.call(this)||this;return _this.types=types,_this.kind="OrType",_this}return OrType2.prototype.toString=function(){return this.types.join(" | ")},OrType2.prototype.check=function(value,deep){return this.types.some(function(type){return type.check(value,!!deep)})?!0:(typeof deep=="function"&&deep(this,value),!1)},OrType2}(BaseType),PredicateType=function(_super){tslib_1.__extends(PredicateType2,_super);function PredicateType2(name,predicate){var _this=_super.call(this)||this;return _this.name=name,_this.predicate=predicate,_this.kind="PredicateType",_this}return PredicateType2.prototype.toString=function(){return this.name},PredicateType2.prototype.check=function(value,deep){var result=this.predicate(value,deep);return !result&&typeof deep=="function"&&deep(this,value),result},PredicateType2}(BaseType),Def=function(){function Def2(type,typeName){this.type=type,this.typeName=typeName,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[];}return Def2.prototype.isSupertypeOf=function(that){if(that instanceof Def2){if(this.finalized!==!0||that.finalized!==!0)throw new Error("");return hasOwn.call(that.allSupertypes,this.typeName)}else throw new Error(that+" is not a Def")},Def2.prototype.checkAllFields=function(value,deep){var allFields=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function checkFieldByName(name){var field=allFields[name],type=field.type,child=field.getValue(value);return type.check(child,deep)}return value!==null&&typeof value=="object"&&Object.keys(allFields).every(checkFieldByName)},Def2.prototype.bases=function(){for(var supertypeNames=[],_i=0;_i<arguments.length;_i++)supertypeNames[_i]=arguments[_i];var bases=this.baseNames;if(this.finalized){if(supertypeNames.length!==bases.length)throw new Error("");for(var i=0;i<supertypeNames.length;i++)if(supertypeNames[i]!==bases[i])throw new Error("");return this}return supertypeNames.forEach(function(baseName){bases.indexOf(baseName)<0&&bases.push(baseName);}),this},Def2}();exports.Def=Def;var Field=function(){function Field2(name,type,defaultFn,hidden){this.name=name,this.type=type,this.defaultFn=defaultFn,this.hidden=!!hidden;}return Field2.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},Field2.prototype.getValue=function(obj){var value=obj[this.name];return typeof value<"u"||typeof this.defaultFn=="function"&&(value=this.defaultFn.call(obj)),value},Field2}();function shallowStringify(value){return Array.isArray(value)?"["+value.map(shallowStringify).join(", ")+"]":value&&typeof value=="object"?"{ "+Object.keys(value).map(function(key){return key+": "+value[key]}).join(", ")+" }":JSON.stringify(value)}function typesPlugin(_fork){var Type={or:function(){for(var types=[],_i=0;_i<arguments.length;_i++)types[_i]=arguments[_i];return new OrType(types.map(function(type){return Type.from(type)}))},from:function(value,name){if(value instanceof ArrayType||value instanceof IdentityType||value instanceof ObjectType||value instanceof OrType||value instanceof PredicateType)return value;if(value instanceof Def)return value.type;if(isArray.check(value)){if(value.length!==1)throw new Error("only one element type is permitted for typed arrays");return new ArrayType(Type.from(value[0]))}if(isObject.check(value))return new ObjectType(Object.keys(value).map(function(name2){return new Field(name2,Type.from(value[name2],name2))}));if(typeof value=="function"){var bicfIndex=builtInCtorFns.indexOf(value);if(bicfIndex>=0)return builtInCtorTypes[bicfIndex];if(typeof name!="string")throw new Error("missing name");return new PredicateType(name,value)}return new IdentityType(value)},def:function(typeName){return hasOwn.call(defCache,typeName)?defCache[typeName]:defCache[typeName]=new DefImpl(typeName)},hasDef:function(typeName){return hasOwn.call(defCache,typeName)}},builtInCtorFns=[],builtInCtorTypes=[];function defBuiltInType(name,example){var objStr=objToStr.call(example),type=new PredicateType(name,function(value){return objToStr.call(value)===objStr});return example&&typeof example.constructor=="function"&&(builtInCtorFns.push(example.constructor),builtInCtorTypes.push(type)),type}var isString=defBuiltInType("string","truthy"),isFunction=defBuiltInType("function",function(){}),isArray=defBuiltInType("array",[]),isObject=defBuiltInType("object",{}),isRegExp=defBuiltInType("RegExp",/./),isDate=defBuiltInType("Date",new Date),isNumber=defBuiltInType("number",3),isBoolean=defBuiltInType("boolean",!0),isNull=defBuiltInType("null",null),isUndefined=defBuiltInType("undefined",void 0),isBigInt=typeof BigInt=="function"?defBuiltInType("BigInt",BigInt(1234)):new PredicateType("BigInt",function(){return !1}),builtInTypes={string:isString,function:isFunction,array:isArray,object:isObject,RegExp:isRegExp,Date:isDate,number:isNumber,boolean:isBoolean,null:isNull,undefined:isUndefined,BigInt:isBigInt},defCache=Object.create(null);function defFromValue(value){if(value&&typeof value=="object"){var type=value.type;if(typeof type=="string"&&hasOwn.call(defCache,type)){var d=defCache[type];if(d.finalized)return d}}return null}var DefImpl=function(_super){tslib_1.__extends(DefImpl2,_super);function DefImpl2(typeName){var _this=_super.call(this,new PredicateType(typeName,function(value,deep){return _this.check(value,deep)}),typeName)||this;return _this}return DefImpl2.prototype.check=function(value,deep){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(value===null||typeof value!="object")return !1;var vDef=defFromValue(value);return vDef?deep&&vDef===this?this.checkAllFields(value,deep):this.isSupertypeOf(vDef)?deep?vDef.checkAllFields(value,deep)&&this.checkAllFields(value,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(value,deep):!1},DefImpl2.prototype.build=function(){for(var _this=this,buildParams=[],_i=0;_i<arguments.length;_i++)buildParams[_i]=arguments[_i];if(this.buildParams=buildParams,this.buildable)return this;this.field("type",String,function(){return _this.typeName}),this.buildable=!0;var addParam=function(built,param,arg,isArgAvailable){if(!hasOwn.call(built,param)){var all=_this.allFields;if(!hasOwn.call(all,param))throw new Error(""+param);var field=all[param],type=field.type,value;if(isArgAvailable)value=arg;else if(field.defaultFn)value=field.defaultFn.call(built);else {var message="no value or default function given for field "+JSON.stringify(param)+" of "+_this.typeName+"("+_this.buildParams.map(function(name){return all[name]}).join(", ")+")";throw new Error(message)}if(!type.check(value))throw new Error(shallowStringify(value)+" does not match field "+field+" of type "+_this.typeName);built[param]=value;}},builder=function(){for(var args=[],_i2=0;_i2<arguments.length;_i2++)args[_i2]=arguments[_i2];var argc=args.length;if(!_this.finalized)throw new Error("attempting to instantiate unfinalized type "+_this.typeName);var built=Object.create(nodePrototype);if(_this.buildParams.forEach(function(param,i){i<argc?addParam(built,param,args[i],!0):addParam(built,param,null,!1);}),Object.keys(_this.allFields).forEach(function(param){addParam(built,param,null,!1);}),built.type!==_this.typeName)throw new Error("");return built};return builder.from=function(obj){if(!_this.finalized)throw new Error("attempting to instantiate unfinalized type "+_this.typeName);var built=Object.create(nodePrototype);if(Object.keys(_this.allFields).forEach(function(param){hasOwn.call(obj,param)?addParam(built,param,obj[param],!0):addParam(built,param,null,!1);}),built.type!==_this.typeName)throw new Error("");return built},Object.defineProperty(builders,getBuilderName(this.typeName),{enumerable:!0,value:builder}),this},DefImpl2.prototype.field=function(name,type,defaultFn,hidden){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(name)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[name]=new Field(name,Type.from(type),defaultFn,hidden),this)},DefImpl2.prototype.finalize=function(){var _this=this;if(!this.finalized){var allFields=this.allFields,allSupertypes=this.allSupertypes;this.baseNames.forEach(function(name){var def=defCache[name];if(def instanceof Def)def.finalize(),extend(allFields,def.allFields),extend(allSupertypes,def.allSupertypes);else {var message="unknown supertype name "+JSON.stringify(name)+" for subtype "+JSON.stringify(_this.typeName);throw new Error(message)}}),extend(allFields,this.ownFields),allSupertypes[this.typeName]=this,this.fieldNames.length=0;for(var fieldName in allFields)hasOwn.call(allFields,fieldName)&&!allFields[fieldName].hidden&&this.fieldNames.push(fieldName);Object.defineProperty(namedTypes,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,populateSupertypeList(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&wrapExpressionBuilderWithStatement(this.typeName);}},DefImpl2}(Def);function getSupertypeNames(typeName){if(!hasOwn.call(defCache,typeName))throw new Error("");var d=defCache[typeName];if(d.finalized!==!0)throw new Error("");return d.supertypeList.slice(1)}function computeSupertypeLookupTable(candidates){for(var table={},typeNames=Object.keys(defCache),typeNameCount=typeNames.length,i=0;i<typeNameCount;++i){var typeName=typeNames[i],d=defCache[typeName];if(d.finalized!==!0)throw new Error(""+typeName);for(var j=0;j<d.supertypeList.length;++j){var superTypeName=d.supertypeList[j];if(hasOwn.call(candidates,superTypeName)){table[typeName]=superTypeName;break}}}return table}var builders=Object.create(null),nodePrototype={};function defineMethod(name,func){var old=nodePrototype[name];return isUndefined.check(func)?delete nodePrototype[name]:(isFunction.assert(func),Object.defineProperty(nodePrototype,name,{enumerable:!0,configurable:!0,value:func})),old}function getBuilderName(typeName){return typeName.replace(/^[A-Z]+/,function(upperCasePrefix){var len=upperCasePrefix.length;switch(len){case 0:return "";case 1:return upperCasePrefix.toLowerCase();default:return upperCasePrefix.slice(0,len-1).toLowerCase()+upperCasePrefix.charAt(len-1)}})}function getStatementBuilderName(typeName){return typeName=getBuilderName(typeName),typeName.replace(/(Expression)?$/,"Statement")}var namedTypes={};function getFieldNames(object){var d=defFromValue(object);if(d)return d.fieldNames.slice(0);if("type"in object)throw new Error("did not recognize object of type "+JSON.stringify(object.type));return Object.keys(object)}function getFieldValue(object,fieldName){var d=defFromValue(object);if(d){var field=d.allFields[fieldName];if(field)return field.getValue(object)}return object&&object[fieldName]}function eachField(object,callback,context){getFieldNames(object).forEach(function(name){callback.call(this,name,getFieldValue(object,name));},context);}function someField(object,callback,context){return getFieldNames(object).some(function(name){return callback.call(this,name,getFieldValue(object,name))},context)}function wrapExpressionBuilderWithStatement(typeName){var wrapperName=getStatementBuilderName(typeName);if(!builders[wrapperName]){var wrapped=builders[getBuilderName(typeName)];if(wrapped){var builder=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return builders.expressionStatement(wrapped.apply(builders,args))};builder.from=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return builders.expressionStatement(wrapped.from.apply(builders,args))},builders[wrapperName]=builder;}}}function populateSupertypeList(typeName,list){list.length=0,list.push(typeName);for(var lastSeen=Object.create(null),pos=0;pos<list.length;++pos){typeName=list[pos];var d=defCache[typeName];if(d.finalized!==!0)throw new Error("");hasOwn.call(lastSeen,typeName)&&delete list[lastSeen[typeName]],lastSeen[typeName]=pos,list.push.apply(list,d.baseNames);}for(var to=0,from=to,len=list.length;from<len;++from)hasOwn.call(list,from)&&(list[to++]=list[from]);list.length=to;}function extend(into,from){return Object.keys(from).forEach(function(name){into[name]=from[name];}),into}function finalize(){Object.keys(defCache).forEach(function(name){defCache[name].finalize();});}return {Type,builtInTypes,getSupertypeNames,computeSupertypeLookupTable,builders,defineMethod,getBuilderName,getStatementBuilderName,namedTypes,getFieldNames,getFieldValue,eachField,someField,finalize}}exports.default=typesPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_path3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/path.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2()),Op=Object.prototype,hasOwn=Op.hasOwnProperty;function pathPlugin(fork){var types=fork.use(types_1.default),isArray=types.builtInTypes.array,isNumber=types.builtInTypes.number,Path=function Path2(value,parentPath,name){if(!(this instanceof Path2))throw new Error("Path constructor cannot be invoked without 'new'");if(parentPath){if(!(parentPath instanceof Path2))throw new Error("")}else parentPath=null,name=null;this.value=value,this.parentPath=parentPath,this.name=name,this.__childCache=null;},Pp=Path.prototype;function getChildCache(path){return path.__childCache||(path.__childCache=Object.create(null))}function getChildPath(path,name){var cache=getChildCache(path),actualChildValue=path.getValueProperty(name),childPath=cache[name];return (!hasOwn.call(cache,name)||childPath.value!==actualChildValue)&&(childPath=cache[name]=new path.constructor(actualChildValue,path,name)),childPath}Pp.getValueProperty=function(name){return this.value[name]},Pp.get=function(){for(var names=[],_i=0;_i<arguments.length;_i++)names[_i]=arguments[_i];for(var path=this,count=names.length,i=0;i<count;++i)path=getChildPath(path,names[i]);return path},Pp.each=function(callback,context){for(var childPaths=[],len=this.value.length,i=0,i=0;i<len;++i)hasOwn.call(this.value,i)&&(childPaths[i]=this.get(i));for(context=context||this,i=0;i<len;++i)hasOwn.call(childPaths,i)&&callback.call(context,childPaths[i]);},Pp.map=function(callback,context){var result=[];return this.each(function(childPath){result.push(callback.call(this,childPath));},context),result},Pp.filter=function(callback,context){var result=[];return this.each(function(childPath){callback.call(this,childPath)&&result.push(childPath);},context),result};function emptyMoves(){}function getMoves(path,offset,start,end){if(isArray.assert(path.value),offset===0)return emptyMoves;var length=path.value.length;if(length<1)return emptyMoves;var argc=arguments.length;argc===2?(start=0,end=length):argc===3?(start=Math.max(start,0),end=length):(start=Math.max(start,0),end=Math.min(end,length)),isNumber.assert(start),isNumber.assert(end);for(var moves=Object.create(null),cache=getChildCache(path),i=start;i<end;++i)if(hasOwn.call(path.value,i)){var childPath=path.get(i);if(childPath.name!==i)throw new Error("");var newIndex=i+offset;childPath.name=newIndex,moves[newIndex]=childPath,delete cache[i];}return delete cache.length,function(){for(var newIndex2 in moves){var childPath2=moves[newIndex2];if(childPath2.name!==+newIndex2)throw new Error("");cache[newIndex2]=childPath2,path.value[newIndex2]=childPath2.value;}}}Pp.shift=function(){var move=getMoves(this,-1),result=this.value.shift();return move(),result},Pp.unshift=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var move=getMoves(this,args.length),result=this.value.unshift.apply(this.value,args);return move(),result},Pp.push=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return isArray.assert(this.value),delete getChildCache(this).length,this.value.push.apply(this.value,args)},Pp.pop=function(){isArray.assert(this.value);var cache=getChildCache(this);return delete cache[this.value.length-1],delete cache.length,this.value.pop()},Pp.insertAt=function(index){var argc=arguments.length,move=getMoves(this,argc-1,index);if(move===emptyMoves&&argc<=1)return this;index=Math.max(index,0);for(var i=1;i<argc;++i)this.value[index+i-1]=arguments[i];return move(),this},Pp.insertBefore=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var pp=this.parentPath,argc=args.length,insertAtArgs=[this.name],i=0;i<argc;++i)insertAtArgs.push(args[i]);return pp.insertAt.apply(pp,insertAtArgs)},Pp.insertAfter=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var pp=this.parentPath,argc=args.length,insertAtArgs=[this.name+1],i=0;i<argc;++i)insertAtArgs.push(args[i]);return pp.insertAt.apply(pp,insertAtArgs)};function repairRelationshipWithParent(path){if(!(path instanceof Path))throw new Error("");var pp=path.parentPath;if(!pp)return path;var parentValue=pp.value,parentCache=getChildCache(pp);if(parentValue[path.name]===path.value)parentCache[path.name]=path;else if(isArray.check(parentValue)){var i=parentValue.indexOf(path.value);i>=0&&(parentCache[path.name=i]=path);}else parentValue[path.name]=path.value,parentCache[path.name]=path;if(parentValue[path.name]!==path.value)throw new Error("");if(path.parentPath.get(path.name)!==path)throw new Error("");return path}return Pp.replace=function(replacement){var results=[],parentValue=this.parentPath.value,parentCache=getChildCache(this.parentPath),count=arguments.length;if(repairRelationshipWithParent(this),isArray.check(parentValue)){for(var originalLength=parentValue.length,move=getMoves(this.parentPath,count-1,this.name+1),spliceArgs=[this.name,1],i=0;i<count;++i)spliceArgs.push(arguments[i]);var splicedOut=parentValue.splice.apply(parentValue,spliceArgs);if(splicedOut[0]!==this.value)throw new Error("");if(parentValue.length!==originalLength-1+count)throw new Error("");if(move(),count===0)delete this.value,delete parentCache[this.name],this.__childCache=null;else {if(parentValue[this.name]!==replacement)throw new Error("");for(this.value!==replacement&&(this.value=replacement,this.__childCache=null),i=0;i<count;++i)results.push(this.parentPath.get(this.name+i));if(results[0]!==this)throw new Error("")}}else if(count===1)this.value!==replacement&&(this.__childCache=null),this.value=parentValue[this.name]=replacement,results.push(this);else if(count===0)delete parentValue[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return results},Path}exports.default=pathPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_scope=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/scope.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2()),hasOwn=Object.prototype.hasOwnProperty;function scopePlugin(fork){var types=fork.use(types_1.default),Type=types.Type,namedTypes=types.namedTypes,Node=namedTypes.Node,Expression=namedTypes.Expression,isArray=types.builtInTypes.array,b=types.builders,Scope=function Scope2(path,parentScope){if(!(this instanceof Scope2))throw new Error("Scope constructor cannot be invoked without 'new'");TypeParameterScopeType.check(path.value)||ScopeType.assert(path.value);var depth;if(parentScope){if(!(parentScope instanceof Scope2))throw new Error("");depth=parentScope.depth+1;}else parentScope=null,depth=0;Object.defineProperties(this,{path:{value:path},node:{value:path.value},isGlobal:{value:!parentScope,enumerable:!0},depth:{value:depth},parent:{value:parentScope},bindings:{value:{}},types:{value:{}}});},ScopeType=Type.or(namedTypes.Program,namedTypes.Function,namedTypes.CatchClause),TypeParameterScopeType=Type.or(namedTypes.Function,namedTypes.ClassDeclaration,namedTypes.ClassExpression,namedTypes.InterfaceDeclaration,namedTypes.TSInterfaceDeclaration,namedTypes.TypeAlias,namedTypes.TSTypeAliasDeclaration),FlowOrTSTypeParameterType=Type.or(namedTypes.TypeParameter,namedTypes.TSTypeParameter);Scope.isEstablishedBy=function(node){return ScopeType.check(node)||TypeParameterScopeType.check(node)};var Sp=Scope.prototype;Sp.didScan=!1,Sp.declares=function(name){return this.scan(),hasOwn.call(this.bindings,name)},Sp.declaresType=function(name){return this.scan(),hasOwn.call(this.types,name)},Sp.declareTemporary=function(prefix){if(prefix){if(!/^[a-z$_]/i.test(prefix))throw new Error("")}else prefix="t$";prefix+=this.depth.toString(36)+"$",this.scan();for(var index=0;this.declares(prefix+index);)++index;var name=prefix+index;return this.bindings[name]=types.builders.identifier(name)},Sp.injectTemporary=function(identifier,init){identifier||(identifier=this.declareTemporary());var bodyPath=this.path.get("body");return namedTypes.BlockStatement.check(bodyPath.value)&&(bodyPath=bodyPath.get("body")),bodyPath.unshift(b.variableDeclaration("var",[b.variableDeclarator(identifier,init||null)])),identifier},Sp.scan=function(force){if(force||!this.didScan){for(var name in this.bindings)delete this.bindings[name];for(var name in this.types)delete this.types[name];scanScope(this.path,this.bindings,this.types),this.didScan=!0;}},Sp.getBindings=function(){return this.scan(),this.bindings},Sp.getTypes=function(){return this.scan(),this.types};function scanScope(path,bindings,scopeTypes){var node=path.value;if(TypeParameterScopeType.check(node)){var params=path.get("typeParameters","params");isArray.check(params.value)&¶ms.each(function(childPath){addTypeParameter(childPath,scopeTypes);});}ScopeType.check(node)&&(namedTypes.CatchClause.check(node)?addPattern(path.get("param"),bindings):recursiveScanScope(path,bindings,scopeTypes));}function recursiveScanScope(path,bindings,scopeTypes){var node=path.value;path.parent&&namedTypes.FunctionExpression.check(path.parent.node)&&path.parent.node.id&&addPattern(path.parent.get("id"),bindings),node&&(isArray.check(node)?path.each(function(childPath){recursiveScanChild(childPath,bindings,scopeTypes);}):namedTypes.Function.check(node)?(path.get("params").each(function(paramPath){addPattern(paramPath,bindings);}),recursiveScanChild(path.get("body"),bindings,scopeTypes),recursiveScanScope(path.get("typeParameters"),bindings,scopeTypes)):namedTypes.TypeAlias&&namedTypes.TypeAlias.check(node)||namedTypes.InterfaceDeclaration&&namedTypes.InterfaceDeclaration.check(node)||namedTypes.TSTypeAliasDeclaration&&namedTypes.TSTypeAliasDeclaration.check(node)||namedTypes.TSInterfaceDeclaration&&namedTypes.TSInterfaceDeclaration.check(node)?addTypePattern(path.get("id"),scopeTypes):namedTypes.VariableDeclarator.check(node)?(addPattern(path.get("id"),bindings),recursiveScanChild(path.get("init"),bindings,scopeTypes)):node.type==="ImportSpecifier"||node.type==="ImportNamespaceSpecifier"||node.type==="ImportDefaultSpecifier"?addPattern(path.get(node.local?"local":node.name?"name":"id"),bindings):Node.check(node)&&!Expression.check(node)&&types.eachField(node,function(name,child){var childPath=path.get(name);if(!pathHasValue(childPath,child))throw new Error("");recursiveScanChild(childPath,bindings,scopeTypes);}));}function pathHasValue(path,value){return !!(path.value===value||Array.isArray(path.value)&&path.value.length===0&&Array.isArray(value)&&value.length===0)}function recursiveScanChild(path,bindings,scopeTypes){var node=path.value;if(!(!node||Expression.check(node)))if(namedTypes.FunctionDeclaration.check(node)&&node.id!==null)addPattern(path.get("id"),bindings);else if(namedTypes.ClassDeclaration&&namedTypes.ClassDeclaration.check(node)&&node.id!==null)addPattern(path.get("id"),bindings),recursiveScanScope(path.get("typeParameters"),bindings,scopeTypes);else if(namedTypes.InterfaceDeclaration&&namedTypes.InterfaceDeclaration.check(node)||namedTypes.TSInterfaceDeclaration&&namedTypes.TSInterfaceDeclaration.check(node))addTypePattern(path.get("id"),scopeTypes);else if(ScopeType.check(node)){if(namedTypes.CatchClause.check(node)&&namedTypes.Identifier.check(node.param)){var catchParamName=node.param.name,hadBinding=hasOwn.call(bindings,catchParamName);recursiveScanScope(path.get("body"),bindings,scopeTypes),hadBinding||delete bindings[catchParamName];}}else recursiveScanScope(path,bindings,scopeTypes);}function addPattern(patternPath,bindings){var pattern=patternPath.value;namedTypes.Pattern.assert(pattern),namedTypes.Identifier.check(pattern)?hasOwn.call(bindings,pattern.name)?bindings[pattern.name].push(patternPath):bindings[pattern.name]=[patternPath]:namedTypes.AssignmentPattern&&namedTypes.AssignmentPattern.check(pattern)?addPattern(patternPath.get("left"),bindings):namedTypes.ObjectPattern&&namedTypes.ObjectPattern.check(pattern)?patternPath.get("properties").each(function(propertyPath){var property=propertyPath.value;namedTypes.Pattern.check(property)?addPattern(propertyPath,bindings):namedTypes.Property.check(property)||namedTypes.ObjectProperty&&namedTypes.ObjectProperty.check(property)?addPattern(propertyPath.get("value"),bindings):namedTypes.SpreadProperty&&namedTypes.SpreadProperty.check(property)&&addPattern(propertyPath.get("argument"),bindings);}):namedTypes.ArrayPattern&&namedTypes.ArrayPattern.check(pattern)?patternPath.get("elements").each(function(elementPath){var element=elementPath.value;namedTypes.Pattern.check(element)?addPattern(elementPath,bindings):namedTypes.SpreadElement&&namedTypes.SpreadElement.check(element)&&addPattern(elementPath.get("argument"),bindings);}):namedTypes.PropertyPattern&&namedTypes.PropertyPattern.check(pattern)?addPattern(patternPath.get("pattern"),bindings):(namedTypes.SpreadElementPattern&&namedTypes.SpreadElementPattern.check(pattern)||namedTypes.RestElement&&namedTypes.RestElement.check(pattern)||namedTypes.SpreadPropertyPattern&&namedTypes.SpreadPropertyPattern.check(pattern))&&addPattern(patternPath.get("argument"),bindings);}function addTypePattern(patternPath,types2){var pattern=patternPath.value;namedTypes.Pattern.assert(pattern),namedTypes.Identifier.check(pattern)&&(hasOwn.call(types2,pattern.name)?types2[pattern.name].push(patternPath):types2[pattern.name]=[patternPath]);}function addTypeParameter(parameterPath,types2){var parameter=parameterPath.value;FlowOrTSTypeParameterType.assert(parameter),hasOwn.call(types2,parameter.name)?types2[parameter.name].push(parameterPath):types2[parameter.name]=[parameterPath];}return Sp.lookup=function(name){for(var scope=this;scope&&!scope.declares(name);scope=scope.parent);return scope},Sp.lookupType=function(name){for(var scope=this;scope&&!scope.declaresType(name);scope=scope.parent);return scope},Sp.getGlobalScope=function(){for(var scope=this;!scope.isGlobal;)scope=scope.parent;return scope},Scope}exports.default=scopePlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_node_path=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/node-path.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),path_1=tslib_1.__importDefault(require_path3()),scope_1=tslib_1.__importDefault(require_scope()),shared_1=require_shared();function nodePathPlugin(fork){var types=fork.use(types_1.default),n=types.namedTypes,b=types.builders,isNumber=types.builtInTypes.number,isArray=types.builtInTypes.array,Path=fork.use(path_1.default),Scope=fork.use(scope_1.default),NodePath=function NodePath2(value,parentPath,name){if(!(this instanceof NodePath2))throw new Error("NodePath constructor cannot be invoked without 'new'");Path.call(this,value,parentPath,name);},NPp=NodePath.prototype=Object.create(Path.prototype,{constructor:{value:NodePath,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(NPp,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),NPp.replace=function(){return delete this.node,delete this.parent,delete this.scope,Path.prototype.replace.apply(this,arguments)},NPp.prune=function(){var remainingNodePath=this.parent;return this.replace(),cleanUpNodesAfterPrune(remainingNodePath)},NPp._computeNode=function(){var value=this.value;if(n.Node.check(value))return value;var pp=this.parentPath;return pp&&pp.node||null},NPp._computeParent=function(){var value=this.value,pp=this.parentPath;if(!n.Node.check(value)){for(;pp&&!n.Node.check(pp.value);)pp=pp.parentPath;pp&&(pp=pp.parentPath);}for(;pp&&!n.Node.check(pp.value);)pp=pp.parentPath;return pp||null},NPp._computeScope=function(){var value=this.value,pp=this.parentPath,scope=pp&&pp.scope;return n.Node.check(value)&&Scope.isEstablishedBy(value)&&(scope=new Scope(this,scope)),scope||null},NPp.getValueProperty=function(name){return types.getFieldValue(this.value,name)},NPp.needsParens=function(assumeExpressionContext){var pp=this.parentPath;if(!pp)return !1;var node=this.value;if(!n.Expression.check(node)||node.type==="Identifier")return !1;for(;!n.Node.check(pp.value);)if(pp=pp.parentPath,!pp)return !1;var parent=pp.value;switch(node.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return parent.type==="MemberExpression"&&this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":return this.name==="callee"&&parent.callee===node;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":{var n_1=node,po=parent.operator,pp_1=PRECEDENCE[po],no=n_1.operator,np=PRECEDENCE[no];if(pp_1>np)return !0;if(pp_1===np&&this.name==="right"){if(parent.right!==n_1)throw new Error("Nodes must be equal");return !0}}default:return !1}case"SequenceExpression":switch(parent.type){case"ForStatement":return !1;case"ExpressionStatement":return this.name!=="expression";default:return !0}case"YieldExpression":switch(parent.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return !0;default:return !1}case"Literal":return parent.type==="MemberExpression"&&isNumber.check(node.value)&&this.name==="object"&&parent.object===node;case"AssignmentExpression":case"ConditionalExpression":switch(parent.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":return this.name==="callee"&&parent.callee===node;case"ConditionalExpression":return this.name==="test"&&parent.test===node;case"MemberExpression":return this.name==="object"&&parent.object===node;default:return !1}default:if(parent.type==="NewExpression"&&this.name==="callee"&&parent.callee===node)return containsCallExpression(node)}return !!(assumeExpressionContext!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function isBinary(node){return n.BinaryExpression.check(node)||n.LogicalExpression.check(node)}var PRECEDENCE={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});function containsCallExpression(node){return n.CallExpression.check(node)?!0:isArray.check(node)?node.some(containsCallExpression):n.Node.check(node)?types.someField(node,function(_name,child){return containsCallExpression(child)}):!1}NPp.canBeFirstInStatement=function(){var node=this.node;return !n.FunctionExpression.check(node)&&!n.ObjectExpression.check(node)},NPp.firstInStatement=function(){return firstInStatement(this)};function firstInStatement(path){for(var node,parent;path.parent;path=path.parent){if(node=path.node,parent=path.parent.node,n.BlockStatement.check(parent)&&path.parent.name==="body"&&path.name===0){if(parent.body[0]!==node)throw new Error("Nodes must be equal");return !0}if(n.ExpressionStatement.check(parent)&&path.name==="expression"){if(parent.expression!==node)throw new Error("Nodes must be equal");return !0}if(n.SequenceExpression.check(parent)&&path.parent.name==="expressions"&&path.name===0){if(parent.expressions[0]!==node)throw new Error("Nodes must be equal");continue}if(n.CallExpression.check(parent)&&path.name==="callee"){if(parent.callee!==node)throw new Error("Nodes must be equal");continue}if(n.MemberExpression.check(parent)&&path.name==="object"){if(parent.object!==node)throw new Error("Nodes must be equal");continue}if(n.ConditionalExpression.check(parent)&&path.name==="test"){if(parent.test!==node)throw new Error("Nodes must be equal");continue}if(isBinary(parent)&&path.name==="left"){if(parent.left!==node)throw new Error("Nodes must be equal");continue}if(n.UnaryExpression.check(parent)&&!parent.prefix&&path.name==="argument"){if(parent.argument!==node)throw new Error("Nodes must be equal");continue}return !1}return !0}function cleanUpNodesAfterPrune(remainingNodePath){if(n.VariableDeclaration.check(remainingNodePath.node)){var declarations=remainingNodePath.get("declarations").value;if(!declarations||declarations.length===0)return remainingNodePath.prune()}else if(n.ExpressionStatement.check(remainingNodePath.node)){if(!remainingNodePath.get("expression").value)return remainingNodePath.prune()}else n.IfStatement.check(remainingNodePath.node)&&cleanUpIfStatementAfterPrune(remainingNodePath);return remainingNodePath}function cleanUpIfStatementAfterPrune(ifStatement){var testExpression=ifStatement.get("test").value,alternate=ifStatement.get("alternate").value,consequent=ifStatement.get("consequent").value;if(!consequent&&!alternate){var testExpressionStatement=b.expressionStatement(testExpression);ifStatement.replace(testExpressionStatement);}else if(!consequent&&alternate){var negatedTestExpression=b.unaryExpression("!",testExpression,!0);n.UnaryExpression.check(testExpression)&&testExpression.operator==="!"&&(negatedTestExpression=testExpression.argument),ifStatement.get("test").replace(negatedTestExpression),ifStatement.get("consequent").replace(alternate),ifStatement.get("alternate").replace();}}return NodePath}exports.default=nodePathPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_path_visitor=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/path-visitor.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),node_path_1=tslib_1.__importDefault(require_node_path()),shared_1=require_shared(),hasOwn=Object.prototype.hasOwnProperty;function pathVisitorPlugin(fork){var types=fork.use(types_1.default),NodePath=fork.use(node_path_1.default),isArray=types.builtInTypes.array,isObject=types.builtInTypes.object,isFunction=types.builtInTypes.function,undefined2,PathVisitor=function PathVisitor2(){if(!(this instanceof PathVisitor2))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=computeMethodNameTable(this),this._shouldVisitComments=hasOwn.call(this._methodNameTable,"Block")||hasOwn.call(this._methodNameTable,"Line"),this.Context=makeContextConstructor(this),this._visiting=!1,this._changeReported=!1;};function computeMethodNameTable(visitor){var typeNames=Object.create(null);for(var methodName in visitor)/^visit[A-Z]/.test(methodName)&&(typeNames[methodName.slice(5)]=!0);for(var supertypeTable=types.computeSupertypeLookupTable(typeNames),methodNameTable=Object.create(null),typeNameKeys=Object.keys(supertypeTable),typeNameCount=typeNameKeys.length,i=0;i<typeNameCount;++i){var typeName=typeNameKeys[i];methodName="visit"+supertypeTable[typeName],isFunction.check(visitor[methodName])&&(methodNameTable[typeName]=methodName);}return methodNameTable}PathVisitor.fromMethodsObject=function(methods){if(methods instanceof PathVisitor)return methods;if(!isObject.check(methods))return new PathVisitor;var Visitor=function Visitor2(){if(!(this instanceof Visitor2))throw new Error("Visitor constructor cannot be invoked without 'new'");PathVisitor.call(this);},Vp=Visitor.prototype=Object.create(PVp);return Vp.constructor=Visitor,extend(Vp,methods),extend(Visitor,PathVisitor),isFunction.assert(Visitor.fromMethodsObject),isFunction.assert(Visitor.visit),new Visitor};function extend(target,source){for(var property in source)hasOwn.call(source,property)&&(target[property]=source[property]);return target}PathVisitor.visit=function(node,methods){return PathVisitor.fromMethodsObject(methods).visit(node)};var PVp=PathVisitor.prototype;PVp.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var argc=arguments.length,args=new Array(argc),i=0;i<argc;++i)args[i]=arguments[i];args[0]instanceof NodePath||(args[0]=new NodePath({root:args[0]}).get("root")),this.reset.apply(this,args);var didNotThrow;try{var root=this.visitWithoutReset(args[0]);didNotThrow=!0;}finally{if(this._visiting=!1,!didNotThrow&&this._abortRequested)return args[0].value}return root},PVp.AbortRequest=function(){},PVp.abort=function(){var visitor=this;visitor._abortRequested=!0;var request=new visitor.AbortRequest;throw request.cancel=function(){visitor._abortRequested=!1;},request},PVp.reset=function(_path){},PVp.visitWithoutReset=function(path){if(this instanceof this.Context)return this.visitor.visitWithoutReset(path);if(!(path instanceof NodePath))throw new Error("");var value=path.value,methodName=value&&typeof value=="object"&&typeof value.type=="string"&&this._methodNameTable[value.type];if(methodName){var context=this.acquireContext(path);try{return context.invokeVisitorMethod(methodName)}finally{this.releaseContext(context);}}else return visitChildren(path,this)};function visitChildren(path,visitor){if(!(path instanceof NodePath))throw new Error("");if(!(visitor instanceof PathVisitor))throw new Error("");var value=path.value;if(isArray.check(value))path.each(visitor.visitWithoutReset,visitor);else if(isObject.check(value)){var childNames=types.getFieldNames(value);visitor._shouldVisitComments&&value.comments&&childNames.indexOf("comments")<0&&childNames.push("comments");for(var childCount=childNames.length,childPaths=[],i=0;i<childCount;++i){var childName=childNames[i];hasOwn.call(value,childName)||(value[childName]=types.getFieldValue(value,childName)),childPaths.push(path.get(childName));}for(var i=0;i<childCount;++i)visitor.visitWithoutReset(childPaths[i]);}return path.value}PVp.acquireContext=function(path){return this._reusableContextStack.length===0?new this.Context(path):this._reusableContextStack.pop().reset(path)},PVp.releaseContext=function(context){if(!(context instanceof this.Context))throw new Error("");this._reusableContextStack.push(context),context.currentPath=null;},PVp.reportChanged=function(){this._changeReported=!0;},PVp.wasChangeReported=function(){return this._changeReported};function makeContextConstructor(visitor){function Context(path){if(!(this instanceof Context))throw new Error("");if(!(this instanceof PathVisitor))throw new Error("");if(!(path instanceof NodePath))throw new Error("");Object.defineProperty(this,"visitor",{value:visitor,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=path,this.needToCallTraverse=!0,Object.seal(this);}if(!(visitor instanceof PathVisitor))throw new Error("");var Cp=Context.prototype=Object.create(visitor);return Cp.constructor=Context,extend(Cp,sharedContextProtoMethods),Context}var sharedContextProtoMethods=Object.create(null);return sharedContextProtoMethods.reset=function(path){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");return this.currentPath=path,this.needToCallTraverse=!0,this},sharedContextProtoMethods.invokeVisitorMethod=function(methodName){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");var result=this.visitor[methodName].call(this,this.currentPath);if(result===!1?this.needToCallTraverse=!1:result!==undefined2&&(this.currentPath=this.currentPath.replace(result)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+methodName);var path=this.currentPath;return path&&path.value},sharedContextProtoMethods.traverse=function(path,newVisitor){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");return this.needToCallTraverse=!1,visitChildren(path,PathVisitor.fromMethodsObject(newVisitor||this.visitor))},sharedContextProtoMethods.visit=function(path,newVisitor){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");return this.needToCallTraverse=!1,PathVisitor.fromMethodsObject(newVisitor||this.visitor).visitWithoutReset(path)},sharedContextProtoMethods.reportChanged=function(){this.visitor.reportChanged();},sharedContextProtoMethods.abort=function(){this.needToCallTraverse=!1,this.visitor.abort();},PathVisitor}exports.default=pathVisitorPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_equiv=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/equiv.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2());function default_1(fork){var types=fork.use(types_1.default),getFieldNames=types.getFieldNames,getFieldValue=types.getFieldValue,isArray=types.builtInTypes.array,isObject=types.builtInTypes.object,isDate=types.builtInTypes.Date,isRegExp=types.builtInTypes.RegExp,hasOwn=Object.prototype.hasOwnProperty;function astNodesAreEquivalent(a,b,problemPath){return isArray.check(problemPath)?problemPath.length=0:problemPath=null,areEquivalent(a,b,problemPath)}astNodesAreEquivalent.assert=function(a,b){var problemPath=[];if(!astNodesAreEquivalent(a,b,problemPath))if(problemPath.length===0){if(a!==b)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+problemPath.map(subscriptForProperty).join(""))};function subscriptForProperty(property){return /[_$a-z][_$a-z0-9]*/i.test(property)?"."+property:"["+JSON.stringify(property)+"]"}function areEquivalent(a,b,problemPath){return a===b?!0:isArray.check(a)?arraysAreEquivalent(a,b,problemPath):isObject.check(a)?objectsAreEquivalent(a,b,problemPath):isDate.check(a)?isDate.check(b)&&+a==+b:isRegExp.check(a)?isRegExp.check(b)&&a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.ignoreCase===b.ignoreCase:a==b}function arraysAreEquivalent(a,b,problemPath){isArray.assert(a);var aLength=a.length;if(!isArray.check(b)||b.length!==aLength)return problemPath&&problemPath.push("length"),!1;for(var i=0;i<aLength;++i){if(problemPath&&problemPath.push(i),i in a!=i in b||!areEquivalent(a[i],b[i],problemPath))return !1;if(problemPath){var problemPathTail=problemPath.pop();if(problemPathTail!==i)throw new Error(""+problemPathTail)}}return !0}function objectsAreEquivalent(a,b,problemPath){if(isObject.assert(a),!isObject.check(b))return !1;if(a.type!==b.type)return problemPath&&problemPath.push("type"),!1;var aNames=getFieldNames(a),aNameCount=aNames.length,bNames=getFieldNames(b),bNameCount=bNames.length;if(aNameCount===bNameCount){for(var i=0;i<aNameCount;++i){var name=aNames[i],aChild=getFieldValue(a,name),bChild=getFieldValue(b,name);if(problemPath&&problemPath.push(name),!areEquivalent(aChild,bChild,problemPath))return !1;if(problemPath){var problemPathTail=problemPath.pop();if(problemPathTail!==name)throw new Error(""+problemPathTail)}}return !0}if(!problemPath)return !1;var seenNames=Object.create(null);for(i=0;i<aNameCount;++i)seenNames[aNames[i]]=!0;for(i=0;i<bNameCount;++i){if(name=bNames[i],!hasOwn.call(seenNames,name))return problemPath.push(name),!1;delete seenNames[name];}for(name in seenNames){problemPath.push(name);break}return !1}return astNodesAreEquivalent}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_fork=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/fork.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),path_visitor_1=tslib_1.__importDefault(require_path_visitor()),equiv_1=tslib_1.__importDefault(require_equiv()),path_1=tslib_1.__importDefault(require_path3()),node_path_1=tslib_1.__importDefault(require_node_path()),shared_1=require_shared();function default_1(plugins){var fork=createFork(),types=fork.use(types_1.default);plugins.forEach(fork.use),types.finalize();var PathVisitor=fork.use(path_visitor_1.default);return {Type:types.Type,builtInTypes:types.builtInTypes,namedTypes:types.namedTypes,builders:types.builders,defineMethod:types.defineMethod,getFieldNames:types.getFieldNames,getFieldValue:types.getFieldValue,eachField:types.eachField,someField:types.someField,getSupertypeNames:types.getSupertypeNames,getBuilderName:types.getBuilderName,astNodesAreEquivalent:fork.use(equiv_1.default),finalize:types.finalize,Path:fork.use(path_1.default),NodePath:fork.use(node_path_1.default),PathVisitor,use:fork.use,visit:PathVisitor.visit}}exports.default=default_1;function createFork(){var used=[],usedResult=[];function use(plugin){var idx=used.indexOf(plugin);return idx===-1&&(idx=used.length,used.push(plugin),usedResult[idx]=plugin(fork)),usedResult[idx]}var fork={use};return fork}(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_core6=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var shared_1=require_shared();function default_1(){return {BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2016=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2016.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),core_1=tslib_1.__importDefault(require_core6());function default_1(fork){var result=fork.use(core_1.default);return result.BinaryOperators.indexOf("**")<0&&result.BinaryOperators.push("**"),result.AssignmentOperators.indexOf("**=")<0&&result.AssignmentOperators.push("**="),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2020=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2020.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),es2016_1=tslib_1.__importDefault(require_es2016());function default_1(fork){var result=fork.use(es2016_1.default);return result.LogicalOperators.indexOf("??")<0&&result.LogicalOperators.push("??"),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2021=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2021.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),es2020_1=tslib_1.__importDefault(require_es2020());function default_1(fork){var result=fork.use(es2020_1.default);return result.LogicalOperators.forEach(function(op){var assignOp=op+"=";result.AssignmentOperators.indexOf(assignOp)<0&&result.AssignmentOperators.push(assignOp);}),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_core7=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),core_1=tslib_1.__importDefault(require_core6()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var types=fork.use(types_1.default),Type=types.Type,def=Type.def,or=Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults,geq=shared.geq,_a=fork.use(core_1.default),BinaryOperators=_a.BinaryOperators,AssignmentOperators=_a.AssignmentOperators,LogicalOperators=_a.LogicalOperators;def("Printable").field("loc",or(def("SourceLocation"),null),defaults.null,!0),def("Node").bases("Printable").field("type",String).field("comments",or([def("Comment")],null),defaults.null,!0),def("SourceLocation").field("start",def("Position")).field("end",def("Position")).field("source",or(String,null),defaults.null),def("Position").field("line",geq(1)).field("column",geq(0)),def("File").bases("Node").build("program","name").field("program",def("Program")).field("name",or(String,null),defaults.null),def("Program").bases("Node").build("body").field("body",[def("Statement")]),def("Function").bases("Node").field("id",or(def("Identifier"),null),defaults.null).field("params",[def("Pattern")]).field("body",def("BlockStatement")).field("generator",Boolean,defaults.false).field("async",Boolean,defaults.false),def("Statement").bases("Node"),def("EmptyStatement").bases("Statement").build(),def("BlockStatement").bases("Statement").build("body").field("body",[def("Statement")]),def("ExpressionStatement").bases("Statement").build("expression").field("expression",def("Expression")),def("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Statement")).field("alternate",or(def("Statement"),null),defaults.null),def("LabeledStatement").bases("Statement").build("label","body").field("label",def("Identifier")).field("body",def("Statement")),def("BreakStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults.null),def("ContinueStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults.null),def("WithStatement").bases("Statement").build("object","body").field("object",def("Expression")).field("body",def("Statement")),def("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",def("Expression")).field("cases",[def("SwitchCase")]).field("lexical",Boolean,defaults.false),def("ReturnStatement").bases("Statement").build("argument").field("argument",or(def("Expression"),null)),def("ThrowStatement").bases("Statement").build("argument").field("argument",def("Expression")),def("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",def("BlockStatement")).field("handler",or(def("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[def("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[def("CatchClause")],defaults.emptyArray).field("finalizer",or(def("BlockStatement"),null),defaults.null),def("CatchClause").bases("Node").build("param","guard","body").field("param",def("Pattern")).field("guard",or(def("Expression"),null),defaults.null).field("body",def("BlockStatement")),def("WhileStatement").bases("Statement").build("test","body").field("test",def("Expression")).field("body",def("Statement")),def("DoWhileStatement").bases("Statement").build("body","test").field("body",def("Statement")).field("test",def("Expression")),def("ForStatement").bases("Statement").build("init","test","update","body").field("init",or(def("VariableDeclaration"),def("Expression"),null)).field("test",or(def("Expression"),null)).field("update",or(def("Expression"),null)).field("body",def("Statement")),def("ForInStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement")),def("DebuggerStatement").bases("Statement").build(),def("Declaration").bases("Statement"),def("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",def("Identifier")),def("FunctionExpression").bases("Function","Expression").build("id","params","body"),def("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",or("var","let","const")).field("declarations",[def("VariableDeclarator")]),def("VariableDeclarator").bases("Node").build("id","init").field("id",def("Pattern")).field("init",or(def("Expression"),null),defaults.null),def("Expression").bases("Node"),def("ThisExpression").bases("Expression").build(),def("ArrayExpression").bases("Expression").build("elements").field("elements",[or(def("Expression"),null)]),def("ObjectExpression").bases("Expression").build("properties").field("properties",[def("Property")]),def("Property").bases("Node").build("kind","key","value").field("kind",or("init","get","set")).field("key",or(def("Literal"),def("Identifier"))).field("value",def("Expression")),def("SequenceExpression").bases("Expression").build("expressions").field("expressions",[def("Expression")]);var UnaryOperator=or("-","+","!","~","typeof","void","delete");def("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",UnaryOperator).field("argument",def("Expression")).field("prefix",Boolean,defaults.true);var BinaryOperator=or.apply(void 0,BinaryOperators);def("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",BinaryOperator).field("left",def("Expression")).field("right",def("Expression"));var AssignmentOperator=or.apply(void 0,AssignmentOperators);def("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",AssignmentOperator).field("left",or(def("Pattern"),def("MemberExpression"))).field("right",def("Expression"));var UpdateOperator=or("++","--");def("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",UpdateOperator).field("argument",def("Expression")).field("prefix",Boolean);var LogicalOperator=or.apply(void 0,LogicalOperators);def("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",LogicalOperator).field("left",def("Expression")).field("right",def("Expression")),def("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Expression")).field("alternate",def("Expression")),def("NewExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]),def("CallExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]),def("MemberExpression").bases("Expression").build("object","property","computed").field("object",def("Expression")).field("property",or(def("Identifier"),def("Expression"))).field("computed",Boolean,function(){var type=this.property.type;return type==="Literal"||type==="MemberExpression"||type==="BinaryExpression"}),def("Pattern").bases("Node"),def("SwitchCase").bases("Node").build("test","consequent").field("test",or(def("Expression"),null)).field("consequent",[def("Statement")]),def("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,defaults.false),def("Literal").bases("Expression").build("value").field("value",or(String,Boolean,null,Number,RegExp,BigInt)),def("Comment").bases("Printable").field("value",String).field("leading",Boolean,defaults.true).field("trailing",Boolean,defaults.false);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es6=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es6.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),core_1=tslib_1.__importDefault(require_core7()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(core_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("Function").field("generator",Boolean,defaults.false).field("expression",Boolean,defaults.false).field("defaults",[or(def("Expression"),null)],defaults.emptyArray).field("rest",or(def("Identifier"),null),defaults.null),def("RestElement").bases("Pattern").build("argument").field("argument",def("Pattern")).field("typeAnnotation",or(def("TypeAnnotation"),def("TSTypeAnnotation"),null),defaults.null),def("SpreadElementPattern").bases("Pattern").build("argument").field("argument",def("Pattern")),def("FunctionDeclaration").build("id","params","body","generator","expression").field("id",or(def("Identifier"),null)),def("FunctionExpression").build("id","params","body","generator","expression"),def("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,defaults.null).field("body",or(def("BlockStatement"),def("Expression"))).field("generator",!1,defaults.false),def("ForOfStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Pattern"))).field("right",def("Expression")).field("body",def("Statement")),def("YieldExpression").bases("Expression").build("argument","delegate").field("argument",or(def("Expression"),null)).field("delegate",Boolean,defaults.false),def("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null)),def("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null)),def("ComprehensionBlock").bases("Node").build("left","right","each").field("left",def("Pattern")).field("right",def("Expression")).field("each",Boolean),def("Property").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("value",or(def("Expression"),def("Pattern"))).field("method",Boolean,defaults.false).field("shorthand",Boolean,defaults.false).field("computed",Boolean,defaults.false),def("ObjectProperty").field("shorthand",Boolean,defaults.false),def("PropertyPattern").bases("Pattern").build("key","pattern").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("pattern",def("Pattern")).field("computed",Boolean,defaults.false),def("ObjectPattern").bases("Pattern").build("properties").field("properties",[or(def("PropertyPattern"),def("Property"))]),def("ArrayPattern").bases("Pattern").build("elements").field("elements",[or(def("Pattern"),null)]),def("SpreadElement").bases("Node").build("argument").field("argument",def("Expression")),def("ArrayExpression").field("elements",[or(def("Expression"),def("SpreadElement"),def("RestElement"),null)]),def("NewExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]),def("CallExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]),def("AssignmentPattern").bases("Pattern").build("left","right").field("left",def("Pattern")).field("right",def("Expression")),def("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",or("constructor","method","get","set")).field("key",def("Expression")).field("value",def("Function")).field("computed",Boolean,defaults.false).field("static",Boolean,defaults.false);var ClassBodyElement=or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("StaticBlock"));def("ClassProperty").bases("Declaration").build("key").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("computed",Boolean,defaults.false),def("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",ClassBodyElement),def("ClassBody").bases("Declaration").build("body").field("body",[ClassBodyElement]),def("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",or(def("Identifier"),null)).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults.null),def("ClassExpression").bases("Expression").build("id","body","superClass").field("id",or(def("Identifier"),null),defaults.null).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults.null),def("Super").bases("Expression").build(),def("Specifier").bases("Node"),def("ModuleSpecifier").bases("Specifier").field("local",or(def("Identifier"),null),defaults.null).field("id",or(def("Identifier"),null),defaults.null).field("name",or(def("Identifier"),null),defaults.null),def("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",def("Identifier")),def("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),def("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),def("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[or(def("ImportSpecifier"),def("ImportNamespaceSpecifier"),def("ImportDefaultSpecifier"))],defaults.emptyArray).field("source",def("Literal")).field("importKind",or("value","type"),function(){return "value"}),def("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",or(def("Declaration"),null)).field("specifiers",[def("ExportSpecifier")],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",def("Identifier")),def("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",or(def("Declaration"),def("Expression"))),def("ExportAllDeclaration").bases("Declaration").build("source").field("source",def("Literal")),def("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",def("Expression")).field("quasi",def("TemplateLiteral")),def("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[def("TemplateElement")]).field("expressions",[def("Expression")]),def("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),def("MetaProperty").bases("Expression").build("meta","property").field("meta",def("Identifier")).field("property",def("Identifier"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20162=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2016.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2016_1=tslib_1.__importDefault(require_es2016()),es6_1=tslib_1.__importDefault(require_es6()),shared_1=require_shared();function default_1(fork){fork.use(es2016_1.default),fork.use(es6_1.default);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2017=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2017.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2016_1=tslib_1.__importDefault(require_es20162()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2016_1.default);var types=fork.use(types_1.default),def=types.Type.def,defaults=fork.use(shared_1.default).defaults;def("Function").field("async",Boolean,defaults.false),def("AwaitExpression").bases("Expression").build("argument").field("argument",def("Expression"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2018=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2018.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2017_1=tslib_1.__importDefault(require_es2017()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2017_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("ForOfStatement").field("await",Boolean,defaults.false),def("SpreadProperty").bases("Node").build("argument").field("argument",def("Expression")),def("ObjectExpression").field("properties",[or(def("Property"),def("SpreadProperty"),def("SpreadElement"))]),def("TemplateElement").field("value",{cooked:or(String,null),raw:String}),def("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",def("Pattern")),def("ObjectPattern").field("properties",[or(def("PropertyPattern"),def("Property"),def("RestElement"),def("SpreadPropertyPattern"))]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2019=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2019.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2018_1=tslib_1.__importDefault(require_es2018()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2018_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("CatchClause").field("param",or(def("Pattern"),null),defaults.null);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20202=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2020.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2020_1=tslib_1.__importDefault(require_es2020()),es2019_1=tslib_1.__importDefault(require_es2019()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2020_1.default),fork.use(es2019_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults;def("ImportExpression").bases("Expression").build("source").field("source",def("Expression")),def("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",def("Literal")).field("exported",or(def("Identifier"),null,void 0),defaults.null),def("ChainElement").bases("Node").field("optional",Boolean,defaults.false),def("CallExpression").bases("Expression","ChainElement"),def("MemberExpression").bases("Expression","ChainElement"),def("ChainExpression").bases("Expression").build("expression").field("expression",def("ChainElement")),def("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,defaults.true),def("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,defaults.true);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20212=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2021.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2021_1=tslib_1.__importDefault(require_es2021()),es2020_1=tslib_1.__importDefault(require_es20202()),shared_1=require_shared();function default_1(fork){fork.use(es2021_1.default),fork.use(es2020_1.default);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2022=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2022.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2021_1=tslib_1.__importDefault(require_es20212()),types_1=tslib_1.__importDefault(require_types2()),shared_1=require_shared();function default_1(fork){fork.use(es2021_1.default);var types=fork.use(types_1.default),def=types.Type.def;def("StaticBlock").bases("Declaration").build("body").field("body",[def("Statement")]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es_proposals=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es-proposals.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared()),es2022_1=tslib_1.__importDefault(require_es2022());function default_1(fork){fork.use(es2022_1.default);var types=fork.use(types_1.default),Type=types.Type,def=types.Type.def,or=Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults;def("AwaitExpression").build("argument","all").field("argument",or(def("Expression"),null)).field("all",Boolean,defaults.false),def("Decorator").bases("Node").build("expression").field("expression",def("Expression")),def("Property").field("decorators",or([def("Decorator")],null),defaults.null),def("MethodDefinition").field("decorators",or([def("Decorator")],null),defaults.null),def("PrivateName").bases("Expression","Pattern").build("id").field("id",def("Identifier")),def("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",def("PrivateName")).field("value",or(def("Expression"),null),defaults.null),def("ImportAttribute").bases("Node").build("key","value").field("key",or(def("Identifier"),def("Literal"))).field("value",def("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(decl){def(decl).field("assertions",[def("ImportAttribute")],defaults.emptyArray);}),def("RecordExpression").bases("Expression").build("properties").field("properties",[or(def("ObjectProperty"),def("ObjectMethod"),def("SpreadElement"))]),def("TupleExpression").bases("Expression").build("elements").field("elements",[or(def("Expression"),def("SpreadElement"),null)]),def("ModuleExpression").bases("Node").build("body").field("body",def("Program"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_jsx3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/jsx.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("JSXAttribute").bases("Node").build("name","value").field("name",or(def("JSXIdentifier"),def("JSXNamespacedName"))).field("value",or(def("Literal"),def("JSXExpressionContainer"),def("JSXElement"),def("JSXFragment"),null),defaults.null),def("JSXIdentifier").bases("Identifier").build("name").field("name",String),def("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",def("JSXIdentifier")).field("name",def("JSXIdentifier")),def("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",or(def("JSXIdentifier"),def("JSXMemberExpression"))).field("property",def("JSXIdentifier")).field("computed",Boolean,defaults.false);var JSXElementName=or(def("JSXIdentifier"),def("JSXNamespacedName"),def("JSXMemberExpression"));def("JSXSpreadAttribute").bases("Node").build("argument").field("argument",def("Expression"));var JSXAttributes=[or(def("JSXAttribute"),def("JSXSpreadAttribute"))];def("JSXExpressionContainer").bases("Expression").build("expression").field("expression",or(def("Expression"),def("JSXEmptyExpression")));var JSXChildren=[or(def("JSXText"),def("JSXExpressionContainer"),def("JSXSpreadChild"),def("JSXElement"),def("JSXFragment"),def("Literal"))];def("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",def("JSXOpeningElement")).field("closingElement",or(def("JSXClosingElement"),null),defaults.null).field("children",JSXChildren,defaults.emptyArray).field("name",JSXElementName,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",JSXAttributes,function(){return this.openingElement.attributes},!0),def("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",JSXElementName).field("attributes",JSXAttributes,defaults.emptyArray).field("selfClosing",Boolean,defaults.false),def("JSXClosingElement").bases("Node").build("name").field("name",JSXElementName),def("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",def("JSXOpeningFragment")).field("closingFragment",def("JSXClosingFragment")).field("children",JSXChildren,defaults.emptyArray),def("JSXOpeningFragment").bases("Node").build(),def("JSXClosingFragment").bases("Node").build(),def("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),def("JSXEmptyExpression").bases("Node").build(),def("JSXSpreadChild").bases("Node").build("expression").field("expression",def("Expression"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_type_annotations=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/type-annotations.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults,TypeAnnotation=or(def("TypeAnnotation"),def("TSTypeAnnotation"),null),TypeParamDecl=or(def("TypeParameterDeclaration"),def("TSTypeParameterDeclaration"),null);def("Identifier").field("typeAnnotation",TypeAnnotation,defaults.null),def("ObjectPattern").field("typeAnnotation",TypeAnnotation,defaults.null),def("Function").field("returnType",TypeAnnotation,defaults.null).field("typeParameters",TypeParamDecl,defaults.null),def("ClassProperty").build("key","value","typeAnnotation","static").field("value",or(def("Expression"),null)).field("static",Boolean,defaults.false).field("typeAnnotation",TypeAnnotation,defaults.null),["ClassDeclaration","ClassExpression"].forEach(function(typeName){def(typeName).field("typeParameters",TypeParamDecl,defaults.null).field("superTypeParameters",or(def("TypeParameterInstantiation"),def("TSTypeParameterInstantiation"),null),defaults.null).field("implements",or([def("ClassImplements")],[def("TSExpressionWithTypeArguments")]),defaults.emptyArray);});}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_flow3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/flow.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),type_annotations_1=tslib_1.__importDefault(require_type_annotations()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default),fork.use(type_annotations_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("Flow").bases("Node"),def("FlowType").bases("Flow"),def("AnyTypeAnnotation").bases("FlowType").build(),def("EmptyTypeAnnotation").bases("FlowType").build(),def("MixedTypeAnnotation").bases("FlowType").build(),def("VoidTypeAnnotation").bases("FlowType").build(),def("SymbolTypeAnnotation").bases("FlowType").build(),def("NumberTypeAnnotation").bases("FlowType").build(),def("BigIntTypeAnnotation").bases("FlowType").build(),def("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),def("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),def("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),def("StringTypeAnnotation").bases("FlowType").build(),def("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),def("BooleanTypeAnnotation").bases("FlowType").build(),def("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),def("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",def("FlowType")),def("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",def("FlowType")),def("NullLiteralTypeAnnotation").bases("FlowType").build(),def("NullTypeAnnotation").bases("FlowType").build(),def("ThisTypeAnnotation").bases("FlowType").build(),def("ExistsTypeAnnotation").bases("FlowType").build(),def("ExistentialTypeParam").bases("FlowType").build(),def("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[def("FunctionTypeParam")]).field("returnType",def("FlowType")).field("rest",or(def("FunctionTypeParam"),null)).field("typeParameters",or(def("TypeParameterDeclaration"),null)),def("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",or(def("Identifier"),null)).field("typeAnnotation",def("FlowType")).field("optional",Boolean),def("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",def("FlowType")),def("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[or(def("ObjectTypeProperty"),def("ObjectTypeSpreadProperty"))]).field("indexers",[def("ObjectTypeIndexer")],defaults.emptyArray).field("callProperties",[def("ObjectTypeCallProperty")],defaults.emptyArray).field("inexact",or(Boolean,void 0),defaults.undefined).field("exact",Boolean,defaults.false).field("internalSlots",[def("ObjectTypeInternalSlot")],defaults.emptyArray),def("Variance").bases("Node").build("kind").field("kind",or("plus","minus"));var LegacyVariance=or(def("Variance"),"plus","minus",null);def("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",or(def("Literal"),def("Identifier"))).field("value",def("FlowType")).field("optional",Boolean).field("variance",LegacyVariance,defaults.null),def("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",def("Identifier")).field("key",def("FlowType")).field("value",def("FlowType")).field("variance",LegacyVariance,defaults.null).field("static",Boolean,defaults.false),def("ObjectTypeCallProperty").bases("Node").build("value").field("value",def("FunctionTypeAnnotation")).field("static",Boolean,defaults.false),def("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("id",def("Identifier")),def("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("typeParameters",or(def("TypeParameterInstantiation"),null)),def("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",def("Identifier")).field("property",or(def("MemberTypeAnnotation"),def("GenericTypeAnnotation"))),def("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",def("FlowType")).field("indexType",def("FlowType")),def("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",def("FlowType")).field("indexType",def("FlowType")).field("optional",Boolean),def("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",def("FlowType")),def("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",def("FlowType")),def("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",def("Identifier")).field("value",def("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),def("TypeParameterDeclaration").bases("Node").build("params").field("params",[def("TypeParameter")]),def("TypeParameterInstantiation").bases("Node").build("params").field("params",[def("FlowType")]),def("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",LegacyVariance,defaults.null).field("bound",or(def("TypeAnnotation"),null),defaults.null).field("default",or(def("FlowType"),null),defaults.null),def("ClassProperty").field("variance",LegacyVariance,defaults.null),def("ClassImplements").bases("Node").build("id").field("id",def("Identifier")).field("superClass",or(def("Expression"),null),defaults.null).field("typeParameters",or(def("TypeParameterInstantiation"),null),defaults.null),def("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",def("ObjectTypeAnnotation")).field("extends",or([def("InterfaceExtends")],null),defaults.null),def("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null),defaults.null).field("body",def("ObjectTypeAnnotation")).field("extends",[def("InterfaceExtends")]),def("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),def("InterfaceExtends").bases("Node").build("id").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterInstantiation"),null),defaults.null),def("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null)).field("right",def("FlowType")),def("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),def("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null)).field("impltype",def("FlowType")).field("supertype",or(def("FlowType"),null)),def("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",or(def("FlowType"),null)),def("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TypeAnnotation")),def("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("DeclareVariable").bases("Statement").build("id").field("id",def("Identifier")),def("DeclareFunction").bases("Statement").build("id").field("id",def("Identifier")).field("predicate",or(def("FlowPredicate"),null),defaults.null),def("DeclareClass").bases("InterfaceDeclaration").build("id"),def("DeclareModule").bases("Statement").build("id","body").field("id",or(def("Identifier"),def("Literal"))).field("body",def("BlockStatement")),def("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",def("TypeAnnotation")),def("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",or(def("DeclareVariable"),def("DeclareFunction"),def("DeclareClass"),def("FlowType"),def("TypeAlias"),def("DeclareOpaqueType"),def("InterfaceDeclaration"),null)).field("specifiers",[or(def("ExportSpecifier"),def("ExportBatchSpecifier"))],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",or(def("Literal"),null),defaults.null),def("ImportDeclaration").field("importKind",or("value","type","typeof"),function(){return "value"}),def("FlowPredicate").bases("Flow"),def("InferredPredicate").bases("FlowPredicate").build(),def("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",def("Expression")),def("Function").field("predicate",or(def("FlowPredicate"),null),defaults.null),def("CallExpression").field("typeArguments",or(null,def("TypeParameterInstantiation")),defaults.null),def("NewExpression").field("typeArguments",or(null,def("TypeParameterInstantiation")),defaults.null),def("EnumDeclaration").bases("Declaration").build("id","body").field("id",def("Identifier")).field("body",or(def("EnumBooleanBody"),def("EnumNumberBody"),def("EnumStringBody"),def("EnumSymbolBody"))),def("EnumBooleanBody").build("members","explicitType").field("members",[def("EnumBooleanMember")]).field("explicitType",Boolean),def("EnumNumberBody").build("members","explicitType").field("members",[def("EnumNumberMember")]).field("explicitType",Boolean),def("EnumStringBody").build("members","explicitType").field("members",or([def("EnumStringMember")],[def("EnumDefaultedMember")])).field("explicitType",Boolean),def("EnumSymbolBody").build("members").field("members",[def("EnumDefaultedMember")]),def("EnumBooleanMember").build("id","init").field("id",def("Identifier")).field("init",or(def("Literal"),Boolean)),def("EnumNumberMember").build("id","init").field("id",def("Identifier")).field("init",def("Literal")),def("EnumStringMember").build("id","init").field("id",def("Identifier")).field("init",def("Literal")),def("EnumDefaultedMember").build("id").field("id",def("Identifier"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_esprima=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/esprima.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default);var types=fork.use(types_1.default),defaults=fork.use(shared_1.default).defaults,def=types.Type.def,or=types.Type.or;def("VariableDeclaration").field("declarations",[or(def("VariableDeclarator"),def("Identifier"))]),def("Property").field("value",or(def("Expression"),def("Pattern"))),def("ArrayPattern").field("elements",[or(def("Pattern"),def("SpreadElement"),null)]),def("ObjectPattern").field("properties",[or(def("Property"),def("PropertyPattern"),def("SpreadPropertyPattern"),def("SpreadProperty"))]),def("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),def("ExportBatchSpecifier").bases("Specifier").build(),def("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",or(def("Declaration"),def("Expression"),null)).field("specifiers",[or(def("ExportSpecifier"),def("ExportBatchSpecifier"))],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("Block").bases("Comment").build("value","leading","trailing"),def("Line").bases("Comment").build("value","leading","trailing");}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_babel_core=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/babel-core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var _a,_b,_c,_d,_e;fork.use(es_proposals_1.default);var types=fork.use(types_1.default),defaults=fork.use(shared_1.default).defaults,def=types.Type.def,or=types.Type.or,isUndefined=types.builtInTypes.undefined;def("Noop").bases("Statement").build(),def("DoExpression").bases("Expression").build("body").field("body",[def("Statement")]),def("BindExpression").bases("Expression").build("object","callee").field("object",or(def("Expression"),null)).field("callee",def("Expression")),def("ParenthesizedExpression").bases("Expression").build("expression").field("expression",def("Expression")),def("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",def("Identifier")),def("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",def("Identifier")),def("CommentBlock").bases("Comment").build("value","leading","trailing"),def("CommentLine").bases("Comment").build("value","leading","trailing"),def("Directive").bases("Node").build("value").field("value",def("DirectiveLiteral")),def("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,defaults["use strict"]),def("InterpreterDirective").bases("Node").build("value").field("value",String),def("BlockStatement").bases("Statement").build("body").field("body",[def("Statement")]).field("directives",[def("Directive")],defaults.emptyArray),def("Program").bases("Node").build("body").field("body",[def("Statement")]).field("directives",[def("Directive")],defaults.emptyArray).field("interpreter",or(def("InterpreterDirective"),null),defaults.null);function makeLiteralExtra(rawValueType,toRaw){return rawValueType===void 0&&(rawValueType=String),["extra",{rawValue:rawValueType,raw:String},function(){var value=types.getFieldValue(this,"value");return {rawValue:value,raw:toRaw?toRaw(value):String(value)}}]}(_a=def("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(_a,makeLiteralExtra(String,function(val){return JSON.stringify(val)})),(_b=def("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",or(String,null),defaults.null)).field.apply(_b,makeLiteralExtra(Number)),(_c=def("BigIntLiteral").bases("Literal").build("value").field("value",or(String,Number))).field.apply(_c,makeLiteralExtra(String,function(val){return val+"n"})),(_d=def("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(_d,makeLiteralExtra(String,function(val){return val+"m"})),def("NullLiteral").bases("Literal").build().field("value",null,defaults.null),def("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(_e=def("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(_e,makeLiteralExtra(or(RegExp,isUndefined),function(exp){return "/".concat(exp.pattern,"/").concat(exp.flags||"")})).field("regex",{pattern:String,flags:String},function(){return {pattern:this.pattern,flags:this.flags}});var ObjectExpressionProperty=or(def("Property"),def("ObjectMethod"),def("ObjectProperty"),def("SpreadProperty"),def("SpreadElement"));def("ObjectExpression").bases("Expression").build("properties").field("properties",[ObjectExpressionProperty]),def("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",or("method","get","set")).field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("params",[def("Pattern")]).field("body",def("BlockStatement")).field("computed",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("async",Boolean,defaults.false).field("accessibility",or(def("Literal"),null),defaults.null).field("decorators",or([def("Decorator")],null),defaults.null),def("ObjectProperty").bases("Node").build("key","value").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("value",or(def("Expression"),def("Pattern"))).field("accessibility",or(def("Literal"),null),defaults.null).field("computed",Boolean,defaults.false);var ClassBodyElement=or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("ClassPrivateProperty"),def("ClassMethod"),def("ClassPrivateMethod"),def("ClassAccessorProperty"),def("StaticBlock"));def("ClassBody").bases("Declaration").build("body").field("body",[ClassBodyElement]),def("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",or(def("Literal"),def("Identifier"),def("Expression"))),def("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",def("PrivateName")),def("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",or(def("Literal"),def("Identifier"),def("PrivateName"),def("Expression"))).field("value",or(def("Expression"),null),defaults.null),["ClassMethod","ClassPrivateMethod"].forEach(function(typeName){def(typeName).field("kind",or("get","set","method","constructor"),function(){return "method"}).field("body",def("BlockStatement")).field("access",or("public","private","protected",null),defaults.null);}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(typeName){def(typeName).field("computed",Boolean,defaults.false).field("static",Boolean,defaults.false).field("abstract",Boolean,defaults.false).field("accessibility",or("public","private","protected",null),defaults.null).field("decorators",or([def("Decorator")],null),defaults.null).field("definite",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("override",Boolean,defaults.false).field("readonly",Boolean,defaults.false);});var ObjectPatternProperty=or(def("Property"),def("PropertyPattern"),def("SpreadPropertyPattern"),def("SpreadProperty"),def("ObjectProperty"),def("RestProperty"),def("RestElement"));def("ObjectPattern").bases("Pattern").build("properties").field("properties",[ObjectPatternProperty]).field("decorators",or([def("Decorator")],null),defaults.null),def("SpreadProperty").bases("Node").build("argument").field("argument",def("Expression")),def("RestProperty").bases("Node").build("argument").field("argument",def("Expression")),def("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement")),def("Import").bases("Expression").build();}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_babel=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/babel.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),babel_core_1=tslib_1.__importDefault(require_babel_core()),flow_1=tslib_1.__importDefault(require_flow3()),shared_1=require_shared();function default_1(fork){var types=fork.use(types_1.default),def=types.Type.def;fork.use(babel_core_1.default),fork.use(flow_1.default),def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),def("TopicReference").bases("Expression").build();}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_typescript3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/typescript.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),babel_core_1=tslib_1.__importDefault(require_babel_core()),type_annotations_1=tslib_1.__importDefault(require_type_annotations()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(babel_core_1.default),fork.use(type_annotations_1.default);var types=fork.use(types_1.default),n=types.namedTypes,def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults,StringLiteral=types.Type.from(function(value,deep){return !!(n.StringLiteral&&n.StringLiteral.check(value,deep)||n.Literal&&n.Literal.check(value,deep)&&typeof value.value=="string")},"StringLiteral");def("TSType").bases("Node");var TSEntityName=or(def("Identifier"),def("TSQualifiedName"));def("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",TSEntityName),def("TSHasOptionalTypeParameterInstantiation").field("typeParameters",or(def("TSTypeParameterInstantiation"),null),defaults.null),def("TSHasOptionalTypeParameters").field("typeParameters",or(def("TSTypeParameterDeclaration"),null,void 0),defaults.null),def("TSHasOptionalTypeAnnotation").field("typeAnnotation",or(def("TSTypeAnnotation"),null),defaults.null),def("TSQualifiedName").bases("Node").build("left","right").field("left",TSEntityName).field("right",TSEntityName),def("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")).field("extra",or({parenthesized:Boolean},null),defaults.null),def("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")),def("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")),def("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",def("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(keywordType){def(keywordType).bases("TSType").build();}),def("TSArrayType").bases("TSType").build("elementType").field("elementType",def("TSType")),def("TSLiteralType").bases("TSType").build("literal").field("literal",or(def("NumericLiteral"),def("StringLiteral"),def("BooleanLiteral"),def("TemplateLiteral"),def("UnaryExpression"),def("BigIntLiteral"))),def("TemplateLiteral").field("expressions",or([def("Expression")],[def("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(typeName){def(typeName).bases("TSType").build("types").field("types",[def("TSType")]);}),def("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",def("TSType")).field("extendsType",def("TSType")).field("trueType",def("TSType")).field("falseType",def("TSType")),def("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",def("TSTypeParameter")),def("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType"));var ParametersType=[or(def("Identifier"),def("RestElement"),def("ArrayPattern"),def("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(typeName){def(typeName).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",ParametersType);}),def("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,defaults.false).field("async",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("id",or(def("Identifier"),null),defaults.null).field("params",[def("Pattern")]).field("returnType",or(def("TSTypeAnnotation"),def("Noop"),null),defaults.null),def("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("params",[def("Pattern")]).field("abstract",Boolean,defaults.false).field("accessibility",or("public","private","protected",void 0),defaults.undefined).field("static",Boolean,defaults.false).field("computed",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("key",or(def("Identifier"),def("StringLiteral"),def("NumericLiteral"),def("Expression"))).field("kind",or("get","set","method","constructor"),function(){return "method"}).field("access",or("public","private","protected",void 0),defaults.undefined).field("decorators",or([def("Decorator")],null),defaults.null).field("returnType",or(def("TSTypeAnnotation"),def("Noop"),null),defaults.null),def("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",or(Boolean,"+","-"),defaults.false).field("typeParameter",def("TSTypeParameter")).field("optional",or(Boolean,"+","-"),defaults.false).field("typeAnnotation",or(def("TSType"),null),defaults.null),def("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[or(def("TSType"),def("TSNamedTupleMember"))]),def("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",def("Identifier")).field("optional",Boolean,defaults.false).field("elementType",def("TSType")),def("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType")),def("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType")),def("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",def("TSType")).field("indexType",def("TSType")),def("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",def("TSType")),def("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",or(def("TSType"),def("TSTypeAnnotation"))),def("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[def("Identifier")]).field("readonly",Boolean,defaults.false),def("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",def("Expression")).field("computed",Boolean,defaults.false).field("readonly",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("initializer",or(def("Expression"),null),defaults.null),def("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",def("Expression")).field("computed",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("parameters",ParametersType),def("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",or(def("Identifier"),def("TSThisType"))).field("typeAnnotation",or(def("TSTypeAnnotation"),null),defaults.null).field("asserts",Boolean,defaults.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(typeName){def(typeName).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",ParametersType);}),def("TSEnumMember").bases("Node").build("id","initializer").field("id",or(def("Identifier"),StringLiteral)).field("initializer",or(def("Expression"),null),defaults.null),def("TSTypeQuery").bases("TSType").build("exprName").field("exprName",or(TSEntityName,def("TSImportType")));var TSTypeMember=or(def("TSCallSignatureDeclaration"),def("TSConstructSignatureDeclaration"),def("TSIndexSignature"),def("TSMethodSignature"),def("TSPropertySignature"));def("TSTypeLiteral").bases("TSType").build("members").field("members",[TSTypeMember]),def("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",or(def("Identifier"),String)).field("constraint",or(def("TSType"),void 0),defaults.undefined).field("default",or(def("TSType"),void 0),defaults.undefined),def("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",def("TSType")).field("expression",def("Expression")).field("extra",or({parenthesized:Boolean},null),defaults.null),def("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[def("TSTypeParameter")]),def("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",def("Expression")),def("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[def("TSType")]),def("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",def("Identifier")).field("const",Boolean,defaults.false).field("declare",Boolean,defaults.false).field("members",[def("TSEnumMember")]).field("initializer",or(def("Expression"),null),defaults.null),def("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",def("Identifier")).field("declare",Boolean,defaults.false).field("typeAnnotation",def("TSType")),def("TSModuleBlock").bases("Node").build("body").field("body",[def("Statement")]),def("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",or(StringLiteral,TSEntityName)).field("declare",Boolean,defaults.false).field("global",Boolean,defaults.false).field("body",or(def("TSModuleBlock"),def("TSModuleDeclaration"),null),defaults.null),def("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",StringLiteral).field("qualifier",or(TSEntityName,void 0),defaults.undefined),def("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",def("Identifier")).field("isExport",Boolean,defaults.false).field("moduleReference",or(TSEntityName,def("TSExternalModuleReference"))),def("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",StringLiteral),def("TSExportAssignment").bases("Statement").build("expression").field("expression",def("Expression")),def("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",def("Identifier")),def("TSInterfaceBody").bases("Node").build("body").field("body",[TSTypeMember]),def("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",TSEntityName),def("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",TSEntityName).field("declare",Boolean,defaults.false).field("extends",or([def("TSExpressionWithTypeArguments")],null),defaults.null).field("body",def("TSInterfaceBody")),def("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",or("public","private","protected",void 0),defaults.undefined).field("readonly",Boolean,defaults.false).field("parameter",or(def("Identifier"),def("AssignmentPattern"))),def("ClassProperty").field("access",or("public","private","protected",void 0),defaults.undefined),def("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),def("ClassBody").field("body",[or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("ClassPrivateProperty"),def("ClassAccessorProperty"),def("ClassMethod"),def("ClassPrivateMethod"),def("StaticBlock"),def("TSDeclareMethod"),TSTypeMember)]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_namedTypes=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/gen/namedTypes.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.namedTypes=void 0;exports.namedTypes||(exports.namedTypes={});}});var require_main5=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/main.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.visit=exports.use=exports.Type=exports.someField=exports.PathVisitor=exports.Path=exports.NodePath=exports.namedTypes=exports.getSupertypeNames=exports.getFieldValue=exports.getFieldNames=exports.getBuilderName=exports.finalize=exports.eachField=exports.defineMethod=exports.builtInTypes=exports.builders=exports.astNodesAreEquivalent=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),fork_1=tslib_1.__importDefault(require_fork()),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),jsx_1=tslib_1.__importDefault(require_jsx3()),flow_1=tslib_1.__importDefault(require_flow3()),esprima_1=tslib_1.__importDefault(require_esprima()),babel_1=tslib_1.__importDefault(require_babel()),typescript_1=tslib_1.__importDefault(require_typescript3()),namedTypes_1=require_namedTypes();Object.defineProperty(exports,"namedTypes",{enumerable:!0,get:function(){return namedTypes_1.namedTypes}});var _a=(0, fork_1.default)([es_proposals_1.default,jsx_1.default,flow_1.default,esprima_1.default,babel_1.default,typescript_1.default]),astNodesAreEquivalent=_a.astNodesAreEquivalent,builders=_a.builders,builtInTypes=_a.builtInTypes,defineMethod=_a.defineMethod,eachField=_a.eachField,finalize=_a.finalize,getBuilderName=_a.getBuilderName,getFieldNames=_a.getFieldNames,getFieldValue=_a.getFieldValue,getSupertypeNames=_a.getSupertypeNames,n=_a.namedTypes,NodePath=_a.NodePath,Path=_a.Path,PathVisitor=_a.PathVisitor,someField=_a.someField,Type=_a.Type,use=_a.use,visit=_a.visit;exports.astNodesAreEquivalent=astNodesAreEquivalent;exports.builders=builders;exports.builtInTypes=builtInTypes;exports.defineMethod=defineMethod;exports.eachField=eachField;exports.finalize=finalize;exports.getBuilderName=getBuilderName;exports.getFieldNames=getFieldNames;exports.getFieldValue=getFieldValue;exports.getSupertypeNames=getSupertypeNames;exports.NodePath=NodePath;exports.Path=Path;exports.PathVisitor=PathVisitor;exports.someField=someField;exports.Type=Type;exports.use=use;exports.visit=visit;Object.assign(namedTypes_1.namedTypes,n);}});var require_util3=__commonJS({"../../node_modules/recast/lib/util.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.isTrailingCommaEnabled=exports.getParentExportDeclaration=exports.isExportDeclaration=exports.fixFaultyLocations=exports.getTrueLoc=exports.composeSourceMaps=exports.copyPos=exports.comparePos=exports.getUnionOfKeys=exports.getOption=exports.isBrowser=exports.getLineTerminator=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),types=tslib_1.__importStar(require_main5()),n=types.namedTypes,source_map_1=tslib_1.__importDefault(require_source_map()),SourceMapConsumer=source_map_1.default.SourceMapConsumer,SourceMapGenerator=source_map_1.default.SourceMapGenerator,hasOwn=Object.prototype.hasOwnProperty;function getLineTerminator(){return isBrowser()?`
|
|
346
|
+
${" ".repeat(indentSize)}`);}}}else noLineTerminator?val=`/*${comment.value}*/`:val=`//${comment.value}`;this.endsWith(47)&&this._space(),this.source("start",comment.loc),this._append(val,isBlockComment),!isBlockComment&&!noLineTerminator&&this.newline(1,!0),printNewLines&&skipNewLines!==3&&this.newline(1);}_printComments(type,comments,node,parent,lineOffset=0){let nodeLoc=node.loc,len=comments.length,hasLoc=!!nodeLoc,nodeStartLine=hasLoc?nodeLoc.start.line:0,nodeEndLine=hasLoc?nodeLoc.end.line:0,lastLine=0,leadingCommentNewline=0,maybeNewline=this._noLineTerminator?function(){}:this.newline.bind(this);for(let i=0;i<len;i++){let comment=comments[i],shouldPrint=this._shouldPrintComment(comment);if(shouldPrint===2){hasLoc=!1;break}if(hasLoc&&comment.loc&&shouldPrint===1){let commentStartLine=comment.loc.start.line,commentEndLine=comment.loc.end.line;if(type===0){let offset=0;i===0?this._buf.hasContent()&&(comment.type==="CommentLine"||commentStartLine!=commentEndLine)&&(offset=leadingCommentNewline=1):offset=commentStartLine-lastLine,lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1),i+1===len&&(maybeNewline(Math.max(nodeStartLine-lastLine,leadingCommentNewline)),lastLine=nodeStartLine);}else if(type===1){let offset=commentStartLine-(i===0?nodeStartLine:lastLine);lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1),i+1===len&&(maybeNewline(Math.min(1,nodeEndLine-lastLine)),lastLine=nodeEndLine);}else {let offset=commentStartLine-(i===0?nodeEndLine-lineOffset:lastLine);lastLine=commentEndLine,maybeNewline(offset),this._printComment(comment,1);}}else {if(hasLoc=!1,shouldPrint!==1)continue;if(len===1){let singleLine=comment.loc?comment.loc.start.line===comment.loc.end.line:!HAS_NEWLINE.test(comment.value),shouldSkipNewline=singleLine&&!isStatement(node)&&!isClassBody(parent)&&!isTSInterfaceBody(parent)&&!isTSEnumDeclaration(parent);type===0?this._printComment(comment,shouldSkipNewline&&node.type!=="ObjectExpression"||singleLine&&isFunction(parent,{body:node})?1:0):shouldSkipNewline&&type===2?this._printComment(comment,1):this._printComment(comment,0);}else type===1&&!(node.type==="ObjectExpression"&&node.properties.length>1)&&node.type!=="ClassBody"&&node.type!=="TSInterfaceBody"?this._printComment(comment,i===0?2:i===len-1?3:0):this._printComment(comment,0);}}type===2&&hasLoc&&lastLine&&(this._lastCommentLine=lastLine);}};Object.assign(Printer.prototype,generatorFunctions);Printer.prototype.Noop=function(){};exports.default=Printer;function commaSeparator(){this.tokenChar(44),this.space();}}});var require_lib14=__commonJS({"../../node_modules/@babel/generator/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=generate;var _sourceMap=require_source_map2(),_printer=require_printer2();function normalizeOptions(code,opts){var _opts$recordAndTupleS;let format={auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,shouldPrintComment:opts.shouldPrintComment,retainLines:opts.retainLines,retainFunctionParens:opts.retainFunctionParens,comments:opts.comments==null||opts.comments,compact:opts.compact,minified:opts.minified,concise:opts.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},opts.jsescOption),recordAndTupleSyntaxType:(_opts$recordAndTupleS=opts.recordAndTupleSyntaxType)!=null?_opts$recordAndTupleS:"hash",topicToken:opts.topicToken,importAttributesKeyword:opts.importAttributesKeyword};format.decoratorsBeforeExport=opts.decoratorsBeforeExport,format.jsescOption.json=opts.jsonCompatibleStrings,format.minified?(format.compact=!0,format.shouldPrintComment=format.shouldPrintComment||(()=>format.comments)):format.shouldPrintComment=format.shouldPrintComment||(value=>format.comments||value.includes("@license")||value.includes("@preserve")),format.compact==="auto"&&(format.compact=typeof code=="string"&&code.length>5e5,format.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`)),format.compact&&(format.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore,auxiliaryCommentAfter,shouldPrintComment}=format;return auxiliaryCommentBefore&&!shouldPrintComment(auxiliaryCommentBefore)&&(format.auxiliaryCommentBefore=void 0),auxiliaryCommentAfter&&!shouldPrintComment(auxiliaryCommentAfter)&&(format.auxiliaryCommentAfter=void 0),format}exports.CodeGenerator=class{constructor(ast,opts={},code){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=ast,this._format=normalizeOptions(code,opts),this._map=opts.sourceMaps?new _sourceMap.default(opts,code):null;}generate(){return new _printer.default(this._format,this._map).generate(this._ast)}};function generate(ast,opts={},code){let format=normalizeOptions(code,opts),map=opts.sourceMaps?new _sourceMap.default(opts,code):null;return new _printer.default(format,map).generate(ast)}}});var tslib_es6_exports={};__export(tslib_es6_exports,{__addDisposableResource:()=>__addDisposableResource,__assign:()=>__assign,__asyncDelegator:()=>__asyncDelegator,__asyncGenerator:()=>__asyncGenerator,__asyncValues:()=>__asyncValues,__await:()=>__await,__awaiter:()=>__awaiter,__classPrivateFieldGet:()=>__classPrivateFieldGet,__classPrivateFieldIn:()=>__classPrivateFieldIn,__classPrivateFieldSet:()=>__classPrivateFieldSet,__createBinding:()=>__createBinding,__decorate:()=>__decorate,__disposeResources:()=>__disposeResources,__esDecorate:()=>__esDecorate,__exportStar:()=>__exportStar,__extends:()=>__extends,__generator:()=>__generator,__importDefault:()=>__importDefault,__importStar:()=>__importStar,__makeTemplateObject:()=>__makeTemplateObject,__metadata:()=>__metadata,__param:()=>__param,__propKey:()=>__propKey,__read:()=>__read,__rest:()=>__rest,__runInitializers:()=>__runInitializers,__setFunctionName:()=>__setFunctionName,__spread:()=>__spread,__spreadArray:()=>__spreadArray,__spreadArrays:()=>__spreadArrays,__values:()=>__values,default:()=>tslib_es6_default});function __extends(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t}function __decorate(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __param(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex);}}function __esDecorate(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(f!==void 0&&typeof f!="function")throw new TypeError("Function expected");return f}for(var kind=contextIn.kind,key=kind==="getter"?"get":kind==="setter"?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),_,done=!1,i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]=p==="access"?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null));};var result=(0, decorators[i])(kind==="accessor"?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if(kind==="accessor"){if(result===void 0)continue;if(result===null||typeof result!="object")throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_);}else (_=accept(result))&&(kind==="field"?initializers.unshift(_):descriptor[key]=_);}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0;}function __runInitializers(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0}function __propKey(x){return typeof x=="symbol"?x:"".concat(x)}function __setFunctionName(f,name,prefix){return typeof name=="symbol"&&(name=name.description?"[".concat(name.description,"]"):""),Object.defineProperty(f,"name",{configurable:!0,value:prefix?"".concat(prefix," ",name):name})}function __metadata(metadataKey,metadataValue){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(metadataKey,metadataValue)}function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());})}function __generator(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;g&&(g=0,op[0]&&(_=0)),_;)try{if(f=1,y&&(t=op[0]&2?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[op[0]&2,t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_);}catch(e){op=[6,e],y=0;}finally{f=t=0;}if(op[0]&5)throw op[1];return {value:op[0]?op[1]:void 0,done:!0}}}function __exportStar(m,o){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(o,p)&&__createBinding(o,m,p);}function __values(o){var s=typeof Symbol=="function"&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&typeof o.length=="number")return {next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,n){var m=typeof Symbol=="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)ar.push(r.value);}catch(error){e={error};}finally{try{r&&!r.done&&(m=i.return)&&m.call(i);}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}function __spreadArray(to,from,pack){if(pack||arguments.length===2)for(var i=0,l=from.length,ar;i<l;i++)(ar||!(i in from))&&(ar||(ar=Array.prototype.slice.call(from,0,i)),ar[i]=from[i]);return to.concat(ar||Array.prototype.slice.call(from))}function __await(v){return this instanceof __await?(this.v=v,this):new __await(v)}function __asyncGenerator(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){g[n]&&(i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v);})});}function resume(n,v){try{step(g[n](v));}catch(e){settle(q[0][3],e);}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r);}function fulfill(value){resume("next",value);}function reject(value){resume("throw",value);}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1]);}}function __asyncDelegator(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return (p=!p)?{value:__await(o[n](v)),done:!1}:f?f(v):v}:f;}}function __asyncValues(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value);})};}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v2){resolve({value:v2,done:d});},reject);}}function __makeTemplateObject(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked}function __importStar(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result}function __importDefault(mod){return mod&&mod.__esModule?mod:{default:mod}}function __classPrivateFieldGet(receiver,state,kind,f){if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof state=="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return kind==="m"?f:kind==="a"?f.call(receiver):f?f.value:state.get(receiver)}function __classPrivateFieldSet(receiver,state,value,kind,f){if(kind==="m")throw new TypeError("Private method is not writable");if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof state=="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return kind==="a"?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value}function __classPrivateFieldIn(state,receiver){if(receiver===null||typeof receiver!="object"&&typeof receiver!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof state=="function"?receiver===state:state.has(receiver)}function __addDisposableResource(env,value,async){if(value!=null){if(typeof value!="object"&&typeof value!="function")throw new TypeError("Object expected.");var dispose;if(async){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");dispose=value[Symbol.asyncDispose];}if(dispose===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");dispose=value[Symbol.dispose];}if(typeof dispose!="function")throw new TypeError("Object not disposable.");env.stack.push({value,dispose,async});}else async&&env.stack.push({async:!0});return value}function __disposeResources(env){function fail(e){env.error=env.hasError?new _SuppressedError(e,env.error,"An error was suppressed during disposal."):e,env.hasError=!0;}function next(){for(;env.stack.length;){var rec=env.stack.pop();try{var result=rec.dispose&&rec.dispose.call(rec.value);if(rec.async)return Promise.resolve(result).then(next,function(e){return fail(e),next()})}catch(e){fail(e);}}if(env.hasError)throw env.error}return next()}var extendStatics,__assign,__createBinding,__setModuleDefault,_SuppressedError,tslib_es6_default,init_tslib_es6=__esm({"../../node_modules/tslib/tslib.es6.mjs"(){extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d2,b2){d2.__proto__=b2;}||function(d2,b2){for(var p in b2)Object.prototype.hasOwnProperty.call(b2,p)&&(d2[p]=b2[p]);},extendStatics(d,b)};__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);}return t},__assign.apply(this,arguments)};__createBinding=Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k];};__setModuleDefault=Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v});}:function(o,v){o.default=v;};_SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name="SuppressedError",e.error=error,e.suppressed=suppressed,e};tslib_es6_default={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};}});var require_shared=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/shared.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.maybeSetModuleExports=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2());function default_1(fork){var types=fork.use(types_1.default),Type=types.Type,builtin=types.builtInTypes,isNumber=builtin.number;function geq(than){return Type.from(function(value){return isNumber.check(value)&&value>=than},isNumber+" >= "+than)}var defaults={null:function(){return null},emptyArray:function(){return []},false:function(){return !1},true:function(){return !0},undefined:function(){},"use strict":function(){return "use strict"}},naiveIsPrimitive=Type.or(builtin.string,builtin.number,builtin.boolean,builtin.null,builtin.undefined),isPrimitive=Type.from(function(value){if(value===null)return !0;var type=typeof value;return !(type==="object"||type==="function")},naiveIsPrimitive.toString());return {geq,defaults,isPrimitive}}exports.default=default_1;function maybeSetModuleExports(moduleGetter){try{var nodeModule=moduleGetter(),originalExports=nodeModule.exports,defaultExport=originalExports.default;}catch{return}defaultExport&&defaultExport!==originalExports&&typeof originalExports=="object"&&(Object.assign(defaultExport,originalExports,{default:defaultExport}),originalExports.__esModule&&Object.defineProperty(defaultExport,"__esModule",{value:!0}),nodeModule.exports=defaultExport);}exports.maybeSetModuleExports=maybeSetModuleExports;}});var require_types2=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/types.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});exports.Def=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),Op=Object.prototype,objToStr=Op.toString,hasOwn=Op.hasOwnProperty,BaseType=function(){function BaseType2(){}return BaseType2.prototype.assert=function(value,deep){if(!this.check(value,deep)){var str=shallowStringify(value);throw new Error(str+" does not match type "+this)}return !0},BaseType2.prototype.arrayOf=function(){var elemType=this;return new ArrayType(elemType)},BaseType2}(),ArrayType=function(_super){tslib_1.__extends(ArrayType2,_super);function ArrayType2(elemType){var _this=_super.call(this)||this;return _this.elemType=elemType,_this.kind="ArrayType",_this}return ArrayType2.prototype.toString=function(){return "["+this.elemType+"]"},ArrayType2.prototype.check=function(value,deep){var _this=this;return Array.isArray(value)&&value.every(function(elem){return _this.elemType.check(elem,deep)})},ArrayType2}(BaseType),IdentityType=function(_super){tslib_1.__extends(IdentityType2,_super);function IdentityType2(value){var _this=_super.call(this)||this;return _this.value=value,_this.kind="IdentityType",_this}return IdentityType2.prototype.toString=function(){return String(this.value)},IdentityType2.prototype.check=function(value,deep){var result=value===this.value;return !result&&typeof deep=="function"&&deep(this,value),result},IdentityType2}(BaseType),ObjectType=function(_super){tslib_1.__extends(ObjectType2,_super);function ObjectType2(fields){var _this=_super.call(this)||this;return _this.fields=fields,_this.kind="ObjectType",_this}return ObjectType2.prototype.toString=function(){return "{ "+this.fields.join(", ")+" }"},ObjectType2.prototype.check=function(value,deep){return objToStr.call(value)===objToStr.call({})&&this.fields.every(function(field){return field.type.check(value[field.name],deep)})},ObjectType2}(BaseType),OrType=function(_super){tslib_1.__extends(OrType2,_super);function OrType2(types){var _this=_super.call(this)||this;return _this.types=types,_this.kind="OrType",_this}return OrType2.prototype.toString=function(){return this.types.join(" | ")},OrType2.prototype.check=function(value,deep){return this.types.some(function(type){return type.check(value,!!deep)})?!0:(typeof deep=="function"&&deep(this,value),!1)},OrType2}(BaseType),PredicateType=function(_super){tslib_1.__extends(PredicateType2,_super);function PredicateType2(name,predicate){var _this=_super.call(this)||this;return _this.name=name,_this.predicate=predicate,_this.kind="PredicateType",_this}return PredicateType2.prototype.toString=function(){return this.name},PredicateType2.prototype.check=function(value,deep){var result=this.predicate(value,deep);return !result&&typeof deep=="function"&&deep(this,value),result},PredicateType2}(BaseType),Def=function(){function Def2(type,typeName){this.type=type,this.typeName=typeName,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[];}return Def2.prototype.isSupertypeOf=function(that){if(that instanceof Def2){if(this.finalized!==!0||that.finalized!==!0)throw new Error("");return hasOwn.call(that.allSupertypes,this.typeName)}else throw new Error(that+" is not a Def")},Def2.prototype.checkAllFields=function(value,deep){var allFields=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function checkFieldByName(name){var field=allFields[name],type=field.type,child=field.getValue(value);return type.check(child,deep)}return value!==null&&typeof value=="object"&&Object.keys(allFields).every(checkFieldByName)},Def2.prototype.bases=function(){for(var supertypeNames=[],_i=0;_i<arguments.length;_i++)supertypeNames[_i]=arguments[_i];var bases=this.baseNames;if(this.finalized){if(supertypeNames.length!==bases.length)throw new Error("");for(var i=0;i<supertypeNames.length;i++)if(supertypeNames[i]!==bases[i])throw new Error("");return this}return supertypeNames.forEach(function(baseName){bases.indexOf(baseName)<0&&bases.push(baseName);}),this},Def2}();exports.Def=Def;var Field=function(){function Field2(name,type,defaultFn,hidden){this.name=name,this.type=type,this.defaultFn=defaultFn,this.hidden=!!hidden;}return Field2.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},Field2.prototype.getValue=function(obj){var value=obj[this.name];return typeof value<"u"||typeof this.defaultFn=="function"&&(value=this.defaultFn.call(obj)),value},Field2}();function shallowStringify(value){return Array.isArray(value)?"["+value.map(shallowStringify).join(", ")+"]":value&&typeof value=="object"?"{ "+Object.keys(value).map(function(key){return key+": "+value[key]}).join(", ")+" }":JSON.stringify(value)}function typesPlugin(_fork){var Type={or:function(){for(var types=[],_i=0;_i<arguments.length;_i++)types[_i]=arguments[_i];return new OrType(types.map(function(type){return Type.from(type)}))},from:function(value,name){if(value instanceof ArrayType||value instanceof IdentityType||value instanceof ObjectType||value instanceof OrType||value instanceof PredicateType)return value;if(value instanceof Def)return value.type;if(isArray.check(value)){if(value.length!==1)throw new Error("only one element type is permitted for typed arrays");return new ArrayType(Type.from(value[0]))}if(isObject.check(value))return new ObjectType(Object.keys(value).map(function(name2){return new Field(name2,Type.from(value[name2],name2))}));if(typeof value=="function"){var bicfIndex=builtInCtorFns.indexOf(value);if(bicfIndex>=0)return builtInCtorTypes[bicfIndex];if(typeof name!="string")throw new Error("missing name");return new PredicateType(name,value)}return new IdentityType(value)},def:function(typeName){return hasOwn.call(defCache,typeName)?defCache[typeName]:defCache[typeName]=new DefImpl(typeName)},hasDef:function(typeName){return hasOwn.call(defCache,typeName)}},builtInCtorFns=[],builtInCtorTypes=[];function defBuiltInType(name,example){var objStr=objToStr.call(example),type=new PredicateType(name,function(value){return objToStr.call(value)===objStr});return example&&typeof example.constructor=="function"&&(builtInCtorFns.push(example.constructor),builtInCtorTypes.push(type)),type}var isString=defBuiltInType("string","truthy"),isFunction=defBuiltInType("function",function(){}),isArray=defBuiltInType("array",[]),isObject=defBuiltInType("object",{}),isRegExp=defBuiltInType("RegExp",/./),isDate=defBuiltInType("Date",new Date),isNumber=defBuiltInType("number",3),isBoolean=defBuiltInType("boolean",!0),isNull=defBuiltInType("null",null),isUndefined=defBuiltInType("undefined",void 0),isBigInt=typeof BigInt=="function"?defBuiltInType("BigInt",BigInt(1234)):new PredicateType("BigInt",function(){return !1}),builtInTypes={string:isString,function:isFunction,array:isArray,object:isObject,RegExp:isRegExp,Date:isDate,number:isNumber,boolean:isBoolean,null:isNull,undefined:isUndefined,BigInt:isBigInt},defCache=Object.create(null);function defFromValue(value){if(value&&typeof value=="object"){var type=value.type;if(typeof type=="string"&&hasOwn.call(defCache,type)){var d=defCache[type];if(d.finalized)return d}}return null}var DefImpl=function(_super){tslib_1.__extends(DefImpl2,_super);function DefImpl2(typeName){var _this=_super.call(this,new PredicateType(typeName,function(value,deep){return _this.check(value,deep)}),typeName)||this;return _this}return DefImpl2.prototype.check=function(value,deep){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(value===null||typeof value!="object")return !1;var vDef=defFromValue(value);return vDef?deep&&vDef===this?this.checkAllFields(value,deep):this.isSupertypeOf(vDef)?deep?vDef.checkAllFields(value,deep)&&this.checkAllFields(value,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(value,deep):!1},DefImpl2.prototype.build=function(){for(var _this=this,buildParams=[],_i=0;_i<arguments.length;_i++)buildParams[_i]=arguments[_i];if(this.buildParams=buildParams,this.buildable)return this;this.field("type",String,function(){return _this.typeName}),this.buildable=!0;var addParam=function(built,param,arg,isArgAvailable){if(!hasOwn.call(built,param)){var all=_this.allFields;if(!hasOwn.call(all,param))throw new Error(""+param);var field=all[param],type=field.type,value;if(isArgAvailable)value=arg;else if(field.defaultFn)value=field.defaultFn.call(built);else {var message="no value or default function given for field "+JSON.stringify(param)+" of "+_this.typeName+"("+_this.buildParams.map(function(name){return all[name]}).join(", ")+")";throw new Error(message)}if(!type.check(value))throw new Error(shallowStringify(value)+" does not match field "+field+" of type "+_this.typeName);built[param]=value;}},builder=function(){for(var args=[],_i2=0;_i2<arguments.length;_i2++)args[_i2]=arguments[_i2];var argc=args.length;if(!_this.finalized)throw new Error("attempting to instantiate unfinalized type "+_this.typeName);var built=Object.create(nodePrototype);if(_this.buildParams.forEach(function(param,i){i<argc?addParam(built,param,args[i],!0):addParam(built,param,null,!1);}),Object.keys(_this.allFields).forEach(function(param){addParam(built,param,null,!1);}),built.type!==_this.typeName)throw new Error("");return built};return builder.from=function(obj){if(!_this.finalized)throw new Error("attempting to instantiate unfinalized type "+_this.typeName);var built=Object.create(nodePrototype);if(Object.keys(_this.allFields).forEach(function(param){hasOwn.call(obj,param)?addParam(built,param,obj[param],!0):addParam(built,param,null,!1);}),built.type!==_this.typeName)throw new Error("");return built},Object.defineProperty(builders,getBuilderName(this.typeName),{enumerable:!0,value:builder}),this},DefImpl2.prototype.field=function(name,type,defaultFn,hidden){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(name)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[name]=new Field(name,Type.from(type),defaultFn,hidden),this)},DefImpl2.prototype.finalize=function(){var _this=this;if(!this.finalized){var allFields=this.allFields,allSupertypes=this.allSupertypes;this.baseNames.forEach(function(name){var def=defCache[name];if(def instanceof Def)def.finalize(),extend(allFields,def.allFields),extend(allSupertypes,def.allSupertypes);else {var message="unknown supertype name "+JSON.stringify(name)+" for subtype "+JSON.stringify(_this.typeName);throw new Error(message)}}),extend(allFields,this.ownFields),allSupertypes[this.typeName]=this,this.fieldNames.length=0;for(var fieldName in allFields)hasOwn.call(allFields,fieldName)&&!allFields[fieldName].hidden&&this.fieldNames.push(fieldName);Object.defineProperty(namedTypes,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,populateSupertypeList(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&wrapExpressionBuilderWithStatement(this.typeName);}},DefImpl2}(Def);function getSupertypeNames(typeName){if(!hasOwn.call(defCache,typeName))throw new Error("");var d=defCache[typeName];if(d.finalized!==!0)throw new Error("");return d.supertypeList.slice(1)}function computeSupertypeLookupTable(candidates){for(var table={},typeNames=Object.keys(defCache),typeNameCount=typeNames.length,i=0;i<typeNameCount;++i){var typeName=typeNames[i],d=defCache[typeName];if(d.finalized!==!0)throw new Error(""+typeName);for(var j=0;j<d.supertypeList.length;++j){var superTypeName=d.supertypeList[j];if(hasOwn.call(candidates,superTypeName)){table[typeName]=superTypeName;break}}}return table}var builders=Object.create(null),nodePrototype={};function defineMethod(name,func){var old=nodePrototype[name];return isUndefined.check(func)?delete nodePrototype[name]:(isFunction.assert(func),Object.defineProperty(nodePrototype,name,{enumerable:!0,configurable:!0,value:func})),old}function getBuilderName(typeName){return typeName.replace(/^[A-Z]+/,function(upperCasePrefix){var len=upperCasePrefix.length;switch(len){case 0:return "";case 1:return upperCasePrefix.toLowerCase();default:return upperCasePrefix.slice(0,len-1).toLowerCase()+upperCasePrefix.charAt(len-1)}})}function getStatementBuilderName(typeName){return typeName=getBuilderName(typeName),typeName.replace(/(Expression)?$/,"Statement")}var namedTypes={};function getFieldNames(object){var d=defFromValue(object);if(d)return d.fieldNames.slice(0);if("type"in object)throw new Error("did not recognize object of type "+JSON.stringify(object.type));return Object.keys(object)}function getFieldValue(object,fieldName){var d=defFromValue(object);if(d){var field=d.allFields[fieldName];if(field)return field.getValue(object)}return object&&object[fieldName]}function eachField(object,callback,context){getFieldNames(object).forEach(function(name){callback.call(this,name,getFieldValue(object,name));},context);}function someField(object,callback,context){return getFieldNames(object).some(function(name){return callback.call(this,name,getFieldValue(object,name))},context)}function wrapExpressionBuilderWithStatement(typeName){var wrapperName=getStatementBuilderName(typeName);if(!builders[wrapperName]){var wrapped=builders[getBuilderName(typeName)];if(wrapped){var builder=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return builders.expressionStatement(wrapped.apply(builders,args))};builder.from=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return builders.expressionStatement(wrapped.from.apply(builders,args))},builders[wrapperName]=builder;}}}function populateSupertypeList(typeName,list){list.length=0,list.push(typeName);for(var lastSeen=Object.create(null),pos=0;pos<list.length;++pos){typeName=list[pos];var d=defCache[typeName];if(d.finalized!==!0)throw new Error("");hasOwn.call(lastSeen,typeName)&&delete list[lastSeen[typeName]],lastSeen[typeName]=pos,list.push.apply(list,d.baseNames);}for(var to=0,from=to,len=list.length;from<len;++from)hasOwn.call(list,from)&&(list[to++]=list[from]);list.length=to;}function extend(into,from){return Object.keys(from).forEach(function(name){into[name]=from[name];}),into}function finalize(){Object.keys(defCache).forEach(function(name){defCache[name].finalize();});}return {Type,builtInTypes,getSupertypeNames,computeSupertypeLookupTable,builders,defineMethod,getBuilderName,getStatementBuilderName,namedTypes,getFieldNames,getFieldValue,eachField,someField,finalize}}exports.default=typesPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_path3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/path.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2()),Op=Object.prototype,hasOwn=Op.hasOwnProperty;function pathPlugin(fork){var types=fork.use(types_1.default),isArray=types.builtInTypes.array,isNumber=types.builtInTypes.number,Path=function Path2(value,parentPath,name){if(!(this instanceof Path2))throw new Error("Path constructor cannot be invoked without 'new'");if(parentPath){if(!(parentPath instanceof Path2))throw new Error("")}else parentPath=null,name=null;this.value=value,this.parentPath=parentPath,this.name=name,this.__childCache=null;},Pp=Path.prototype;function getChildCache(path){return path.__childCache||(path.__childCache=Object.create(null))}function getChildPath(path,name){var cache=getChildCache(path),actualChildValue=path.getValueProperty(name),childPath=cache[name];return (!hasOwn.call(cache,name)||childPath.value!==actualChildValue)&&(childPath=cache[name]=new path.constructor(actualChildValue,path,name)),childPath}Pp.getValueProperty=function(name){return this.value[name]},Pp.get=function(){for(var names=[],_i=0;_i<arguments.length;_i++)names[_i]=arguments[_i];for(var path=this,count=names.length,i=0;i<count;++i)path=getChildPath(path,names[i]);return path},Pp.each=function(callback,context){for(var childPaths=[],len=this.value.length,i=0,i=0;i<len;++i)hasOwn.call(this.value,i)&&(childPaths[i]=this.get(i));for(context=context||this,i=0;i<len;++i)hasOwn.call(childPaths,i)&&callback.call(context,childPaths[i]);},Pp.map=function(callback,context){var result=[];return this.each(function(childPath){result.push(callback.call(this,childPath));},context),result},Pp.filter=function(callback,context){var result=[];return this.each(function(childPath){callback.call(this,childPath)&&result.push(childPath);},context),result};function emptyMoves(){}function getMoves(path,offset,start,end){if(isArray.assert(path.value),offset===0)return emptyMoves;var length=path.value.length;if(length<1)return emptyMoves;var argc=arguments.length;argc===2?(start=0,end=length):argc===3?(start=Math.max(start,0),end=length):(start=Math.max(start,0),end=Math.min(end,length)),isNumber.assert(start),isNumber.assert(end);for(var moves=Object.create(null),cache=getChildCache(path),i=start;i<end;++i)if(hasOwn.call(path.value,i)){var childPath=path.get(i);if(childPath.name!==i)throw new Error("");var newIndex=i+offset;childPath.name=newIndex,moves[newIndex]=childPath,delete cache[i];}return delete cache.length,function(){for(var newIndex2 in moves){var childPath2=moves[newIndex2];if(childPath2.name!==+newIndex2)throw new Error("");cache[newIndex2]=childPath2,path.value[newIndex2]=childPath2.value;}}}Pp.shift=function(){var move=getMoves(this,-1),result=this.value.shift();return move(),result},Pp.unshift=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var move=getMoves(this,args.length),result=this.value.unshift.apply(this.value,args);return move(),result},Pp.push=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return isArray.assert(this.value),delete getChildCache(this).length,this.value.push.apply(this.value,args)},Pp.pop=function(){isArray.assert(this.value);var cache=getChildCache(this);return delete cache[this.value.length-1],delete cache.length,this.value.pop()},Pp.insertAt=function(index){var argc=arguments.length,move=getMoves(this,argc-1,index);if(move===emptyMoves&&argc<=1)return this;index=Math.max(index,0);for(var i=1;i<argc;++i)this.value[index+i-1]=arguments[i];return move(),this},Pp.insertBefore=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var pp=this.parentPath,argc=args.length,insertAtArgs=[this.name],i=0;i<argc;++i)insertAtArgs.push(args[i]);return pp.insertAt.apply(pp,insertAtArgs)},Pp.insertAfter=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var pp=this.parentPath,argc=args.length,insertAtArgs=[this.name+1],i=0;i<argc;++i)insertAtArgs.push(args[i]);return pp.insertAt.apply(pp,insertAtArgs)};function repairRelationshipWithParent(path){if(!(path instanceof Path))throw new Error("");var pp=path.parentPath;if(!pp)return path;var parentValue=pp.value,parentCache=getChildCache(pp);if(parentValue[path.name]===path.value)parentCache[path.name]=path;else if(isArray.check(parentValue)){var i=parentValue.indexOf(path.value);i>=0&&(parentCache[path.name=i]=path);}else parentValue[path.name]=path.value,parentCache[path.name]=path;if(parentValue[path.name]!==path.value)throw new Error("");if(path.parentPath.get(path.name)!==path)throw new Error("");return path}return Pp.replace=function(replacement){var results=[],parentValue=this.parentPath.value,parentCache=getChildCache(this.parentPath),count=arguments.length;if(repairRelationshipWithParent(this),isArray.check(parentValue)){for(var originalLength=parentValue.length,move=getMoves(this.parentPath,count-1,this.name+1),spliceArgs=[this.name,1],i=0;i<count;++i)spliceArgs.push(arguments[i]);var splicedOut=parentValue.splice.apply(parentValue,spliceArgs);if(splicedOut[0]!==this.value)throw new Error("");if(parentValue.length!==originalLength-1+count)throw new Error("");if(move(),count===0)delete this.value,delete parentCache[this.name],this.__childCache=null;else {if(parentValue[this.name]!==replacement)throw new Error("");for(this.value!==replacement&&(this.value=replacement,this.__childCache=null),i=0;i<count;++i)results.push(this.parentPath.get(this.name+i));if(results[0]!==this)throw new Error("")}}else if(count===1)this.value!==replacement&&(this.__childCache=null),this.value=parentValue[this.name]=replacement,results.push(this);else if(count===0)delete parentValue[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return results},Path}exports.default=pathPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_scope=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/scope.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2()),hasOwn=Object.prototype.hasOwnProperty;function scopePlugin(fork){var types=fork.use(types_1.default),Type=types.Type,namedTypes=types.namedTypes,Node=namedTypes.Node,Expression=namedTypes.Expression,isArray=types.builtInTypes.array,b=types.builders,Scope=function Scope2(path,parentScope){if(!(this instanceof Scope2))throw new Error("Scope constructor cannot be invoked without 'new'");TypeParameterScopeType.check(path.value)||ScopeType.assert(path.value);var depth;if(parentScope){if(!(parentScope instanceof Scope2))throw new Error("");depth=parentScope.depth+1;}else parentScope=null,depth=0;Object.defineProperties(this,{path:{value:path},node:{value:path.value},isGlobal:{value:!parentScope,enumerable:!0},depth:{value:depth},parent:{value:parentScope},bindings:{value:{}},types:{value:{}}});},ScopeType=Type.or(namedTypes.Program,namedTypes.Function,namedTypes.CatchClause),TypeParameterScopeType=Type.or(namedTypes.Function,namedTypes.ClassDeclaration,namedTypes.ClassExpression,namedTypes.InterfaceDeclaration,namedTypes.TSInterfaceDeclaration,namedTypes.TypeAlias,namedTypes.TSTypeAliasDeclaration),FlowOrTSTypeParameterType=Type.or(namedTypes.TypeParameter,namedTypes.TSTypeParameter);Scope.isEstablishedBy=function(node){return ScopeType.check(node)||TypeParameterScopeType.check(node)};var Sp=Scope.prototype;Sp.didScan=!1,Sp.declares=function(name){return this.scan(),hasOwn.call(this.bindings,name)},Sp.declaresType=function(name){return this.scan(),hasOwn.call(this.types,name)},Sp.declareTemporary=function(prefix){if(prefix){if(!/^[a-z$_]/i.test(prefix))throw new Error("")}else prefix="t$";prefix+=this.depth.toString(36)+"$",this.scan();for(var index=0;this.declares(prefix+index);)++index;var name=prefix+index;return this.bindings[name]=types.builders.identifier(name)},Sp.injectTemporary=function(identifier,init){identifier||(identifier=this.declareTemporary());var bodyPath=this.path.get("body");return namedTypes.BlockStatement.check(bodyPath.value)&&(bodyPath=bodyPath.get("body")),bodyPath.unshift(b.variableDeclaration("var",[b.variableDeclarator(identifier,init||null)])),identifier},Sp.scan=function(force){if(force||!this.didScan){for(var name in this.bindings)delete this.bindings[name];for(var name in this.types)delete this.types[name];scanScope(this.path,this.bindings,this.types),this.didScan=!0;}},Sp.getBindings=function(){return this.scan(),this.bindings},Sp.getTypes=function(){return this.scan(),this.types};function scanScope(path,bindings,scopeTypes){var node=path.value;if(TypeParameterScopeType.check(node)){var params=path.get("typeParameters","params");isArray.check(params.value)&¶ms.each(function(childPath){addTypeParameter(childPath,scopeTypes);});}ScopeType.check(node)&&(namedTypes.CatchClause.check(node)?addPattern(path.get("param"),bindings):recursiveScanScope(path,bindings,scopeTypes));}function recursiveScanScope(path,bindings,scopeTypes){var node=path.value;path.parent&&namedTypes.FunctionExpression.check(path.parent.node)&&path.parent.node.id&&addPattern(path.parent.get("id"),bindings),node&&(isArray.check(node)?path.each(function(childPath){recursiveScanChild(childPath,bindings,scopeTypes);}):namedTypes.Function.check(node)?(path.get("params").each(function(paramPath){addPattern(paramPath,bindings);}),recursiveScanChild(path.get("body"),bindings,scopeTypes),recursiveScanScope(path.get("typeParameters"),bindings,scopeTypes)):namedTypes.TypeAlias&&namedTypes.TypeAlias.check(node)||namedTypes.InterfaceDeclaration&&namedTypes.InterfaceDeclaration.check(node)||namedTypes.TSTypeAliasDeclaration&&namedTypes.TSTypeAliasDeclaration.check(node)||namedTypes.TSInterfaceDeclaration&&namedTypes.TSInterfaceDeclaration.check(node)?addTypePattern(path.get("id"),scopeTypes):namedTypes.VariableDeclarator.check(node)?(addPattern(path.get("id"),bindings),recursiveScanChild(path.get("init"),bindings,scopeTypes)):node.type==="ImportSpecifier"||node.type==="ImportNamespaceSpecifier"||node.type==="ImportDefaultSpecifier"?addPattern(path.get(node.local?"local":node.name?"name":"id"),bindings):Node.check(node)&&!Expression.check(node)&&types.eachField(node,function(name,child){var childPath=path.get(name);if(!pathHasValue(childPath,child))throw new Error("");recursiveScanChild(childPath,bindings,scopeTypes);}));}function pathHasValue(path,value){return !!(path.value===value||Array.isArray(path.value)&&path.value.length===0&&Array.isArray(value)&&value.length===0)}function recursiveScanChild(path,bindings,scopeTypes){var node=path.value;if(!(!node||Expression.check(node)))if(namedTypes.FunctionDeclaration.check(node)&&node.id!==null)addPattern(path.get("id"),bindings);else if(namedTypes.ClassDeclaration&&namedTypes.ClassDeclaration.check(node)&&node.id!==null)addPattern(path.get("id"),bindings),recursiveScanScope(path.get("typeParameters"),bindings,scopeTypes);else if(namedTypes.InterfaceDeclaration&&namedTypes.InterfaceDeclaration.check(node)||namedTypes.TSInterfaceDeclaration&&namedTypes.TSInterfaceDeclaration.check(node))addTypePattern(path.get("id"),scopeTypes);else if(ScopeType.check(node)){if(namedTypes.CatchClause.check(node)&&namedTypes.Identifier.check(node.param)){var catchParamName=node.param.name,hadBinding=hasOwn.call(bindings,catchParamName);recursiveScanScope(path.get("body"),bindings,scopeTypes),hadBinding||delete bindings[catchParamName];}}else recursiveScanScope(path,bindings,scopeTypes);}function addPattern(patternPath,bindings){var pattern=patternPath.value;namedTypes.Pattern.assert(pattern),namedTypes.Identifier.check(pattern)?hasOwn.call(bindings,pattern.name)?bindings[pattern.name].push(patternPath):bindings[pattern.name]=[patternPath]:namedTypes.AssignmentPattern&&namedTypes.AssignmentPattern.check(pattern)?addPattern(patternPath.get("left"),bindings):namedTypes.ObjectPattern&&namedTypes.ObjectPattern.check(pattern)?patternPath.get("properties").each(function(propertyPath){var property=propertyPath.value;namedTypes.Pattern.check(property)?addPattern(propertyPath,bindings):namedTypes.Property.check(property)||namedTypes.ObjectProperty&&namedTypes.ObjectProperty.check(property)?addPattern(propertyPath.get("value"),bindings):namedTypes.SpreadProperty&&namedTypes.SpreadProperty.check(property)&&addPattern(propertyPath.get("argument"),bindings);}):namedTypes.ArrayPattern&&namedTypes.ArrayPattern.check(pattern)?patternPath.get("elements").each(function(elementPath){var element=elementPath.value;namedTypes.Pattern.check(element)?addPattern(elementPath,bindings):namedTypes.SpreadElement&&namedTypes.SpreadElement.check(element)&&addPattern(elementPath.get("argument"),bindings);}):namedTypes.PropertyPattern&&namedTypes.PropertyPattern.check(pattern)?addPattern(patternPath.get("pattern"),bindings):(namedTypes.SpreadElementPattern&&namedTypes.SpreadElementPattern.check(pattern)||namedTypes.RestElement&&namedTypes.RestElement.check(pattern)||namedTypes.SpreadPropertyPattern&&namedTypes.SpreadPropertyPattern.check(pattern))&&addPattern(patternPath.get("argument"),bindings);}function addTypePattern(patternPath,types2){var pattern=patternPath.value;namedTypes.Pattern.assert(pattern),namedTypes.Identifier.check(pattern)&&(hasOwn.call(types2,pattern.name)?types2[pattern.name].push(patternPath):types2[pattern.name]=[patternPath]);}function addTypeParameter(parameterPath,types2){var parameter=parameterPath.value;FlowOrTSTypeParameterType.assert(parameter),hasOwn.call(types2,parameter.name)?types2[parameter.name].push(parameterPath):types2[parameter.name]=[parameterPath];}return Sp.lookup=function(name){for(var scope=this;scope&&!scope.declares(name);scope=scope.parent);return scope},Sp.lookupType=function(name){for(var scope=this;scope&&!scope.declaresType(name);scope=scope.parent);return scope},Sp.getGlobalScope=function(){for(var scope=this;!scope.isGlobal;)scope=scope.parent;return scope},Scope}exports.default=scopePlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_node_path=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/node-path.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),path_1=tslib_1.__importDefault(require_path3()),scope_1=tslib_1.__importDefault(require_scope()),shared_1=require_shared();function nodePathPlugin(fork){var types=fork.use(types_1.default),n=types.namedTypes,b=types.builders,isNumber=types.builtInTypes.number,isArray=types.builtInTypes.array,Path=fork.use(path_1.default),Scope=fork.use(scope_1.default),NodePath=function NodePath2(value,parentPath,name){if(!(this instanceof NodePath2))throw new Error("NodePath constructor cannot be invoked without 'new'");Path.call(this,value,parentPath,name);},NPp=NodePath.prototype=Object.create(Path.prototype,{constructor:{value:NodePath,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(NPp,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),NPp.replace=function(){return delete this.node,delete this.parent,delete this.scope,Path.prototype.replace.apply(this,arguments)},NPp.prune=function(){var remainingNodePath=this.parent;return this.replace(),cleanUpNodesAfterPrune(remainingNodePath)},NPp._computeNode=function(){var value=this.value;if(n.Node.check(value))return value;var pp=this.parentPath;return pp&&pp.node||null},NPp._computeParent=function(){var value=this.value,pp=this.parentPath;if(!n.Node.check(value)){for(;pp&&!n.Node.check(pp.value);)pp=pp.parentPath;pp&&(pp=pp.parentPath);}for(;pp&&!n.Node.check(pp.value);)pp=pp.parentPath;return pp||null},NPp._computeScope=function(){var value=this.value,pp=this.parentPath,scope=pp&&pp.scope;return n.Node.check(value)&&Scope.isEstablishedBy(value)&&(scope=new Scope(this,scope)),scope||null},NPp.getValueProperty=function(name){return types.getFieldValue(this.value,name)},NPp.needsParens=function(assumeExpressionContext){var pp=this.parentPath;if(!pp)return !1;var node=this.value;if(!n.Expression.check(node)||node.type==="Identifier")return !1;for(;!n.Node.check(pp.value);)if(pp=pp.parentPath,!pp)return !1;var parent=pp.value;switch(node.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return parent.type==="MemberExpression"&&this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":return this.name==="callee"&&parent.callee===node;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":{var n_1=node,po=parent.operator,pp_1=PRECEDENCE[po],no=n_1.operator,np=PRECEDENCE[no];if(pp_1>np)return !0;if(pp_1===np&&this.name==="right"){if(parent.right!==n_1)throw new Error("Nodes must be equal");return !0}}default:return !1}case"SequenceExpression":switch(parent.type){case"ForStatement":return !1;case"ExpressionStatement":return this.name!=="expression";default:return !0}case"YieldExpression":switch(parent.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return !0;default:return !1}case"Literal":return parent.type==="MemberExpression"&&isNumber.check(node.value)&&this.name==="object"&&parent.object===node;case"AssignmentExpression":case"ConditionalExpression":switch(parent.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":return this.name==="callee"&&parent.callee===node;case"ConditionalExpression":return this.name==="test"&&parent.test===node;case"MemberExpression":return this.name==="object"&&parent.object===node;default:return !1}default:if(parent.type==="NewExpression"&&this.name==="callee"&&parent.callee===node)return containsCallExpression(node)}return !!(assumeExpressionContext!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function isBinary(node){return n.BinaryExpression.check(node)||n.LogicalExpression.check(node)}var PRECEDENCE={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});function containsCallExpression(node){return n.CallExpression.check(node)?!0:isArray.check(node)?node.some(containsCallExpression):n.Node.check(node)?types.someField(node,function(_name,child){return containsCallExpression(child)}):!1}NPp.canBeFirstInStatement=function(){var node=this.node;return !n.FunctionExpression.check(node)&&!n.ObjectExpression.check(node)},NPp.firstInStatement=function(){return firstInStatement(this)};function firstInStatement(path){for(var node,parent;path.parent;path=path.parent){if(node=path.node,parent=path.parent.node,n.BlockStatement.check(parent)&&path.parent.name==="body"&&path.name===0){if(parent.body[0]!==node)throw new Error("Nodes must be equal");return !0}if(n.ExpressionStatement.check(parent)&&path.name==="expression"){if(parent.expression!==node)throw new Error("Nodes must be equal");return !0}if(n.SequenceExpression.check(parent)&&path.parent.name==="expressions"&&path.name===0){if(parent.expressions[0]!==node)throw new Error("Nodes must be equal");continue}if(n.CallExpression.check(parent)&&path.name==="callee"){if(parent.callee!==node)throw new Error("Nodes must be equal");continue}if(n.MemberExpression.check(parent)&&path.name==="object"){if(parent.object!==node)throw new Error("Nodes must be equal");continue}if(n.ConditionalExpression.check(parent)&&path.name==="test"){if(parent.test!==node)throw new Error("Nodes must be equal");continue}if(isBinary(parent)&&path.name==="left"){if(parent.left!==node)throw new Error("Nodes must be equal");continue}if(n.UnaryExpression.check(parent)&&!parent.prefix&&path.name==="argument"){if(parent.argument!==node)throw new Error("Nodes must be equal");continue}return !1}return !0}function cleanUpNodesAfterPrune(remainingNodePath){if(n.VariableDeclaration.check(remainingNodePath.node)){var declarations=remainingNodePath.get("declarations").value;if(!declarations||declarations.length===0)return remainingNodePath.prune()}else if(n.ExpressionStatement.check(remainingNodePath.node)){if(!remainingNodePath.get("expression").value)return remainingNodePath.prune()}else n.IfStatement.check(remainingNodePath.node)&&cleanUpIfStatementAfterPrune(remainingNodePath);return remainingNodePath}function cleanUpIfStatementAfterPrune(ifStatement){var testExpression=ifStatement.get("test").value,alternate=ifStatement.get("alternate").value,consequent=ifStatement.get("consequent").value;if(!consequent&&!alternate){var testExpressionStatement=b.expressionStatement(testExpression);ifStatement.replace(testExpressionStatement);}else if(!consequent&&alternate){var negatedTestExpression=b.unaryExpression("!",testExpression,!0);n.UnaryExpression.check(testExpression)&&testExpression.operator==="!"&&(negatedTestExpression=testExpression.argument),ifStatement.get("test").replace(negatedTestExpression),ifStatement.get("consequent").replace(alternate),ifStatement.get("alternate").replace();}}return NodePath}exports.default=nodePathPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_path_visitor=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/path-visitor.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),node_path_1=tslib_1.__importDefault(require_node_path()),shared_1=require_shared(),hasOwn=Object.prototype.hasOwnProperty;function pathVisitorPlugin(fork){var types=fork.use(types_1.default),NodePath=fork.use(node_path_1.default),isArray=types.builtInTypes.array,isObject=types.builtInTypes.object,isFunction=types.builtInTypes.function,undefined2,PathVisitor=function PathVisitor2(){if(!(this instanceof PathVisitor2))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=computeMethodNameTable(this),this._shouldVisitComments=hasOwn.call(this._methodNameTable,"Block")||hasOwn.call(this._methodNameTable,"Line"),this.Context=makeContextConstructor(this),this._visiting=!1,this._changeReported=!1;};function computeMethodNameTable(visitor){var typeNames=Object.create(null);for(var methodName in visitor)/^visit[A-Z]/.test(methodName)&&(typeNames[methodName.slice(5)]=!0);for(var supertypeTable=types.computeSupertypeLookupTable(typeNames),methodNameTable=Object.create(null),typeNameKeys=Object.keys(supertypeTable),typeNameCount=typeNameKeys.length,i=0;i<typeNameCount;++i){var typeName=typeNameKeys[i];methodName="visit"+supertypeTable[typeName],isFunction.check(visitor[methodName])&&(methodNameTable[typeName]=methodName);}return methodNameTable}PathVisitor.fromMethodsObject=function(methods){if(methods instanceof PathVisitor)return methods;if(!isObject.check(methods))return new PathVisitor;var Visitor=function Visitor2(){if(!(this instanceof Visitor2))throw new Error("Visitor constructor cannot be invoked without 'new'");PathVisitor.call(this);},Vp=Visitor.prototype=Object.create(PVp);return Vp.constructor=Visitor,extend(Vp,methods),extend(Visitor,PathVisitor),isFunction.assert(Visitor.fromMethodsObject),isFunction.assert(Visitor.visit),new Visitor};function extend(target,source){for(var property in source)hasOwn.call(source,property)&&(target[property]=source[property]);return target}PathVisitor.visit=function(node,methods){return PathVisitor.fromMethodsObject(methods).visit(node)};var PVp=PathVisitor.prototype;PVp.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var argc=arguments.length,args=new Array(argc),i=0;i<argc;++i)args[i]=arguments[i];args[0]instanceof NodePath||(args[0]=new NodePath({root:args[0]}).get("root")),this.reset.apply(this,args);var didNotThrow;try{var root=this.visitWithoutReset(args[0]);didNotThrow=!0;}finally{if(this._visiting=!1,!didNotThrow&&this._abortRequested)return args[0].value}return root},PVp.AbortRequest=function(){},PVp.abort=function(){var visitor=this;visitor._abortRequested=!0;var request=new visitor.AbortRequest;throw request.cancel=function(){visitor._abortRequested=!1;},request},PVp.reset=function(_path){},PVp.visitWithoutReset=function(path){if(this instanceof this.Context)return this.visitor.visitWithoutReset(path);if(!(path instanceof NodePath))throw new Error("");var value=path.value,methodName=value&&typeof value=="object"&&typeof value.type=="string"&&this._methodNameTable[value.type];if(methodName){var context=this.acquireContext(path);try{return context.invokeVisitorMethod(methodName)}finally{this.releaseContext(context);}}else return visitChildren(path,this)};function visitChildren(path,visitor){if(!(path instanceof NodePath))throw new Error("");if(!(visitor instanceof PathVisitor))throw new Error("");var value=path.value;if(isArray.check(value))path.each(visitor.visitWithoutReset,visitor);else if(isObject.check(value)){var childNames=types.getFieldNames(value);visitor._shouldVisitComments&&value.comments&&childNames.indexOf("comments")<0&&childNames.push("comments");for(var childCount=childNames.length,childPaths=[],i=0;i<childCount;++i){var childName=childNames[i];hasOwn.call(value,childName)||(value[childName]=types.getFieldValue(value,childName)),childPaths.push(path.get(childName));}for(var i=0;i<childCount;++i)visitor.visitWithoutReset(childPaths[i]);}return path.value}PVp.acquireContext=function(path){return this._reusableContextStack.length===0?new this.Context(path):this._reusableContextStack.pop().reset(path)},PVp.releaseContext=function(context){if(!(context instanceof this.Context))throw new Error("");this._reusableContextStack.push(context),context.currentPath=null;},PVp.reportChanged=function(){this._changeReported=!0;},PVp.wasChangeReported=function(){return this._changeReported};function makeContextConstructor(visitor){function Context(path){if(!(this instanceof Context))throw new Error("");if(!(this instanceof PathVisitor))throw new Error("");if(!(path instanceof NodePath))throw new Error("");Object.defineProperty(this,"visitor",{value:visitor,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=path,this.needToCallTraverse=!0,Object.seal(this);}if(!(visitor instanceof PathVisitor))throw new Error("");var Cp=Context.prototype=Object.create(visitor);return Cp.constructor=Context,extend(Cp,sharedContextProtoMethods),Context}var sharedContextProtoMethods=Object.create(null);return sharedContextProtoMethods.reset=function(path){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");return this.currentPath=path,this.needToCallTraverse=!0,this},sharedContextProtoMethods.invokeVisitorMethod=function(methodName){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");var result=this.visitor[methodName].call(this,this.currentPath);if(result===!1?this.needToCallTraverse=!1:result!==undefined2&&(this.currentPath=this.currentPath.replace(result)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+methodName);var path=this.currentPath;return path&&path.value},sharedContextProtoMethods.traverse=function(path,newVisitor){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");return this.needToCallTraverse=!1,visitChildren(path,PathVisitor.fromMethodsObject(newVisitor||this.visitor))},sharedContextProtoMethods.visit=function(path,newVisitor){if(!(this instanceof this.Context))throw new Error("");if(!(path instanceof NodePath))throw new Error("");if(!(this.currentPath instanceof NodePath))throw new Error("");return this.needToCallTraverse=!1,PathVisitor.fromMethodsObject(newVisitor||this.visitor).visitWithoutReset(path)},sharedContextProtoMethods.reportChanged=function(){this.visitor.reportChanged();},sharedContextProtoMethods.abort=function(){this.needToCallTraverse=!1,this.visitor.abort();},PathVisitor}exports.default=pathVisitorPlugin;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_equiv=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/equiv.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),types_1=tslib_1.__importDefault(require_types2());function default_1(fork){var types=fork.use(types_1.default),getFieldNames=types.getFieldNames,getFieldValue=types.getFieldValue,isArray=types.builtInTypes.array,isObject=types.builtInTypes.object,isDate=types.builtInTypes.Date,isRegExp=types.builtInTypes.RegExp,hasOwn=Object.prototype.hasOwnProperty;function astNodesAreEquivalent(a,b,problemPath){return isArray.check(problemPath)?problemPath.length=0:problemPath=null,areEquivalent(a,b,problemPath)}astNodesAreEquivalent.assert=function(a,b){var problemPath=[];if(!astNodesAreEquivalent(a,b,problemPath))if(problemPath.length===0){if(a!==b)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+problemPath.map(subscriptForProperty).join(""))};function subscriptForProperty(property){return /[_$a-z][_$a-z0-9]*/i.test(property)?"."+property:"["+JSON.stringify(property)+"]"}function areEquivalent(a,b,problemPath){return a===b?!0:isArray.check(a)?arraysAreEquivalent(a,b,problemPath):isObject.check(a)?objectsAreEquivalent(a,b,problemPath):isDate.check(a)?isDate.check(b)&&+a==+b:isRegExp.check(a)?isRegExp.check(b)&&a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.ignoreCase===b.ignoreCase:a==b}function arraysAreEquivalent(a,b,problemPath){isArray.assert(a);var aLength=a.length;if(!isArray.check(b)||b.length!==aLength)return problemPath&&problemPath.push("length"),!1;for(var i=0;i<aLength;++i){if(problemPath&&problemPath.push(i),i in a!=i in b||!areEquivalent(a[i],b[i],problemPath))return !1;if(problemPath){var problemPathTail=problemPath.pop();if(problemPathTail!==i)throw new Error(""+problemPathTail)}}return !0}function objectsAreEquivalent(a,b,problemPath){if(isObject.assert(a),!isObject.check(b))return !1;if(a.type!==b.type)return problemPath&&problemPath.push("type"),!1;var aNames=getFieldNames(a),aNameCount=aNames.length,bNames=getFieldNames(b),bNameCount=bNames.length;if(aNameCount===bNameCount){for(var i=0;i<aNameCount;++i){var name=aNames[i],aChild=getFieldValue(a,name),bChild=getFieldValue(b,name);if(problemPath&&problemPath.push(name),!areEquivalent(aChild,bChild,problemPath))return !1;if(problemPath){var problemPathTail=problemPath.pop();if(problemPathTail!==name)throw new Error(""+problemPathTail)}}return !0}if(!problemPath)return !1;var seenNames=Object.create(null);for(i=0;i<aNameCount;++i)seenNames[aNames[i]]=!0;for(i=0;i<bNameCount;++i){if(name=bNames[i],!hasOwn.call(seenNames,name))return problemPath.push(name),!1;delete seenNames[name];}for(name in seenNames){problemPath.push(name);break}return !1}return astNodesAreEquivalent}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_fork=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/fork.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),path_visitor_1=tslib_1.__importDefault(require_path_visitor()),equiv_1=tslib_1.__importDefault(require_equiv()),path_1=tslib_1.__importDefault(require_path3()),node_path_1=tslib_1.__importDefault(require_node_path()),shared_1=require_shared();function default_1(plugins){var fork=createFork(),types=fork.use(types_1.default);plugins.forEach(fork.use),types.finalize();var PathVisitor=fork.use(path_visitor_1.default);return {Type:types.Type,builtInTypes:types.builtInTypes,namedTypes:types.namedTypes,builders:types.builders,defineMethod:types.defineMethod,getFieldNames:types.getFieldNames,getFieldValue:types.getFieldValue,eachField:types.eachField,someField:types.someField,getSupertypeNames:types.getSupertypeNames,getBuilderName:types.getBuilderName,astNodesAreEquivalent:fork.use(equiv_1.default),finalize:types.finalize,Path:fork.use(path_1.default),NodePath:fork.use(node_path_1.default),PathVisitor,use:fork.use,visit:PathVisitor.visit}}exports.default=default_1;function createFork(){var used=[],usedResult=[];function use(plugin){var idx=used.indexOf(plugin);return idx===-1&&(idx=used.length,used.push(plugin),usedResult[idx]=plugin(fork)),usedResult[idx]}var fork={use};return fork}(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_core6=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var shared_1=require_shared();function default_1(){return {BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2016=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2016.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),core_1=tslib_1.__importDefault(require_core6());function default_1(fork){var result=fork.use(core_1.default);return result.BinaryOperators.indexOf("**")<0&&result.BinaryOperators.push("**"),result.AssignmentOperators.indexOf("**=")<0&&result.AssignmentOperators.push("**="),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2020=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2020.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),es2016_1=tslib_1.__importDefault(require_es2016());function default_1(fork){var result=fork.use(es2016_1.default);return result.LogicalOperators.indexOf("??")<0&&result.LogicalOperators.push("??"),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2021=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/operators/es2021.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),shared_1=require_shared(),es2020_1=tslib_1.__importDefault(require_es2020());function default_1(fork){var result=fork.use(es2020_1.default);return result.LogicalOperators.forEach(function(op){var assignOp=op+"=";result.AssignmentOperators.indexOf(assignOp)<0&&result.AssignmentOperators.push(assignOp);}),result}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_core7=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),core_1=tslib_1.__importDefault(require_core6()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var types=fork.use(types_1.default),Type=types.Type,def=Type.def,or=Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults,geq=shared.geq,_a=fork.use(core_1.default),BinaryOperators=_a.BinaryOperators,AssignmentOperators=_a.AssignmentOperators,LogicalOperators=_a.LogicalOperators;def("Printable").field("loc",or(def("SourceLocation"),null),defaults.null,!0),def("Node").bases("Printable").field("type",String).field("comments",or([def("Comment")],null),defaults.null,!0),def("SourceLocation").field("start",def("Position")).field("end",def("Position")).field("source",or(String,null),defaults.null),def("Position").field("line",geq(1)).field("column",geq(0)),def("File").bases("Node").build("program","name").field("program",def("Program")).field("name",or(String,null),defaults.null),def("Program").bases("Node").build("body").field("body",[def("Statement")]),def("Function").bases("Node").field("id",or(def("Identifier"),null),defaults.null).field("params",[def("Pattern")]).field("body",def("BlockStatement")).field("generator",Boolean,defaults.false).field("async",Boolean,defaults.false),def("Statement").bases("Node"),def("EmptyStatement").bases("Statement").build(),def("BlockStatement").bases("Statement").build("body").field("body",[def("Statement")]),def("ExpressionStatement").bases("Statement").build("expression").field("expression",def("Expression")),def("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Statement")).field("alternate",or(def("Statement"),null),defaults.null),def("LabeledStatement").bases("Statement").build("label","body").field("label",def("Identifier")).field("body",def("Statement")),def("BreakStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults.null),def("ContinueStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults.null),def("WithStatement").bases("Statement").build("object","body").field("object",def("Expression")).field("body",def("Statement")),def("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",def("Expression")).field("cases",[def("SwitchCase")]).field("lexical",Boolean,defaults.false),def("ReturnStatement").bases("Statement").build("argument").field("argument",or(def("Expression"),null)),def("ThrowStatement").bases("Statement").build("argument").field("argument",def("Expression")),def("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",def("BlockStatement")).field("handler",or(def("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[def("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[def("CatchClause")],defaults.emptyArray).field("finalizer",or(def("BlockStatement"),null),defaults.null),def("CatchClause").bases("Node").build("param","guard","body").field("param",def("Pattern")).field("guard",or(def("Expression"),null),defaults.null).field("body",def("BlockStatement")),def("WhileStatement").bases("Statement").build("test","body").field("test",def("Expression")).field("body",def("Statement")),def("DoWhileStatement").bases("Statement").build("body","test").field("body",def("Statement")).field("test",def("Expression")),def("ForStatement").bases("Statement").build("init","test","update","body").field("init",or(def("VariableDeclaration"),def("Expression"),null)).field("test",or(def("Expression"),null)).field("update",or(def("Expression"),null)).field("body",def("Statement")),def("ForInStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement")),def("DebuggerStatement").bases("Statement").build(),def("Declaration").bases("Statement"),def("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",def("Identifier")),def("FunctionExpression").bases("Function","Expression").build("id","params","body"),def("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",or("var","let","const")).field("declarations",[def("VariableDeclarator")]),def("VariableDeclarator").bases("Node").build("id","init").field("id",def("Pattern")).field("init",or(def("Expression"),null),defaults.null),def("Expression").bases("Node"),def("ThisExpression").bases("Expression").build(),def("ArrayExpression").bases("Expression").build("elements").field("elements",[or(def("Expression"),null)]),def("ObjectExpression").bases("Expression").build("properties").field("properties",[def("Property")]),def("Property").bases("Node").build("kind","key","value").field("kind",or("init","get","set")).field("key",or(def("Literal"),def("Identifier"))).field("value",def("Expression")),def("SequenceExpression").bases("Expression").build("expressions").field("expressions",[def("Expression")]);var UnaryOperator=or("-","+","!","~","typeof","void","delete");def("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",UnaryOperator).field("argument",def("Expression")).field("prefix",Boolean,defaults.true);var BinaryOperator=or.apply(void 0,BinaryOperators);def("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",BinaryOperator).field("left",def("Expression")).field("right",def("Expression"));var AssignmentOperator=or.apply(void 0,AssignmentOperators);def("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",AssignmentOperator).field("left",or(def("Pattern"),def("MemberExpression"))).field("right",def("Expression"));var UpdateOperator=or("++","--");def("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",UpdateOperator).field("argument",def("Expression")).field("prefix",Boolean);var LogicalOperator=or.apply(void 0,LogicalOperators);def("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",LogicalOperator).field("left",def("Expression")).field("right",def("Expression")),def("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Expression")).field("alternate",def("Expression")),def("NewExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]),def("CallExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]),def("MemberExpression").bases("Expression").build("object","property","computed").field("object",def("Expression")).field("property",or(def("Identifier"),def("Expression"))).field("computed",Boolean,function(){var type=this.property.type;return type==="Literal"||type==="MemberExpression"||type==="BinaryExpression"}),def("Pattern").bases("Node"),def("SwitchCase").bases("Node").build("test","consequent").field("test",or(def("Expression"),null)).field("consequent",[def("Statement")]),def("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,defaults.false),def("Literal").bases("Expression").build("value").field("value",or(String,Boolean,null,Number,RegExp,BigInt)),def("Comment").bases("Printable").field("value",String).field("leading",Boolean,defaults.true).field("trailing",Boolean,defaults.false);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es6=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es6.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),core_1=tslib_1.__importDefault(require_core7()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(core_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("Function").field("generator",Boolean,defaults.false).field("expression",Boolean,defaults.false).field("defaults",[or(def("Expression"),null)],defaults.emptyArray).field("rest",or(def("Identifier"),null),defaults.null),def("RestElement").bases("Pattern").build("argument").field("argument",def("Pattern")).field("typeAnnotation",or(def("TypeAnnotation"),def("TSTypeAnnotation"),null),defaults.null),def("SpreadElementPattern").bases("Pattern").build("argument").field("argument",def("Pattern")),def("FunctionDeclaration").build("id","params","body","generator","expression").field("id",or(def("Identifier"),null)),def("FunctionExpression").build("id","params","body","generator","expression"),def("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,defaults.null).field("body",or(def("BlockStatement"),def("Expression"))).field("generator",!1,defaults.false),def("ForOfStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Pattern"))).field("right",def("Expression")).field("body",def("Statement")),def("YieldExpression").bases("Expression").build("argument","delegate").field("argument",or(def("Expression"),null)).field("delegate",Boolean,defaults.false),def("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null)),def("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null)),def("ComprehensionBlock").bases("Node").build("left","right","each").field("left",def("Pattern")).field("right",def("Expression")).field("each",Boolean),def("Property").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("value",or(def("Expression"),def("Pattern"))).field("method",Boolean,defaults.false).field("shorthand",Boolean,defaults.false).field("computed",Boolean,defaults.false),def("ObjectProperty").field("shorthand",Boolean,defaults.false),def("PropertyPattern").bases("Pattern").build("key","pattern").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("pattern",def("Pattern")).field("computed",Boolean,defaults.false),def("ObjectPattern").bases("Pattern").build("properties").field("properties",[or(def("PropertyPattern"),def("Property"))]),def("ArrayPattern").bases("Pattern").build("elements").field("elements",[or(def("Pattern"),null)]),def("SpreadElement").bases("Node").build("argument").field("argument",def("Expression")),def("ArrayExpression").field("elements",[or(def("Expression"),def("SpreadElement"),def("RestElement"),null)]),def("NewExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]),def("CallExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]),def("AssignmentPattern").bases("Pattern").build("left","right").field("left",def("Pattern")).field("right",def("Expression")),def("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",or("constructor","method","get","set")).field("key",def("Expression")).field("value",def("Function")).field("computed",Boolean,defaults.false).field("static",Boolean,defaults.false);var ClassBodyElement=or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("StaticBlock"));def("ClassProperty").bases("Declaration").build("key").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("computed",Boolean,defaults.false),def("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",ClassBodyElement),def("ClassBody").bases("Declaration").build("body").field("body",[ClassBodyElement]),def("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",or(def("Identifier"),null)).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults.null),def("ClassExpression").bases("Expression").build("id","body","superClass").field("id",or(def("Identifier"),null),defaults.null).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults.null),def("Super").bases("Expression").build(),def("Specifier").bases("Node"),def("ModuleSpecifier").bases("Specifier").field("local",or(def("Identifier"),null),defaults.null).field("id",or(def("Identifier"),null),defaults.null).field("name",or(def("Identifier"),null),defaults.null),def("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",def("Identifier")),def("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),def("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),def("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[or(def("ImportSpecifier"),def("ImportNamespaceSpecifier"),def("ImportDefaultSpecifier"))],defaults.emptyArray).field("source",def("Literal")).field("importKind",or("value","type"),function(){return "value"}),def("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",or(def("Declaration"),null)).field("specifiers",[def("ExportSpecifier")],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",def("Identifier")),def("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",or(def("Declaration"),def("Expression"))),def("ExportAllDeclaration").bases("Declaration").build("source").field("source",def("Literal")),def("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",def("Expression")).field("quasi",def("TemplateLiteral")),def("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[def("TemplateElement")]).field("expressions",[def("Expression")]),def("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),def("MetaProperty").bases("Expression").build("meta","property").field("meta",def("Identifier")).field("property",def("Identifier"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20162=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2016.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2016_1=tslib_1.__importDefault(require_es2016()),es6_1=tslib_1.__importDefault(require_es6()),shared_1=require_shared();function default_1(fork){fork.use(es2016_1.default),fork.use(es6_1.default);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2017=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2017.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2016_1=tslib_1.__importDefault(require_es20162()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2016_1.default);var types=fork.use(types_1.default),def=types.Type.def,defaults=fork.use(shared_1.default).defaults;def("Function").field("async",Boolean,defaults.false),def("AwaitExpression").bases("Expression").build("argument").field("argument",def("Expression"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2018=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2018.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2017_1=tslib_1.__importDefault(require_es2017()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2017_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("ForOfStatement").field("await",Boolean,defaults.false),def("SpreadProperty").bases("Node").build("argument").field("argument",def("Expression")),def("ObjectExpression").field("properties",[or(def("Property"),def("SpreadProperty"),def("SpreadElement"))]),def("TemplateElement").field("value",{cooked:or(String,null),raw:String}),def("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",def("Pattern")),def("ObjectPattern").field("properties",[or(def("PropertyPattern"),def("Property"),def("RestElement"),def("SpreadPropertyPattern"))]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2019=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2019.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2018_1=tslib_1.__importDefault(require_es2018()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2018_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("CatchClause").field("param",or(def("Pattern"),null),defaults.null);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20202=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2020.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2020_1=tslib_1.__importDefault(require_es2020()),es2019_1=tslib_1.__importDefault(require_es2019()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es2020_1.default),fork.use(es2019_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults;def("ImportExpression").bases("Expression").build("source").field("source",def("Expression")),def("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",def("Literal")).field("exported",or(def("Identifier"),null,void 0),defaults.null),def("ChainElement").bases("Node").field("optional",Boolean,defaults.false),def("CallExpression").bases("Expression","ChainElement"),def("MemberExpression").bases("Expression","ChainElement"),def("ChainExpression").bases("Expression").build("expression").field("expression",def("ChainElement")),def("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,defaults.true),def("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,defaults.true);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es20212=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2021.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2021_1=tslib_1.__importDefault(require_es2021()),es2020_1=tslib_1.__importDefault(require_es20202()),shared_1=require_shared();function default_1(fork){fork.use(es2021_1.default),fork.use(es2020_1.default);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es2022=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es2022.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es2021_1=tslib_1.__importDefault(require_es20212()),types_1=tslib_1.__importDefault(require_types2()),shared_1=require_shared();function default_1(fork){fork.use(es2021_1.default);var types=fork.use(types_1.default),def=types.Type.def;def("StaticBlock").bases("Declaration").build("body").field("body",[def("Statement")]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_es_proposals=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/es-proposals.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared()),es2022_1=tslib_1.__importDefault(require_es2022());function default_1(fork){fork.use(es2022_1.default);var types=fork.use(types_1.default),Type=types.Type,def=types.Type.def,or=Type.or,shared=fork.use(shared_1.default),defaults=shared.defaults;def("AwaitExpression").build("argument","all").field("argument",or(def("Expression"),null)).field("all",Boolean,defaults.false),def("Decorator").bases("Node").build("expression").field("expression",def("Expression")),def("Property").field("decorators",or([def("Decorator")],null),defaults.null),def("MethodDefinition").field("decorators",or([def("Decorator")],null),defaults.null),def("PrivateName").bases("Expression","Pattern").build("id").field("id",def("Identifier")),def("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",def("PrivateName")).field("value",or(def("Expression"),null),defaults.null),def("ImportAttribute").bases("Node").build("key","value").field("key",or(def("Identifier"),def("Literal"))).field("value",def("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(decl){def(decl).field("assertions",[def("ImportAttribute")],defaults.emptyArray);}),def("RecordExpression").bases("Expression").build("properties").field("properties",[or(def("ObjectProperty"),def("ObjectMethod"),def("SpreadElement"))]),def("TupleExpression").bases("Expression").build("elements").field("elements",[or(def("Expression"),def("SpreadElement"),null)]),def("ModuleExpression").bases("Node").build("body").field("body",def("Program"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_jsx3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/jsx.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("JSXAttribute").bases("Node").build("name","value").field("name",or(def("JSXIdentifier"),def("JSXNamespacedName"))).field("value",or(def("Literal"),def("JSXExpressionContainer"),def("JSXElement"),def("JSXFragment"),null),defaults.null),def("JSXIdentifier").bases("Identifier").build("name").field("name",String),def("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",def("JSXIdentifier")).field("name",def("JSXIdentifier")),def("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",or(def("JSXIdentifier"),def("JSXMemberExpression"))).field("property",def("JSXIdentifier")).field("computed",Boolean,defaults.false);var JSXElementName=or(def("JSXIdentifier"),def("JSXNamespacedName"),def("JSXMemberExpression"));def("JSXSpreadAttribute").bases("Node").build("argument").field("argument",def("Expression"));var JSXAttributes=[or(def("JSXAttribute"),def("JSXSpreadAttribute"))];def("JSXExpressionContainer").bases("Expression").build("expression").field("expression",or(def("Expression"),def("JSXEmptyExpression")));var JSXChildren=[or(def("JSXText"),def("JSXExpressionContainer"),def("JSXSpreadChild"),def("JSXElement"),def("JSXFragment"),def("Literal"))];def("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",def("JSXOpeningElement")).field("closingElement",or(def("JSXClosingElement"),null),defaults.null).field("children",JSXChildren,defaults.emptyArray).field("name",JSXElementName,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",JSXAttributes,function(){return this.openingElement.attributes},!0),def("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",JSXElementName).field("attributes",JSXAttributes,defaults.emptyArray).field("selfClosing",Boolean,defaults.false),def("JSXClosingElement").bases("Node").build("name").field("name",JSXElementName),def("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",def("JSXOpeningFragment")).field("closingFragment",def("JSXClosingFragment")).field("children",JSXChildren,defaults.emptyArray),def("JSXOpeningFragment").bases("Node").build(),def("JSXClosingFragment").bases("Node").build(),def("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),def("JSXEmptyExpression").bases("Node").build(),def("JSXSpreadChild").bases("Node").build("expression").field("expression",def("Expression"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_type_annotations=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/type-annotations.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults,TypeAnnotation=or(def("TypeAnnotation"),def("TSTypeAnnotation"),null),TypeParamDecl=or(def("TypeParameterDeclaration"),def("TSTypeParameterDeclaration"),null);def("Identifier").field("typeAnnotation",TypeAnnotation,defaults.null),def("ObjectPattern").field("typeAnnotation",TypeAnnotation,defaults.null),def("Function").field("returnType",TypeAnnotation,defaults.null).field("typeParameters",TypeParamDecl,defaults.null),def("ClassProperty").build("key","value","typeAnnotation","static").field("value",or(def("Expression"),null)).field("static",Boolean,defaults.false).field("typeAnnotation",TypeAnnotation,defaults.null),["ClassDeclaration","ClassExpression"].forEach(function(typeName){def(typeName).field("typeParameters",TypeParamDecl,defaults.null).field("superTypeParameters",or(def("TypeParameterInstantiation"),def("TSTypeParameterInstantiation"),null),defaults.null).field("implements",or([def("ClassImplements")],[def("TSExpressionWithTypeArguments")]),defaults.emptyArray);});}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_flow3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/flow.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),type_annotations_1=tslib_1.__importDefault(require_type_annotations()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default),fork.use(type_annotations_1.default);var types=fork.use(types_1.default),def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults;def("Flow").bases("Node"),def("FlowType").bases("Flow"),def("AnyTypeAnnotation").bases("FlowType").build(),def("EmptyTypeAnnotation").bases("FlowType").build(),def("MixedTypeAnnotation").bases("FlowType").build(),def("VoidTypeAnnotation").bases("FlowType").build(),def("SymbolTypeAnnotation").bases("FlowType").build(),def("NumberTypeAnnotation").bases("FlowType").build(),def("BigIntTypeAnnotation").bases("FlowType").build(),def("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),def("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),def("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),def("StringTypeAnnotation").bases("FlowType").build(),def("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),def("BooleanTypeAnnotation").bases("FlowType").build(),def("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),def("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",def("FlowType")),def("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",def("FlowType")),def("NullLiteralTypeAnnotation").bases("FlowType").build(),def("NullTypeAnnotation").bases("FlowType").build(),def("ThisTypeAnnotation").bases("FlowType").build(),def("ExistsTypeAnnotation").bases("FlowType").build(),def("ExistentialTypeParam").bases("FlowType").build(),def("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[def("FunctionTypeParam")]).field("returnType",def("FlowType")).field("rest",or(def("FunctionTypeParam"),null)).field("typeParameters",or(def("TypeParameterDeclaration"),null)),def("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",or(def("Identifier"),null)).field("typeAnnotation",def("FlowType")).field("optional",Boolean),def("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",def("FlowType")),def("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[or(def("ObjectTypeProperty"),def("ObjectTypeSpreadProperty"))]).field("indexers",[def("ObjectTypeIndexer")],defaults.emptyArray).field("callProperties",[def("ObjectTypeCallProperty")],defaults.emptyArray).field("inexact",or(Boolean,void 0),defaults.undefined).field("exact",Boolean,defaults.false).field("internalSlots",[def("ObjectTypeInternalSlot")],defaults.emptyArray),def("Variance").bases("Node").build("kind").field("kind",or("plus","minus"));var LegacyVariance=or(def("Variance"),"plus","minus",null);def("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",or(def("Literal"),def("Identifier"))).field("value",def("FlowType")).field("optional",Boolean).field("variance",LegacyVariance,defaults.null),def("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",def("Identifier")).field("key",def("FlowType")).field("value",def("FlowType")).field("variance",LegacyVariance,defaults.null).field("static",Boolean,defaults.false),def("ObjectTypeCallProperty").bases("Node").build("value").field("value",def("FunctionTypeAnnotation")).field("static",Boolean,defaults.false),def("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("id",def("Identifier")),def("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("typeParameters",or(def("TypeParameterInstantiation"),null)),def("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",def("Identifier")).field("property",or(def("MemberTypeAnnotation"),def("GenericTypeAnnotation"))),def("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",def("FlowType")).field("indexType",def("FlowType")),def("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",def("FlowType")).field("indexType",def("FlowType")).field("optional",Boolean),def("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",def("FlowType")),def("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",def("FlowType")),def("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",def("Identifier")).field("value",def("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),def("TypeParameterDeclaration").bases("Node").build("params").field("params",[def("TypeParameter")]),def("TypeParameterInstantiation").bases("Node").build("params").field("params",[def("FlowType")]),def("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",LegacyVariance,defaults.null).field("bound",or(def("TypeAnnotation"),null),defaults.null).field("default",or(def("FlowType"),null),defaults.null),def("ClassProperty").field("variance",LegacyVariance,defaults.null),def("ClassImplements").bases("Node").build("id").field("id",def("Identifier")).field("superClass",or(def("Expression"),null),defaults.null).field("typeParameters",or(def("TypeParameterInstantiation"),null),defaults.null),def("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",def("ObjectTypeAnnotation")).field("extends",or([def("InterfaceExtends")],null),defaults.null),def("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null),defaults.null).field("body",def("ObjectTypeAnnotation")).field("extends",[def("InterfaceExtends")]),def("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),def("InterfaceExtends").bases("Node").build("id").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterInstantiation"),null),defaults.null),def("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null)).field("right",def("FlowType")),def("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),def("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null)).field("impltype",def("FlowType")).field("supertype",or(def("FlowType"),null)),def("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",or(def("FlowType"),null)),def("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TypeAnnotation")),def("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[def("FlowType")]),def("DeclareVariable").bases("Statement").build("id").field("id",def("Identifier")),def("DeclareFunction").bases("Statement").build("id").field("id",def("Identifier")).field("predicate",or(def("FlowPredicate"),null),defaults.null),def("DeclareClass").bases("InterfaceDeclaration").build("id"),def("DeclareModule").bases("Statement").build("id","body").field("id",or(def("Identifier"),def("Literal"))).field("body",def("BlockStatement")),def("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",def("TypeAnnotation")),def("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",or(def("DeclareVariable"),def("DeclareFunction"),def("DeclareClass"),def("FlowType"),def("TypeAlias"),def("DeclareOpaqueType"),def("InterfaceDeclaration"),null)).field("specifiers",[or(def("ExportSpecifier"),def("ExportBatchSpecifier"))],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",or(def("Literal"),null),defaults.null),def("ImportDeclaration").field("importKind",or("value","type","typeof"),function(){return "value"}),def("FlowPredicate").bases("Flow"),def("InferredPredicate").bases("FlowPredicate").build(),def("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",def("Expression")),def("Function").field("predicate",or(def("FlowPredicate"),null),defaults.null),def("CallExpression").field("typeArguments",or(null,def("TypeParameterInstantiation")),defaults.null),def("NewExpression").field("typeArguments",or(null,def("TypeParameterInstantiation")),defaults.null),def("EnumDeclaration").bases("Declaration").build("id","body").field("id",def("Identifier")).field("body",or(def("EnumBooleanBody"),def("EnumNumberBody"),def("EnumStringBody"),def("EnumSymbolBody"))),def("EnumBooleanBody").build("members","explicitType").field("members",[def("EnumBooleanMember")]).field("explicitType",Boolean),def("EnumNumberBody").build("members","explicitType").field("members",[def("EnumNumberMember")]).field("explicitType",Boolean),def("EnumStringBody").build("members","explicitType").field("members",or([def("EnumStringMember")],[def("EnumDefaultedMember")])).field("explicitType",Boolean),def("EnumSymbolBody").build("members").field("members",[def("EnumDefaultedMember")]),def("EnumBooleanMember").build("id","init").field("id",def("Identifier")).field("init",or(def("Literal"),Boolean)),def("EnumNumberMember").build("id","init").field("id",def("Identifier")).field("init",def("Literal")),def("EnumStringMember").build("id","init").field("id",def("Identifier")).field("init",def("Literal")),def("EnumDefaultedMember").build("id").field("id",def("Identifier"));}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_esprima=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/esprima.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(es_proposals_1.default);var types=fork.use(types_1.default),defaults=fork.use(shared_1.default).defaults,def=types.Type.def,or=types.Type.or;def("VariableDeclaration").field("declarations",[or(def("VariableDeclarator"),def("Identifier"))]),def("Property").field("value",or(def("Expression"),def("Pattern"))),def("ArrayPattern").field("elements",[or(def("Pattern"),def("SpreadElement"),null)]),def("ObjectPattern").field("properties",[or(def("Property"),def("PropertyPattern"),def("SpreadPropertyPattern"),def("SpreadProperty"))]),def("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),def("ExportBatchSpecifier").bases("Specifier").build(),def("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",or(def("Declaration"),def("Expression"),null)).field("specifiers",[or(def("ExportSpecifier"),def("ExportBatchSpecifier"))],defaults.emptyArray).field("source",or(def("Literal"),null),defaults.null),def("Block").bases("Comment").build("value","leading","trailing"),def("Line").bases("Comment").build("value","leading","trailing");}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_babel_core=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/babel-core.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){var _a,_b,_c,_d,_e;fork.use(es_proposals_1.default);var types=fork.use(types_1.default),defaults=fork.use(shared_1.default).defaults,def=types.Type.def,or=types.Type.or,isUndefined=types.builtInTypes.undefined;def("Noop").bases("Statement").build(),def("DoExpression").bases("Expression").build("body").field("body",[def("Statement")]),def("BindExpression").bases("Expression").build("object","callee").field("object",or(def("Expression"),null)).field("callee",def("Expression")),def("ParenthesizedExpression").bases("Expression").build("expression").field("expression",def("Expression")),def("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",def("Identifier")),def("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",def("Identifier")),def("CommentBlock").bases("Comment").build("value","leading","trailing"),def("CommentLine").bases("Comment").build("value","leading","trailing"),def("Directive").bases("Node").build("value").field("value",def("DirectiveLiteral")),def("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,defaults["use strict"]),def("InterpreterDirective").bases("Node").build("value").field("value",String),def("BlockStatement").bases("Statement").build("body").field("body",[def("Statement")]).field("directives",[def("Directive")],defaults.emptyArray),def("Program").bases("Node").build("body").field("body",[def("Statement")]).field("directives",[def("Directive")],defaults.emptyArray).field("interpreter",or(def("InterpreterDirective"),null),defaults.null);function makeLiteralExtra(rawValueType,toRaw){return rawValueType===void 0&&(rawValueType=String),["extra",{rawValue:rawValueType,raw:String},function(){var value=types.getFieldValue(this,"value");return {rawValue:value,raw:toRaw?toRaw(value):String(value)}}]}(_a=def("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(_a,makeLiteralExtra(String,function(val){return JSON.stringify(val)})),(_b=def("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",or(String,null),defaults.null)).field.apply(_b,makeLiteralExtra(Number)),(_c=def("BigIntLiteral").bases("Literal").build("value").field("value",or(String,Number))).field.apply(_c,makeLiteralExtra(String,function(val){return val+"n"})),(_d=def("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(_d,makeLiteralExtra(String,function(val){return val+"m"})),def("NullLiteral").bases("Literal").build().field("value",null,defaults.null),def("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(_e=def("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(_e,makeLiteralExtra(or(RegExp,isUndefined),function(exp){return "/".concat(exp.pattern,"/").concat(exp.flags||"")})).field("regex",{pattern:String,flags:String},function(){return {pattern:this.pattern,flags:this.flags}});var ObjectExpressionProperty=or(def("Property"),def("ObjectMethod"),def("ObjectProperty"),def("SpreadProperty"),def("SpreadElement"));def("ObjectExpression").bases("Expression").build("properties").field("properties",[ObjectExpressionProperty]),def("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",or("method","get","set")).field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("params",[def("Pattern")]).field("body",def("BlockStatement")).field("computed",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("async",Boolean,defaults.false).field("accessibility",or(def("Literal"),null),defaults.null).field("decorators",or([def("Decorator")],null),defaults.null),def("ObjectProperty").bases("Node").build("key","value").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("value",or(def("Expression"),def("Pattern"))).field("accessibility",or(def("Literal"),null),defaults.null).field("computed",Boolean,defaults.false);var ClassBodyElement=or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("ClassPrivateProperty"),def("ClassMethod"),def("ClassPrivateMethod"),def("ClassAccessorProperty"),def("StaticBlock"));def("ClassBody").bases("Declaration").build("body").field("body",[ClassBodyElement]),def("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",or(def("Literal"),def("Identifier"),def("Expression"))),def("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",def("PrivateName")),def("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",or(def("Literal"),def("Identifier"),def("PrivateName"),def("Expression"))).field("value",or(def("Expression"),null),defaults.null),["ClassMethod","ClassPrivateMethod"].forEach(function(typeName){def(typeName).field("kind",or("get","set","method","constructor"),function(){return "method"}).field("body",def("BlockStatement")).field("access",or("public","private","protected",null),defaults.null);}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(typeName){def(typeName).field("computed",Boolean,defaults.false).field("static",Boolean,defaults.false).field("abstract",Boolean,defaults.false).field("accessibility",or("public","private","protected",null),defaults.null).field("decorators",or([def("Decorator")],null),defaults.null).field("definite",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("override",Boolean,defaults.false).field("readonly",Boolean,defaults.false);});var ObjectPatternProperty=or(def("Property"),def("PropertyPattern"),def("SpreadPropertyPattern"),def("SpreadProperty"),def("ObjectProperty"),def("RestProperty"),def("RestElement"));def("ObjectPattern").bases("Pattern").build("properties").field("properties",[ObjectPatternProperty]).field("decorators",or([def("Decorator")],null),defaults.null),def("SpreadProperty").bases("Node").build("argument").field("argument",def("Expression")),def("RestProperty").bases("Node").build("argument").field("argument",def("Expression")),def("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement")),def("Import").bases("Expression").build();}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_babel=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/babel.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),types_1=tslib_1.__importDefault(require_types2()),babel_core_1=tslib_1.__importDefault(require_babel_core()),flow_1=tslib_1.__importDefault(require_flow3()),shared_1=require_shared();function default_1(fork){var types=fork.use(types_1.default),def=types.Type.def;fork.use(babel_core_1.default),fork.use(flow_1.default),def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),def("TopicReference").bases("Expression").build();}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_typescript3=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/def/typescript.js"(exports,module){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),babel_core_1=tslib_1.__importDefault(require_babel_core()),type_annotations_1=tslib_1.__importDefault(require_type_annotations()),types_1=tslib_1.__importDefault(require_types2()),shared_1=tslib_1.__importStar(require_shared());function default_1(fork){fork.use(babel_core_1.default),fork.use(type_annotations_1.default);var types=fork.use(types_1.default),n=types.namedTypes,def=types.Type.def,or=types.Type.or,defaults=fork.use(shared_1.default).defaults,StringLiteral=types.Type.from(function(value,deep){return !!(n.StringLiteral&&n.StringLiteral.check(value,deep)||n.Literal&&n.Literal.check(value,deep)&&typeof value.value=="string")},"StringLiteral");def("TSType").bases("Node");var TSEntityName=or(def("Identifier"),def("TSQualifiedName"));def("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",TSEntityName),def("TSHasOptionalTypeParameterInstantiation").field("typeParameters",or(def("TSTypeParameterInstantiation"),null),defaults.null),def("TSHasOptionalTypeParameters").field("typeParameters",or(def("TSTypeParameterDeclaration"),null,void 0),defaults.null),def("TSHasOptionalTypeAnnotation").field("typeAnnotation",or(def("TSTypeAnnotation"),null),defaults.null),def("TSQualifiedName").bases("Node").build("left","right").field("left",TSEntityName).field("right",TSEntityName),def("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")).field("extra",or({parenthesized:Boolean},null),defaults.null),def("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")),def("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",def("Expression")).field("typeAnnotation",def("TSType")),def("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",def("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(keywordType){def(keywordType).bases("TSType").build();}),def("TSArrayType").bases("TSType").build("elementType").field("elementType",def("TSType")),def("TSLiteralType").bases("TSType").build("literal").field("literal",or(def("NumericLiteral"),def("StringLiteral"),def("BooleanLiteral"),def("TemplateLiteral"),def("UnaryExpression"),def("BigIntLiteral"))),def("TemplateLiteral").field("expressions",or([def("Expression")],[def("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(typeName){def(typeName).bases("TSType").build("types").field("types",[def("TSType")]);}),def("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",def("TSType")).field("extendsType",def("TSType")).field("trueType",def("TSType")).field("falseType",def("TSType")),def("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",def("TSTypeParameter")),def("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType"));var ParametersType=[or(def("Identifier"),def("RestElement"),def("ArrayPattern"),def("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(typeName){def(typeName).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",ParametersType);}),def("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,defaults.false).field("async",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("id",or(def("Identifier"),null),defaults.null).field("params",[def("Pattern")]).field("returnType",or(def("TSTypeAnnotation"),def("Noop"),null),defaults.null),def("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,defaults.false).field("generator",Boolean,defaults.false).field("params",[def("Pattern")]).field("abstract",Boolean,defaults.false).field("accessibility",or("public","private","protected",void 0),defaults.undefined).field("static",Boolean,defaults.false).field("computed",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("key",or(def("Identifier"),def("StringLiteral"),def("NumericLiteral"),def("Expression"))).field("kind",or("get","set","method","constructor"),function(){return "method"}).field("access",or("public","private","protected",void 0),defaults.undefined).field("decorators",or([def("Decorator")],null),defaults.null).field("returnType",or(def("TSTypeAnnotation"),def("Noop"),null),defaults.null),def("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",or(Boolean,"+","-"),defaults.false).field("typeParameter",def("TSTypeParameter")).field("optional",or(Boolean,"+","-"),defaults.false).field("typeAnnotation",or(def("TSType"),null),defaults.null),def("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[or(def("TSType"),def("TSNamedTupleMember"))]),def("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",def("Identifier")).field("optional",Boolean,defaults.false).field("elementType",def("TSType")),def("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType")),def("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",def("TSType")),def("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",def("TSType")).field("indexType",def("TSType")),def("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",def("TSType")),def("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",or(def("TSType"),def("TSTypeAnnotation"))),def("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[def("Identifier")]).field("readonly",Boolean,defaults.false),def("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",def("Expression")).field("computed",Boolean,defaults.false).field("readonly",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("initializer",or(def("Expression"),null),defaults.null),def("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",def("Expression")).field("computed",Boolean,defaults.false).field("optional",Boolean,defaults.false).field("parameters",ParametersType),def("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",or(def("Identifier"),def("TSThisType"))).field("typeAnnotation",or(def("TSTypeAnnotation"),null),defaults.null).field("asserts",Boolean,defaults.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(typeName){def(typeName).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",ParametersType);}),def("TSEnumMember").bases("Node").build("id","initializer").field("id",or(def("Identifier"),StringLiteral)).field("initializer",or(def("Expression"),null),defaults.null),def("TSTypeQuery").bases("TSType").build("exprName").field("exprName",or(TSEntityName,def("TSImportType")));var TSTypeMember=or(def("TSCallSignatureDeclaration"),def("TSConstructSignatureDeclaration"),def("TSIndexSignature"),def("TSMethodSignature"),def("TSPropertySignature"));def("TSTypeLiteral").bases("TSType").build("members").field("members",[TSTypeMember]),def("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",or(def("Identifier"),String)).field("constraint",or(def("TSType"),void 0),defaults.undefined).field("default",or(def("TSType"),void 0),defaults.undefined),def("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",def("TSType")).field("expression",def("Expression")).field("extra",or({parenthesized:Boolean},null),defaults.null),def("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[def("TSTypeParameter")]),def("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",def("Expression")),def("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[def("TSType")]),def("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",def("Identifier")).field("const",Boolean,defaults.false).field("declare",Boolean,defaults.false).field("members",[def("TSEnumMember")]).field("initializer",or(def("Expression"),null),defaults.null),def("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",def("Identifier")).field("declare",Boolean,defaults.false).field("typeAnnotation",def("TSType")),def("TSModuleBlock").bases("Node").build("body").field("body",[def("Statement")]),def("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",or(StringLiteral,TSEntityName)).field("declare",Boolean,defaults.false).field("global",Boolean,defaults.false).field("body",or(def("TSModuleBlock"),def("TSModuleDeclaration"),null),defaults.null),def("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",StringLiteral).field("qualifier",or(TSEntityName,void 0),defaults.undefined),def("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",def("Identifier")).field("isExport",Boolean,defaults.false).field("moduleReference",or(TSEntityName,def("TSExternalModuleReference"))),def("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",StringLiteral),def("TSExportAssignment").bases("Statement").build("expression").field("expression",def("Expression")),def("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",def("Identifier")),def("TSInterfaceBody").bases("Node").build("body").field("body",[TSTypeMember]),def("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",TSEntityName),def("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",TSEntityName).field("declare",Boolean,defaults.false).field("extends",or([def("TSExpressionWithTypeArguments")],null),defaults.null).field("body",def("TSInterfaceBody")),def("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",or("public","private","protected",void 0),defaults.undefined).field("readonly",Boolean,defaults.false).field("parameter",or(def("Identifier"),def("AssignmentPattern"))),def("ClassProperty").field("access",or("public","private","protected",void 0),defaults.undefined),def("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),def("ClassBody").field("body",[or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"),def("ClassPrivateProperty"),def("ClassAccessorProperty"),def("ClassMethod"),def("ClassPrivateMethod"),def("StaticBlock"),def("TSDeclareMethod"),TSTypeMember)]);}exports.default=default_1;(0, shared_1.maybeSetModuleExports)(function(){return module});}});var require_namedTypes=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/gen/namedTypes.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.namedTypes=void 0;exports.namedTypes||(exports.namedTypes={});}});var require_main5=__commonJS({"../../node_modules/recast/node_modules/ast-types/lib/main.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.visit=exports.use=exports.Type=exports.someField=exports.PathVisitor=exports.Path=exports.NodePath=exports.namedTypes=exports.getSupertypeNames=exports.getFieldValue=exports.getFieldNames=exports.getBuilderName=exports.finalize=exports.eachField=exports.defineMethod=exports.builtInTypes=exports.builders=exports.astNodesAreEquivalent=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),fork_1=tslib_1.__importDefault(require_fork()),es_proposals_1=tslib_1.__importDefault(require_es_proposals()),jsx_1=tslib_1.__importDefault(require_jsx3()),flow_1=tslib_1.__importDefault(require_flow3()),esprima_1=tslib_1.__importDefault(require_esprima()),babel_1=tslib_1.__importDefault(require_babel()),typescript_1=tslib_1.__importDefault(require_typescript3()),namedTypes_1=require_namedTypes();Object.defineProperty(exports,"namedTypes",{enumerable:!0,get:function(){return namedTypes_1.namedTypes}});var _a=(0, fork_1.default)([es_proposals_1.default,jsx_1.default,flow_1.default,esprima_1.default,babel_1.default,typescript_1.default]),astNodesAreEquivalent=_a.astNodesAreEquivalent,builders=_a.builders,builtInTypes=_a.builtInTypes,defineMethod=_a.defineMethod,eachField=_a.eachField,finalize=_a.finalize,getBuilderName=_a.getBuilderName,getFieldNames=_a.getFieldNames,getFieldValue=_a.getFieldValue,getSupertypeNames=_a.getSupertypeNames,n=_a.namedTypes,NodePath=_a.NodePath,Path=_a.Path,PathVisitor=_a.PathVisitor,someField=_a.someField,Type=_a.Type,use=_a.use,visit=_a.visit;exports.astNodesAreEquivalent=astNodesAreEquivalent;exports.builders=builders;exports.builtInTypes=builtInTypes;exports.defineMethod=defineMethod;exports.eachField=eachField;exports.finalize=finalize;exports.getBuilderName=getBuilderName;exports.getFieldNames=getFieldNames;exports.getFieldValue=getFieldValue;exports.getSupertypeNames=getSupertypeNames;exports.NodePath=NodePath;exports.Path=Path;exports.PathVisitor=PathVisitor;exports.someField=someField;exports.Type=Type;exports.use=use;exports.visit=visit;Object.assign(namedTypes_1.namedTypes,n);}});var require_tiny_invariant_cjs=__commonJS({"../../node_modules/recast/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(exports,module){var isProduction=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided=typeof message=="function"?message():message,value=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value)}}module.exports=invariant;}});var require_util3=__commonJS({"../../node_modules/recast/lib/util.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.isTrailingCommaEnabled=exports.getParentExportDeclaration=exports.isExportDeclaration=exports.fixFaultyLocations=exports.getTrueLoc=exports.composeSourceMaps=exports.copyPos=exports.comparePos=exports.getUnionOfKeys=exports.getOption=exports.isBrowser=exports.getLineTerminator=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),types=tslib_1.__importStar(require_main5()),n=types.namedTypes,source_map_1=tslib_1.__importDefault(require_source_map()),SourceMapConsumer=source_map_1.default.SourceMapConsumer,SourceMapGenerator=source_map_1.default.SourceMapGenerator,hasOwn=Object.prototype.hasOwnProperty;function getLineTerminator(){return isBrowser()?`
|
|
347
347
|
`:__require("os").EOL||`
|
|
348
|
-
`}exports.getLineTerminator=getLineTerminator;function isBrowser(){return typeof window<"u"&&typeof window.document<"u"}exports.isBrowser=isBrowser;function getOption(options,key,defaultValue){return options&&hasOwn.call(options,key)?options[key]:defaultValue}exports.getOption=getOption;function getUnionOfKeys(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var result={},argc=args.length,i=0;i<argc;++i)for(var keys=Object.keys(args[i]),keyCount=keys.length,j=0;j<keyCount;++j)result[keys[j]]=!0;return result}exports.getUnionOfKeys=getUnionOfKeys;function comparePos(pos1,pos2){return pos1.line-pos2.line||pos1.column-pos2.column}exports.comparePos=comparePos;function copyPos(pos){return {line:pos.line,column:pos.column}}exports.copyPos=copyPos;function composeSourceMaps(formerMap,latterMap){if(formerMap){if(!latterMap)return formerMap}else return latterMap||null;var smcFormer=new SourceMapConsumer(formerMap),smcLatter=new SourceMapConsumer(latterMap),smg=new SourceMapGenerator({file:latterMap.file,sourceRoot:latterMap.sourceRoot}),sourcesToContents={};return smcLatter.eachMapping(function(mapping){var origPos=smcFormer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn}),sourceName=origPos.source;if(sourceName!==null){smg.addMapping({source:sourceName,original:copyPos(origPos),generated:{line:mapping.generatedLine,column:mapping.generatedColumn},name:mapping.name});var sourceContent=smcFormer.sourceContentFor(sourceName);sourceContent&&!hasOwn.call(sourcesToContents,sourceName)&&(sourcesToContents[sourceName]=sourceContent,smg.setSourceContent(sourceName,sourceContent));}}),smg.toJSON()}exports.composeSourceMaps=composeSourceMaps;function getTrueLoc(node,lines){if(!node.loc)return null;var result={start:node.loc.start,end:node.loc.end};function include(node2){expandLoc(result,node2.loc);}return node.declaration&&node.declaration.decorators&&isExportDeclaration(node)&&node.declaration.decorators.forEach(include),comparePos(result.start,result.end)<0&&(result.start=copyPos(result.start),lines.skipSpaces(result.start,!1,!0),comparePos(result.start,result.end)<0&&(result.end=copyPos(result.end),lines.skipSpaces(result.end,!0,!0))),node.comments&&node.comments.forEach(include),result}exports.getTrueLoc=getTrueLoc;function expandLoc(parentLoc,childLoc){parentLoc&&childLoc&&(comparePos(childLoc.start,parentLoc.start)<0&&(parentLoc.start=childLoc.start),comparePos(parentLoc.end,childLoc.end)<0&&(parentLoc.end=childLoc.end));}function fixFaultyLocations(node,lines){var loc=node.loc;if(loc&&(loc.start.line<1&&(loc.start.line=1),loc.end.line<1&&(loc.end.line=1)),node.type==="File"&&(loc.start=lines.firstPos(),loc.end=lines.lastPos()),fixForLoopHead(node,lines),fixTemplateLiteral(node,lines),loc&&node.decorators)node.decorators.forEach(function(decorator){expandLoc(loc,decorator.loc);});else if(node.declaration&&isExportDeclaration(node)){node.declaration.loc=null;var decorators=node.declaration.decorators;decorators&&decorators.forEach(function(decorator){expandLoc(loc,decorator.loc);});}else if(n.MethodDefinition&&n.MethodDefinition.check(node)||n.Property.check(node)&&(node.method||node.shorthand))node.value.loc=null,n.FunctionExpression.check(node.value)&&(node.value.id=null);else if(node.type==="ObjectTypeProperty"){var loc_1=node.loc,end=loc_1&&loc_1.end;end&&(end=copyPos(end),lines.prevPos(end)&&lines.charAt(end)===","&&(end=lines.skipSpaces(end,!0,!0))&&(loc_1.end=end));}}exports.fixFaultyLocations=fixFaultyLocations;function fixForLoopHead(node,lines){if(node.type!=="ForStatement")return;function fix(child){for(var loc=child&&child.loc,start=loc&&loc.start,end=loc&©Pos(loc.end);start&&end&&comparePos(start,end)<0&&(lines.prevPos(end),lines.charAt(end)===";");)loc.end.line=end.line,loc.end.column=end.column;}fix(node.init),fix(node.test),fix(node.update);}function fixTemplateLiteral(node,lines){if(node.type==="TemplateLiteral"&&node.quasis.length!==0){if(node.loc){var afterLeftBackTickPos=copyPos(node.loc.start);assert_1.default.strictEqual(lines.charAt(afterLeftBackTickPos),"`"),assert_1.default.ok(lines.nextPos(afterLeftBackTickPos));var firstQuasi=node.quasis[0];comparePos(firstQuasi.loc.start,afterLeftBackTickPos)<0&&(firstQuasi.loc.start=afterLeftBackTickPos);var rightBackTickPos=copyPos(node.loc.end);assert_1.default.ok(lines.prevPos(rightBackTickPos)),assert_1.default.strictEqual(lines.charAt(rightBackTickPos),"`");var lastQuasi=node.quasis[node.quasis.length-1];comparePos(rightBackTickPos,lastQuasi.loc.end)<0&&(lastQuasi.loc.end=rightBackTickPos);}node.expressions.forEach(function(expr,i){var dollarCurlyPos=lines.skipSpaces(expr.loc.start,!0,!1);if(lines.prevPos(dollarCurlyPos)&&lines.charAt(dollarCurlyPos)==="{"&&lines.prevPos(dollarCurlyPos)&&lines.charAt(dollarCurlyPos)==="$"){var quasiBefore=node.quasis[i];comparePos(dollarCurlyPos,quasiBefore.loc.end)<0&&(quasiBefore.loc.end=dollarCurlyPos);}var rightCurlyPos=lines.skipSpaces(expr.loc.end,!1,!1);if(lines.charAt(rightCurlyPos)==="}"){assert_1.default.ok(lines.nextPos(rightCurlyPos));var quasiAfter=node.quasis[i+1];comparePos(quasiAfter.loc.start,rightCurlyPos)<0&&(quasiAfter.loc.start=rightCurlyPos);}});}}function isExportDeclaration(node){if(node)switch(node.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return !0}return !1}exports.isExportDeclaration=isExportDeclaration;function getParentExportDeclaration(path){var parentNode=path.getParentNode();return path.getName()==="declaration"&&isExportDeclaration(parentNode)?parentNode:null}exports.getParentExportDeclaration=getParentExportDeclaration;function isTrailingCommaEnabled(options,context){var trailingComma=options.trailingComma;return typeof trailingComma=="object"?!!trailingComma[context]:!!trailingComma}exports.isTrailingCommaEnabled=isTrailingCommaEnabled;}});var require_esprima2=__commonJS({"../../node_modules/esprima/dist/esprima.js"(exports,module){(function(root,factory){typeof exports=="object"&&typeof module=="object"?module.exports=factory():typeof define=="function"&&define.amd?define([],factory):typeof exports=="object"?exports.esprima=factory():root.esprima=factory();})(exports,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module2.exports,module2,module2.exports,__webpack_require__),module2.loaded=!0,module2.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var comment_handler_1=__webpack_require__(1),jsx_parser_1=__webpack_require__(3),parser_1=__webpack_require__(8),tokenizer_1=__webpack_require__(15);function parse(code,options,delegate){var commentHandler=null,proxyDelegate=function(node,metadata){delegate&&delegate(node,metadata),commentHandler&&commentHandler.visit(node,metadata);},parserDelegate=typeof delegate=="function"?proxyDelegate:null,collectComment=!1;if(options){collectComment=typeof options.comment=="boolean"&&options.comment;var attachComment=typeof options.attachComment=="boolean"&&options.attachComment;(collectComment||attachComment)&&(commentHandler=new comment_handler_1.CommentHandler,commentHandler.attach=attachComment,options.comment=!0,parserDelegate=proxyDelegate);}var isModule=!1;options&&typeof options.sourceType=="string"&&(isModule=options.sourceType==="module");var parser;options&&typeof options.jsx=="boolean"&&options.jsx?parser=new jsx_parser_1.JSXParser(code,options,parserDelegate):parser=new parser_1.Parser(code,options,parserDelegate);var program=isModule?parser.parseModule():parser.parseScript(),ast=program;return collectComment&&commentHandler&&(ast.comments=commentHandler.comments),parser.config.tokens&&(ast.tokens=parser.tokens),parser.config.tolerant&&(ast.errors=parser.errorHandler.errors),ast}exports2.parse=parse;function parseModule(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType="module",parse(code,parsingOptions,delegate)}exports2.parseModule=parseModule;function parseScript(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType="script",parse(code,parsingOptions,delegate)}exports2.parseScript=parseScript;function tokenize(code,options,delegate){var tokenizer=new tokenizer_1.Tokenizer(code,options),tokens;tokens=[];try{for(;;){var token=tokenizer.getNextToken();if(!token)break;delegate&&(token=delegate(token)),tokens.push(token);}}catch(e){tokenizer.errorHandler.tolerate(e);}return tokenizer.errorHandler.tolerant&&(tokens.errors=tokenizer.errors()),tokens}exports2.tokenize=tokenize;var syntax_1=__webpack_require__(2);exports2.Syntax=syntax_1.Syntax,exports2.version="4.0.1";},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var syntax_1=__webpack_require__(2),CommentHandler=function(){function CommentHandler2(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[];}return CommentHandler2.prototype.insertInnerComments=function(node,metadata){if(node.type===syntax_1.Syntax.BlockStatement&&node.body.length===0){for(var innerComments=[],i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];metadata.end.offset>=entry.start&&(innerComments.unshift(entry.comment),this.leading.splice(i,1),this.trailing.splice(i,1));}innerComments.length&&(node.innerComments=innerComments);}},CommentHandler2.prototype.findTrailingComments=function(metadata){var trailingComments=[];if(this.trailing.length>0){for(var i=this.trailing.length-1;i>=0;--i){var entry_1=this.trailing[i];entry_1.start>=metadata.end.offset&&trailingComments.unshift(entry_1.comment);}return this.trailing.length=0,trailingComments}var entry=this.stack[this.stack.length-1];if(entry&&entry.node.trailingComments){var firstComment=entry.node.trailingComments[0];firstComment&&firstComment.range[0]>=metadata.end.offset&&(trailingComments=entry.node.trailingComments,delete entry.node.trailingComments);}return trailingComments},CommentHandler2.prototype.findLeadingComments=function(metadata){for(var leadingComments=[],target;this.stack.length>0;){var entry=this.stack[this.stack.length-1];if(entry&&entry.start>=metadata.start.offset)target=entry.node,this.stack.pop();else break}if(target){for(var count=target.leadingComments?target.leadingComments.length:0,i=count-1;i>=0;--i){var comment=target.leadingComments[i];comment.range[1]<=metadata.start.offset&&(leadingComments.unshift(comment),target.leadingComments.splice(i,1));}return target.leadingComments&&target.leadingComments.length===0&&delete target.leadingComments,leadingComments}for(var i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];entry.start<=metadata.start.offset&&(leadingComments.unshift(entry.comment),this.leading.splice(i,1));}return leadingComments},CommentHandler2.prototype.visitNode=function(node,metadata){if(!(node.type===syntax_1.Syntax.Program&&node.body.length>0)){this.insertInnerComments(node,metadata);var trailingComments=this.findTrailingComments(metadata),leadingComments=this.findLeadingComments(metadata);leadingComments.length>0&&(node.leadingComments=leadingComments),trailingComments.length>0&&(node.trailingComments=trailingComments),this.stack.push({node,start:metadata.start.offset});}},CommentHandler2.prototype.visitComment=function(node,metadata){var type=node.type[0]==="L"?"Line":"Block",comment={type,value:node.value};if(node.range&&(comment.range=node.range),node.loc&&(comment.loc=node.loc),this.comments.push(comment),this.attach){var entry={comment:{type,value:node.value,range:[metadata.start.offset,metadata.end.offset]},start:metadata.start.offset};node.loc&&(entry.comment.loc=node.loc),node.type=type,this.leading.push(entry),this.trailing.push(entry);}},CommentHandler2.prototype.visit=function(node,metadata){node.type==="LineComment"?this.visitComment(node,metadata):node.type==="BlockComment"?this.visitComment(node,metadata):this.attach&&this.visitNode(node,metadata);},CommentHandler2}();exports2.CommentHandler=CommentHandler;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};},function(module2,exports2,__webpack_require__){var __extends4=this&&this.__extends||function(){var extendStatics4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);};return function(d,b){extendStatics4(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}}();Object.defineProperty(exports2,"__esModule",{value:!0});var character_1=__webpack_require__(4),JSXNode=__webpack_require__(5),jsx_syntax_1=__webpack_require__(6),Node=__webpack_require__(7),parser_1=__webpack_require__(8),token_1=__webpack_require__(13),xhtml_entities_1=__webpack_require__(14);token_1.TokenName[100]="JSXIdentifier",token_1.TokenName[101]="JSXText";function getQualifiedElementName(elementName){var qualifiedName;switch(elementName.type){case jsx_syntax_1.JSXSyntax.JSXIdentifier:var id=elementName;qualifiedName=id.name;break;case jsx_syntax_1.JSXSyntax.JSXNamespacedName:var ns=elementName;qualifiedName=getQualifiedElementName(ns.namespace)+":"+getQualifiedElementName(ns.name);break;case jsx_syntax_1.JSXSyntax.JSXMemberExpression:var expr=elementName;qualifiedName=getQualifiedElementName(expr.object)+"."+getQualifiedElementName(expr.property);break;}return qualifiedName}var JSXParser=function(_super){__extends4(JSXParser2,_super);function JSXParser2(code,options,delegate){return _super.call(this,code,options,delegate)||this}return JSXParser2.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():_super.prototype.parsePrimaryExpression.call(this)},JSXParser2.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column;},JSXParser2.prototype.finishJSX=function(){this.nextToken();},JSXParser2.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop();},JSXParser2.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser2.prototype.createJSXChildNode=function(){return {index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser2.prototype.scanXHTMLEntity=function(quote){for(var result="&",valid=!0,terminated=!1,numeric=!1,hex=!1;!this.scanner.eof()&&valid&&!terminated;){var ch=this.scanner.source[this.scanner.index];if(ch===quote)break;if(terminated=ch===";",result+=ch,++this.scanner.index,!terminated)switch(result.length){case 2:numeric=ch==="#";break;case 3:numeric&&(hex=ch==="x",valid=hex||character_1.Character.isDecimalDigit(ch.charCodeAt(0)),numeric=numeric&&!hex);break;default:valid=valid&&!(numeric&&!character_1.Character.isDecimalDigit(ch.charCodeAt(0))),valid=valid&&!(hex&&!character_1.Character.isHexDigit(ch.charCodeAt(0)));break}}if(valid&&terminated&&result.length>2){var str=result.substr(1,result.length-2);numeric&&str.length>1?result=String.fromCharCode(parseInt(str.substr(1),10)):hex&&str.length>2?result=String.fromCharCode(parseInt("0"+str.substr(1),16)):!numeric&&!hex&&xhtml_entities_1.XHTMLEntities[str]&&(result=xhtml_entities_1.XHTMLEntities[str]);}return result},JSXParser2.prototype.lexJSX=function(){var cp=this.scanner.source.charCodeAt(this.scanner.index);if(cp===60||cp===62||cp===47||cp===58||cp===61||cp===123||cp===125){var value=this.scanner.source[this.scanner.index++];return {type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(cp===34||cp===39){for(var start=this.scanner.index,quote=this.scanner.source[this.scanner.index++],str="";!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index++];if(ch===quote)break;ch==="&"?str+=this.scanXHTMLEntity(quote):str+=ch;}return {type:8,value:str,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===46){var n1=this.scanner.source.charCodeAt(this.scanner.index+1),n2=this.scanner.source.charCodeAt(this.scanner.index+2),value=n1===46&&n2===46?"...":".",start=this.scanner.index;return this.scanner.index+=value.length,{type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===96)return {type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(character_1.Character.isIdentifierStart(cp)&&cp!==92){var start=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var ch=this.scanner.source.charCodeAt(this.scanner.index);if(character_1.Character.isIdentifierPart(ch)&&ch!==92)++this.scanner.index;else if(ch===45)++this.scanner.index;else break}var id=this.scanner.source.slice(start,this.scanner.index);return {type:100,value:id,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}return this.scanner.lex()},JSXParser2.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var token=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(token)),token},JSXParser2.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var start=this.scanner.index,text="";!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index];if(ch==="{"||ch==="<")break;++this.scanner.index,text+=ch,character_1.Character.isLineTerminator(ch.charCodeAt(0))&&(++this.scanner.lineNumber,ch==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
348
|
+
`}exports.getLineTerminator=getLineTerminator;function isBrowser(){return typeof window<"u"&&typeof window.document<"u"}exports.isBrowser=isBrowser;function getOption(options,key,defaultValue){return options&&hasOwn.call(options,key)?options[key]:defaultValue}exports.getOption=getOption;function getUnionOfKeys(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];for(var result={},argc=args.length,i=0;i<argc;++i)for(var keys=Object.keys(args[i]),keyCount=keys.length,j=0;j<keyCount;++j)result[keys[j]]=!0;return result}exports.getUnionOfKeys=getUnionOfKeys;function comparePos(pos1,pos2){return pos1.line-pos2.line||pos1.column-pos2.column}exports.comparePos=comparePos;function copyPos(pos){return {line:pos.line,column:pos.column}}exports.copyPos=copyPos;function composeSourceMaps(formerMap,latterMap){if(formerMap){if(!latterMap)return formerMap}else return latterMap||null;var smcFormer=new SourceMapConsumer(formerMap),smcLatter=new SourceMapConsumer(latterMap),smg=new SourceMapGenerator({file:latterMap.file,sourceRoot:latterMap.sourceRoot}),sourcesToContents={};return smcLatter.eachMapping(function(mapping){var origPos=smcFormer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn}),sourceName=origPos.source;if(sourceName!==null){smg.addMapping({source:sourceName,original:copyPos(origPos),generated:{line:mapping.generatedLine,column:mapping.generatedColumn},name:mapping.name});var sourceContent=smcFormer.sourceContentFor(sourceName);sourceContent&&!hasOwn.call(sourcesToContents,sourceName)&&(sourcesToContents[sourceName]=sourceContent,smg.setSourceContent(sourceName,sourceContent));}}),smg.toJSON()}exports.composeSourceMaps=composeSourceMaps;function getTrueLoc(node,lines){if(!node.loc)return null;var result={start:node.loc.start,end:node.loc.end};function include(node2){expandLoc(result,node2.loc);}return node.declaration&&node.declaration.decorators&&isExportDeclaration(node)&&node.declaration.decorators.forEach(include),comparePos(result.start,result.end)<0&&(result.start=copyPos(result.start),lines.skipSpaces(result.start,!1,!0),comparePos(result.start,result.end)<0&&(result.end=copyPos(result.end),lines.skipSpaces(result.end,!0,!0))),node.comments&&node.comments.forEach(include),result}exports.getTrueLoc=getTrueLoc;function expandLoc(parentLoc,childLoc){parentLoc&&childLoc&&(comparePos(childLoc.start,parentLoc.start)<0&&(parentLoc.start=childLoc.start),comparePos(parentLoc.end,childLoc.end)<0&&(parentLoc.end=childLoc.end));}function fixFaultyLocations(node,lines){var loc=node.loc;if(loc&&(loc.start.line<1&&(loc.start.line=1),loc.end.line<1&&(loc.end.line=1)),node.type==="File"&&(loc.start=lines.firstPos(),loc.end=lines.lastPos()),fixForLoopHead(node,lines),fixTemplateLiteral(node,lines),loc&&node.decorators)node.decorators.forEach(function(decorator){expandLoc(loc,decorator.loc);});else if(node.declaration&&isExportDeclaration(node)){node.declaration.loc=null;var decorators=node.declaration.decorators;decorators&&decorators.forEach(function(decorator){expandLoc(loc,decorator.loc);});}else if(n.MethodDefinition&&n.MethodDefinition.check(node)||n.Property.check(node)&&(node.method||node.shorthand))node.value.loc=null,n.FunctionExpression.check(node.value)&&(node.value.id=null);else if(node.type==="ObjectTypeProperty"){var loc_1=node.loc,end=loc_1&&loc_1.end;end&&(end=copyPos(end),lines.prevPos(end)&&lines.charAt(end)===","&&(end=lines.skipSpaces(end,!0,!0))&&(loc_1.end=end));}}exports.fixFaultyLocations=fixFaultyLocations;function fixForLoopHead(node,lines){if(node.type!=="ForStatement")return;function fix(child){for(var loc=child&&child.loc,start=loc&&loc.start,end=loc&©Pos(loc.end);start&&end&&comparePos(start,end)<0&&(lines.prevPos(end),lines.charAt(end)===";");)loc.end.line=end.line,loc.end.column=end.column;}fix(node.init),fix(node.test),fix(node.update);}function fixTemplateLiteral(node,lines){if(node.type==="TemplateLiteral"&&node.quasis.length!==0){if(node.loc){var afterLeftBackTickPos=copyPos(node.loc.start);(0, tiny_invariant_1.default)(lines.charAt(afterLeftBackTickPos)==="`"),(0, tiny_invariant_1.default)(lines.nextPos(afterLeftBackTickPos));var firstQuasi=node.quasis[0];comparePos(firstQuasi.loc.start,afterLeftBackTickPos)<0&&(firstQuasi.loc.start=afterLeftBackTickPos);var rightBackTickPos=copyPos(node.loc.end);(0, tiny_invariant_1.default)(lines.prevPos(rightBackTickPos)),(0, tiny_invariant_1.default)(lines.charAt(rightBackTickPos)==="`");var lastQuasi=node.quasis[node.quasis.length-1];comparePos(rightBackTickPos,lastQuasi.loc.end)<0&&(lastQuasi.loc.end=rightBackTickPos);}node.expressions.forEach(function(expr,i){var dollarCurlyPos=lines.skipSpaces(expr.loc.start,!0,!1);if(lines.prevPos(dollarCurlyPos)&&lines.charAt(dollarCurlyPos)==="{"&&lines.prevPos(dollarCurlyPos)&&lines.charAt(dollarCurlyPos)==="$"){var quasiBefore=node.quasis[i];comparePos(dollarCurlyPos,quasiBefore.loc.end)<0&&(quasiBefore.loc.end=dollarCurlyPos);}var rightCurlyPos=lines.skipSpaces(expr.loc.end,!1,!1);if(lines.charAt(rightCurlyPos)==="}"){(0, tiny_invariant_1.default)(lines.nextPos(rightCurlyPos));var quasiAfter=node.quasis[i+1];comparePos(quasiAfter.loc.start,rightCurlyPos)<0&&(quasiAfter.loc.start=rightCurlyPos);}});}}function isExportDeclaration(node){if(node)switch(node.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return !0}return !1}exports.isExportDeclaration=isExportDeclaration;function getParentExportDeclaration(path){var parentNode=path.getParentNode();return path.getName()==="declaration"&&isExportDeclaration(parentNode)?parentNode:null}exports.getParentExportDeclaration=getParentExportDeclaration;function isTrailingCommaEnabled(options,context){var trailingComma=options.trailingComma;return typeof trailingComma=="object"?!!trailingComma[context]:!!trailingComma}exports.isTrailingCommaEnabled=isTrailingCommaEnabled;}});var require_esprima2=__commonJS({"../../node_modules/esprima/dist/esprima.js"(exports,module){(function(root,factory){typeof exports=="object"&&typeof module=="object"?module.exports=factory():typeof define=="function"&&define.amd?define([],factory):typeof exports=="object"?exports.esprima=factory():root.esprima=factory();})(exports,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module2.exports,module2,module2.exports,__webpack_require__),module2.loaded=!0,module2.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var comment_handler_1=__webpack_require__(1),jsx_parser_1=__webpack_require__(3),parser_1=__webpack_require__(8),tokenizer_1=__webpack_require__(15);function parse(code,options,delegate){var commentHandler=null,proxyDelegate=function(node,metadata){delegate&&delegate(node,metadata),commentHandler&&commentHandler.visit(node,metadata);},parserDelegate=typeof delegate=="function"?proxyDelegate:null,collectComment=!1;if(options){collectComment=typeof options.comment=="boolean"&&options.comment;var attachComment=typeof options.attachComment=="boolean"&&options.attachComment;(collectComment||attachComment)&&(commentHandler=new comment_handler_1.CommentHandler,commentHandler.attach=attachComment,options.comment=!0,parserDelegate=proxyDelegate);}var isModule=!1;options&&typeof options.sourceType=="string"&&(isModule=options.sourceType==="module");var parser;options&&typeof options.jsx=="boolean"&&options.jsx?parser=new jsx_parser_1.JSXParser(code,options,parserDelegate):parser=new parser_1.Parser(code,options,parserDelegate);var program=isModule?parser.parseModule():parser.parseScript(),ast=program;return collectComment&&commentHandler&&(ast.comments=commentHandler.comments),parser.config.tokens&&(ast.tokens=parser.tokens),parser.config.tolerant&&(ast.errors=parser.errorHandler.errors),ast}exports2.parse=parse;function parseModule(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType="module",parse(code,parsingOptions,delegate)}exports2.parseModule=parseModule;function parseScript(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType="script",parse(code,parsingOptions,delegate)}exports2.parseScript=parseScript;function tokenize(code,options,delegate){var tokenizer=new tokenizer_1.Tokenizer(code,options),tokens;tokens=[];try{for(;;){var token=tokenizer.getNextToken();if(!token)break;delegate&&(token=delegate(token)),tokens.push(token);}}catch(e){tokenizer.errorHandler.tolerate(e);}return tokenizer.errorHandler.tolerant&&(tokens.errors=tokenizer.errors()),tokens}exports2.tokenize=tokenize;var syntax_1=__webpack_require__(2);exports2.Syntax=syntax_1.Syntax,exports2.version="4.0.1";},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var syntax_1=__webpack_require__(2),CommentHandler=function(){function CommentHandler2(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[];}return CommentHandler2.prototype.insertInnerComments=function(node,metadata){if(node.type===syntax_1.Syntax.BlockStatement&&node.body.length===0){for(var innerComments=[],i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];metadata.end.offset>=entry.start&&(innerComments.unshift(entry.comment),this.leading.splice(i,1),this.trailing.splice(i,1));}innerComments.length&&(node.innerComments=innerComments);}},CommentHandler2.prototype.findTrailingComments=function(metadata){var trailingComments=[];if(this.trailing.length>0){for(var i=this.trailing.length-1;i>=0;--i){var entry_1=this.trailing[i];entry_1.start>=metadata.end.offset&&trailingComments.unshift(entry_1.comment);}return this.trailing.length=0,trailingComments}var entry=this.stack[this.stack.length-1];if(entry&&entry.node.trailingComments){var firstComment=entry.node.trailingComments[0];firstComment&&firstComment.range[0]>=metadata.end.offset&&(trailingComments=entry.node.trailingComments,delete entry.node.trailingComments);}return trailingComments},CommentHandler2.prototype.findLeadingComments=function(metadata){for(var leadingComments=[],target;this.stack.length>0;){var entry=this.stack[this.stack.length-1];if(entry&&entry.start>=metadata.start.offset)target=entry.node,this.stack.pop();else break}if(target){for(var count=target.leadingComments?target.leadingComments.length:0,i=count-1;i>=0;--i){var comment=target.leadingComments[i];comment.range[1]<=metadata.start.offset&&(leadingComments.unshift(comment),target.leadingComments.splice(i,1));}return target.leadingComments&&target.leadingComments.length===0&&delete target.leadingComments,leadingComments}for(var i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];entry.start<=metadata.start.offset&&(leadingComments.unshift(entry.comment),this.leading.splice(i,1));}return leadingComments},CommentHandler2.prototype.visitNode=function(node,metadata){if(!(node.type===syntax_1.Syntax.Program&&node.body.length>0)){this.insertInnerComments(node,metadata);var trailingComments=this.findTrailingComments(metadata),leadingComments=this.findLeadingComments(metadata);leadingComments.length>0&&(node.leadingComments=leadingComments),trailingComments.length>0&&(node.trailingComments=trailingComments),this.stack.push({node,start:metadata.start.offset});}},CommentHandler2.prototype.visitComment=function(node,metadata){var type=node.type[0]==="L"?"Line":"Block",comment={type,value:node.value};if(node.range&&(comment.range=node.range),node.loc&&(comment.loc=node.loc),this.comments.push(comment),this.attach){var entry={comment:{type,value:node.value,range:[metadata.start.offset,metadata.end.offset]},start:metadata.start.offset};node.loc&&(entry.comment.loc=node.loc),node.type=type,this.leading.push(entry),this.trailing.push(entry);}},CommentHandler2.prototype.visit=function(node,metadata){node.type==="LineComment"?this.visitComment(node,metadata):node.type==="BlockComment"?this.visitComment(node,metadata):this.attach&&this.visitNode(node,metadata);},CommentHandler2}();exports2.CommentHandler=CommentHandler;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};},function(module2,exports2,__webpack_require__){var __extends4=this&&this.__extends||function(){var extendStatics4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);};return function(d,b){extendStatics4(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}}();Object.defineProperty(exports2,"__esModule",{value:!0});var character_1=__webpack_require__(4),JSXNode=__webpack_require__(5),jsx_syntax_1=__webpack_require__(6),Node=__webpack_require__(7),parser_1=__webpack_require__(8),token_1=__webpack_require__(13),xhtml_entities_1=__webpack_require__(14);token_1.TokenName[100]="JSXIdentifier",token_1.TokenName[101]="JSXText";function getQualifiedElementName(elementName){var qualifiedName;switch(elementName.type){case jsx_syntax_1.JSXSyntax.JSXIdentifier:var id=elementName;qualifiedName=id.name;break;case jsx_syntax_1.JSXSyntax.JSXNamespacedName:var ns=elementName;qualifiedName=getQualifiedElementName(ns.namespace)+":"+getQualifiedElementName(ns.name);break;case jsx_syntax_1.JSXSyntax.JSXMemberExpression:var expr=elementName;qualifiedName=getQualifiedElementName(expr.object)+"."+getQualifiedElementName(expr.property);break;}return qualifiedName}var JSXParser=function(_super){__extends4(JSXParser2,_super);function JSXParser2(code,options,delegate){return _super.call(this,code,options,delegate)||this}return JSXParser2.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():_super.prototype.parsePrimaryExpression.call(this)},JSXParser2.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column;},JSXParser2.prototype.finishJSX=function(){this.nextToken();},JSXParser2.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop();},JSXParser2.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser2.prototype.createJSXChildNode=function(){return {index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser2.prototype.scanXHTMLEntity=function(quote){for(var result="&",valid=!0,terminated=!1,numeric=!1,hex=!1;!this.scanner.eof()&&valid&&!terminated;){var ch=this.scanner.source[this.scanner.index];if(ch===quote)break;if(terminated=ch===";",result+=ch,++this.scanner.index,!terminated)switch(result.length){case 2:numeric=ch==="#";break;case 3:numeric&&(hex=ch==="x",valid=hex||character_1.Character.isDecimalDigit(ch.charCodeAt(0)),numeric=numeric&&!hex);break;default:valid=valid&&!(numeric&&!character_1.Character.isDecimalDigit(ch.charCodeAt(0))),valid=valid&&!(hex&&!character_1.Character.isHexDigit(ch.charCodeAt(0)));break}}if(valid&&terminated&&result.length>2){var str=result.substr(1,result.length-2);numeric&&str.length>1?result=String.fromCharCode(parseInt(str.substr(1),10)):hex&&str.length>2?result=String.fromCharCode(parseInt("0"+str.substr(1),16)):!numeric&&!hex&&xhtml_entities_1.XHTMLEntities[str]&&(result=xhtml_entities_1.XHTMLEntities[str]);}return result},JSXParser2.prototype.lexJSX=function(){var cp=this.scanner.source.charCodeAt(this.scanner.index);if(cp===60||cp===62||cp===47||cp===58||cp===61||cp===123||cp===125){var value=this.scanner.source[this.scanner.index++];return {type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(cp===34||cp===39){for(var start=this.scanner.index,quote=this.scanner.source[this.scanner.index++],str="";!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index++];if(ch===quote)break;ch==="&"?str+=this.scanXHTMLEntity(quote):str+=ch;}return {type:8,value:str,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===46){var n1=this.scanner.source.charCodeAt(this.scanner.index+1),n2=this.scanner.source.charCodeAt(this.scanner.index+2),value=n1===46&&n2===46?"...":".",start=this.scanner.index;return this.scanner.index+=value.length,{type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===96)return {type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(character_1.Character.isIdentifierStart(cp)&&cp!==92){var start=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var ch=this.scanner.source.charCodeAt(this.scanner.index);if(character_1.Character.isIdentifierPart(ch)&&ch!==92)++this.scanner.index;else if(ch===45)++this.scanner.index;else break}var id=this.scanner.source.slice(start,this.scanner.index);return {type:100,value:id,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}return this.scanner.lex()},JSXParser2.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var token=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(token)),token},JSXParser2.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var start=this.scanner.index,text="";!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index];if(ch==="{"||ch==="<")break;++this.scanner.index,text+=ch,character_1.Character.isLineTerminator(ch.charCodeAt(0))&&(++this.scanner.lineNumber,ch==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
349
349
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index);}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var token={type:101,value:text,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index};return text.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(token)),token},JSXParser2.prototype.peekJSXToken=function(){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.lexJSX();return this.scanner.restoreState(state),next},JSXParser2.prototype.expectJSX=function(value){var token=this.nextJSXToken();(token.type!==7||token.value!==value)&&this.throwUnexpectedToken(token);},JSXParser2.prototype.matchJSX=function(value){var next=this.peekJSXToken();return next.type===7&&next.value===value},JSXParser2.prototype.parseJSXIdentifier=function(){var node=this.createJSXNode(),token=this.nextJSXToken();return token.type!==100&&this.throwUnexpectedToken(token),this.finalize(node,new JSXNode.JSXIdentifier(token.value))},JSXParser2.prototype.parseJSXElementName=function(){var node=this.createJSXNode(),elementName=this.parseJSXIdentifier();if(this.matchJSX(":")){var namespace=elementName;this.expectJSX(":");var name_1=this.parseJSXIdentifier();elementName=this.finalize(node,new JSXNode.JSXNamespacedName(namespace,name_1));}else if(this.matchJSX("."))for(;this.matchJSX(".");){var object=elementName;this.expectJSX(".");var property=this.parseJSXIdentifier();elementName=this.finalize(node,new JSXNode.JSXMemberExpression(object,property));}return elementName},JSXParser2.prototype.parseJSXAttributeName=function(){var node=this.createJSXNode(),attributeName,identifier=this.parseJSXIdentifier();if(this.matchJSX(":")){var namespace=identifier;this.expectJSX(":");var name_2=this.parseJSXIdentifier();attributeName=this.finalize(node,new JSXNode.JSXNamespacedName(namespace,name_2));}else attributeName=identifier;return attributeName},JSXParser2.prototype.parseJSXStringLiteralAttribute=function(){var node=this.createJSXNode(),token=this.nextJSXToken();token.type!==8&&this.throwUnexpectedToken(token);var raw=this.getTokenRaw(token);return this.finalize(node,new Node.Literal(token.value,raw))},JSXParser2.prototype.parseJSXExpressionAttribute=function(){var node=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var expression=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(node,new JSXNode.JSXExpressionContainer(expression))},JSXParser2.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},JSXParser2.prototype.parseJSXNameValueAttribute=function(){var node=this.createJSXNode(),name=this.parseJSXAttributeName(),value=null;return this.matchJSX("=")&&(this.expectJSX("="),value=this.parseJSXAttributeValue()),this.finalize(node,new JSXNode.JSXAttribute(name,value))},JSXParser2.prototype.parseJSXSpreadAttribute=function(){var node=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var argument=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(node,new JSXNode.JSXSpreadAttribute(argument))},JSXParser2.prototype.parseJSXAttributes=function(){for(var attributes=[];!this.matchJSX("/")&&!this.matchJSX(">");){var attribute=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();attributes.push(attribute);}return attributes},JSXParser2.prototype.parseJSXOpeningElement=function(){var node=this.createJSXNode();this.expectJSX("<");var name=this.parseJSXElementName(),attributes=this.parseJSXAttributes(),selfClosing=this.matchJSX("/");return selfClosing&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(node,new JSXNode.JSXOpeningElement(name,selfClosing,attributes))},JSXParser2.prototype.parseJSXBoundaryElement=function(){var node=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var name_3=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(node,new JSXNode.JSXClosingElement(name_3))}var name=this.parseJSXElementName(),attributes=this.parseJSXAttributes(),selfClosing=this.matchJSX("/");return selfClosing&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(node,new JSXNode.JSXOpeningElement(name,selfClosing,attributes))},JSXParser2.prototype.parseJSXEmptyExpression=function(){var node=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(node,new JSXNode.JSXEmptyExpression)},JSXParser2.prototype.parseJSXExpressionContainer=function(){var node=this.createJSXNode();this.expectJSX("{");var expression;return this.matchJSX("}")?(expression=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),expression=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(node,new JSXNode.JSXExpressionContainer(expression))},JSXParser2.prototype.parseJSXChildren=function(){for(var children=[];!this.scanner.eof();){var node=this.createJSXChildNode(),token=this.nextJSXText();if(token.start<token.end){var raw=this.getTokenRaw(token),child=this.finalize(node,new JSXNode.JSXText(token.value,raw));children.push(child);}if(this.scanner.source[this.scanner.index]==="{"){var container=this.parseJSXExpressionContainer();children.push(container);}else break}return children},JSXParser2.prototype.parseComplexJSXElement=function(el){for(var stack=[];!this.scanner.eof();){el.children=el.children.concat(this.parseJSXChildren());var node=this.createJSXChildNode(),element=this.parseJSXBoundaryElement();if(element.type===jsx_syntax_1.JSXSyntax.JSXOpeningElement){var opening=element;if(opening.selfClosing){var child=this.finalize(node,new JSXNode.JSXElement(opening,[],null));el.children.push(child);}else stack.push(el),el={node,opening,closing:null,children:[]};}if(element.type===jsx_syntax_1.JSXSyntax.JSXClosingElement){el.closing=element;var open_1=getQualifiedElementName(el.opening.name),close_1=getQualifiedElementName(el.closing.name);if(open_1!==close_1&&this.tolerateError("Expected corresponding JSX closing tag for %0",open_1),stack.length>0){var child=this.finalize(el.node,new JSXNode.JSXElement(el.opening,el.children,el.closing));el=stack[stack.length-1],el.children.push(child),stack.pop();}else break}}return el},JSXParser2.prototype.parseJSXElement=function(){var node=this.createJSXNode(),opening=this.parseJSXOpeningElement(),children=[],closing=null;if(!opening.selfClosing){var el=this.parseComplexJSXElement({node,opening,closing,children});children=el.children,closing=el.closing;}return this.finalize(node,new JSXNode.JSXElement(opening,children,closing))},JSXParser2.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var element=this.parseJSXElement();return this.finishJSX(),element},JSXParser2.prototype.isStartOfExpression=function(){return _super.prototype.isStartOfExpression.call(this)||this.match("<")},JSXParser2}(parser_1.Parser);exports2.JSXParser=JSXParser;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0});var Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};exports2.Character={fromCodePoint:function(cp){return cp<65536?String.fromCharCode(cp):String.fromCharCode(55296+(cp-65536>>10))+String.fromCharCode(56320+(cp-65536&1023))},isWhiteSpace:function(cp){return cp===32||cp===9||cp===11||cp===12||cp===160||cp>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(cp)>=0},isLineTerminator:function(cp){return cp===10||cp===13||cp===8232||cp===8233},isIdentifierStart:function(cp){return cp===36||cp===95||cp>=65&&cp<=90||cp>=97&&cp<=122||cp===92||cp>=128&&Regex.NonAsciiIdentifierStart.test(exports2.Character.fromCodePoint(cp))},isIdentifierPart:function(cp){return cp===36||cp===95||cp>=65&&cp<=90||cp>=97&&cp<=122||cp>=48&&cp<=57||cp===92||cp>=128&&Regex.NonAsciiIdentifierPart.test(exports2.Character.fromCodePoint(cp))},isDecimalDigit:function(cp){return cp>=48&&cp<=57},isHexDigit:function(cp){return cp>=48&&cp<=57||cp>=65&&cp<=70||cp>=97&&cp<=102},isOctalDigit:function(cp){return cp>=48&&cp<=55}};},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var jsx_syntax_1=__webpack_require__(6),JSXClosingElement=function(){function JSXClosingElement2(name){this.type=jsx_syntax_1.JSXSyntax.JSXClosingElement,this.name=name;}return JSXClosingElement2}();exports2.JSXClosingElement=JSXClosingElement;var JSXElement=function(){function JSXElement2(openingElement,children,closingElement){this.type=jsx_syntax_1.JSXSyntax.JSXElement,this.openingElement=openingElement,this.children=children,this.closingElement=closingElement;}return JSXElement2}();exports2.JSXElement=JSXElement;var JSXEmptyExpression=function(){function JSXEmptyExpression2(){this.type=jsx_syntax_1.JSXSyntax.JSXEmptyExpression;}return JSXEmptyExpression2}();exports2.JSXEmptyExpression=JSXEmptyExpression;var JSXExpressionContainer=function(){function JSXExpressionContainer2(expression){this.type=jsx_syntax_1.JSXSyntax.JSXExpressionContainer,this.expression=expression;}return JSXExpressionContainer2}();exports2.JSXExpressionContainer=JSXExpressionContainer;var JSXIdentifier=function(){function JSXIdentifier2(name){this.type=jsx_syntax_1.JSXSyntax.JSXIdentifier,this.name=name;}return JSXIdentifier2}();exports2.JSXIdentifier=JSXIdentifier;var JSXMemberExpression=function(){function JSXMemberExpression2(object,property){this.type=jsx_syntax_1.JSXSyntax.JSXMemberExpression,this.object=object,this.property=property;}return JSXMemberExpression2}();exports2.JSXMemberExpression=JSXMemberExpression;var JSXAttribute=function(){function JSXAttribute2(name,value){this.type=jsx_syntax_1.JSXSyntax.JSXAttribute,this.name=name,this.value=value;}return JSXAttribute2}();exports2.JSXAttribute=JSXAttribute;var JSXNamespacedName=function(){function JSXNamespacedName2(namespace,name){this.type=jsx_syntax_1.JSXSyntax.JSXNamespacedName,this.namespace=namespace,this.name=name;}return JSXNamespacedName2}();exports2.JSXNamespacedName=JSXNamespacedName;var JSXOpeningElement=function(){function JSXOpeningElement2(name,selfClosing,attributes){this.type=jsx_syntax_1.JSXSyntax.JSXOpeningElement,this.name=name,this.selfClosing=selfClosing,this.attributes=attributes;}return JSXOpeningElement2}();exports2.JSXOpeningElement=JSXOpeningElement;var JSXSpreadAttribute=function(){function JSXSpreadAttribute2(argument){this.type=jsx_syntax_1.JSXSyntax.JSXSpreadAttribute,this.argument=argument;}return JSXSpreadAttribute2}();exports2.JSXSpreadAttribute=JSXSpreadAttribute;var JSXText=function(){function JSXText2(value,raw){this.type=jsx_syntax_1.JSXSyntax.JSXText,this.value=value,this.raw=raw;}return JSXText2}();exports2.JSXText=JSXText;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"};},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var syntax_1=__webpack_require__(2),ArrayExpression=function(){function ArrayExpression2(elements){this.type=syntax_1.Syntax.ArrayExpression,this.elements=elements;}return ArrayExpression2}();exports2.ArrayExpression=ArrayExpression;var ArrayPattern=function(){function ArrayPattern2(elements){this.type=syntax_1.Syntax.ArrayPattern,this.elements=elements;}return ArrayPattern2}();exports2.ArrayPattern=ArrayPattern;var ArrowFunctionExpression=function(){function ArrowFunctionExpression2(params,body,expression){this.type=syntax_1.Syntax.ArrowFunctionExpression,this.id=null,this.params=params,this.body=body,this.generator=!1,this.expression=expression,this.async=!1;}return ArrowFunctionExpression2}();exports2.ArrowFunctionExpression=ArrowFunctionExpression;var AssignmentExpression=function(){function AssignmentExpression2(operator,left,right){this.type=syntax_1.Syntax.AssignmentExpression,this.operator=operator,this.left=left,this.right=right;}return AssignmentExpression2}();exports2.AssignmentExpression=AssignmentExpression;var AssignmentPattern=function(){function AssignmentPattern2(left,right){this.type=syntax_1.Syntax.AssignmentPattern,this.left=left,this.right=right;}return AssignmentPattern2}();exports2.AssignmentPattern=AssignmentPattern;var AsyncArrowFunctionExpression=function(){function AsyncArrowFunctionExpression2(params,body,expression){this.type=syntax_1.Syntax.ArrowFunctionExpression,this.id=null,this.params=params,this.body=body,this.generator=!1,this.expression=expression,this.async=!0;}return AsyncArrowFunctionExpression2}();exports2.AsyncArrowFunctionExpression=AsyncArrowFunctionExpression;var AsyncFunctionDeclaration=function(){function AsyncFunctionDeclaration2(id,params,body){this.type=syntax_1.Syntax.FunctionDeclaration,this.id=id,this.params=params,this.body=body,this.generator=!1,this.expression=!1,this.async=!0;}return AsyncFunctionDeclaration2}();exports2.AsyncFunctionDeclaration=AsyncFunctionDeclaration;var AsyncFunctionExpression=function(){function AsyncFunctionExpression2(id,params,body){this.type=syntax_1.Syntax.FunctionExpression,this.id=id,this.params=params,this.body=body,this.generator=!1,this.expression=!1,this.async=!0;}return AsyncFunctionExpression2}();exports2.AsyncFunctionExpression=AsyncFunctionExpression;var AwaitExpression=function(){function AwaitExpression2(argument){this.type=syntax_1.Syntax.AwaitExpression,this.argument=argument;}return AwaitExpression2}();exports2.AwaitExpression=AwaitExpression;var BinaryExpression=function(){function BinaryExpression2(operator,left,right){var logical=operator==="||"||operator==="&&";this.type=logical?syntax_1.Syntax.LogicalExpression:syntax_1.Syntax.BinaryExpression,this.operator=operator,this.left=left,this.right=right;}return BinaryExpression2}();exports2.BinaryExpression=BinaryExpression;var BlockStatement=function(){function BlockStatement2(body){this.type=syntax_1.Syntax.BlockStatement,this.body=body;}return BlockStatement2}();exports2.BlockStatement=BlockStatement;var BreakStatement=function(){function BreakStatement2(label){this.type=syntax_1.Syntax.BreakStatement,this.label=label;}return BreakStatement2}();exports2.BreakStatement=BreakStatement;var CallExpression=function(){function CallExpression2(callee,args){this.type=syntax_1.Syntax.CallExpression,this.callee=callee,this.arguments=args;}return CallExpression2}();exports2.CallExpression=CallExpression;var CatchClause=function(){function CatchClause2(param,body){this.type=syntax_1.Syntax.CatchClause,this.param=param,this.body=body;}return CatchClause2}();exports2.CatchClause=CatchClause;var ClassBody=function(){function ClassBody2(body){this.type=syntax_1.Syntax.ClassBody,this.body=body;}return ClassBody2}();exports2.ClassBody=ClassBody;var ClassDeclaration=function(){function ClassDeclaration2(id,superClass,body){this.type=syntax_1.Syntax.ClassDeclaration,this.id=id,this.superClass=superClass,this.body=body;}return ClassDeclaration2}();exports2.ClassDeclaration=ClassDeclaration;var ClassExpression=function(){function ClassExpression2(id,superClass,body){this.type=syntax_1.Syntax.ClassExpression,this.id=id,this.superClass=superClass,this.body=body;}return ClassExpression2}();exports2.ClassExpression=ClassExpression;var ComputedMemberExpression=function(){function ComputedMemberExpression2(object,property){this.type=syntax_1.Syntax.MemberExpression,this.computed=!0,this.object=object,this.property=property;}return ComputedMemberExpression2}();exports2.ComputedMemberExpression=ComputedMemberExpression;var ConditionalExpression=function(){function ConditionalExpression2(test,consequent,alternate){this.type=syntax_1.Syntax.ConditionalExpression,this.test=test,this.consequent=consequent,this.alternate=alternate;}return ConditionalExpression2}();exports2.ConditionalExpression=ConditionalExpression;var ContinueStatement=function(){function ContinueStatement2(label){this.type=syntax_1.Syntax.ContinueStatement,this.label=label;}return ContinueStatement2}();exports2.ContinueStatement=ContinueStatement;var DebuggerStatement=function(){function DebuggerStatement2(){this.type=syntax_1.Syntax.DebuggerStatement;}return DebuggerStatement2}();exports2.DebuggerStatement=DebuggerStatement;var Directive=function(){function Directive2(expression,directive){this.type=syntax_1.Syntax.ExpressionStatement,this.expression=expression,this.directive=directive;}return Directive2}();exports2.Directive=Directive;var DoWhileStatement=function(){function DoWhileStatement2(body,test){this.type=syntax_1.Syntax.DoWhileStatement,this.body=body,this.test=test;}return DoWhileStatement2}();exports2.DoWhileStatement=DoWhileStatement;var EmptyStatement=function(){function EmptyStatement2(){this.type=syntax_1.Syntax.EmptyStatement;}return EmptyStatement2}();exports2.EmptyStatement=EmptyStatement;var ExportAllDeclaration=function(){function ExportAllDeclaration2(source){this.type=syntax_1.Syntax.ExportAllDeclaration,this.source=source;}return ExportAllDeclaration2}();exports2.ExportAllDeclaration=ExportAllDeclaration;var ExportDefaultDeclaration=function(){function ExportDefaultDeclaration2(declaration){this.type=syntax_1.Syntax.ExportDefaultDeclaration,this.declaration=declaration;}return ExportDefaultDeclaration2}();exports2.ExportDefaultDeclaration=ExportDefaultDeclaration;var ExportNamedDeclaration=function(){function ExportNamedDeclaration2(declaration,specifiers,source){this.type=syntax_1.Syntax.ExportNamedDeclaration,this.declaration=declaration,this.specifiers=specifiers,this.source=source;}return ExportNamedDeclaration2}();exports2.ExportNamedDeclaration=ExportNamedDeclaration;var ExportSpecifier=function(){function ExportSpecifier2(local,exported){this.type=syntax_1.Syntax.ExportSpecifier,this.exported=exported,this.local=local;}return ExportSpecifier2}();exports2.ExportSpecifier=ExportSpecifier;var ExpressionStatement=function(){function ExpressionStatement2(expression){this.type=syntax_1.Syntax.ExpressionStatement,this.expression=expression;}return ExpressionStatement2}();exports2.ExpressionStatement=ExpressionStatement;var ForInStatement=function(){function ForInStatement2(left,right,body){this.type=syntax_1.Syntax.ForInStatement,this.left=left,this.right=right,this.body=body,this.each=!1;}return ForInStatement2}();exports2.ForInStatement=ForInStatement;var ForOfStatement=function(){function ForOfStatement2(left,right,body){this.type=syntax_1.Syntax.ForOfStatement,this.left=left,this.right=right,this.body=body;}return ForOfStatement2}();exports2.ForOfStatement=ForOfStatement;var ForStatement=function(){function ForStatement2(init,test,update,body){this.type=syntax_1.Syntax.ForStatement,this.init=init,this.test=test,this.update=update,this.body=body;}return ForStatement2}();exports2.ForStatement=ForStatement;var FunctionDeclaration=function(){function FunctionDeclaration2(id,params,body,generator){this.type=syntax_1.Syntax.FunctionDeclaration,this.id=id,this.params=params,this.body=body,this.generator=generator,this.expression=!1,this.async=!1;}return FunctionDeclaration2}();exports2.FunctionDeclaration=FunctionDeclaration;var FunctionExpression=function(){function FunctionExpression2(id,params,body,generator){this.type=syntax_1.Syntax.FunctionExpression,this.id=id,this.params=params,this.body=body,this.generator=generator,this.expression=!1,this.async=!1;}return FunctionExpression2}();exports2.FunctionExpression=FunctionExpression;var Identifier=function(){function Identifier2(name){this.type=syntax_1.Syntax.Identifier,this.name=name;}return Identifier2}();exports2.Identifier=Identifier;var IfStatement=function(){function IfStatement2(test,consequent,alternate){this.type=syntax_1.Syntax.IfStatement,this.test=test,this.consequent=consequent,this.alternate=alternate;}return IfStatement2}();exports2.IfStatement=IfStatement;var ImportDeclaration=function(){function ImportDeclaration2(specifiers,source){this.type=syntax_1.Syntax.ImportDeclaration,this.specifiers=specifiers,this.source=source;}return ImportDeclaration2}();exports2.ImportDeclaration=ImportDeclaration;var ImportDefaultSpecifier=function(){function ImportDefaultSpecifier2(local){this.type=syntax_1.Syntax.ImportDefaultSpecifier,this.local=local;}return ImportDefaultSpecifier2}();exports2.ImportDefaultSpecifier=ImportDefaultSpecifier;var ImportNamespaceSpecifier=function(){function ImportNamespaceSpecifier2(local){this.type=syntax_1.Syntax.ImportNamespaceSpecifier,this.local=local;}return ImportNamespaceSpecifier2}();exports2.ImportNamespaceSpecifier=ImportNamespaceSpecifier;var ImportSpecifier=function(){function ImportSpecifier2(local,imported){this.type=syntax_1.Syntax.ImportSpecifier,this.local=local,this.imported=imported;}return ImportSpecifier2}();exports2.ImportSpecifier=ImportSpecifier;var LabeledStatement=function(){function LabeledStatement2(label,body){this.type=syntax_1.Syntax.LabeledStatement,this.label=label,this.body=body;}return LabeledStatement2}();exports2.LabeledStatement=LabeledStatement;var Literal=function(){function Literal2(value,raw){this.type=syntax_1.Syntax.Literal,this.value=value,this.raw=raw;}return Literal2}();exports2.Literal=Literal;var MetaProperty=function(){function MetaProperty2(meta,property){this.type=syntax_1.Syntax.MetaProperty,this.meta=meta,this.property=property;}return MetaProperty2}();exports2.MetaProperty=MetaProperty;var MethodDefinition=function(){function MethodDefinition2(key,computed,value,kind,isStatic){this.type=syntax_1.Syntax.MethodDefinition,this.key=key,this.computed=computed,this.value=value,this.kind=kind,this.static=isStatic;}return MethodDefinition2}();exports2.MethodDefinition=MethodDefinition;var Module=function(){function Module2(body){this.type=syntax_1.Syntax.Program,this.body=body,this.sourceType="module";}return Module2}();exports2.Module=Module;var NewExpression=function(){function NewExpression2(callee,args){this.type=syntax_1.Syntax.NewExpression,this.callee=callee,this.arguments=args;}return NewExpression2}();exports2.NewExpression=NewExpression;var ObjectExpression=function(){function ObjectExpression2(properties){this.type=syntax_1.Syntax.ObjectExpression,this.properties=properties;}return ObjectExpression2}();exports2.ObjectExpression=ObjectExpression;var ObjectPattern=function(){function ObjectPattern2(properties){this.type=syntax_1.Syntax.ObjectPattern,this.properties=properties;}return ObjectPattern2}();exports2.ObjectPattern=ObjectPattern;var Property=function(){function Property2(kind,key,computed,value,method,shorthand){this.type=syntax_1.Syntax.Property,this.key=key,this.computed=computed,this.value=value,this.kind=kind,this.method=method,this.shorthand=shorthand;}return Property2}();exports2.Property=Property;var RegexLiteral=function(){function RegexLiteral2(value,raw,pattern,flags){this.type=syntax_1.Syntax.Literal,this.value=value,this.raw=raw,this.regex={pattern,flags};}return RegexLiteral2}();exports2.RegexLiteral=RegexLiteral;var RestElement=function(){function RestElement2(argument){this.type=syntax_1.Syntax.RestElement,this.argument=argument;}return RestElement2}();exports2.RestElement=RestElement;var ReturnStatement=function(){function ReturnStatement2(argument){this.type=syntax_1.Syntax.ReturnStatement,this.argument=argument;}return ReturnStatement2}();exports2.ReturnStatement=ReturnStatement;var Script=function(){function Script2(body){this.type=syntax_1.Syntax.Program,this.body=body,this.sourceType="script";}return Script2}();exports2.Script=Script;var SequenceExpression=function(){function SequenceExpression2(expressions){this.type=syntax_1.Syntax.SequenceExpression,this.expressions=expressions;}return SequenceExpression2}();exports2.SequenceExpression=SequenceExpression;var SpreadElement=function(){function SpreadElement2(argument){this.type=syntax_1.Syntax.SpreadElement,this.argument=argument;}return SpreadElement2}();exports2.SpreadElement=SpreadElement;var StaticMemberExpression=function(){function StaticMemberExpression2(object,property){this.type=syntax_1.Syntax.MemberExpression,this.computed=!1,this.object=object,this.property=property;}return StaticMemberExpression2}();exports2.StaticMemberExpression=StaticMemberExpression;var Super=function(){function Super2(){this.type=syntax_1.Syntax.Super;}return Super2}();exports2.Super=Super;var SwitchCase=function(){function SwitchCase2(test,consequent){this.type=syntax_1.Syntax.SwitchCase,this.test=test,this.consequent=consequent;}return SwitchCase2}();exports2.SwitchCase=SwitchCase;var SwitchStatement=function(){function SwitchStatement2(discriminant,cases){this.type=syntax_1.Syntax.SwitchStatement,this.discriminant=discriminant,this.cases=cases;}return SwitchStatement2}();exports2.SwitchStatement=SwitchStatement;var TaggedTemplateExpression=function(){function TaggedTemplateExpression2(tag,quasi){this.type=syntax_1.Syntax.TaggedTemplateExpression,this.tag=tag,this.quasi=quasi;}return TaggedTemplateExpression2}();exports2.TaggedTemplateExpression=TaggedTemplateExpression;var TemplateElement=function(){function TemplateElement2(value,tail){this.type=syntax_1.Syntax.TemplateElement,this.value=value,this.tail=tail;}return TemplateElement2}();exports2.TemplateElement=TemplateElement;var TemplateLiteral=function(){function TemplateLiteral2(quasis,expressions){this.type=syntax_1.Syntax.TemplateLiteral,this.quasis=quasis,this.expressions=expressions;}return TemplateLiteral2}();exports2.TemplateLiteral=TemplateLiteral;var ThisExpression=function(){function ThisExpression2(){this.type=syntax_1.Syntax.ThisExpression;}return ThisExpression2}();exports2.ThisExpression=ThisExpression;var ThrowStatement=function(){function ThrowStatement2(argument){this.type=syntax_1.Syntax.ThrowStatement,this.argument=argument;}return ThrowStatement2}();exports2.ThrowStatement=ThrowStatement;var TryStatement=function(){function TryStatement2(block,handler,finalizer){this.type=syntax_1.Syntax.TryStatement,this.block=block,this.handler=handler,this.finalizer=finalizer;}return TryStatement2}();exports2.TryStatement=TryStatement;var UnaryExpression=function(){function UnaryExpression2(operator,argument){this.type=syntax_1.Syntax.UnaryExpression,this.operator=operator,this.argument=argument,this.prefix=!0;}return UnaryExpression2}();exports2.UnaryExpression=UnaryExpression;var UpdateExpression=function(){function UpdateExpression2(operator,argument,prefix){this.type=syntax_1.Syntax.UpdateExpression,this.operator=operator,this.argument=argument,this.prefix=prefix;}return UpdateExpression2}();exports2.UpdateExpression=UpdateExpression;var VariableDeclaration=function(){function VariableDeclaration2(declarations,kind){this.type=syntax_1.Syntax.VariableDeclaration,this.declarations=declarations,this.kind=kind;}return VariableDeclaration2}();exports2.VariableDeclaration=VariableDeclaration;var VariableDeclarator=function(){function VariableDeclarator2(id,init){this.type=syntax_1.Syntax.VariableDeclarator,this.id=id,this.init=init;}return VariableDeclarator2}();exports2.VariableDeclarator=VariableDeclarator;var WhileStatement=function(){function WhileStatement2(test,body){this.type=syntax_1.Syntax.WhileStatement,this.test=test,this.body=body;}return WhileStatement2}();exports2.WhileStatement=WhileStatement;var WithStatement=function(){function WithStatement2(object,body){this.type=syntax_1.Syntax.WithStatement,this.object=object,this.body=body;}return WithStatement2}();exports2.WithStatement=WithStatement;var YieldExpression=function(){function YieldExpression2(argument,delegate){this.type=syntax_1.Syntax.YieldExpression,this.argument=argument,this.delegate=delegate;}return YieldExpression2}();exports2.YieldExpression=YieldExpression;},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var assert_1=__webpack_require__(9),error_handler_1=__webpack_require__(10),messages_1=__webpack_require__(11),Node=__webpack_require__(7),scanner_1=__webpack_require__(12),syntax_1=__webpack_require__(2),token_1=__webpack_require__(13),ArrowParameterPlaceHolder="ArrowParameterPlaceHolder",Parser=function(){function Parser2(code,options,delegate){options===void 0&&(options={}),this.config={range:typeof options.range=="boolean"&&options.range,loc:typeof options.loc=="boolean"&&options.loc,source:null,tokens:typeof options.tokens=="boolean"&&options.tokens,comment:typeof options.comment=="boolean"&&options.comment,tolerant:typeof options.tolerant=="boolean"&&options.tolerant},this.config.loc&&options.source&&options.source!==null&&(this.config.source=String(options.source)),this.delegate=delegate,this.errorHandler=new error_handler_1.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new scanner_1.Scanner(code,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};}return Parser2.prototype.throwError=function(messageFormat){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var args=Array.prototype.slice.call(arguments,1),msg=messageFormat.replace(/%(\d)/g,function(whole,idx){return assert_1.assert(idx<args.length,"Message reference must be in range"),args[idx]}),index=this.lastMarker.index,line=this.lastMarker.line,column=this.lastMarker.column+1;throw this.errorHandler.createError(index,line,column,msg)},Parser2.prototype.tolerateError=function(messageFormat){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var args=Array.prototype.slice.call(arguments,1),msg=messageFormat.replace(/%(\d)/g,function(whole,idx){return assert_1.assert(idx<args.length,"Message reference must be in range"),args[idx]}),index=this.lastMarker.index,line=this.scanner.lineNumber,column=this.lastMarker.column+1;this.errorHandler.tolerateError(index,line,column,msg);},Parser2.prototype.unexpectedTokenError=function(token,message){var msg=message||messages_1.Messages.UnexpectedToken,value;if(token?(message||(msg=token.type===2?messages_1.Messages.UnexpectedEOS:token.type===3?messages_1.Messages.UnexpectedIdentifier:token.type===6?messages_1.Messages.UnexpectedNumber:token.type===8?messages_1.Messages.UnexpectedString:token.type===10?messages_1.Messages.UnexpectedTemplate:messages_1.Messages.UnexpectedToken,token.type===4&&(this.scanner.isFutureReservedWord(token.value)?msg=messages_1.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(token.value)&&(msg=messages_1.Messages.StrictReservedWord))),value=token.value):value="ILLEGAL",msg=msg.replace("%0",value),token&&typeof token.lineNumber=="number"){var index=token.start,line=token.lineNumber,lastMarkerLineStart=this.lastMarker.index-this.lastMarker.column,column=token.start-lastMarkerLineStart+1;return this.errorHandler.createError(index,line,column,msg)}else {var index=this.lastMarker.index,line=this.lastMarker.line,column=this.lastMarker.column+1;return this.errorHandler.createError(index,line,column,msg)}},Parser2.prototype.throwUnexpectedToken=function(token,message){throw this.unexpectedTokenError(token,message)},Parser2.prototype.tolerateUnexpectedToken=function(token,message){this.errorHandler.tolerate(this.unexpectedTokenError(token,message));},Parser2.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else {var comments=this.scanner.scanComments();if(comments.length>0&&this.delegate)for(var i=0;i<comments.length;++i){var e=comments[i],node=void 0;node={type:e.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(e.slice[0],e.slice[1])},this.config.range&&(node.range=e.range),this.config.loc&&(node.loc=e.loc);var metadata={start:{line:e.loc.start.line,column:e.loc.start.column,offset:e.range[0]},end:{line:e.loc.end.line,column:e.loc.end.column,offset:e.range[1]}};this.delegate(node,metadata);}}},Parser2.prototype.getTokenRaw=function(token){return this.scanner.source.slice(token.start,token.end)},Parser2.prototype.convertToken=function(token){var t={type:token_1.TokenName[token.type],value:this.getTokenRaw(token)};if(this.config.range&&(t.range=[token.start,token.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),token.type===9){var pattern=token.pattern,flags=token.flags;t.regex={pattern,flags};}return t},Parser2.prototype.nextToken=function(){var token=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var next=this.scanner.lex();return this.hasLineTerminator=token.lineNumber!==next.lineNumber,next&&this.context.strict&&next.type===3&&this.scanner.isStrictModeReservedWord(next.value)&&(next.type=4),this.lookahead=next,this.config.tokens&&next.type!==2&&this.tokens.push(this.convertToken(next)),token},Parser2.prototype.nextRegexToken=function(){this.collectComments();var token=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(token))),this.lookahead=token,this.nextToken(),token},Parser2.prototype.createNode=function(){return {index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},Parser2.prototype.startNode=function(token,lastLineStart){lastLineStart===void 0&&(lastLineStart=0);var column=token.start-token.lineStart,line=token.lineNumber;return column<0&&(column+=lastLineStart,line--),{index:token.start,line,column}},Parser2.prototype.finalize=function(marker,node){if(this.config.range&&(node.range=[marker.index,this.lastMarker.index]),this.config.loc&&(node.loc={start:{line:marker.line,column:marker.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(node.loc.source=this.config.source)),this.delegate){var metadata={start:{line:marker.line,column:marker.column,offset:marker.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(node,metadata);}return node},Parser2.prototype.expect=function(value){var token=this.nextToken();(token.type!==7||token.value!==value)&&this.throwUnexpectedToken(token);},Parser2.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var token=this.lookahead;token.type===7&&token.value===","?this.nextToken():token.type===7&&token.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(token)):this.tolerateUnexpectedToken(token,messages_1.Messages.UnexpectedToken);}else this.expect(",");},Parser2.prototype.expectKeyword=function(keyword){var token=this.nextToken();(token.type!==4||token.value!==keyword)&&this.throwUnexpectedToken(token);},Parser2.prototype.match=function(value){return this.lookahead.type===7&&this.lookahead.value===value},Parser2.prototype.matchKeyword=function(keyword){return this.lookahead.type===4&&this.lookahead.value===keyword},Parser2.prototype.matchContextualKeyword=function(keyword){return this.lookahead.type===3&&this.lookahead.value===keyword},Parser2.prototype.matchAssign=function(){if(this.lookahead.type!==7)return !1;var op=this.lookahead.value;return op==="="||op==="*="||op==="**="||op==="/="||op==="%="||op==="+="||op==="-="||op==="<<="||op===">>="||op===">>>="||op==="&="||op==="^="||op==="|="},Parser2.prototype.isolateCoverGrammar=function(parseFunction){var previousIsBindingElement=this.context.isBindingElement,previousIsAssignmentTarget=this.context.isAssignmentTarget,previousFirstCoverInitializedNameError=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var result=parseFunction.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=previousIsBindingElement,this.context.isAssignmentTarget=previousIsAssignmentTarget,this.context.firstCoverInitializedNameError=previousFirstCoverInitializedNameError,result},Parser2.prototype.inheritCoverGrammar=function(parseFunction){var previousIsBindingElement=this.context.isBindingElement,previousIsAssignmentTarget=this.context.isAssignmentTarget,previousFirstCoverInitializedNameError=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var result=parseFunction.call(this);return this.context.isBindingElement=this.context.isBindingElement&&previousIsBindingElement,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&previousIsAssignmentTarget,this.context.firstCoverInitializedNameError=previousFirstCoverInitializedNameError||this.context.firstCoverInitializedNameError,result},Parser2.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column);},Parser2.prototype.parsePrimaryExpression=function(){var node=this.createNode(),expr,token,raw;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),expr=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(node,new Node.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(token.value,raw));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(token.value==="true",raw));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(null,raw));break;case 10:expr=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,expr=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":expr=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":expr=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,token=this.nextRegexToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.RegexLiteral(token.regex,raw,token.pattern,token.flags));break;default:expr=this.throwUnexpectedToken(this.nextToken());}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?expr=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?expr=this.finalize(node,new Node.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?expr=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),expr=this.finalize(node,new Node.ThisExpression)):this.matchKeyword("class")?expr=this.parseClassExpression():expr=this.throwUnexpectedToken(this.nextToken()));break;default:expr=this.throwUnexpectedToken(this.nextToken());}return expr},Parser2.prototype.parseSpreadElement=function(){var node=this.createNode();this.expect("...");var arg=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(node,new Node.SpreadElement(arg))},Parser2.prototype.parseArrayInitializer=function(){var node=this.createNode(),elements=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),elements.push(null);else if(this.match("...")){var element=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),elements.push(element);}else elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(node,new Node.ArrayExpression(elements))},Parser2.prototype.parsePropertyMethod=function(params){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=params.simple;var body=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&¶ms.firstRestricted&&this.tolerateUnexpectedToken(params.firstRestricted,params.message),this.context.strict&¶ms.stricted&&this.tolerateUnexpectedToken(params.stricted,params.message),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,body},Parser2.prototype.parsePropertyMethodFunction=function(){var isGenerator=!1,node=this.createNode(),previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var params=this.parseFormalParameters(),method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,params.params,method,isGenerator))},Parser2.prototype.parsePropertyMethodAsyncFunction=function(){var node=this.createNode(),previousAllowYield=this.context.allowYield,previousAwait=this.context.await;this.context.allowYield=!1,this.context.await=!0;var params=this.parseFormalParameters(),method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.context.await=previousAwait,this.finalize(node,new Node.AsyncFunctionExpression(null,params.params,method))},Parser2.prototype.parseObjectPropertyKey=function(){var node=this.createNode(),token=this.nextToken(),key;switch(token.type){case 8:case 6:this.context.strict&&token.octal&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictOctalLiteral);var raw=this.getTokenRaw(token);key=this.finalize(node,new Node.Literal(token.value,raw));break;case 3:case 1:case 5:case 4:key=this.finalize(node,new Node.Identifier(token.value));break;case 7:token.value==="["?(key=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):key=this.throwUnexpectedToken(token);break;default:key=this.throwUnexpectedToken(token);}return key},Parser2.prototype.isPropertyKey=function(key,value){return key.type===syntax_1.Syntax.Identifier&&key.name===value||key.type===syntax_1.Syntax.Literal&&key.value===value},Parser2.prototype.parseObjectProperty=function(hasProto){var node=this.createNode(),token=this.lookahead,kind,key=null,value=null,computed=!1,method=!1,shorthand=!1,isAsync=!1;if(token.type===3){var id=token.value;this.nextToken(),computed=this.match("["),isAsync=!this.hasLineTerminator&&id==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),key=isAsync?this.parseObjectPropertyKey():this.finalize(node,new Node.Identifier(id));}else this.match("*")?this.nextToken():(computed=this.match("["),key=this.parseObjectPropertyKey());var lookaheadPropertyKey=this.qualifiedPropertyName(this.lookahead);if(token.type===3&&!isAsync&&token.value==="get"&&lookaheadPropertyKey)kind="get",computed=this.match("["),key=this.parseObjectPropertyKey(),this.context.allowYield=!1,value=this.parseGetterMethod();else if(token.type===3&&!isAsync&&token.value==="set"&&lookaheadPropertyKey)kind="set",computed=this.match("["),key=this.parseObjectPropertyKey(),value=this.parseSetterMethod();else if(token.type===7&&token.value==="*"&&lookaheadPropertyKey)kind="init",computed=this.match("["),key=this.parseObjectPropertyKey(),value=this.parseGeneratorMethod(),method=!0;else if(key||this.throwUnexpectedToken(this.lookahead),kind="init",this.match(":")&&!isAsync)!computed&&this.isPropertyKey(key,"__proto__")&&(hasProto.value&&this.tolerateError(messages_1.Messages.DuplicateProtoProperty),hasProto.value=!0),this.nextToken(),value=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))value=isAsync?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),method=!0;else if(token.type===3){var id=this.finalize(node,new Node.Identifier(token.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),shorthand=!0;var init=this.isolateCoverGrammar(this.parseAssignmentExpression);value=this.finalize(node,new Node.AssignmentPattern(id,init));}else shorthand=!0,value=id;}else this.throwUnexpectedToken(this.nextToken());return this.finalize(node,new Node.Property(kind,key,computed,value,method,shorthand))},Parser2.prototype.parseObjectInitializer=function(){var node=this.createNode();this.expect("{");for(var properties=[],hasProto={value:!1};!this.match("}");)properties.push(this.parseObjectProperty(hasProto)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(node,new Node.ObjectExpression(properties))},Parser2.prototype.parseTemplateHead=function(){assert_1.assert(this.lookahead.head,"Template literal must start with a template head");var node=this.createNode(),token=this.nextToken(),raw=token.value,cooked=token.cooked;return this.finalize(node,new Node.TemplateElement({raw,cooked},token.tail))},Parser2.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var node=this.createNode(),token=this.nextToken(),raw=token.value,cooked=token.cooked;return this.finalize(node,new Node.TemplateElement({raw,cooked},token.tail))},Parser2.prototype.parseTemplateLiteral=function(){var node=this.createNode(),expressions=[],quasis=[],quasi=this.parseTemplateHead();for(quasis.push(quasi);!quasi.tail;)expressions.push(this.parseExpression()),quasi=this.parseTemplateElement(),quasis.push(quasi);return this.finalize(node,new Node.TemplateLiteral(quasis,expressions))},Parser2.prototype.reinterpretExpressionAsPattern=function(expr){switch(expr.type){case syntax_1.Syntax.Identifier:case syntax_1.Syntax.MemberExpression:case syntax_1.Syntax.RestElement:case syntax_1.Syntax.AssignmentPattern:break;case syntax_1.Syntax.SpreadElement:expr.type=syntax_1.Syntax.RestElement,this.reinterpretExpressionAsPattern(expr.argument);break;case syntax_1.Syntax.ArrayExpression:expr.type=syntax_1.Syntax.ArrayPattern;for(var i=0;i<expr.elements.length;i++)expr.elements[i]!==null&&this.reinterpretExpressionAsPattern(expr.elements[i]);break;case syntax_1.Syntax.ObjectExpression:expr.type=syntax_1.Syntax.ObjectPattern;for(var i=0;i<expr.properties.length;i++)this.reinterpretExpressionAsPattern(expr.properties[i].value);break;case syntax_1.Syntax.AssignmentExpression:expr.type=syntax_1.Syntax.AssignmentPattern,delete expr.operator,this.reinterpretExpressionAsPattern(expr.left);break;}},Parser2.prototype.parseGroupExpression=function(){var expr;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),expr={type:ArrowParameterPlaceHolder,params:[],async:!1};else {var startToken=this.lookahead,params=[];if(this.match("..."))expr=this.parseRestElement(params),this.expect(")"),this.match("=>")||this.expect("=>"),expr={type:ArrowParameterPlaceHolder,params:[expr],async:!1};else {var arrow=!1;if(this.context.isBindingElement=!0,expr=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var expressions=[];for(this.context.isAssignmentTarget=!1,expressions.push(expr);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i<expressions.length;i++)this.reinterpretExpressionAsPattern(expressions[i]);arrow=!0,expr={type:ArrowParameterPlaceHolder,params:expressions,async:!1};}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),expressions.push(this.parseRestElement(params)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var i=0;i<expressions.length;i++)this.reinterpretExpressionAsPattern(expressions[i]);arrow=!0,expr={type:ArrowParameterPlaceHolder,params:expressions,async:!1};}else expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(arrow)break}arrow||(expr=this.finalize(this.startNode(startToken),new Node.SequenceExpression(expressions)));}if(!arrow){if(this.expect(")"),this.match("=>")&&(expr.type===syntax_1.Syntax.Identifier&&expr.name==="yield"&&(arrow=!0,expr={type:ArrowParameterPlaceHolder,params:[expr],async:!1}),!arrow)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),expr.type===syntax_1.Syntax.SequenceExpression)for(var i=0;i<expr.expressions.length;i++)this.reinterpretExpressionAsPattern(expr.expressions[i]);else this.reinterpretExpressionAsPattern(expr);var parameters=expr.type===syntax_1.Syntax.SequenceExpression?expr.expressions:[expr];expr={type:ArrowParameterPlaceHolder,params:parameters,async:!1};}this.context.isBindingElement=!1;}}}return expr},Parser2.prototype.parseArguments=function(){this.expect("(");var args=[];if(!this.match(")"))for(;;){var expr=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(args.push(expr),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),args},Parser2.prototype.isIdentifierName=function(token){return token.type===3||token.type===4||token.type===1||token.type===5},Parser2.prototype.parseIdentifierName=function(){var node=this.createNode(),token=this.nextToken();return this.isIdentifierName(token)||this.throwUnexpectedToken(token),this.finalize(node,new Node.Identifier(token.value))},Parser2.prototype.parseNewExpression=function(){var node=this.createNode(),id=this.parseIdentifierName();assert_1.assert(id.name==="new","New expression must start with `new`");var expr;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var property=this.parseIdentifierName();expr=new Node.MetaProperty(id,property);}else this.throwUnexpectedToken(this.lookahead);else {var callee=this.isolateCoverGrammar(this.parseLeftHandSideExpression),args=this.match("(")?this.parseArguments():[];expr=new Node.NewExpression(callee,args),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}return this.finalize(node,expr)},Parser2.prototype.parseAsyncArgument=function(){var arg=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,arg},Parser2.prototype.parseAsyncArguments=function(){this.expect("(");var args=[];if(!this.match(")"))for(;;){var expr=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(args.push(expr),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),args},Parser2.prototype.parseLeftHandSideExpressionAllowCall=function(){var startToken=this.lookahead,maybeAsync=this.matchContextualKeyword("async"),previousAllowIn=this.context.allowIn;this.context.allowIn=!0;var expr;for(this.matchKeyword("super")&&this.context.inFunctionBody?(expr=this.createNode(),this.nextToken(),expr=this.finalize(expr,new Node.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):expr=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var property=this.parseIdentifierName();expr=this.finalize(this.startNode(startToken),new Node.StaticMemberExpression(expr,property));}else if(this.match("(")){var asyncArrow=maybeAsync&&startToken.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var args=asyncArrow?this.parseAsyncArguments():this.parseArguments();if(expr=this.finalize(this.startNode(startToken),new Node.CallExpression(expr,args)),asyncArrow&&this.match("=>")){for(var i=0;i<args.length;++i)this.reinterpretExpressionAsPattern(args[i]);expr={type:ArrowParameterPlaceHolder,params:args,async:!0};}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var property=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),expr=this.finalize(this.startNode(startToken),new Node.ComputedMemberExpression(expr,property));}else if(this.lookahead.type===10&&this.lookahead.head){var quasi=this.parseTemplateLiteral();expr=this.finalize(this.startNode(startToken),new Node.TaggedTemplateExpression(expr,quasi));}else break;return this.context.allowIn=previousAllowIn,expr},Parser2.prototype.parseSuper=function(){var node=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(node,new Node.Super)},Parser2.prototype.parseLeftHandSideExpression=function(){assert_1.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var node=this.startNode(this.lookahead),expr=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var property=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),expr=this.finalize(node,new Node.ComputedMemberExpression(expr,property));}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var property=this.parseIdentifierName();expr=this.finalize(node,new Node.StaticMemberExpression(expr,property));}else if(this.lookahead.type===10&&this.lookahead.head){var quasi=this.parseTemplateLiteral();expr=this.finalize(node,new Node.TaggedTemplateExpression(expr,quasi));}else break;return expr},Parser2.prototype.parseUpdateExpression=function(){var expr,startToken=this.lookahead;if(this.match("++")||this.match("--")){var node=this.startNode(startToken),token=this.nextToken();expr=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&expr.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(expr.name)&&this.tolerateError(messages_1.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);var prefix=!0;expr=this.finalize(node,new Node.UpdateExpression(token.value,expr,prefix)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}else if(expr=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&expr.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(expr.name)&&this.tolerateError(messages_1.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var operator=this.nextToken().value,prefix=!1;expr=this.finalize(this.startNode(startToken),new Node.UpdateExpression(operator,expr,prefix));}return expr},Parser2.prototype.parseAwaitExpression=function(){var node=this.createNode();this.nextToken();var argument=this.parseUnaryExpression();return this.finalize(node,new Node.AwaitExpression(argument))},Parser2.prototype.parseUnaryExpression=function(){var expr;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var node=this.startNode(this.lookahead),token=this.nextToken();expr=this.inheritCoverGrammar(this.parseUnaryExpression),expr=this.finalize(node,new Node.UnaryExpression(token.value,expr)),this.context.strict&&expr.operator==="delete"&&expr.argument.type===syntax_1.Syntax.Identifier&&this.tolerateError(messages_1.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}else this.context.await&&this.matchContextualKeyword("await")?expr=this.parseAwaitExpression():expr=this.parseUpdateExpression();return expr},Parser2.prototype.parseExponentiationExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseUnaryExpression);if(expr.type!==syntax_1.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var left=expr,right=this.isolateCoverGrammar(this.parseExponentiationExpression);expr=this.finalize(this.startNode(startToken),new Node.BinaryExpression("**",left,right));}return expr},Parser2.prototype.binaryPrecedence=function(token){var op=token.value,precedence;return token.type===7?precedence=this.operatorPrecedence[op]||0:token.type===4?precedence=op==="instanceof"||this.context.allowIn&&op==="in"?7:0:precedence=0,precedence},Parser2.prototype.parseBinaryExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseExponentiationExpression),token=this.lookahead,prec=this.binaryPrecedence(token);if(prec>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var markers=[startToken,this.lookahead],left=expr,right=this.isolateCoverGrammar(this.parseExponentiationExpression),stack=[left,token.value,right],precedences=[prec];prec=this.binaryPrecedence(this.lookahead),!(prec<=0);){for(;stack.length>2&&prec<=precedences[precedences.length-1];){right=stack.pop();var operator=stack.pop();precedences.pop(),left=stack.pop(),markers.pop();var node=this.startNode(markers[markers.length-1]);stack.push(this.finalize(node,new Node.BinaryExpression(operator,left,right)));}stack.push(this.nextToken().value),precedences.push(prec),markers.push(this.lookahead),stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression));}var i=stack.length-1;expr=stack[i];for(var lastMarker=markers.pop();i>1;){var marker=markers.pop(),lastLineStart=lastMarker&&lastMarker.lineStart,node=this.startNode(marker,lastLineStart),operator=stack[i-1];expr=this.finalize(node,new Node.BinaryExpression(operator,stack[i-2],expr)),i-=2,lastMarker=marker;}}return expr},Parser2.prototype.parseConditionalExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var previousAllowIn=this.context.allowIn;this.context.allowIn=!0;var consequent=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=previousAllowIn,this.expect(":");var alternate=this.isolateCoverGrammar(this.parseAssignmentExpression);expr=this.finalize(this.startNode(startToken),new Node.ConditionalExpression(expr,consequent,alternate)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}return expr},Parser2.prototype.checkPatternParam=function(options,param){switch(param.type){case syntax_1.Syntax.Identifier:this.validateParam(options,param,param.name);break;case syntax_1.Syntax.RestElement:this.checkPatternParam(options,param.argument);break;case syntax_1.Syntax.AssignmentPattern:this.checkPatternParam(options,param.left);break;case syntax_1.Syntax.ArrayPattern:for(var i=0;i<param.elements.length;i++)param.elements[i]!==null&&this.checkPatternParam(options,param.elements[i]);break;case syntax_1.Syntax.ObjectPattern:for(var i=0;i<param.properties.length;i++)this.checkPatternParam(options,param.properties[i].value);break;}options.simple=options.simple&¶m instanceof Node.Identifier;},Parser2.prototype.reinterpretAsCoverFormalsList=function(expr){var params=[expr],options,asyncArrow=!1;switch(expr.type){case syntax_1.Syntax.Identifier:break;case ArrowParameterPlaceHolder:params=expr.params,asyncArrow=expr.async;break;default:return null}options={simple:!0,paramSet:{}};for(var i=0;i<params.length;++i){var param=params[i];param.type===syntax_1.Syntax.AssignmentPattern?param.right.type===syntax_1.Syntax.YieldExpression&&(param.right.argument&&this.throwUnexpectedToken(this.lookahead),param.right.type=syntax_1.Syntax.Identifier,param.right.name="yield",delete param.right.argument,delete param.right.delegate):asyncArrow&¶m.type===syntax_1.Syntax.Identifier&¶m.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(options,param),params[i]=param;}if(this.context.strict||!this.context.allowYield)for(var i=0;i<params.length;++i){var param=params[i];param.type===syntax_1.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead);}if(options.message===messages_1.Messages.StrictParamDupe){var token=this.context.strict?options.stricted:options.firstRestricted;this.throwUnexpectedToken(token,options.message);}return {simple:options.simple,params,stricted:options.stricted,firstRestricted:options.firstRestricted,message:options.message}},Parser2.prototype.parseAssignmentExpression=function(){var expr;if(!this.context.allowYield&&this.matchKeyword("yield"))expr=this.parseYieldExpression();else {var startToken=this.lookahead,token=startToken;if(expr=this.parseConditionalExpression(),token.type===3&&token.lineNumber===this.lookahead.lineNumber&&token.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var arg=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(arg),expr={type:ArrowParameterPlaceHolder,params:[arg],async:!0};}if(expr.type===ArrowParameterPlaceHolder||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var isAsync=expr.async,list=this.reinterpretAsCoverFormalsList(expr);if(list){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=list.simple;var previousAllowYield=this.context.allowYield,previousAwait=this.context.await;this.context.allowYield=!0,this.context.await=isAsync;var node=this.startNode(startToken);this.expect("=>");var body=void 0;if(this.match("{")){var previousAllowIn=this.context.allowIn;this.context.allowIn=!0,body=this.parseFunctionSourceElements(),this.context.allowIn=previousAllowIn;}else body=this.isolateCoverGrammar(this.parseAssignmentExpression);var expression=body.type!==syntax_1.Syntax.BlockStatement;this.context.strict&&list.firstRestricted&&this.throwUnexpectedToken(list.firstRestricted,list.message),this.context.strict&&list.stricted&&this.tolerateUnexpectedToken(list.stricted,list.message),expr=isAsync?this.finalize(node,new Node.AsyncArrowFunctionExpression(list.params,body,expression)):this.finalize(node,new Node.ArrowFunctionExpression(list.params,body,expression)),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.allowYield=previousAllowYield,this.context.await=previousAwait;}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment),this.context.strict&&expr.type===syntax_1.Syntax.Identifier){var id=expr;this.scanner.isRestrictedWord(id.name)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(id.name)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord);}this.match("=")?this.reinterpretExpressionAsPattern(expr):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),token=this.nextToken();var operator=token.value,right=this.isolateCoverGrammar(this.parseAssignmentExpression);expr=this.finalize(this.startNode(startToken),new Node.AssignmentExpression(operator,expr,right)),this.context.firstCoverInitializedNameError=null;}}return expr},Parser2.prototype.parseExpression=function(){var startToken=this.lookahead,expr=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var expressions=[];for(expressions.push(expr);this.lookahead.type!==2&&this.match(",");)this.nextToken(),expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression));expr=this.finalize(this.startNode(startToken),new Node.SequenceExpression(expressions));}return expr},Parser2.prototype.parseStatementListItem=function(){var statement;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.IllegalExportDeclaration),statement=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.IllegalImportDeclaration),statement=this.parseImportDeclaration();break;case"const":statement=this.parseLexicalDeclaration({inFor:!1});break;case"function":statement=this.parseFunctionDeclaration();break;case"class":statement=this.parseClassDeclaration();break;case"let":statement=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:statement=this.parseStatement();break}else statement=this.parseStatement();return statement},Parser2.prototype.parseBlock=function(){var node=this.createNode();this.expect("{");for(var block=[];!this.match("}");)block.push(this.parseStatementListItem());return this.expect("}"),this.finalize(node,new Node.BlockStatement(block))},Parser2.prototype.parseLexicalBinding=function(kind,options){var node=this.createNode(),params=[],id=this.parsePattern(params,kind);this.context.strict&&id.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(id.name)&&this.tolerateError(messages_1.Messages.StrictVarName);var init=null;return kind==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),init=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(messages_1.Messages.DeclarationMissingInitializer,"const")):(!options.inFor&&id.type!==syntax_1.Syntax.Identifier||this.match("="))&&(this.expect("="),init=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(node,new Node.VariableDeclarator(id,init))},Parser2.prototype.parseBindingList=function(kind,options){for(var list=[this.parseLexicalBinding(kind,options)];this.match(",");)this.nextToken(),list.push(this.parseLexicalBinding(kind,options));return list},Parser2.prototype.isLexicalDeclaration=function(){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.scanner.lex();return this.scanner.restoreState(state),next.type===3||next.type===7&&next.value==="["||next.type===7&&next.value==="{"||next.type===4&&next.value==="let"||next.type===4&&next.value==="yield"},Parser2.prototype.parseLexicalDeclaration=function(options){var node=this.createNode(),kind=this.nextToken().value;assert_1.assert(kind==="let"||kind==="const","Lexical declaration must be either let or const");var declarations=this.parseBindingList(kind,options);return this.consumeSemicolon(),this.finalize(node,new Node.VariableDeclaration(declarations,kind))},Parser2.prototype.parseBindingRestElement=function(params,kind){var node=this.createNode();this.expect("...");var arg=this.parsePattern(params,kind);return this.finalize(node,new Node.RestElement(arg))},Parser2.prototype.parseArrayPattern=function(params,kind){var node=this.createNode();this.expect("[");for(var elements=[];!this.match("]");)if(this.match(","))this.nextToken(),elements.push(null);else {if(this.match("...")){elements.push(this.parseBindingRestElement(params,kind));break}else elements.push(this.parsePatternWithDefault(params,kind));this.match("]")||this.expect(",");}return this.expect("]"),this.finalize(node,new Node.ArrayPattern(elements))},Parser2.prototype.parsePropertyPattern=function(params,kind){var node=this.createNode(),computed=!1,shorthand=!1,method=!1,key,value;if(this.lookahead.type===3){var keyToken=this.lookahead;key=this.parseVariableIdentifier();var init=this.finalize(node,new Node.Identifier(keyToken.value));if(this.match("=")){params.push(keyToken),shorthand=!0,this.nextToken();var expr=this.parseAssignmentExpression();value=this.finalize(this.startNode(keyToken),new Node.AssignmentPattern(init,expr));}else this.match(":")?(this.expect(":"),value=this.parsePatternWithDefault(params,kind)):(params.push(keyToken),shorthand=!0,value=init);}else computed=this.match("["),key=this.parseObjectPropertyKey(),this.expect(":"),value=this.parsePatternWithDefault(params,kind);return this.finalize(node,new Node.Property("init",key,computed,value,method,shorthand))},Parser2.prototype.parseObjectPattern=function(params,kind){var node=this.createNode(),properties=[];for(this.expect("{");!this.match("}");)properties.push(this.parsePropertyPattern(params,kind)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(node,new Node.ObjectPattern(properties))},Parser2.prototype.parsePattern=function(params,kind){var pattern;return this.match("[")?pattern=this.parseArrayPattern(params,kind):this.match("{")?pattern=this.parseObjectPattern(params,kind):(this.matchKeyword("let")&&(kind==="const"||kind==="let")&&this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.LetInLexicalBinding),params.push(this.lookahead),pattern=this.parseVariableIdentifier(kind)),pattern},Parser2.prototype.parsePatternWithDefault=function(params,kind){var startToken=this.lookahead,pattern=this.parsePattern(params,kind);if(this.match("=")){this.nextToken();var previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var right=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=previousAllowYield,pattern=this.finalize(this.startNode(startToken),new Node.AssignmentPattern(pattern,right));}return pattern},Parser2.prototype.parseVariableIdentifier=function(kind){var node=this.createNode(),token=this.nextToken();return token.type===4&&token.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(token):token.type!==3?this.context.strict&&token.type===4&&this.scanner.isStrictModeReservedWord(token.value)?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord):(this.context.strict||token.value!=="let"||kind!=="var")&&this.throwUnexpectedToken(token):(this.context.isModule||this.context.await)&&token.type===3&&token.value==="await"&&this.tolerateUnexpectedToken(token),this.finalize(node,new Node.Identifier(token.value))},Parser2.prototype.parseVariableDeclaration=function(options){var node=this.createNode(),params=[],id=this.parsePattern(params,"var");this.context.strict&&id.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(id.name)&&this.tolerateError(messages_1.Messages.StrictVarName);var init=null;return this.match("=")?(this.nextToken(),init=this.isolateCoverGrammar(this.parseAssignmentExpression)):id.type!==syntax_1.Syntax.Identifier&&!options.inFor&&this.expect("="),this.finalize(node,new Node.VariableDeclarator(id,init))},Parser2.prototype.parseVariableDeclarationList=function(options){var opt={inFor:options.inFor},list=[];for(list.push(this.parseVariableDeclaration(opt));this.match(",");)this.nextToken(),list.push(this.parseVariableDeclaration(opt));return list},Parser2.prototype.parseVariableStatement=function(){var node=this.createNode();this.expectKeyword("var");var declarations=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(node,new Node.VariableDeclaration(declarations,"var"))},Parser2.prototype.parseEmptyStatement=function(){var node=this.createNode();return this.expect(";"),this.finalize(node,new Node.EmptyStatement)},Parser2.prototype.parseExpressionStatement=function(){var node=this.createNode(),expr=this.parseExpression();return this.consumeSemicolon(),this.finalize(node,new Node.ExpressionStatement(expr))},Parser2.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(messages_1.Messages.StrictFunction),this.parseStatement()},Parser2.prototype.parseIfStatement=function(){var node=this.createNode(),consequent,alternate=null;this.expectKeyword("if"),this.expect("(");var test=this.parseExpression();return !this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),consequent=this.finalize(this.createNode(),new Node.EmptyStatement)):(this.expect(")"),consequent=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),alternate=this.parseIfClause())),this.finalize(node,new Node.IfStatement(test,consequent,alternate))},Parser2.prototype.parseDoWhileStatement=function(){var node=this.createNode();this.expectKeyword("do");var previousInIteration=this.context.inIteration;this.context.inIteration=!0;var body=this.parseStatement();this.context.inIteration=previousInIteration,this.expectKeyword("while"),this.expect("(");var test=this.parseExpression();return !this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(node,new Node.DoWhileStatement(body,test))},Parser2.prototype.parseWhileStatement=function(){var node=this.createNode(),body;this.expectKeyword("while"),this.expect("(");var test=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement);else {this.expect(")");var previousInIteration=this.context.inIteration;this.context.inIteration=!0,body=this.parseStatement(),this.context.inIteration=previousInIteration;}return this.finalize(node,new Node.WhileStatement(test,body))},Parser2.prototype.parseForStatement=function(){var init=null,test=null,update=null,forIn=!0,left,right,node=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){init=this.createNode(),this.nextToken();var previousAllowIn=this.context.allowIn;this.context.allowIn=!1;var declarations=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=previousAllowIn,declarations.length===1&&this.matchKeyword("in")){var decl=declarations[0];decl.init&&(decl.id.type===syntax_1.Syntax.ArrayPattern||decl.id.type===syntax_1.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(messages_1.Messages.ForInOfLoopInitializer,"for-in"),init=this.finalize(init,new Node.VariableDeclaration(declarations,"var")),this.nextToken(),left=init,right=this.parseExpression(),init=null;}else declarations.length===1&&declarations[0].init===null&&this.matchContextualKeyword("of")?(init=this.finalize(init,new Node.VariableDeclaration(declarations,"var")),this.nextToken(),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1):(init=this.finalize(init,new Node.VariableDeclaration(declarations,"var")),this.expect(";"));}else if(this.matchKeyword("const")||this.matchKeyword("let")){init=this.createNode();var kind=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")init=this.finalize(init,new Node.Identifier(kind)),this.nextToken(),left=init,right=this.parseExpression(),init=null;else {var previousAllowIn=this.context.allowIn;this.context.allowIn=!1;var declarations=this.parseBindingList(kind,{inFor:!0});this.context.allowIn=previousAllowIn,declarations.length===1&&declarations[0].init===null&&this.matchKeyword("in")?(init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)),this.nextToken(),left=init,right=this.parseExpression(),init=null):declarations.length===1&&declarations[0].init===null&&this.matchContextualKeyword("of")?(init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)),this.nextToken(),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1):(this.consumeSemicolon(),init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)));}}else {var initStartToken=this.lookahead,previousAllowIn=this.context.allowIn;if(this.context.allowIn=!1,init=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=previousAllowIn,this.matchKeyword("in"))(!this.context.isAssignmentTarget||init.type===syntax_1.Syntax.AssignmentExpression)&&this.tolerateError(messages_1.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(init),left=init,right=this.parseExpression(),init=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||init.type===syntax_1.Syntax.AssignmentExpression)&&this.tolerateError(messages_1.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(init),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1;else {if(this.match(",")){for(var initSeq=[init];this.match(",");)this.nextToken(),initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));init=this.finalize(this.startNode(initStartToken),new Node.SequenceExpression(initSeq));}this.expect(";");}}typeof left>"u"&&(this.match(";")||(test=this.parseExpression()),this.expect(";"),this.match(")")||(update=this.parseExpression()));var body;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement);else {this.expect(")");var previousInIteration=this.context.inIteration;this.context.inIteration=!0,body=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=previousInIteration;}return typeof left>"u"?this.finalize(node,new Node.ForStatement(init,test,update,body)):forIn?this.finalize(node,new Node.ForInStatement(left,right,body)):this.finalize(node,new Node.ForOfStatement(left,right,body))},Parser2.prototype.parseContinueStatement=function(){var node=this.createNode();this.expectKeyword("continue");var label=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var id=this.parseVariableIdentifier();label=id;var key="$"+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)||this.throwError(messages_1.Messages.UnknownLabel,id.name);}return this.consumeSemicolon(),label===null&&!this.context.inIteration&&this.throwError(messages_1.Messages.IllegalContinue),this.finalize(node,new Node.ContinueStatement(label))},Parser2.prototype.parseBreakStatement=function(){var node=this.createNode();this.expectKeyword("break");var label=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var id=this.parseVariableIdentifier(),key="$"+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)||this.throwError(messages_1.Messages.UnknownLabel,id.name),label=id;}return this.consumeSemicolon(),label===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(messages_1.Messages.IllegalBreak),this.finalize(node,new Node.BreakStatement(label))},Parser2.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(messages_1.Messages.IllegalReturn);var node=this.createNode();this.expectKeyword("return");var hasArgument=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,argument=hasArgument?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(node,new Node.ReturnStatement(argument))},Parser2.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(messages_1.Messages.StrictModeWith);var node=this.createNode(),body;this.expectKeyword("with"),this.expect("(");var object=this.parseExpression();return !this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement)):(this.expect(")"),body=this.parseStatement()),this.finalize(node,new Node.WithStatement(object,body))},Parser2.prototype.parseSwitchCase=function(){var node=this.createNode(),test;this.matchKeyword("default")?(this.nextToken(),test=null):(this.expectKeyword("case"),test=this.parseExpression()),this.expect(":");for(var consequent=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)consequent.push(this.parseStatementListItem());return this.finalize(node,new Node.SwitchCase(test,consequent))},Parser2.prototype.parseSwitchStatement=function(){var node=this.createNode();this.expectKeyword("switch"),this.expect("(");var discriminant=this.parseExpression();this.expect(")");var previousInSwitch=this.context.inSwitch;this.context.inSwitch=!0;var cases=[],defaultFound=!1;for(this.expect("{");!this.match("}");){var clause=this.parseSwitchCase();clause.test===null&&(defaultFound&&this.throwError(messages_1.Messages.MultipleDefaultsInSwitch),defaultFound=!0),cases.push(clause);}return this.expect("}"),this.context.inSwitch=previousInSwitch,this.finalize(node,new Node.SwitchStatement(discriminant,cases))},Parser2.prototype.parseLabelledStatement=function(){var node=this.createNode(),expr=this.parseExpression(),statement;if(expr.type===syntax_1.Syntax.Identifier&&this.match(":")){this.nextToken();var id=expr,key="$"+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)&&this.throwError(messages_1.Messages.Redeclaration,"Label",id.name),this.context.labelSet[key]=!0;var body=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),body=this.parseClassDeclaration();else if(this.matchKeyword("function")){var token=this.lookahead,declaration=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunction):declaration.generator&&this.tolerateUnexpectedToken(token,messages_1.Messages.GeneratorInLegacyContext),body=declaration;}else body=this.parseStatement();delete this.context.labelSet[key],statement=new Node.LabeledStatement(id,body);}else this.consumeSemicolon(),statement=new Node.ExpressionStatement(expr);return this.finalize(node,statement)},Parser2.prototype.parseThrowStatement=function(){var node=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(messages_1.Messages.NewlineAfterThrow);var argument=this.parseExpression();return this.consumeSemicolon(),this.finalize(node,new Node.ThrowStatement(argument))},Parser2.prototype.parseCatchClause=function(){var node=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var params=[],param=this.parsePattern(params),paramMap={},i=0;i<params.length;i++){var key="$"+params[i].value;Object.prototype.hasOwnProperty.call(paramMap,key)&&this.tolerateError(messages_1.Messages.DuplicateBinding,params[i].value),paramMap[key]=!0;}this.context.strict&¶m.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(param.name)&&this.tolerateError(messages_1.Messages.StrictCatchVariable),this.expect(")");var body=this.parseBlock();return this.finalize(node,new Node.CatchClause(param,body))},Parser2.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},Parser2.prototype.parseTryStatement=function(){var node=this.createNode();this.expectKeyword("try");var block=this.parseBlock(),handler=this.matchKeyword("catch")?this.parseCatchClause():null,finalizer=this.matchKeyword("finally")?this.parseFinallyClause():null;return !handler&&!finalizer&&this.throwError(messages_1.Messages.NoCatchOrFinally),this.finalize(node,new Node.TryStatement(block,handler,finalizer))},Parser2.prototype.parseDebuggerStatement=function(){var node=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(node,new Node.DebuggerStatement)},Parser2.prototype.parseStatement=function(){var statement;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:statement=this.parseExpressionStatement();break;case 7:var value=this.lookahead.value;value==="{"?statement=this.parseBlock():value==="("?statement=this.parseExpressionStatement():value===";"?statement=this.parseEmptyStatement():statement=this.parseExpressionStatement();break;case 3:statement=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":statement=this.parseBreakStatement();break;case"continue":statement=this.parseContinueStatement();break;case"debugger":statement=this.parseDebuggerStatement();break;case"do":statement=this.parseDoWhileStatement();break;case"for":statement=this.parseForStatement();break;case"function":statement=this.parseFunctionDeclaration();break;case"if":statement=this.parseIfStatement();break;case"return":statement=this.parseReturnStatement();break;case"switch":statement=this.parseSwitchStatement();break;case"throw":statement=this.parseThrowStatement();break;case"try":statement=this.parseTryStatement();break;case"var":statement=this.parseVariableStatement();break;case"while":statement=this.parseWhileStatement();break;case"with":statement=this.parseWithStatement();break;default:statement=this.parseExpressionStatement();break}break;default:statement=this.throwUnexpectedToken(this.lookahead);}return statement},Parser2.prototype.parseFunctionSourceElements=function(){var node=this.createNode();this.expect("{");var body=this.parseDirectivePrologues(),previousLabelSet=this.context.labelSet,previousInIteration=this.context.inIteration,previousInSwitch=this.context.inSwitch,previousInFunctionBody=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)body.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=previousLabelSet,this.context.inIteration=previousInIteration,this.context.inSwitch=previousInSwitch,this.context.inFunctionBody=previousInFunctionBody,this.finalize(node,new Node.BlockStatement(body))},Parser2.prototype.validateParam=function(options,param,name){var key="$"+name;this.context.strict?(this.scanner.isRestrictedWord(name)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(options.paramSet,key)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamDupe)):options.firstRestricted||(this.scanner.isRestrictedWord(name)?(options.firstRestricted=param,options.message=messages_1.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(name)?(options.firstRestricted=param,options.message=messages_1.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(options.paramSet,key)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(options.paramSet,key,{value:!0,enumerable:!0,writable:!0,configurable:!0}):options.paramSet[key]=!0;},Parser2.prototype.parseRestElement=function(params){var node=this.createNode();this.expect("...");var arg=this.parsePattern(params);return this.match("=")&&this.throwError(messages_1.Messages.DefaultRestParameter),this.match(")")||this.throwError(messages_1.Messages.ParameterAfterRestParameter),this.finalize(node,new Node.RestElement(arg))},Parser2.prototype.parseFormalParameter=function(options){for(var params=[],param=this.match("...")?this.parseRestElement(params):this.parsePatternWithDefault(params),i=0;i<params.length;i++)this.validateParam(options,params[i],params[i].value);options.simple=options.simple&¶m instanceof Node.Identifier,options.params.push(param);},Parser2.prototype.parseFormalParameters=function(firstRestricted){var options;if(options={simple:!0,params:[],firstRestricted},this.expect("("),!this.match(")"))for(options.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(options),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:options.simple,params:options.params,stricted:options.stricted,firstRestricted:options.firstRestricted,message:options.message}},Parser2.prototype.matchAsyncFunction=function(){var match=this.matchContextualKeyword("async");if(match){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.scanner.lex();this.scanner.restoreState(state),match=state.lineNumber===next.lineNumber&&next.type===4&&next.value==="function";}return match},Parser2.prototype.parseFunctionDeclaration=function(identifierIsOptional){var node=this.createNode(),isAsync=this.matchContextualKeyword("async");isAsync&&this.nextToken(),this.expectKeyword("function");var isGenerator=isAsync?!1:this.match("*");isGenerator&&this.nextToken();var message,id=null,firstRestricted=null;if(!identifierIsOptional||!this.match("(")){var token=this.lookahead;id=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(token.value)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunctionName):this.scanner.isRestrictedWord(token.value)?(firstRestricted=token,message=messages_1.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(token.value)&&(firstRestricted=token,message=messages_1.Messages.StrictReservedWord);}var previousAllowAwait=this.context.await,previousAllowYield=this.context.allowYield;this.context.await=isAsync,this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters(firstRestricted),params=formalParameters.params,stricted=formalParameters.stricted;firstRestricted=formalParameters.firstRestricted,formalParameters.message&&(message=formalParameters.message);var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=formalParameters.simple;var body=this.parseFunctionSourceElements();return this.context.strict&&firstRestricted&&this.throwUnexpectedToken(firstRestricted,message),this.context.strict&&stricted&&this.tolerateUnexpectedToken(stricted,message),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.await=previousAllowAwait,this.context.allowYield=previousAllowYield,isAsync?this.finalize(node,new Node.AsyncFunctionDeclaration(id,params,body)):this.finalize(node,new Node.FunctionDeclaration(id,params,body,isGenerator))},Parser2.prototype.parseFunctionExpression=function(){var node=this.createNode(),isAsync=this.matchContextualKeyword("async");isAsync&&this.nextToken(),this.expectKeyword("function");var isGenerator=isAsync?!1:this.match("*");isGenerator&&this.nextToken();var message,id=null,firstRestricted,previousAllowAwait=this.context.await,previousAllowYield=this.context.allowYield;if(this.context.await=isAsync,this.context.allowYield=!isGenerator,!this.match("(")){var token=this.lookahead;id=!this.context.strict&&!isGenerator&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(token.value)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunctionName):this.scanner.isRestrictedWord(token.value)?(firstRestricted=token,message=messages_1.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(token.value)&&(firstRestricted=token,message=messages_1.Messages.StrictReservedWord);}var formalParameters=this.parseFormalParameters(firstRestricted),params=formalParameters.params,stricted=formalParameters.stricted;firstRestricted=formalParameters.firstRestricted,formalParameters.message&&(message=formalParameters.message);var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=formalParameters.simple;var body=this.parseFunctionSourceElements();return this.context.strict&&firstRestricted&&this.throwUnexpectedToken(firstRestricted,message),this.context.strict&&stricted&&this.tolerateUnexpectedToken(stricted,message),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.await=previousAllowAwait,this.context.allowYield=previousAllowYield,isAsync?this.finalize(node,new Node.AsyncFunctionExpression(id,params,body)):this.finalize(node,new Node.FunctionExpression(id,params,body,isGenerator))},Parser2.prototype.parseDirective=function(){var token=this.lookahead,node=this.createNode(),expr=this.parseExpression(),directive=expr.type===syntax_1.Syntax.Literal?this.getTokenRaw(token).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(node,directive?new Node.Directive(expr,directive):new Node.ExpressionStatement(expr))},Parser2.prototype.parseDirectivePrologues=function(){for(var firstRestricted=null,body=[];;){var token=this.lookahead;if(token.type!==8)break;var statement=this.parseDirective();body.push(statement);var directive=statement.directive;if(typeof directive!="string")break;directive==="use strict"?(this.context.strict=!0,firstRestricted&&this.tolerateUnexpectedToken(firstRestricted,messages_1.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(token,messages_1.Messages.IllegalLanguageModeDirective)):!firstRestricted&&token.octal&&(firstRestricted=token);}return body},Parser2.prototype.qualifiedPropertyName=function(token){switch(token.type){case 3:case 8:case 1:case 5:case 6:case 4:return !0;case 7:return token.value==="[";}return !1},Parser2.prototype.parseGetterMethod=function(){var node=this.createNode(),isGenerator=!1,previousAllowYield=this.context.allowYield;this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters();formalParameters.params.length>0&&this.tolerateError(messages_1.Messages.BadGetterArity);var method=this.parsePropertyMethod(formalParameters);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,formalParameters.params,method,isGenerator))},Parser2.prototype.parseSetterMethod=function(){var node=this.createNode(),isGenerator=!1,previousAllowYield=this.context.allowYield;this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters();formalParameters.params.length!==1?this.tolerateError(messages_1.Messages.BadSetterArity):formalParameters.params[0]instanceof Node.RestElement&&this.tolerateError(messages_1.Messages.BadSetterRestParameter);var method=this.parsePropertyMethod(formalParameters);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,formalParameters.params,method,isGenerator))},Parser2.prototype.parseGeneratorMethod=function(){var node=this.createNode(),isGenerator=!0,previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var params=this.parseFormalParameters();this.context.allowYield=!1;var method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,params.params,method,isGenerator))},Parser2.prototype.isStartOfExpression=function(){var start=!0,value=this.lookahead.value;switch(this.lookahead.type){case 7:start=value==="["||value==="("||value==="{"||value==="+"||value==="-"||value==="!"||value==="~"||value==="++"||value==="--"||value==="/"||value==="/=";break;case 4:start=value==="class"||value==="delete"||value==="function"||value==="let"||value==="new"||value==="super"||value==="this"||value==="typeof"||value==="void"||value==="yield";break;}return start},Parser2.prototype.parseYieldExpression=function(){var node=this.createNode();this.expectKeyword("yield");var argument=null,delegate=!1;if(!this.hasLineTerminator){var previousAllowYield=this.context.allowYield;this.context.allowYield=!1,delegate=this.match("*"),delegate?(this.nextToken(),argument=this.parseAssignmentExpression()):this.isStartOfExpression()&&(argument=this.parseAssignmentExpression()),this.context.allowYield=previousAllowYield;}return this.finalize(node,new Node.YieldExpression(argument,delegate))},Parser2.prototype.parseClassElement=function(hasConstructor){var token=this.lookahead,node=this.createNode(),kind="",key=null,value=null,computed=!1,method=!1,isStatic=!1,isAsync=!1;if(this.match("*"))this.nextToken();else {computed=this.match("["),key=this.parseObjectPropertyKey();var id=key;if(id.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(token=this.lookahead,isStatic=!0,computed=this.match("["),this.match("*")?this.nextToken():key=this.parseObjectPropertyKey()),token.type===3&&!this.hasLineTerminator&&token.value==="async"){var punctuator=this.lookahead.value;punctuator!==":"&&punctuator!=="("&&punctuator!=="*"&&(isAsync=!0,token=this.lookahead,key=this.parseObjectPropertyKey(),token.type===3&&token.value==="constructor"&&this.tolerateUnexpectedToken(token,messages_1.Messages.ConstructorIsAsync));}}var lookaheadPropertyKey=this.qualifiedPropertyName(this.lookahead);return token.type===3?token.value==="get"&&lookaheadPropertyKey?(kind="get",computed=this.match("["),key=this.parseObjectPropertyKey(),this.context.allowYield=!1,value=this.parseGetterMethod()):token.value==="set"&&lookaheadPropertyKey&&(kind="set",computed=this.match("["),key=this.parseObjectPropertyKey(),value=this.parseSetterMethod()):token.type===7&&token.value==="*"&&lookaheadPropertyKey&&(kind="init",computed=this.match("["),key=this.parseObjectPropertyKey(),value=this.parseGeneratorMethod(),method=!0),!kind&&key&&this.match("(")&&(kind="init",value=isAsync?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),method=!0),kind||this.throwUnexpectedToken(this.lookahead),kind==="init"&&(kind="method"),computed||(isStatic&&this.isPropertyKey(key,"prototype")&&this.throwUnexpectedToken(token,messages_1.Messages.StaticPrototype),!isStatic&&this.isPropertyKey(key,"constructor")&&((kind!=="method"||!method||value&&value.generator)&&this.throwUnexpectedToken(token,messages_1.Messages.ConstructorSpecialMethod),hasConstructor.value?this.throwUnexpectedToken(token,messages_1.Messages.DuplicateConstructor):hasConstructor.value=!0,kind="constructor")),this.finalize(node,new Node.MethodDefinition(key,computed,value,kind,isStatic))},Parser2.prototype.parseClassElementList=function(){var body=[],hasConstructor={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():body.push(this.parseClassElement(hasConstructor));return this.expect("}"),body},Parser2.prototype.parseClassBody=function(){var node=this.createNode(),elementList=this.parseClassElementList();return this.finalize(node,new Node.ClassBody(elementList))},Parser2.prototype.parseClassDeclaration=function(identifierIsOptional){var node=this.createNode(),previousStrict=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var id=identifierIsOptional&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),superClass=null;this.matchKeyword("extends")&&(this.nextToken(),superClass=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var classBody=this.parseClassBody();return this.context.strict=previousStrict,this.finalize(node,new Node.ClassDeclaration(id,superClass,classBody))},Parser2.prototype.parseClassExpression=function(){var node=this.createNode(),previousStrict=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var id=this.lookahead.type===3?this.parseVariableIdentifier():null,superClass=null;this.matchKeyword("extends")&&(this.nextToken(),superClass=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var classBody=this.parseClassBody();return this.context.strict=previousStrict,this.finalize(node,new Node.ClassExpression(id,superClass,classBody))},Parser2.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var node=this.createNode(),body=this.parseDirectivePrologues();this.lookahead.type!==2;)body.push(this.parseStatementListItem());return this.finalize(node,new Node.Module(body))},Parser2.prototype.parseScript=function(){for(var node=this.createNode(),body=this.parseDirectivePrologues();this.lookahead.type!==2;)body.push(this.parseStatementListItem());return this.finalize(node,new Node.Script(body))},Parser2.prototype.parseModuleSpecifier=function(){var node=this.createNode();this.lookahead.type!==8&&this.throwError(messages_1.Messages.InvalidModuleSpecifier);var token=this.nextToken(),raw=this.getTokenRaw(token);return this.finalize(node,new Node.Literal(token.value,raw))},Parser2.prototype.parseImportSpecifier=function(){var node=this.createNode(),imported,local;return this.lookahead.type===3?(imported=this.parseVariableIdentifier(),local=imported,this.matchContextualKeyword("as")&&(this.nextToken(),local=this.parseVariableIdentifier())):(imported=this.parseIdentifierName(),local=imported,this.matchContextualKeyword("as")?(this.nextToken(),local=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(node,new Node.ImportSpecifier(local,imported))},Parser2.prototype.parseNamedImports=function(){this.expect("{");for(var specifiers=[];!this.match("}");)specifiers.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),specifiers},Parser2.prototype.parseImportDefaultSpecifier=function(){var node=this.createNode(),local=this.parseIdentifierName();return this.finalize(node,new Node.ImportDefaultSpecifier(local))},Parser2.prototype.parseImportNamespaceSpecifier=function(){var node=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(messages_1.Messages.NoAsAfterImportNamespace),this.nextToken();var local=this.parseIdentifierName();return this.finalize(node,new Node.ImportNamespaceSpecifier(local))},Parser2.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(messages_1.Messages.IllegalImportDeclaration);var node=this.createNode();this.expectKeyword("import");var src,specifiers=[];if(this.lookahead.type===8)src=this.parseModuleSpecifier();else {if(this.match("{")?specifiers=specifiers.concat(this.parseNamedImports()):this.match("*")?specifiers.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(specifiers.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?specifiers.push(this.parseImportNamespaceSpecifier()):this.match("{")?specifiers=specifiers.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var message=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message,this.lookahead.value);}this.nextToken(),src=this.parseModuleSpecifier();}return this.consumeSemicolon(),this.finalize(node,new Node.ImportDeclaration(specifiers,src))},Parser2.prototype.parseExportSpecifier=function(){var node=this.createNode(),local=this.parseIdentifierName(),exported=local;return this.matchContextualKeyword("as")&&(this.nextToken(),exported=this.parseIdentifierName()),this.finalize(node,new Node.ExportSpecifier(local,exported))},Parser2.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(messages_1.Messages.IllegalExportDeclaration);var node=this.createNode();this.expectKeyword("export");var exportDeclaration;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var declaration=this.parseFunctionDeclaration(!0);exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration));}else if(this.matchKeyword("class")){var declaration=this.parseClassDeclaration(!0);exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration));}else if(this.matchContextualKeyword("async")){var declaration=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration));}else {this.matchContextualKeyword("from")&&this.throwError(messages_1.Messages.UnexpectedToken,this.lookahead.value);var declaration=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration));}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var message=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message,this.lookahead.value);}this.nextToken();var src=this.parseModuleSpecifier();this.consumeSemicolon(),exportDeclaration=this.finalize(node,new Node.ExportAllDeclaration(src));}else if(this.lookahead.type===4){var declaration=void 0;switch(this.lookahead.value){case"let":case"const":declaration=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":declaration=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead);}exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(declaration,[],null));}else if(this.matchAsyncFunction()){var declaration=this.parseFunctionDeclaration();exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(declaration,[],null));}else {var specifiers=[],source=null,isExportFromIdentifier=!1;for(this.expect("{");!this.match("}");)isExportFromIdentifier=isExportFromIdentifier||this.matchKeyword("default"),specifiers.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),source=this.parseModuleSpecifier(),this.consumeSemicolon();else if(isExportFromIdentifier){var message=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message,this.lookahead.value);}else this.consumeSemicolon();exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(null,specifiers,source));}return exportDeclaration},Parser2}();exports2.Parser=Parser;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0});function assert(condition,message){if(!condition)throw new Error("ASSERT: "+message)}exports2.assert=assert;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0});var ErrorHandler=function(){function ErrorHandler2(){this.errors=[],this.tolerant=!1;}return ErrorHandler2.prototype.recordError=function(error){this.errors.push(error);},ErrorHandler2.prototype.tolerate=function(error){if(this.tolerant)this.recordError(error);else throw error},ErrorHandler2.prototype.constructError=function(msg,column){var error=new Error(msg);try{throw error}catch(base){Object.create&&Object.defineProperty&&(error=Object.create(base),Object.defineProperty(error,"column",{value:column}));}return error},ErrorHandler2.prototype.createError=function(index,line,col,description){var msg="Line "+line+": "+description,error=this.constructError(msg,col);return error.index=index,error.lineNumber=line,error.description=description,error},ErrorHandler2.prototype.throwError=function(index,line,col,description){throw this.createError(index,line,col,description)},ErrorHandler2.prototype.tolerateError=function(index,line,col,description){var error=this.createError(index,line,col,description);if(this.tolerant)this.recordError(error);else throw error},ErrorHandler2}();exports2.ErrorHandler=ErrorHandler;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"};},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var assert_1=__webpack_require__(9),character_1=__webpack_require__(4),messages_1=__webpack_require__(11);function hexValue(ch){return "0123456789abcdef".indexOf(ch.toLowerCase())}function octalValue(ch){return "01234567".indexOf(ch)}var Scanner=function(){function Scanner2(code,handler){this.source=code,this.errorHandler=handler,this.trackComment=!1,this.isModule=!1,this.length=code.length,this.index=0,this.lineNumber=code.length>0?1:0,this.lineStart=0,this.curlyStack=[];}return Scanner2.prototype.saveState=function(){return {index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},Scanner2.prototype.restoreState=function(state){this.index=state.index,this.lineNumber=state.lineNumber,this.lineStart=state.lineStart;},Scanner2.prototype.eof=function(){return this.index>=this.length},Scanner2.prototype.throwUnexpectedToken=function(message){return message===void 0&&(message=messages_1.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,message)},Scanner2.prototype.tolerateUnexpectedToken=function(message){message===void 0&&(message=messages_1.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,message);},Scanner2.prototype.skipSingleLineComment=function(offset){var comments=[],start,loc;for(this.trackComment&&(comments=[],start=this.index-offset,loc={start:{line:this.lineNumber,column:this.index-this.lineStart-offset},end:{}});!this.eof();){var ch=this.source.charCodeAt(this.index);if(++this.index,character_1.Character.isLineTerminator(ch)){if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart-1};var entry={multiLine:!1,slice:[start+offset,this.index-1],range:[start,this.index-1],loc};comments.push(entry);}return ch===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,comments}}if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!1,slice:[start+offset,this.index],range:[start,this.index],loc};comments.push(entry);}return comments},Scanner2.prototype.skipMultiLineComment=function(){var comments=[],start,loc;for(this.trackComment&&(comments=[],start=this.index-2,loc={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var ch=this.source.charCodeAt(this.index);if(character_1.Character.isLineTerminator(ch))ch===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(ch===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!0,slice:[start+2,this.index-2],range:[start,this.index],loc};comments.push(entry);}return comments}++this.index;}else ++this.index;}if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!0,slice:[start+2,this.index],range:[start,this.index],loc};comments.push(entry);}return this.tolerateUnexpectedToken(),comments},Scanner2.prototype.scanComments=function(){var comments;this.trackComment&&(comments=[]);for(var start=this.index===0;!this.eof();){var ch=this.source.charCodeAt(this.index);if(character_1.Character.isWhiteSpace(ch))++this.index;else if(character_1.Character.isLineTerminator(ch))++this.index,ch===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,start=!0;else if(ch===47)if(ch=this.source.charCodeAt(this.index+1),ch===47){this.index+=2;var comment=this.skipSingleLineComment(2);this.trackComment&&(comments=comments.concat(comment)),start=!0;}else if(ch===42){this.index+=2;var comment=this.skipMultiLineComment();this.trackComment&&(comments=comments.concat(comment));}else break;else if(start&&ch===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var comment=this.skipSingleLineComment(3);this.trackComment&&(comments=comments.concat(comment));}else break;else if(ch===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var comment=this.skipSingleLineComment(4);this.trackComment&&(comments=comments.concat(comment));}else break;else break}return comments},Scanner2.prototype.isFutureReservedWord=function(id){switch(id){case"enum":case"export":case"import":case"super":return !0;default:return !1}},Scanner2.prototype.isStrictModeReservedWord=function(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return !0;default:return !1}},Scanner2.prototype.isRestrictedWord=function(id){return id==="eval"||id==="arguments"},Scanner2.prototype.isKeyword=function(id){switch(id.length){case 2:return id==="if"||id==="in"||id==="do";case 3:return id==="var"||id==="for"||id==="new"||id==="try"||id==="let";case 4:return id==="this"||id==="else"||id==="case"||id==="void"||id==="with"||id==="enum";case 5:return id==="while"||id==="break"||id==="catch"||id==="throw"||id==="const"||id==="yield"||id==="class"||id==="super";case 6:return id==="return"||id==="typeof"||id==="delete"||id==="switch"||id==="export"||id==="import";case 7:return id==="default"||id==="finally"||id==="extends";case 8:return id==="function"||id==="continue"||id==="debugger";case 10:return id==="instanceof";default:return !1}},Scanner2.prototype.codePointAt=function(i){var cp=this.source.charCodeAt(i);if(cp>=55296&&cp<=56319){var second=this.source.charCodeAt(i+1);if(second>=56320&&second<=57343){var first=cp;cp=(first-55296)*1024+second-56320+65536;}}return cp},Scanner2.prototype.scanHexEscape=function(prefix){for(var len=prefix==="u"?4:2,code=0,i=0;i<len;++i)if(!this.eof()&&character_1.Character.isHexDigit(this.source.charCodeAt(this.index)))code=code*16+hexValue(this.source[this.index++]);else return null;return String.fromCharCode(code)},Scanner2.prototype.scanUnicodeCodePointEscape=function(){var ch=this.source[this.index],code=0;for(ch==="}"&&this.throwUnexpectedToken();!this.eof()&&(ch=this.source[this.index++],!!character_1.Character.isHexDigit(ch.charCodeAt(0)));)code=code*16+hexValue(ch);return (code>1114111||ch!=="}")&&this.throwUnexpectedToken(),character_1.Character.fromCodePoint(code)},Scanner2.prototype.getIdentifier=function(){for(var start=this.index++;!this.eof();){var ch=this.source.charCodeAt(this.index);if(ch===92)return this.index=start,this.getComplexIdentifier();if(ch>=55296&&ch<57343)return this.index=start,this.getComplexIdentifier();if(character_1.Character.isIdentifierPart(ch))++this.index;else break}return this.source.slice(start,this.index)},Scanner2.prototype.getComplexIdentifier=function(){var cp=this.codePointAt(this.index),id=character_1.Character.fromCodePoint(cp);this.index+=id.length;var ch;for(cp===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,ch=this.scanUnicodeCodePointEscape()):(ch=this.scanHexEscape("u"),(ch===null||ch==="\\"||!character_1.Character.isIdentifierStart(ch.charCodeAt(0)))&&this.throwUnexpectedToken()),id=ch);!this.eof()&&(cp=this.codePointAt(this.index),!!character_1.Character.isIdentifierPart(cp));)ch=character_1.Character.fromCodePoint(cp),id+=ch,this.index+=ch.length,cp===92&&(id=id.substr(0,id.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,ch=this.scanUnicodeCodePointEscape()):(ch=this.scanHexEscape("u"),(ch===null||ch==="\\"||!character_1.Character.isIdentifierPart(ch.charCodeAt(0)))&&this.throwUnexpectedToken()),id+=ch);return id},Scanner2.prototype.octalToDecimal=function(ch){var octal=ch!=="0",code=octalValue(ch);return !this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(octal=!0,code=code*8+octalValue(this.source[this.index++]),"0123".indexOf(ch)>=0&&!this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(code=code*8+octalValue(this.source[this.index++]))),{code,octal}},Scanner2.prototype.scanIdentifier=function(){var type,start=this.index,id=this.source.charCodeAt(start)===92?this.getComplexIdentifier():this.getIdentifier();if(id.length===1?type=3:this.isKeyword(id)?type=4:id==="null"?type=5:id==="true"||id==="false"?type=1:type=3,type!==3&&start+id.length!==this.index){var restore=this.index;this.index=start,this.tolerateUnexpectedToken(messages_1.Messages.InvalidEscapedReservedWord),this.index=restore;}return {type,value:id,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanPunctuator=function(){var start=this.index,str=this.source[this.index];switch(str){case"(":case"{":str==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,str="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:str=this.source.substr(this.index,4),str===">>>="?this.index+=4:(str=str.substr(0,3),str==="==="||str==="!=="||str===">>>"||str==="<<="||str===">>="||str==="**="?this.index+=3:(str=str.substr(0,2),str==="&&"||str==="||"||str==="=="||str==="!="||str==="+="||str==="-="||str==="*="||str==="/="||str==="++"||str==="--"||str==="<<"||str===">>"||str==="&="||str==="|="||str==="^="||str==="%="||str==="<="||str===">="||str==="=>"||str==="**"?this.index+=2:(str=this.source[this.index],"<>=!+-*%&|^/".indexOf(str)>=0&&++this.index)));}return this.index===start&&this.throwUnexpectedToken(),{type:7,value:str,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanHexLiteral=function(start){for(var num="";!this.eof()&&character_1.Character.isHexDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];return num.length===0&&this.throwUnexpectedToken(),character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+num,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanBinaryLiteral=function(start){for(var num="",ch;!this.eof()&&(ch=this.source[this.index],!(ch!=="0"&&ch!=="1"));)num+=this.source[this.index++];return num.length===0&&this.throwUnexpectedToken(),this.eof()||(ch=this.source.charCodeAt(this.index),(character_1.Character.isIdentifierStart(ch)||character_1.Character.isDecimalDigit(ch))&&this.throwUnexpectedToken()),{type:6,value:parseInt(num,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanOctalLiteral=function(prefix,start){var num="",octal=!1;for(character_1.Character.isOctalDigit(prefix.charCodeAt(0))?(octal=!0,num="0"+this.source[this.index++]):++this.index;!this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];return !octal&&num.length===0&&this.throwUnexpectedToken(),(character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))||character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(num,8),octal,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.isImplicitOctalLiteral=function(){for(var i=this.index+1;i<this.length;++i){var ch=this.source[i];if(ch==="8"||ch==="9")return !1;if(!character_1.Character.isOctalDigit(ch.charCodeAt(0)))return !0}return !0},Scanner2.prototype.scanNumericLiteral=function(){var start=this.index,ch=this.source[start];assert_1.assert(character_1.Character.isDecimalDigit(ch.charCodeAt(0))||ch===".","Numeric literal must start with a decimal digit or a decimal point");var num="";if(ch!=="."){if(num=this.source[this.index++],ch=this.source[this.index],num==="0"){if(ch==="x"||ch==="X")return ++this.index,this.scanHexLiteral(start);if(ch==="b"||ch==="B")return ++this.index,this.scanBinaryLiteral(start);if(ch==="o"||ch==="O")return this.scanOctalLiteral(ch,start);if(ch&&character_1.Character.isOctalDigit(ch.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(ch,start)}for(;character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];ch=this.source[this.index];}if(ch==="."){for(num+=this.source[this.index++];character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];ch=this.source[this.index];}if(ch==="e"||ch==="E")if(num+=this.source[this.index++],ch=this.source[this.index],(ch==="+"||ch==="-")&&(num+=this.source[this.index++]),character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];else this.throwUnexpectedToken();return character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(num),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanStringLiteral=function(){var start=this.index,quote=this.source[start];assert_1.assert(quote==="'"||quote==='"',"String literal must starts with a quote"),++this.index;for(var octal=!1,str="";!this.eof();){var ch=this.source[this.index++];if(ch===quote){quote="";break}else if(ch==="\\")if(ch=this.source[this.index++],!ch||!character_1.Character.isLineTerminator(ch.charCodeAt(0)))switch(ch){case"u":if(this.source[this.index]==="{")++this.index,str+=this.scanUnicodeCodePointEscape();else {var unescaped_1=this.scanHexEscape(ch);unescaped_1===null&&this.throwUnexpectedToken(),str+=unescaped_1;}break;case"x":var unescaped=this.scanHexEscape(ch);unescaped===null&&this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence),str+=unescaped;break;case"n":str+=`
|
|
350
350
|
`;break;case"r":str+="\r";break;case"t":str+=" ";break;case"b":str+="\b";break;case"f":str+="\f";break;case"v":str+="\v";break;case"8":case"9":str+=ch,this.tolerateUnexpectedToken();break;default:if(ch&&character_1.Character.isOctalDigit(ch.charCodeAt(0))){var octToDec=this.octalToDecimal(ch);octal=octToDec.octal||octal,str+=String.fromCharCode(octToDec.code);}else str+=ch;break}else ++this.lineNumber,ch==="\r"&&this.source[this.index]===`
|
|
351
351
|
`&&++this.index,this.lineStart=this.index;else {if(character_1.Character.isLineTerminator(ch.charCodeAt(0)))break;str+=ch;}}return quote!==""&&(this.index=start,this.throwUnexpectedToken()),{type:8,value:str,octal,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.scanTemplate=function(){var cooked="",terminated=!1,start=this.index,head=this.source[start]==="`",tail=!1,rawOffset=2;for(++this.index;!this.eof();){var ch=this.source[this.index++];if(ch==="`"){rawOffset=1,tail=!0,terminated=!0;break}else if(ch==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,terminated=!0;break}cooked+=ch;}else if(ch==="\\")if(ch=this.source[this.index++],character_1.Character.isLineTerminator(ch.charCodeAt(0)))++this.lineNumber,ch==="\r"&&this.source[this.index]===`
|
|
352
352
|
`&&++this.index,this.lineStart=this.index;else switch(ch){case"n":cooked+=`
|
|
353
353
|
`;break;case"r":cooked+="\r";break;case"t":cooked+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,cooked+=this.scanUnicodeCodePointEscape();else {var restore=this.index,unescaped_2=this.scanHexEscape(ch);unescaped_2!==null?cooked+=unescaped_2:(this.index=restore,cooked+=ch);}break;case"x":var unescaped=this.scanHexEscape(ch);unescaped===null&&this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence),cooked+=unescaped;break;case"b":cooked+="\b";break;case"f":cooked+="\f";break;case"v":cooked+="\v";break;default:ch==="0"?(character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral),cooked+="\0"):character_1.Character.isOctalDigit(ch.charCodeAt(0))?this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral):cooked+=ch;break}else character_1.Character.isLineTerminator(ch.charCodeAt(0))?(++this.lineNumber,ch==="\r"&&this.source[this.index]===`
|
|
354
354
|
`&&++this.index,this.lineStart=this.index,cooked+=`
|
|
355
|
-
`):cooked+=ch;}return terminated||this.throwUnexpectedToken(),head||this.curlyStack.pop(),{type:10,value:this.source.slice(start+1,this.index-rawOffset),cooked,head,tail,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.testRegExp=function(pattern,flags){var astralSubstitute="\uFFFF",tmp=pattern,self2=this;flags.indexOf("u")>=0&&(tmp=tmp.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function($0,$1,$2){var codePoint=parseInt($1||$2,16);return codePoint>1114111&&self2.throwUnexpectedToken(messages_1.Messages.InvalidRegExp),codePoint<=65535?String.fromCharCode(codePoint):astralSubstitute}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,astralSubstitute));try{RegExp(tmp);}catch{this.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);}try{return new RegExp(pattern,flags)}catch{return null}},Scanner2.prototype.scanRegExpBody=function(){var ch=this.source[this.index];assert_1.assert(ch==="/","Regular expression literal must start with a slash");for(var str=this.source[this.index++],classMarker=!1,terminated=!1;!this.eof();)if(ch=this.source[this.index++],str+=ch,ch==="\\")ch=this.source[this.index++],character_1.Character.isLineTerminator(ch.charCodeAt(0))&&this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str+=ch;else if(character_1.Character.isLineTerminator(ch.charCodeAt(0)))this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);else if(classMarker)ch==="]"&&(classMarker=!1);else if(ch==="/"){terminated=!0;break}else ch==="["&&(classMarker=!0);return terminated||this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str.substr(1,str.length-2)},Scanner2.prototype.scanRegExpFlags=function(){for(var str="",flags="";!this.eof();){var ch=this.source[this.index];if(!character_1.Character.isIdentifierPart(ch.charCodeAt(0)))break;if(++this.index,ch==="\\"&&!this.eof())if(ch=this.source[this.index],ch==="u"){++this.index;var restore=this.index,char=this.scanHexEscape("u");if(char!==null)for(flags+=char,str+="\\u";restore<this.index;++restore)str+=this.source[restore];else this.index=restore,flags+="u",str+="\\u";this.tolerateUnexpectedToken();}else str+="\\",this.tolerateUnexpectedToken();else flags+=ch,str+=ch;}return flags},Scanner2.prototype.scanRegExp=function(){var start=this.index,pattern=this.scanRegExpBody(),flags=this.scanRegExpFlags(),value=this.testRegExp(pattern,flags);return {type:9,value:"",pattern,flags,regex:value,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.lex=function(){if(this.eof())return {type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var cp=this.source.charCodeAt(this.index);return character_1.Character.isIdentifierStart(cp)?this.scanIdentifier():cp===40||cp===41||cp===59?this.scanPunctuator():cp===39||cp===34?this.scanStringLiteral():cp===46?character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():character_1.Character.isDecimalDigit(cp)?this.scanNumericLiteral():cp===96||cp===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():cp>=55296&&cp<57343&&character_1.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},Scanner2}();exports2.Scanner=Scanner;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TokenName={},exports2.TokenName[1]="Boolean",exports2.TokenName[2]="<end>",exports2.TokenName[3]="Identifier",exports2.TokenName[4]="Keyword",exports2.TokenName[5]="Null",exports2.TokenName[6]="Numeric",exports2.TokenName[7]="Punctuator",exports2.TokenName[8]="String",exports2.TokenName[9]="RegularExpression",exports2.TokenName[10]="Template";},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27E8",rang:"\u27E9"};},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var error_handler_1=__webpack_require__(10),scanner_1=__webpack_require__(12),token_1=__webpack_require__(13),Reader=function(){function Reader2(){this.values=[],this.curly=this.paren=-1;}return Reader2.prototype.beforeFunctionExpression=function(t){return ["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},Reader2.prototype.isRegexStart=function(){var previous=this.values[this.values.length-1],regex=previous!==null;switch(previous){case"this":case"]":regex=!1;break;case")":var keyword=this.values[this.paren-1];regex=keyword==="if"||keyword==="while"||keyword==="for"||keyword==="with";break;case"}":if(regex=!1,this.values[this.curly-3]==="function"){var check=this.values[this.curly-4];regex=check?!this.beforeFunctionExpression(check):!1;}else if(this.values[this.curly-4]==="function"){var check=this.values[this.curly-5];regex=check?!this.beforeFunctionExpression(check):!0;}break;}return regex},Reader2.prototype.push=function(token){token.type===7||token.type===4?(token.value==="{"?this.curly=this.values.length:token.value==="("&&(this.paren=this.values.length),this.values.push(token.value)):this.values.push(null);},Reader2}(),Tokenizer=function(){function Tokenizer2(code,config){this.errorHandler=new error_handler_1.ErrorHandler,this.errorHandler.tolerant=config?typeof config.tolerant=="boolean"&&config.tolerant:!1,this.scanner=new scanner_1.Scanner(code,this.errorHandler),this.scanner.trackComment=config?typeof config.comment=="boolean"&&config.comment:!1,this.trackRange=config?typeof config.range=="boolean"&&config.range:!1,this.trackLoc=config?typeof config.loc=="boolean"&&config.loc:!1,this.buffer=[],this.reader=new Reader;}return Tokenizer2.prototype.errors=function(){return this.errorHandler.errors},Tokenizer2.prototype.getNextToken=function(){if(this.buffer.length===0){var comments=this.scanner.scanComments();if(this.scanner.trackComment)for(var i=0;i<comments.length;++i){var e=comments[i],value=this.scanner.source.slice(e.slice[0],e.slice[1]),comment={type:e.multiLine?"BlockComment":"LineComment",value};this.trackRange&&(comment.range=e.range),this.trackLoc&&(comment.loc=e.loc),this.buffer.push(comment);}if(!this.scanner.eof()){var loc=void 0;this.trackLoc&&(loc={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var startRegex=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),token=startRegex?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(token);var entry={type:token_1.TokenName[token.type],value:this.scanner.source.slice(token.start,token.end)};if(this.trackRange&&(entry.range=[token.start,token.end]),this.trackLoc&&(loc.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},entry.loc=loc),token.type===9){var pattern=token.pattern,flags=token.flags;entry.regex={pattern,flags};}this.buffer.push(entry);}}return this.buffer.shift()},Tokenizer2}();exports2.Tokenizer=Tokenizer;}])});}});var require_esprima3=__commonJS({"../../node_modules/recast/parsers/esprima.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.parse=void 0;var util_1=require_util3();function parse(source,options){var comments=[],ast=require_esprima2().parse(source,{loc:!0,locations:!0,comment:!0,onComment:comments,range:(0, util_1.getOption)(options,"range",!1),tolerant:(0, util_1.getOption)(options,"tolerant",!0),tokens:!0,jsx:(0, util_1.getOption)(options,"jsx",!1),sourceType:(0, util_1.getOption)(options,"sourceType","module")});return Array.isArray(ast.comments)||(ast.comments=comments),ast}exports.parse=parse;}});var require_options=__commonJS({"../../node_modules/recast/lib/options.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.normalize=void 0;var util_1=require_util3(),defaults={parser:require_esprima3(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0, util_1.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},hasOwn=defaults.hasOwnProperty;function normalize(opts){var options=opts||defaults;function get(key){return hasOwn.call(options,key)?options[key]:defaults[key]}return {tabWidth:+get("tabWidth"),useTabs:!!get("useTabs"),reuseWhitespace:!!get("reuseWhitespace"),lineTerminator:get("lineTerminator"),wrapColumn:Math.max(get("wrapColumn"),0),sourceFileName:get("sourceFileName"),sourceMapName:get("sourceMapName"),sourceRoot:get("sourceRoot"),inputSourceMap:get("inputSourceMap"),parser:get("esprima")||get("parser"),range:get("range"),tolerant:get("tolerant"),quote:get("quote"),trailingComma:get("trailingComma"),arrayBracketSpacing:get("arrayBracketSpacing"),objectCurlySpacing:get("objectCurlySpacing"),arrowParensAlways:get("arrowParensAlways"),flowObjectCommas:get("flowObjectCommas"),tokens:!!get("tokens")}}exports.normalize=normalize;}});var require_mapping=__commonJS({"../../node_modules/recast/lib/mapping.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),util_1=require_util3(),Mapping=function(){function Mapping2(sourceLines,sourceLoc,targetLoc){targetLoc===void 0&&(targetLoc=sourceLoc),this.sourceLines=sourceLines,this.sourceLoc=sourceLoc,this.targetLoc=targetLoc;}return Mapping2.prototype.slice=function(lines,start,end){end===void 0&&(end=lines.lastPos());var sourceLines=this.sourceLines,sourceLoc=this.sourceLoc,targetLoc=this.targetLoc;function skip(name){var sourceFromPos=sourceLoc[name],targetFromPos=targetLoc[name],targetToPos=start;return name==="end"?targetToPos=end:assert_1.default.strictEqual(name,"start"),skipChars(sourceLines,sourceFromPos,lines,targetFromPos,targetToPos)}if((0, util_1.comparePos)(start,targetLoc.start)<=0)if((0, util_1.comparePos)(targetLoc.end,end)<=0)targetLoc={start:subtractPos(targetLoc.start,start.line,start.column),end:subtractPos(targetLoc.end,start.line,start.column)};else {if((0, util_1.comparePos)(end,targetLoc.start)<=0)return null;sourceLoc={start:sourceLoc.start,end:skip("end")},targetLoc={start:subtractPos(targetLoc.start,start.line,start.column),end:subtractPos(end,start.line,start.column)};}else {if((0, util_1.comparePos)(targetLoc.end,start)<=0)return null;(0, util_1.comparePos)(targetLoc.end,end)<=0?(sourceLoc={start:skip("start"),end:sourceLoc.end},targetLoc={start:{line:1,column:0},end:subtractPos(targetLoc.end,start.line,start.column)}):(sourceLoc={start:skip("start"),end:skip("end")},targetLoc={start:{line:1,column:0},end:subtractPos(end,start.line,start.column)});}return new Mapping2(this.sourceLines,sourceLoc,targetLoc)},Mapping2.prototype.add=function(line,column){return new Mapping2(this.sourceLines,this.sourceLoc,{start:addPos(this.targetLoc.start,line,column),end:addPos(this.targetLoc.end,line,column)})},Mapping2.prototype.subtract=function(line,column){return new Mapping2(this.sourceLines,this.sourceLoc,{start:subtractPos(this.targetLoc.start,line,column),end:subtractPos(this.targetLoc.end,line,column)})},Mapping2.prototype.indent=function(by,skipFirstLine,noNegativeColumns){if(skipFirstLine===void 0&&(skipFirstLine=!1),noNegativeColumns===void 0&&(noNegativeColumns=!1),by===0)return this;var targetLoc=this.targetLoc,startLine=targetLoc.start.line,endLine=targetLoc.end.line;if(skipFirstLine&&startLine===1&&endLine===1)return this;if(targetLoc={start:targetLoc.start,end:targetLoc.end},!skipFirstLine||startLine>1){var startColumn=targetLoc.start.column+by;targetLoc.start={line:startLine,column:noNegativeColumns?Math.max(0,startColumn):startColumn};}if(!skipFirstLine||endLine>1){var endColumn=targetLoc.end.column+by;targetLoc.end={line:endLine,column:noNegativeColumns?Math.max(0,endColumn):endColumn};}return new Mapping2(this.sourceLines,this.sourceLoc,targetLoc)},Mapping2}();exports.default=Mapping;function addPos(toPos,line,column){return {line:toPos.line+line-1,column:toPos.line===1?toPos.column+column:toPos.column}}function subtractPos(fromPos,line,column){return {line:fromPos.line-line+1,column:fromPos.line===line?fromPos.column-column:fromPos.column}}function skipChars(sourceLines,sourceFromPos,targetLines,targetFromPos,targetToPos){var targetComparison=(0, util_1.comparePos)(targetFromPos,targetToPos);if(targetComparison===0)return sourceFromPos;var sourceCursor,targetCursor;if(targetComparison<0){sourceCursor=sourceLines.skipSpaces(sourceFromPos)||sourceLines.lastPos(),targetCursor=targetLines.skipSpaces(targetFromPos)||targetLines.lastPos();var lineDiff=targetToPos.line-targetCursor.line;for(sourceCursor.line+=lineDiff,targetCursor.line+=lineDiff,lineDiff>0?(sourceCursor.column=0,targetCursor.column=0):assert_1.default.strictEqual(lineDiff,0);(0, util_1.comparePos)(targetCursor,targetToPos)<0&&targetLines.nextPos(targetCursor,!0);)assert_1.default.ok(sourceLines.nextPos(sourceCursor,!0)),assert_1.default.strictEqual(sourceLines.charAt(sourceCursor),targetLines.charAt(targetCursor));}else {sourceCursor=sourceLines.skipSpaces(sourceFromPos,!0)||sourceLines.firstPos(),targetCursor=targetLines.skipSpaces(targetFromPos,!0)||targetLines.firstPos();var lineDiff=targetToPos.line-targetCursor.line;for(sourceCursor.line+=lineDiff,targetCursor.line+=lineDiff,lineDiff<0?(sourceCursor.column=sourceLines.getLineLength(sourceCursor.line),targetCursor.column=targetLines.getLineLength(targetCursor.line)):assert_1.default.strictEqual(lineDiff,0);(0, util_1.comparePos)(targetToPos,targetCursor)<0&&targetLines.prevPos(targetCursor,!0);)assert_1.default.ok(sourceLines.prevPos(sourceCursor,!0)),assert_1.default.strictEqual(sourceLines.charAt(sourceCursor),targetLines.charAt(targetCursor));}return sourceCursor}}});var require_lines=__commonJS({"../../node_modules/recast/lib/lines.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.concat=exports.fromString=exports.countSpaces=exports.Lines=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),source_map_1=tslib_1.__importDefault(require_source_map()),options_1=require_options(),util_1=require_util3(),mapping_1=tslib_1.__importDefault(require_mapping()),Lines=function(){function Lines2(infos,sourceFileName){sourceFileName===void 0&&(sourceFileName=null),this.infos=infos,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,assert_1.default.ok(infos.length>0),this.length=infos.length,this.name=sourceFileName||null,this.name&&this.mappings.push(new mapping_1.default(this,{start:this.firstPos(),end:this.lastPos()}));}return Lines2.prototype.toString=function(options){return this.sliceString(this.firstPos(),this.lastPos(),options)},Lines2.prototype.getSourceMap=function(sourceMapName,sourceRoot){if(!sourceMapName)return null;var targetLines=this;function updateJSON(json){return json=json||{},json.file=sourceMapName,sourceRoot&&(json.sourceRoot=sourceRoot),json}if(targetLines.cachedSourceMap)return updateJSON(targetLines.cachedSourceMap.toJSON());var smg=new source_map_1.default.SourceMapGenerator(updateJSON()),sourcesToContents={};return targetLines.mappings.forEach(function(mapping){for(var sourceCursor=mapping.sourceLines.skipSpaces(mapping.sourceLoc.start)||mapping.sourceLines.lastPos(),targetCursor=targetLines.skipSpaces(mapping.targetLoc.start)||targetLines.lastPos();(0, util_1.comparePos)(sourceCursor,mapping.sourceLoc.end)<0&&(0, util_1.comparePos)(targetCursor,mapping.targetLoc.end)<0;){var sourceChar=mapping.sourceLines.charAt(sourceCursor),targetChar=targetLines.charAt(targetCursor);assert_1.default.strictEqual(sourceChar,targetChar);var sourceName=mapping.sourceLines.name;if(smg.addMapping({source:sourceName,original:{line:sourceCursor.line,column:sourceCursor.column},generated:{line:targetCursor.line,column:targetCursor.column}}),!hasOwn.call(sourcesToContents,sourceName)){var sourceContent=mapping.sourceLines.toString();smg.setSourceContent(sourceName,sourceContent),sourcesToContents[sourceName]=sourceContent;}targetLines.nextPos(targetCursor,!0),mapping.sourceLines.nextPos(sourceCursor,!0);}}),targetLines.cachedSourceMap=smg,smg.toJSON()},Lines2.prototype.bootstrapCharAt=function(pos){assert_1.default.strictEqual(typeof pos,"object"),assert_1.default.strictEqual(typeof pos.line,"number"),assert_1.default.strictEqual(typeof pos.column,"number");var line=pos.line,column=pos.column,strings=this.toString().split(lineTerminatorSeqExp),string=strings[line-1];return typeof string>"u"?"":column===string.length&&line<strings.length?`
|
|
356
|
-
`:column>=string.length?"":string.charAt(column)},Lines2.prototype.charAt=function(pos){
|
|
357
|
-
`:c>=info.sliceEnd?"":info.line.charAt(c))},Lines2.prototype.stripMargin=function(width,skipFirstLine){if(width===0)return this;if(
|
|
358
|
-
`))},Lines2.prototype.slice=function(start,end){if(!end){if(!start)return this;end=this.lastPos();}if(!start)throw new Error("cannot slice with end but not start");var sliced=this.infos.slice(start.line-1,end.line);start.line===end.line?sliced[0]=sliceInfo(sliced[0],start.column,end.column):(
|
|
359
|
-
`+string),cacheable&&hasOwn.call(fromStringCache,string))return fromStringCache[string];var lines=new Lines(string.split(lineTerminatorSeqExp).map(function(line){var spaces=leadingSpaceExp.exec(line)[0];return {line,indent:countSpaces(spaces,tabWidth),locked:!1,sliceStart:spaces.length,sliceEnd:line.length}}),(0, options_1.normalize)(options).sourceFileName);return cacheable&&(fromStringCache[string]=lines),lines}exports.fromString=fromString;function isOnlyWhitespace(string){return !/\S/.test(string)}function sliceInfo(info,startCol,endCol){var sliceStart=info.sliceStart,sliceEnd=info.sliceEnd,indent=Math.max(info.indent,0),lineLength=indent+sliceEnd-sliceStart;return typeof endCol>"u"&&(endCol=lineLength),startCol=Math.max(startCol,0),endCol=Math.min(endCol,lineLength),endCol=Math.max(endCol,startCol),endCol<indent?(indent=endCol,sliceEnd=sliceStart):sliceEnd-=lineLength-endCol,lineLength=endCol,lineLength-=startCol,startCol<indent?indent-=startCol:(startCol-=indent,indent=0,sliceStart+=startCol),
|
|
355
|
+
`):cooked+=ch;}return terminated||this.throwUnexpectedToken(),head||this.curlyStack.pop(),{type:10,value:this.source.slice(start+1,this.index-rawOffset),cooked,head,tail,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.testRegExp=function(pattern,flags){var astralSubstitute="\uFFFF",tmp=pattern,self2=this;flags.indexOf("u")>=0&&(tmp=tmp.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function($0,$1,$2){var codePoint=parseInt($1||$2,16);return codePoint>1114111&&self2.throwUnexpectedToken(messages_1.Messages.InvalidRegExp),codePoint<=65535?String.fromCharCode(codePoint):astralSubstitute}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,astralSubstitute));try{RegExp(tmp);}catch{this.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);}try{return new RegExp(pattern,flags)}catch{return null}},Scanner2.prototype.scanRegExpBody=function(){var ch=this.source[this.index];assert_1.assert(ch==="/","Regular expression literal must start with a slash");for(var str=this.source[this.index++],classMarker=!1,terminated=!1;!this.eof();)if(ch=this.source[this.index++],str+=ch,ch==="\\")ch=this.source[this.index++],character_1.Character.isLineTerminator(ch.charCodeAt(0))&&this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str+=ch;else if(character_1.Character.isLineTerminator(ch.charCodeAt(0)))this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);else if(classMarker)ch==="]"&&(classMarker=!1);else if(ch==="/"){terminated=!0;break}else ch==="["&&(classMarker=!0);return terminated||this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str.substr(1,str.length-2)},Scanner2.prototype.scanRegExpFlags=function(){for(var str="",flags="";!this.eof();){var ch=this.source[this.index];if(!character_1.Character.isIdentifierPart(ch.charCodeAt(0)))break;if(++this.index,ch==="\\"&&!this.eof())if(ch=this.source[this.index],ch==="u"){++this.index;var restore=this.index,char=this.scanHexEscape("u");if(char!==null)for(flags+=char,str+="\\u";restore<this.index;++restore)str+=this.source[restore];else this.index=restore,flags+="u",str+="\\u";this.tolerateUnexpectedToken();}else str+="\\",this.tolerateUnexpectedToken();else flags+=ch,str+=ch;}return flags},Scanner2.prototype.scanRegExp=function(){var start=this.index,pattern=this.scanRegExpBody(),flags=this.scanRegExpFlags(),value=this.testRegExp(pattern,flags);return {type:9,value:"",pattern,flags,regex:value,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner2.prototype.lex=function(){if(this.eof())return {type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var cp=this.source.charCodeAt(this.index);return character_1.Character.isIdentifierStart(cp)?this.scanIdentifier():cp===40||cp===41||cp===59?this.scanPunctuator():cp===39||cp===34?this.scanStringLiteral():cp===46?character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():character_1.Character.isDecimalDigit(cp)?this.scanNumericLiteral():cp===96||cp===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():cp>=55296&&cp<57343&&character_1.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},Scanner2}();exports2.Scanner=Scanner;},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TokenName={},exports2.TokenName[1]="Boolean",exports2.TokenName[2]="<end>",exports2.TokenName[3]="Identifier",exports2.TokenName[4]="Keyword",exports2.TokenName[5]="Null",exports2.TokenName[6]="Numeric",exports2.TokenName[7]="Punctuator",exports2.TokenName[8]="String",exports2.TokenName[9]="RegularExpression",exports2.TokenName[10]="Template";},function(module2,exports2){Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27E8",rang:"\u27E9"};},function(module2,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:!0});var error_handler_1=__webpack_require__(10),scanner_1=__webpack_require__(12),token_1=__webpack_require__(13),Reader=function(){function Reader2(){this.values=[],this.curly=this.paren=-1;}return Reader2.prototype.beforeFunctionExpression=function(t){return ["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},Reader2.prototype.isRegexStart=function(){var previous=this.values[this.values.length-1],regex=previous!==null;switch(previous){case"this":case"]":regex=!1;break;case")":var keyword=this.values[this.paren-1];regex=keyword==="if"||keyword==="while"||keyword==="for"||keyword==="with";break;case"}":if(regex=!1,this.values[this.curly-3]==="function"){var check=this.values[this.curly-4];regex=check?!this.beforeFunctionExpression(check):!1;}else if(this.values[this.curly-4]==="function"){var check=this.values[this.curly-5];regex=check?!this.beforeFunctionExpression(check):!0;}break;}return regex},Reader2.prototype.push=function(token){token.type===7||token.type===4?(token.value==="{"?this.curly=this.values.length:token.value==="("&&(this.paren=this.values.length),this.values.push(token.value)):this.values.push(null);},Reader2}(),Tokenizer=function(){function Tokenizer2(code,config){this.errorHandler=new error_handler_1.ErrorHandler,this.errorHandler.tolerant=config?typeof config.tolerant=="boolean"&&config.tolerant:!1,this.scanner=new scanner_1.Scanner(code,this.errorHandler),this.scanner.trackComment=config?typeof config.comment=="boolean"&&config.comment:!1,this.trackRange=config?typeof config.range=="boolean"&&config.range:!1,this.trackLoc=config?typeof config.loc=="boolean"&&config.loc:!1,this.buffer=[],this.reader=new Reader;}return Tokenizer2.prototype.errors=function(){return this.errorHandler.errors},Tokenizer2.prototype.getNextToken=function(){if(this.buffer.length===0){var comments=this.scanner.scanComments();if(this.scanner.trackComment)for(var i=0;i<comments.length;++i){var e=comments[i],value=this.scanner.source.slice(e.slice[0],e.slice[1]),comment={type:e.multiLine?"BlockComment":"LineComment",value};this.trackRange&&(comment.range=e.range),this.trackLoc&&(comment.loc=e.loc),this.buffer.push(comment);}if(!this.scanner.eof()){var loc=void 0;this.trackLoc&&(loc={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var startRegex=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),token=startRegex?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(token);var entry={type:token_1.TokenName[token.type],value:this.scanner.source.slice(token.start,token.end)};if(this.trackRange&&(entry.range=[token.start,token.end]),this.trackLoc&&(loc.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},entry.loc=loc),token.type===9){var pattern=token.pattern,flags=token.flags;entry.regex={pattern,flags};}this.buffer.push(entry);}}return this.buffer.shift()},Tokenizer2}();exports2.Tokenizer=Tokenizer;}])});}});var require_esprima3=__commonJS({"../../node_modules/recast/parsers/esprima.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.parse=void 0;var util_1=require_util3();function parse(source,options){var comments=[],ast=require_esprima2().parse(source,{loc:!0,locations:!0,comment:!0,onComment:comments,range:(0, util_1.getOption)(options,"range",!1),tolerant:(0, util_1.getOption)(options,"tolerant",!0),tokens:!0,jsx:(0, util_1.getOption)(options,"jsx",!1),sourceType:(0, util_1.getOption)(options,"sourceType","module")});return Array.isArray(ast.comments)||(ast.comments=comments),ast}exports.parse=parse;}});var require_options=__commonJS({"../../node_modules/recast/lib/options.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.normalize=void 0;var util_1=require_util3(),defaults={parser:require_esprima3(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0, util_1.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},hasOwn=defaults.hasOwnProperty;function normalize(opts){var options=opts||defaults;function get(key){return hasOwn.call(options,key)?options[key]:defaults[key]}return {tabWidth:+get("tabWidth"),useTabs:!!get("useTabs"),reuseWhitespace:!!get("reuseWhitespace"),lineTerminator:get("lineTerminator"),wrapColumn:Math.max(get("wrapColumn"),0),sourceFileName:get("sourceFileName"),sourceMapName:get("sourceMapName"),sourceRoot:get("sourceRoot"),inputSourceMap:get("inputSourceMap"),parser:get("esprima")||get("parser"),range:get("range"),tolerant:get("tolerant"),quote:get("quote"),trailingComma:get("trailingComma"),arrayBracketSpacing:get("arrayBracketSpacing"),objectCurlySpacing:get("objectCurlySpacing"),arrowParensAlways:get("arrowParensAlways"),flowObjectCommas:get("flowObjectCommas"),tokens:!!get("tokens")}}exports.normalize=normalize;}});var require_mapping=__commonJS({"../../node_modules/recast/lib/mapping.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),util_1=require_util3(),Mapping=function(){function Mapping2(sourceLines,sourceLoc,targetLoc){targetLoc===void 0&&(targetLoc=sourceLoc),this.sourceLines=sourceLines,this.sourceLoc=sourceLoc,this.targetLoc=targetLoc;}return Mapping2.prototype.slice=function(lines,start,end){end===void 0&&(end=lines.lastPos());var sourceLines=this.sourceLines,sourceLoc=this.sourceLoc,targetLoc=this.targetLoc;function skip(name){var sourceFromPos=sourceLoc[name],targetFromPos=targetLoc[name],targetToPos=start;return name==="end"?targetToPos=end:(0, tiny_invariant_1.default)(name==="start"),skipChars(sourceLines,sourceFromPos,lines,targetFromPos,targetToPos)}if((0, util_1.comparePos)(start,targetLoc.start)<=0)if((0, util_1.comparePos)(targetLoc.end,end)<=0)targetLoc={start:subtractPos(targetLoc.start,start.line,start.column),end:subtractPos(targetLoc.end,start.line,start.column)};else {if((0, util_1.comparePos)(end,targetLoc.start)<=0)return null;sourceLoc={start:sourceLoc.start,end:skip("end")},targetLoc={start:subtractPos(targetLoc.start,start.line,start.column),end:subtractPos(end,start.line,start.column)};}else {if((0, util_1.comparePos)(targetLoc.end,start)<=0)return null;(0, util_1.comparePos)(targetLoc.end,end)<=0?(sourceLoc={start:skip("start"),end:sourceLoc.end},targetLoc={start:{line:1,column:0},end:subtractPos(targetLoc.end,start.line,start.column)}):(sourceLoc={start:skip("start"),end:skip("end")},targetLoc={start:{line:1,column:0},end:subtractPos(end,start.line,start.column)});}return new Mapping2(this.sourceLines,sourceLoc,targetLoc)},Mapping2.prototype.add=function(line,column){return new Mapping2(this.sourceLines,this.sourceLoc,{start:addPos(this.targetLoc.start,line,column),end:addPos(this.targetLoc.end,line,column)})},Mapping2.prototype.subtract=function(line,column){return new Mapping2(this.sourceLines,this.sourceLoc,{start:subtractPos(this.targetLoc.start,line,column),end:subtractPos(this.targetLoc.end,line,column)})},Mapping2.prototype.indent=function(by,skipFirstLine,noNegativeColumns){if(skipFirstLine===void 0&&(skipFirstLine=!1),noNegativeColumns===void 0&&(noNegativeColumns=!1),by===0)return this;var targetLoc=this.targetLoc,startLine=targetLoc.start.line,endLine=targetLoc.end.line;if(skipFirstLine&&startLine===1&&endLine===1)return this;if(targetLoc={start:targetLoc.start,end:targetLoc.end},!skipFirstLine||startLine>1){var startColumn=targetLoc.start.column+by;targetLoc.start={line:startLine,column:noNegativeColumns?Math.max(0,startColumn):startColumn};}if(!skipFirstLine||endLine>1){var endColumn=targetLoc.end.column+by;targetLoc.end={line:endLine,column:noNegativeColumns?Math.max(0,endColumn):endColumn};}return new Mapping2(this.sourceLines,this.sourceLoc,targetLoc)},Mapping2}();exports.default=Mapping;function addPos(toPos,line,column){return {line:toPos.line+line-1,column:toPos.line===1?toPos.column+column:toPos.column}}function subtractPos(fromPos,line,column){return {line:fromPos.line-line+1,column:fromPos.line===line?fromPos.column-column:fromPos.column}}function skipChars(sourceLines,sourceFromPos,targetLines,targetFromPos,targetToPos){var targetComparison=(0, util_1.comparePos)(targetFromPos,targetToPos);if(targetComparison===0)return sourceFromPos;var sourceCursor,targetCursor;if(targetComparison<0){sourceCursor=sourceLines.skipSpaces(sourceFromPos)||sourceLines.lastPos(),targetCursor=targetLines.skipSpaces(targetFromPos)||targetLines.lastPos();var lineDiff=targetToPos.line-targetCursor.line;for(sourceCursor.line+=lineDiff,targetCursor.line+=lineDiff,lineDiff>0?(sourceCursor.column=0,targetCursor.column=0):(0, tiny_invariant_1.default)(lineDiff===0);(0, util_1.comparePos)(targetCursor,targetToPos)<0&&targetLines.nextPos(targetCursor,!0);)(0, tiny_invariant_1.default)(sourceLines.nextPos(sourceCursor,!0)),(0, tiny_invariant_1.default)(sourceLines.charAt(sourceCursor)===targetLines.charAt(targetCursor));}else {sourceCursor=sourceLines.skipSpaces(sourceFromPos,!0)||sourceLines.firstPos(),targetCursor=targetLines.skipSpaces(targetFromPos,!0)||targetLines.firstPos();var lineDiff=targetToPos.line-targetCursor.line;for(sourceCursor.line+=lineDiff,targetCursor.line+=lineDiff,lineDiff<0?(sourceCursor.column=sourceLines.getLineLength(sourceCursor.line),targetCursor.column=targetLines.getLineLength(targetCursor.line)):(0, tiny_invariant_1.default)(lineDiff===0);(0, util_1.comparePos)(targetToPos,targetCursor)<0&&targetLines.prevPos(targetCursor,!0);)(0, tiny_invariant_1.default)(sourceLines.prevPos(sourceCursor,!0)),(0, tiny_invariant_1.default)(sourceLines.charAt(sourceCursor)===targetLines.charAt(targetCursor));}return sourceCursor}}});var require_lines=__commonJS({"../../node_modules/recast/lib/lines.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.concat=exports.fromString=exports.countSpaces=exports.Lines=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),source_map_1=tslib_1.__importDefault(require_source_map()),options_1=require_options(),util_1=require_util3(),mapping_1=tslib_1.__importDefault(require_mapping()),Lines=function(){function Lines2(infos,sourceFileName){sourceFileName===void 0&&(sourceFileName=null),this.infos=infos,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0, tiny_invariant_1.default)(infos.length>0),this.length=infos.length,this.name=sourceFileName||null,this.name&&this.mappings.push(new mapping_1.default(this,{start:this.firstPos(),end:this.lastPos()}));}return Lines2.prototype.toString=function(options){return this.sliceString(this.firstPos(),this.lastPos(),options)},Lines2.prototype.getSourceMap=function(sourceMapName,sourceRoot){if(!sourceMapName)return null;var targetLines=this;function updateJSON(json){return json=json||{},json.file=sourceMapName,sourceRoot&&(json.sourceRoot=sourceRoot),json}if(targetLines.cachedSourceMap)return updateJSON(targetLines.cachedSourceMap.toJSON());var smg=new source_map_1.default.SourceMapGenerator(updateJSON()),sourcesToContents={};return targetLines.mappings.forEach(function(mapping){for(var sourceCursor=mapping.sourceLines.skipSpaces(mapping.sourceLoc.start)||mapping.sourceLines.lastPos(),targetCursor=targetLines.skipSpaces(mapping.targetLoc.start)||targetLines.lastPos();(0, util_1.comparePos)(sourceCursor,mapping.sourceLoc.end)<0&&(0, util_1.comparePos)(targetCursor,mapping.targetLoc.end)<0;){var sourceChar=mapping.sourceLines.charAt(sourceCursor),targetChar=targetLines.charAt(targetCursor);(0, tiny_invariant_1.default)(sourceChar===targetChar);var sourceName=mapping.sourceLines.name;if(smg.addMapping({source:sourceName,original:{line:sourceCursor.line,column:sourceCursor.column},generated:{line:targetCursor.line,column:targetCursor.column}}),!hasOwn.call(sourcesToContents,sourceName)){var sourceContent=mapping.sourceLines.toString();smg.setSourceContent(sourceName,sourceContent),sourcesToContents[sourceName]=sourceContent;}targetLines.nextPos(targetCursor,!0),mapping.sourceLines.nextPos(sourceCursor,!0);}}),targetLines.cachedSourceMap=smg,smg.toJSON()},Lines2.prototype.bootstrapCharAt=function(pos){(0, tiny_invariant_1.default)(typeof pos=="object"),(0, tiny_invariant_1.default)(typeof pos.line=="number"),(0, tiny_invariant_1.default)(typeof pos.column=="number");var line=pos.line,column=pos.column,strings=this.toString().split(lineTerminatorSeqExp),string=strings[line-1];return typeof string>"u"?"":column===string.length&&line<strings.length?`
|
|
356
|
+
`:column>=string.length?"":string.charAt(column)},Lines2.prototype.charAt=function(pos){(0, tiny_invariant_1.default)(typeof pos=="object"),(0, tiny_invariant_1.default)(typeof pos.line=="number"),(0, tiny_invariant_1.default)(typeof pos.column=="number");var line=pos.line,column=pos.column,secret=this,infos=secret.infos,info=infos[line-1],c=column;if(typeof info>"u"||c<0)return "";var indent=this.getIndentAt(line);return c<indent?" ":(c+=info.sliceStart-indent,c===info.sliceEnd&&line<this.length?`
|
|
357
|
+
`:c>=info.sliceEnd?"":info.line.charAt(c))},Lines2.prototype.stripMargin=function(width,skipFirstLine){if(width===0)return this;if((0, tiny_invariant_1.default)(width>0,"negative margin: "+width),skipFirstLine&&this.length===1)return this;var lines=new Lines2(this.infos.map(function(info,i){return info.line&&(i>0||!skipFirstLine)&&(info=tslib_1.__assign(tslib_1.__assign({},info),{indent:Math.max(0,info.indent-width)})),info}));if(this.mappings.length>0){var newMappings_1=lines.mappings;(0, tiny_invariant_1.default)(newMappings_1.length===0),this.mappings.forEach(function(mapping){newMappings_1.push(mapping.indent(width,skipFirstLine,!0));});}return lines},Lines2.prototype.indent=function(by){if(by===0)return this;var lines=new Lines2(this.infos.map(function(info){return info.line&&!info.locked&&(info=tslib_1.__assign(tslib_1.__assign({},info),{indent:info.indent+by})),info}));if(this.mappings.length>0){var newMappings_2=lines.mappings;(0, tiny_invariant_1.default)(newMappings_2.length===0),this.mappings.forEach(function(mapping){newMappings_2.push(mapping.indent(by));});}return lines},Lines2.prototype.indentTail=function(by){if(by===0)return this;if(this.length<2)return this;var lines=new Lines2(this.infos.map(function(info,i){return i>0&&info.line&&!info.locked&&(info=tslib_1.__assign(tslib_1.__assign({},info),{indent:info.indent+by})),info}));if(this.mappings.length>0){var newMappings_3=lines.mappings;(0, tiny_invariant_1.default)(newMappings_3.length===0),this.mappings.forEach(function(mapping){newMappings_3.push(mapping.indent(by,!0));});}return lines},Lines2.prototype.lockIndentTail=function(){return this.length<2?this:new Lines2(this.infos.map(function(info,i){return tslib_1.__assign(tslib_1.__assign({},info),{locked:i>0})}))},Lines2.prototype.getIndentAt=function(line){return (0, tiny_invariant_1.default)(line>=1,"no line "+line+" (line numbers start from 1)"),Math.max(this.infos[line-1].indent,0)},Lines2.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;for(var counts=[],lastIndent=0,line=1,last=this.length;line<=last;++line){var info=this.infos[line-1],sliced=info.line.slice(info.sliceStart,info.sliceEnd);if(!isOnlyWhitespace(sliced)){var diff=Math.abs(info.indent-lastIndent);counts[diff]=~~counts[diff]+1,lastIndent=info.indent;}}for(var maxCount=-1,result=2,tabWidth=1;tabWidth<counts.length;tabWidth+=1)hasOwn.call(counts,tabWidth)&&counts[tabWidth]>maxCount&&(maxCount=counts[tabWidth],result=tabWidth);return this.cachedTabWidth=result},Lines2.prototype.startsWithComment=function(){if(this.infos.length===0)return !1;var firstLineInfo=this.infos[0],sliceStart=firstLineInfo.sliceStart,sliceEnd=firstLineInfo.sliceEnd,firstLine=firstLineInfo.line.slice(sliceStart,sliceEnd).trim();return firstLine.length===0||firstLine.slice(0,2)==="//"||firstLine.slice(0,2)==="/*"},Lines2.prototype.isOnlyWhitespace=function(){return isOnlyWhitespace(this.toString())},Lines2.prototype.isPrecededOnlyByWhitespace=function(pos){var info=this.infos[pos.line-1],indent=Math.max(info.indent,0),diff=pos.column-indent;if(diff<=0)return !0;var start=info.sliceStart,end=Math.min(start+diff,info.sliceEnd),prefix=info.line.slice(start,end);return isOnlyWhitespace(prefix)},Lines2.prototype.getLineLength=function(line){var info=this.infos[line-1];return this.getIndentAt(line)+info.sliceEnd-info.sliceStart},Lines2.prototype.nextPos=function(pos,skipSpaces){skipSpaces===void 0&&(skipSpaces=!1);var l=Math.max(pos.line,0),c=Math.max(pos.column,0);return c<this.getLineLength(l)?(pos.column+=1,skipSpaces?!!this.skipSpaces(pos,!1,!0):!0):l<this.length?(pos.line+=1,pos.column=0,skipSpaces?!!this.skipSpaces(pos,!1,!0):!0):!1},Lines2.prototype.prevPos=function(pos,skipSpaces){skipSpaces===void 0&&(skipSpaces=!1);var l=pos.line,c=pos.column;if(c<1){if(l-=1,l<1)return !1;c=this.getLineLength(l);}else c=Math.min(c-1,this.getLineLength(l));return pos.line=l,pos.column=c,skipSpaces?!!this.skipSpaces(pos,!0,!0):!0},Lines2.prototype.firstPos=function(){return {line:1,column:0}},Lines2.prototype.lastPos=function(){return {line:this.length,column:this.getLineLength(this.length)}},Lines2.prototype.skipSpaces=function(pos,backward,modifyInPlace){if(backward===void 0&&(backward=!1),modifyInPlace===void 0&&(modifyInPlace=!1),pos?pos=modifyInPlace?pos:{line:pos.line,column:pos.column}:backward?pos=this.lastPos():pos=this.firstPos(),backward){for(;this.prevPos(pos);)if(!isOnlyWhitespace(this.charAt(pos))&&this.nextPos(pos))return pos;return null}else {for(;isOnlyWhitespace(this.charAt(pos));)if(!this.nextPos(pos))return null;return pos}},Lines2.prototype.trimLeft=function(){var pos=this.skipSpaces(this.firstPos(),!1,!0);return pos?this.slice(pos):emptyLines},Lines2.prototype.trimRight=function(){var pos=this.skipSpaces(this.lastPos(),!0,!0);return pos?this.slice(this.firstPos(),pos):emptyLines},Lines2.prototype.trim=function(){var start=this.skipSpaces(this.firstPos(),!1,!0);if(start===null)return emptyLines;var end=this.skipSpaces(this.lastPos(),!0,!0);return end===null?emptyLines:this.slice(start,end)},Lines2.prototype.eachPos=function(callback,startPos,skipSpaces){startPos===void 0&&(startPos=this.firstPos()),skipSpaces===void 0&&(skipSpaces=!1);var pos=this.firstPos();if(startPos&&(pos.line=startPos.line,pos.column=startPos.column),!(skipSpaces&&!this.skipSpaces(pos,!1,!0)))do callback.call(this,pos);while(this.nextPos(pos,skipSpaces))},Lines2.prototype.bootstrapSlice=function(start,end){var strings=this.toString().split(lineTerminatorSeqExp).slice(start.line-1,end.line);return strings.length>0&&(strings.push(strings.pop().slice(0,end.column)),strings[0]=strings[0].slice(start.column)),fromString(strings.join(`
|
|
358
|
+
`))},Lines2.prototype.slice=function(start,end){if(!end){if(!start)return this;end=this.lastPos();}if(!start)throw new Error("cannot slice with end but not start");var sliced=this.infos.slice(start.line-1,end.line);start.line===end.line?sliced[0]=sliceInfo(sliced[0],start.column,end.column):((0, tiny_invariant_1.default)(start.line<end.line),sliced[0]=sliceInfo(sliced[0],start.column),sliced.push(sliceInfo(sliced.pop(),0,end.column)));var lines=new Lines2(sliced);if(this.mappings.length>0){var newMappings_4=lines.mappings;(0, tiny_invariant_1.default)(newMappings_4.length===0),this.mappings.forEach(function(mapping){var sliced2=mapping.slice(this,start,end);sliced2&&newMappings_4.push(sliced2);},this);}return lines},Lines2.prototype.bootstrapSliceString=function(start,end,options){return this.slice(start,end).toString(options)},Lines2.prototype.sliceString=function(start,end,options){start===void 0&&(start=this.firstPos()),end===void 0&&(end=this.lastPos());for(var _a=(0, options_1.normalize)(options),tabWidth=_a.tabWidth,useTabs=_a.useTabs,reuseWhitespace=_a.reuseWhitespace,lineTerminator=_a.lineTerminator,parts=[],line=start.line;line<=end.line;++line){var info=this.infos[line-1];line===start.line?line===end.line?info=sliceInfo(info,start.column,end.column):info=sliceInfo(info,start.column):line===end.line&&(info=sliceInfo(info,0,end.column));var indent=Math.max(info.indent,0),before_1=info.line.slice(0,info.sliceStart);if(reuseWhitespace&&isOnlyWhitespace(before_1)&&countSpaces(before_1,tabWidth)===indent){parts.push(info.line.slice(0,info.sliceEnd));continue}var tabs=0,spaces=indent;useTabs&&(tabs=Math.floor(indent/tabWidth),spaces-=tabs*tabWidth);var result="";tabs>0&&(result+=new Array(tabs+1).join(" ")),spaces>0&&(result+=new Array(spaces+1).join(" ")),result+=info.line.slice(info.sliceStart,info.sliceEnd),parts.push(result);}return parts.join(lineTerminator)},Lines2.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},Lines2.prototype.join=function(elements){var separator=this,infos=[],mappings=[],prevInfo;function appendLines(linesOrNull){if(linesOrNull!==null){if(prevInfo){var info=linesOrNull.infos[0],indent=new Array(info.indent+1).join(" "),prevLine_1=infos.length,prevColumn_1=Math.max(prevInfo.indent,0)+prevInfo.sliceEnd-prevInfo.sliceStart;prevInfo.line=prevInfo.line.slice(0,prevInfo.sliceEnd)+indent+info.line.slice(info.sliceStart,info.sliceEnd),prevInfo.locked=prevInfo.locked||info.locked,prevInfo.sliceEnd=prevInfo.line.length,linesOrNull.mappings.length>0&&linesOrNull.mappings.forEach(function(mapping){mappings.push(mapping.add(prevLine_1,prevColumn_1));});}else linesOrNull.mappings.length>0&&mappings.push.apply(mappings,linesOrNull.mappings);linesOrNull.infos.forEach(function(info2,i){(!prevInfo||i>0)&&(prevInfo=tslib_1.__assign({},info2),infos.push(prevInfo));});}}function appendWithSeparator(linesOrNull,i){i>0&&appendLines(separator),appendLines(linesOrNull);}if(elements.map(function(elem){var lines2=fromString(elem);return lines2.isEmpty()?null:lines2}).forEach(function(linesOrNull,i){separator.isEmpty()?appendLines(linesOrNull):appendWithSeparator(linesOrNull,i);}),infos.length<1)return emptyLines;var lines=new Lines2(infos);return lines.mappings=mappings,lines},Lines2.prototype.concat=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var list=[this];return list.push.apply(list,args),(0, tiny_invariant_1.default)(list.length===args.length+1),emptyLines.join(list)},Lines2}();exports.Lines=Lines;var fromStringCache={},hasOwn=fromStringCache.hasOwnProperty,maxCacheKeyLen=10;function countSpaces(spaces,tabWidth){for(var count=0,len=spaces.length,i=0;i<len;++i)switch(spaces.charCodeAt(i)){case 9:{(0, tiny_invariant_1.default)(typeof tabWidth=="number"),(0, tiny_invariant_1.default)(tabWidth>0);var next=Math.ceil(count/tabWidth)*tabWidth;next===count?count+=tabWidth:count=next;break}case 11:case 12:case 13:case 65279:break;case 32:default:count+=1;break}return count}exports.countSpaces=countSpaces;var leadingSpaceExp=/^\s*/,lineTerminatorSeqExp=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function fromString(string,options){if(string instanceof Lines)return string;string+="";var tabWidth=options&&options.tabWidth,tabless=string.indexOf(" ")<0,cacheable=!options&&tabless&&string.length<=maxCacheKeyLen;if((0, tiny_invariant_1.default)(tabWidth||tabless,`No tab width specified but encountered tabs in string
|
|
359
|
+
`+string),cacheable&&hasOwn.call(fromStringCache,string))return fromStringCache[string];var lines=new Lines(string.split(lineTerminatorSeqExp).map(function(line){var spaces=leadingSpaceExp.exec(line)[0];return {line,indent:countSpaces(spaces,tabWidth),locked:!1,sliceStart:spaces.length,sliceEnd:line.length}}),(0, options_1.normalize)(options).sourceFileName);return cacheable&&(fromStringCache[string]=lines),lines}exports.fromString=fromString;function isOnlyWhitespace(string){return !/\S/.test(string)}function sliceInfo(info,startCol,endCol){var sliceStart=info.sliceStart,sliceEnd=info.sliceEnd,indent=Math.max(info.indent,0),lineLength=indent+sliceEnd-sliceStart;return typeof endCol>"u"&&(endCol=lineLength),startCol=Math.max(startCol,0),endCol=Math.min(endCol,lineLength),endCol=Math.max(endCol,startCol),endCol<indent?(indent=endCol,sliceEnd=sliceStart):sliceEnd-=lineLength-endCol,lineLength=endCol,lineLength-=startCol,startCol<indent?indent-=startCol:(startCol-=indent,indent=0,sliceStart+=startCol),(0, tiny_invariant_1.default)(indent>=0),(0, tiny_invariant_1.default)(sliceStart<=sliceEnd),(0, tiny_invariant_1.default)(lineLength===indent+sliceEnd-sliceStart),info.indent===indent&&info.sliceStart===sliceStart&&info.sliceEnd===sliceEnd?info:{line:info.line,indent,locked:!1,sliceStart,sliceEnd}}function concat(elements){return emptyLines.join(elements)}exports.concat=concat;var emptyLines=fromString("");}});var require_comments=__commonJS({"../../node_modules/recast/lib/comments.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.printComments=exports.attach=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),types=tslib_1.__importStar(require_main5()),n=types.namedTypes,isArray=types.builtInTypes.array,isObject=types.builtInTypes.object,lines_1=require_lines(),util_1=require_util3(),childNodesCache=new WeakMap;function getSortedChildNodes(node,lines,resultArray){if(!node)return resultArray;if((0, util_1.fixFaultyLocations)(node,lines),resultArray){if(n.Node.check(node)&&n.SourceLocation.check(node.loc)){for(var i=resultArray.length-1;i>=0;--i){var child=resultArray[i];if(child&&child.loc&&(0, util_1.comparePos)(child.loc.end,node.loc.start)<=0)break}return resultArray.splice(i+1,0,node),resultArray}}else {var childNodes=childNodesCache.get(node);if(childNodes)return childNodes}var names;if(isArray.check(node))names=Object.keys(node);else if(isObject.check(node))names=types.getFieldNames(node);else return resultArray;resultArray||childNodesCache.set(node,resultArray=[]);for(var i=0,nameCount=names.length;i<nameCount;++i)getSortedChildNodes(node[names[i]],lines,resultArray);return resultArray}function decorateComment(node,comment,lines){for(var childNodes=getSortedChildNodes(node,lines),left=0,right=childNodes&&childNodes.length,precedingNode,followingNode;typeof right=="number"&&left<right;){var middle=left+right>>1,child=childNodes[middle];if((0, util_1.comparePos)(child.loc.start,comment.loc.start)<=0&&(0, util_1.comparePos)(comment.loc.end,child.loc.end)<=0){decorateComment(comment.enclosingNode=child,comment,lines);return}if((0, util_1.comparePos)(child.loc.end,comment.loc.start)<=0){precedingNode=child,left=middle+1;continue}if((0, util_1.comparePos)(comment.loc.end,child.loc.start)<=0){followingNode=child,right=middle;continue}throw new Error("Comment location overlaps with node location")}precedingNode&&(comment.precedingNode=precedingNode),followingNode&&(comment.followingNode=followingNode);}function attach(comments,ast,lines){if(isArray.check(comments)){var tiesToBreak=[];comments.forEach(function(comment){comment.loc.lines=lines,decorateComment(ast,comment,lines);var pn=comment.precedingNode,en=comment.enclosingNode,fn=comment.followingNode;if(pn&&fn){var tieCount=tiesToBreak.length;if(tieCount>0){var lastTie=tiesToBreak[tieCount-1];(0, tiny_invariant_1.default)(lastTie.precedingNode===comment.precedingNode==(lastTie.followingNode===comment.followingNode)),lastTie.followingNode!==comment.followingNode&&breakTies(tiesToBreak,lines);}tiesToBreak.push(comment);}else if(pn)breakTies(tiesToBreak,lines),addTrailingComment(pn,comment);else if(fn)breakTies(tiesToBreak,lines),addLeadingComment(fn,comment);else if(en)breakTies(tiesToBreak,lines),addDanglingComment(en,comment);else throw new Error("AST contains no nodes at all?")}),breakTies(tiesToBreak,lines),comments.forEach(function(comment){delete comment.precedingNode,delete comment.enclosingNode,delete comment.followingNode;});}}exports.attach=attach;function breakTies(tiesToBreak,lines){var tieCount=tiesToBreak.length;if(tieCount!==0){for(var pn=tiesToBreak[0].precedingNode,fn=tiesToBreak[0].followingNode,gapEndPos=fn.loc.start,indexOfFirstLeadingComment=tieCount,comment;indexOfFirstLeadingComment>0;--indexOfFirstLeadingComment){comment=tiesToBreak[indexOfFirstLeadingComment-1],(0, tiny_invariant_1.default)(comment.precedingNode===pn),(0, tiny_invariant_1.default)(comment.followingNode===fn);var gap=lines.sliceString(comment.loc.end,gapEndPos);if(/\S/.test(gap))break;gapEndPos=comment.loc.start;}for(;indexOfFirstLeadingComment<=tieCount&&(comment=tiesToBreak[indexOfFirstLeadingComment])&&(comment.type==="Line"||comment.type==="CommentLine")&&comment.loc.start.column>fn.loc.start.column;)++indexOfFirstLeadingComment;if(indexOfFirstLeadingComment){var enclosingNode=tiesToBreak[indexOfFirstLeadingComment-1].enclosingNode;enclosingNode?.type==="CallExpression"&&--indexOfFirstLeadingComment;}tiesToBreak.forEach(function(comment2,i){i<indexOfFirstLeadingComment?addTrailingComment(pn,comment2):addLeadingComment(fn,comment2);}),tiesToBreak.length=0;}}function addCommentHelper(node,comment){var comments=node.comments||(node.comments=[]);comments.push(comment);}function addLeadingComment(node,comment){comment.leading=!0,comment.trailing=!1,addCommentHelper(node,comment);}function addDanglingComment(node,comment){comment.leading=!1,comment.trailing=!1,addCommentHelper(node,comment);}function addTrailingComment(node,comment){comment.leading=!1,comment.trailing=!0,addCommentHelper(node,comment);}function printLeadingComment(commentPath,print){var comment=commentPath.getValue();n.Comment.assert(comment);var loc=comment.loc,lines=loc&&loc.lines,parts=[print(commentPath)];if(comment.trailing)parts.push(`
|
|
360
360
|
`);else if(lines instanceof lines_1.Lines){var trailingSpace=lines.slice(loc.end,lines.skipSpaces(loc.end)||lines.lastPos());trailingSpace.length===1?parts.push(trailingSpace):parts.push(new Array(trailingSpace.length).join(`
|
|
361
361
|
`));}else parts.push(`
|
|
362
362
|
`);return (0, lines_1.concat)(parts)}function printTrailingComment(commentPath,print){var comment=commentPath.getValue(commentPath);n.Comment.assert(comment);var loc=comment.loc,lines=loc&&loc.lines,parts=[];if(lines instanceof lines_1.Lines){var fromPos=lines.skipSpaces(loc.start,!0)||lines.firstPos(),leadingSpace=lines.slice(fromPos,loc.start);leadingSpace.length===1?parts.push(leadingSpace):parts.push(new Array(leadingSpace.length).join(`
|
|
363
|
-
`));}return parts.push(print(commentPath)),(0, lines_1.concat)(parts)}function printComments(path,print){var value=path.getValue(),innerLines=print(path),comments=n.Node.check(value)&&types.getFieldValue(value,"comments");if(!comments||comments.length===0)return innerLines;var leadingParts=[],trailingParts=[innerLines];return path.each(function(commentPath){var comment=commentPath.getValue(),leading=types.getFieldValue(comment,"leading"),trailing=types.getFieldValue(comment,"trailing");leading||trailing&&!(n.Statement.check(value)||comment.type==="Block"||comment.type==="CommentBlock")?leadingParts.push(printLeadingComment(commentPath,print)):trailing&&trailingParts.push(printTrailingComment(commentPath,print));},"comments"),leadingParts.push.apply(leadingParts,trailingParts),(0, lines_1.concat)(leadingParts)}exports.printComments=printComments;}});var require_parser2=__commonJS({"../../node_modules/recast/lib/parser.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.parse=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),types=tslib_1.__importStar(require_main5()),b=types.builders,isObject=types.builtInTypes.object,isArray=types.builtInTypes.array,options_1=require_options(),lines_1=require_lines(),comments_1=require_comments(),util=tslib_1.__importStar(require_util3());function parse(source,options){options=(0, options_1.normalize)(options);var lines=(0, lines_1.fromString)(source,options),sourceWithoutTabs=lines.toString({tabWidth:options.tabWidth,reuseWhitespace:!1,useTabs:!1}),comments=[],ast=options.parser.parse(sourceWithoutTabs,{jsx:!0,loc:!0,locations:!0,range:options.range,comment:!0,onComment:comments,tolerant:util.getOption(options,"tolerant",!0),ecmaVersion:6,sourceType:util.getOption(options,"sourceType","module")}),tokens=Array.isArray(ast.tokens)?ast.tokens:require_esprima2().tokenize(sourceWithoutTabs,{loc:!0});delete ast.tokens,tokens.forEach(function(token){typeof token.value!="string"&&(token.value=lines.sliceString(token.loc.start,token.loc.end));}),Array.isArray(ast.comments)&&(comments=ast.comments,delete ast.comments),ast.loc?util.fixFaultyLocations(ast,lines):ast.loc={start:lines.firstPos(),end:lines.lastPos()},ast.loc.lines=lines,ast.loc.indent=0;var file,program;ast.type==="Program"?(program=ast,file=b.file(ast,options.sourceFileName||null),file.loc={start:lines.firstPos(),end:lines.lastPos(),lines,indent:0}):ast.type==="File"&&(file=ast,program=file.program),options.tokens&&(file.tokens=tokens);var trueProgramLoc=util.getTrueLoc({type:program.type,loc:program.loc,body:[],comments},lines);return program.loc.start=trueProgramLoc.start,program.loc.end=trueProgramLoc.end,(0, comments_1.attach)(comments,program.body.length?file.program:file,lines),new TreeCopier(lines,tokens).copy(file)}exports.parse=parse;var TreeCopier=function TreeCopier2(lines,tokens){assert_1.default.ok(this instanceof TreeCopier2),this.lines=lines,this.tokens=tokens,this.startTokenIndex=0,this.endTokenIndex=tokens.length,this.indent=0,this.seen=new Map;},TCp=TreeCopier.prototype;TCp.copy=function(node){if(this.seen.has(node))return this.seen.get(node);if(isArray.check(node)){var copy_1=new Array(node.length);return this.seen.set(node,copy_1),node.forEach(function(item,i2){copy_1[i2]=this.copy(item);},this),copy_1}if(!isObject.check(node))return node;util.fixFaultyLocations(node,this.lines);var copy=Object.create(Object.getPrototypeOf(node),{original:{value:node,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(node,copy);var loc=node.loc,oldIndent=this.indent,newIndent=oldIndent,oldStartTokenIndex=this.startTokenIndex,oldEndTokenIndex=this.endTokenIndex;loc&&((node.type==="Block"||node.type==="Line"||node.type==="CommentBlock"||node.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(loc.start))&&(newIndent=this.indent=loc.start.column),loc.lines=this.lines,loc.tokens=this.tokens,loc.indent=newIndent,this.findTokenRange(loc));for(var keys=Object.keys(node),keyCount=keys.length,i=0;i<keyCount;++i){var key=keys[i];key==="loc"||key==="tokens"&&node.type==="File"?copy[key]=node[key]:copy[key]=this.copy(node[key]);}return this.indent=oldIndent,this.startTokenIndex=oldStartTokenIndex,this.endTokenIndex=oldEndTokenIndex,copy};TCp.findTokenRange=function(loc){for(;this.startTokenIndex>0;){var token=loc.tokens[this.startTokenIndex];if(util.comparePos(loc.start,token.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<loc.tokens.length;){var token=loc.tokens[this.endTokenIndex];if(util.comparePos(token.loc.end,loc.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var token=loc.tokens[this.startTokenIndex];if(util.comparePos(token.loc.start,loc.start)<0)++this.startTokenIndex;else break}for(loc.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var token=loc.tokens[this.endTokenIndex-1];if(util.comparePos(loc.end,token.loc.end)<0)--this.endTokenIndex;else break}loc.end.token=this.endTokenIndex;};}});var require_fast_path=__commonJS({"../../node_modules/recast/lib/fast-path.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),types=tslib_1.__importStar(require_main5()),util=tslib_1.__importStar(require_util3()),n=types.namedTypes,isArray=types.builtInTypes.array,isNumber=types.builtInTypes.number,PRECEDENCE={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});var FastPath=function FastPath2(value){assert_1.default.ok(this instanceof FastPath2),this.stack=[value];},FPp=FastPath.prototype;FastPath.from=function(obj){if(obj instanceof FastPath)return obj.copy();if(obj instanceof types.NodePath){for(var copy=Object.create(FastPath.prototype),stack=[obj.value],pp=void 0;pp=obj.parentPath;obj=pp)stack.push(obj.name,pp.value);return copy.stack=stack.reverse(),copy}return new FastPath(obj)};FPp.copy=function(){var copy2=Object.create(FastPath.prototype);return copy2.stack=this.stack.slice(0),copy2};FPp.getName=function(){var s=this.stack,len=s.length;return len>1?s[len-2]:null};FPp.getValue=function(){var s=this.stack;return s[s.length-1]};FPp.valueIsDuplicate=function(){var s=this.stack,valueIndex=s.length-1;return s.lastIndexOf(s[valueIndex],valueIndex-1)>=0};function getNodeHelper(path,count){for(var s=path.stack,i=s.length-1;i>=0;i-=2){var value=s[i];if(n.Node.check(value)&&--count<0)return value}return null}FPp.getNode=function(count){return count===void 0&&(count=0),getNodeHelper(this,~~count)};FPp.getParentNode=function(count){return count===void 0&&(count=0),getNodeHelper(this,~~count+1)};FPp.getRootValue=function(){var s=this.stack;return s.length%2===0?s[1]:s[0]};FPp.call=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}var result=callback(this);return s.length=origLen,result};FPp.each=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}for(var i=0;i<value.length;++i)i in value&&(s.push(i,value[i]),callback(this),s.length-=2);s.length=origLen;};FPp.map=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}for(var result=new Array(value.length),i=0;i<value.length;++i)i in value&&(s.push(i,value[i]),result[i]=callback(this,i),s.length-=2);return s.length=origLen,result};FPp.hasParens=function(){var node=this.getNode(),prevToken=this.getPrevToken(node);if(!prevToken)return !1;var nextToken=this.getNextToken(node);if(!nextToken)return !1;if(prevToken.value==="("){if(nextToken.value===")")return !0;var justNeedsOpeningParen=!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0);if(justNeedsOpeningParen)return !0}return !1};FPp.getPrevToken=function(node){node=node||this.getNode();var loc=node&&node.loc,tokens=loc&&loc.tokens;if(tokens&&loc.start.token>0){var token=tokens[loc.start.token-1];if(token){var rootLoc=this.getRootValue().loc;if(util.comparePos(rootLoc.start,token.loc.start)<=0)return token}}return null};FPp.getNextToken=function(node){node=node||this.getNode();var loc=node&&node.loc,tokens=loc&&loc.tokens;if(tokens&&loc.end.token<tokens.length){var token=tokens[loc.end.token];if(token){var rootLoc=this.getRootValue().loc;if(util.comparePos(token.loc.end,rootLoc.end)<=0)return token}}return null};FPp.needsParens=function(assumeExpressionContext){var node=this.getNode();if(node.type==="AssignmentExpression"&&node.left.type==="ObjectPattern")return !0;var parent=this.getParentNode(),name=this.getName();if(this.getValue()!==node||n.Statement.check(node)||node.type==="Identifier"||parent&&parent.type==="ParenthesizedExpression")return !1;if(node.extra&&node.extra.parenthesized)return !0;if(!parent)return !1;if(node.type==="UnaryExpression"&&parent.type==="BinaryExpression"&&name==="left"&&parent.left===node&&parent.operator==="**")return !0;switch(node.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return parent.type==="MemberExpression"&&name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":return name==="callee"&&parent.callee===node;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":{var po=parent.operator,pp=PRECEDENCE[po],no=node.operator,np=PRECEDENCE[no];if(pp>np)return !0;if(pp===np&&name==="right")return assert_1.default.strictEqual(parent.right,node),!0;break}default:return !1}break;case"SequenceExpression":switch(parent.type){case"ReturnStatement":return !1;case"ForStatement":return !1;case"ExpressionStatement":return name!=="expression";default:return !0}case"OptionalIndexedAccessType":return node.optional&&parent.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return parent.type==="NullableTypeAnnotation";case"Literal":return parent.type==="MemberExpression"&&isNumber.check(node.value)&&name==="object"&&parent.object===node;case"NumericLiteral":return parent.type==="MemberExpression"&&name==="object"&&parent.object===node;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(parent.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":case"NewExpression":return name==="callee"&&parent.callee===node;case"ConditionalExpression":return name==="test"&&parent.test===node;case"MemberExpression":return name==="object"&&parent.object===node;default:return !1}case"ArrowFunctionExpression":return n.CallExpression.check(parent)&&name==="callee"&&parent.callee===node||n.MemberExpression.check(parent)&&name==="object"&&parent.object===node||n.TSAsExpression&&n.TSAsExpression.check(parent)&&name==="expression"&&parent.expression===node?!0:isBinary(parent);case"ObjectExpression":if(parent.type==="ArrowFunctionExpression"&&name==="body"&&parent.body===node)return !0;break;case"TSAsExpression":if(parent.type==="ArrowFunctionExpression"&&name==="body"&&parent.body===node&&node.expression.type==="ObjectExpression")return !0;break;case"CallExpression":if(name==="declaration"&&n.ExportDefaultDeclaration.check(parent)&&n.FunctionExpression.check(node.callee))return !0}return parent.type==="NewExpression"&&name==="callee"&&parent.callee===node?containsCallExpression(node):!!(assumeExpressionContext!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function isBinary(node){return n.BinaryExpression.check(node)||n.LogicalExpression.check(node)}function containsCallExpression(node){return n.CallExpression.check(node)?!0:isArray.check(node)?node.some(containsCallExpression):n.Node.check(node)?types.someField(node,function(_name,child){return containsCallExpression(child)}):!1}FPp.canBeFirstInStatement=function(){var node=this.getNode();return !(n.FunctionExpression.check(node)||n.ObjectExpression.check(node)||n.ClassExpression.check(node))};FPp.firstInStatement=function(){for(var s=this.stack,parentName,parent,childName,child,i=s.length-1;i>=0;i-=2)if(n.Node.check(s[i])&&(childName=parentName,child=parent,parentName=s[i-1],parent=s[i]),!(!parent||!child)){if(n.BlockStatement.check(parent)&&parentName==="body"&&childName===0)return assert_1.default.strictEqual(parent.body[0],child),!0;if(n.ExpressionStatement.check(parent)&&childName==="expression")return assert_1.default.strictEqual(parent.expression,child),!0;if(n.AssignmentExpression.check(parent)&&childName==="left")return assert_1.default.strictEqual(parent.left,child),!0;if(n.ArrowFunctionExpression.check(parent)&&childName==="body")return assert_1.default.strictEqual(parent.body,child),!0;if(n.SequenceExpression.check(parent)&&s[i+1]==="expressions"&&childName===0){assert_1.default.strictEqual(parent.expressions[0],child);continue}if(n.CallExpression.check(parent)&&childName==="callee"){assert_1.default.strictEqual(parent.callee,child);continue}if(n.MemberExpression.check(parent)&&childName==="object"){assert_1.default.strictEqual(parent.object,child);continue}if(n.ConditionalExpression.check(parent)&&childName==="test"){assert_1.default.strictEqual(parent.test,child);continue}if(isBinary(parent)&&childName==="left"){assert_1.default.strictEqual(parent.left,child);continue}if(n.UnaryExpression.check(parent)&&!parent.prefix&&childName==="argument"){assert_1.default.strictEqual(parent.argument,child);continue}return !1}return !0};exports.default=FastPath;}});var require_patcher=__commonJS({"../../node_modules/recast/lib/patcher.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.getReprinter=exports.Patcher=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),linesModule=tslib_1.__importStar(require_lines()),types=tslib_1.__importStar(require_main5()),Printable=types.namedTypes.Printable,Expression=types.namedTypes.Expression,ReturnStatement=types.namedTypes.ReturnStatement,SourceLocation=types.namedTypes.SourceLocation,util_1=require_util3(),fast_path_1=tslib_1.__importDefault(require_fast_path()),isObject=types.builtInTypes.object,isArray=types.builtInTypes.array,isString=types.builtInTypes.string,riskyAdjoiningCharExp=/[0-9a-z_$]/i,Patcher=function Patcher2(lines){assert_1.default.ok(this instanceof Patcher2),assert_1.default.ok(lines instanceof linesModule.Lines);var self2=this,replacements=[];self2.replace=function(loc,lines2){isString.check(lines2)&&(lines2=linesModule.fromString(lines2)),replacements.push({lines:lines2,start:loc.start,end:loc.end});},self2.get=function(loc){loc=loc||{start:{line:1,column:0},end:{line:lines.length,column:lines.getLineLength(lines.length)}};var sliceFrom=loc.start,toConcat=[];function pushSlice(from,to){assert_1.default.ok((0, util_1.comparePos)(from,to)<=0),toConcat.push(lines.slice(from,to));}return replacements.sort(function(a,b){return (0, util_1.comparePos)(a.start,b.start)}).forEach(function(rep){(0, util_1.comparePos)(sliceFrom,rep.start)>0||(pushSlice(sliceFrom,rep.start),toConcat.push(rep.lines),sliceFrom=rep.end);}),pushSlice(sliceFrom,loc.end),linesModule.concat(toConcat)};};exports.Patcher=Patcher;var Pp=Patcher.prototype;Pp.tryToReprintComments=function(newNode,oldNode,print){var patcher=this;if(!newNode.comments&&!oldNode.comments)return !0;var newPath=fast_path_1.default.from(newNode),oldPath=fast_path_1.default.from(oldNode);newPath.stack.push("comments",getSurroundingComments(newNode)),oldPath.stack.push("comments",getSurroundingComments(oldNode));var reprints=[],ableToReprintComments=findArrayReprints(newPath,oldPath,reprints);return ableToReprintComments&&reprints.length>0&&reprints.forEach(function(reprint){var oldComment=reprint.oldPath.getValue();assert_1.default.ok(oldComment.leading||oldComment.trailing),patcher.replace(oldComment.loc,print(reprint.newPath).indentTail(oldComment.loc.indent));}),ableToReprintComments};function getSurroundingComments(node){var result=[];return node.comments&&node.comments.length>0&&node.comments.forEach(function(comment){(comment.leading||comment.trailing)&&result.push(comment);}),result}Pp.deleteComments=function(node){if(node.comments){var patcher=this;node.comments.forEach(function(comment){comment.leading?patcher.replace({start:comment.loc.start,end:node.loc.lines.skipSpaces(comment.loc.end,!1,!1)},""):comment.trailing&&patcher.replace({start:node.loc.lines.skipSpaces(comment.loc.start,!0,!1),end:comment.loc.end},"");});}};function getReprinter(path){assert_1.default.ok(path instanceof fast_path_1.default);var node=path.getValue();if(Printable.check(node)){var orig=node.original,origLoc=orig&&orig.loc,lines=origLoc&&origLoc.lines,reprints=[];if(!(!lines||!findReprints(path,reprints)))return function(print){var patcher=new Patcher(lines);reprints.forEach(function(reprint){var newNode=reprint.newPath.getValue(),oldNode=reprint.oldPath.getValue();SourceLocation.assert(oldNode.loc,!0);var needToPrintNewPathWithComments=!patcher.tryToReprintComments(newNode,oldNode,print);needToPrintNewPathWithComments&&patcher.deleteComments(oldNode);var newLines=print(reprint.newPath,{includeComments:needToPrintNewPathWithComments,avoidRootParens:oldNode.type===newNode.type&&reprint.oldPath.hasParens()}).indentTail(oldNode.loc.indent),nls=needsLeadingSpace(lines,oldNode.loc,newLines),nts=needsTrailingSpace(lines,oldNode.loc,newLines);if(nls||nts){var newParts=[];nls&&newParts.push(" "),newParts.push(newLines),nts&&newParts.push(" "),newLines=linesModule.concat(newParts);}patcher.replace(oldNode.loc,newLines);});var patchedLines=patcher.get(origLoc).indentTail(-orig.loc.indent);return path.needsParens()?linesModule.concat(["(",patchedLines,")"]):patchedLines}}}exports.getReprinter=getReprinter;function needsLeadingSpace(oldLines,oldLoc,newLines){var posBeforeOldLoc=(0, util_1.copyPos)(oldLoc.start),charBeforeOldLoc=oldLines.prevPos(posBeforeOldLoc)&&oldLines.charAt(posBeforeOldLoc),newFirstChar=newLines.charAt(newLines.firstPos());return charBeforeOldLoc&&riskyAdjoiningCharExp.test(charBeforeOldLoc)&&newFirstChar&&riskyAdjoiningCharExp.test(newFirstChar)}function needsTrailingSpace(oldLines,oldLoc,newLines){var charAfterOldLoc=oldLines.charAt(oldLoc.end),newLastPos=newLines.lastPos(),newLastChar=newLines.prevPos(newLastPos)&&newLines.charAt(newLastPos);return newLastChar&&riskyAdjoiningCharExp.test(newLastChar)&&charAfterOldLoc&&riskyAdjoiningCharExp.test(charAfterOldLoc)}function findReprints(newPath,reprints){var newNode=newPath.getValue();Printable.assert(newNode);var oldNode=newNode.original;if(Printable.assert(oldNode),assert_1.default.deepEqual(reprints,[]),newNode.type!==oldNode.type)return !1;var oldPath=new fast_path_1.default(oldNode),canReprint=findChildReprints(newPath,oldPath,reprints);return canReprint||(reprints.length=0),canReprint}function findAnyReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();return newNode===oldNode?!0:isArray.check(newNode)?findArrayReprints(newPath,oldPath,reprints):isObject.check(newNode)?findObjectReprints(newPath,oldPath,reprints):!1}function findArrayReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();if(newNode===oldNode||newPath.valueIsDuplicate()||oldPath.valueIsDuplicate())return !0;isArray.assert(newNode);var len=newNode.length;if(!(isArray.check(oldNode)&&oldNode.length===len))return !1;for(var i=0;i<len;++i){newPath.stack.push(i,newNode[i]),oldPath.stack.push(i,oldNode[i]);var canReprint=findAnyReprints(newPath,oldPath,reprints);if(newPath.stack.length-=2,oldPath.stack.length-=2,!canReprint)return !1}return !0}function findObjectReprints(newPath,oldPath,reprints){var newNode=newPath.getValue();if(isObject.assert(newNode),newNode.original===null)return !1;var oldNode=oldPath.getValue();if(!isObject.check(oldNode))return !1;if(newNode===oldNode||newPath.valueIsDuplicate()||oldPath.valueIsDuplicate())return !0;if(Printable.check(newNode)){if(!Printable.check(oldNode))return !1;var newParentNode=newPath.getParentNode(),oldParentNode=oldPath.getParentNode();if(oldParentNode!==null&&oldParentNode.type==="FunctionTypeAnnotation"&&newParentNode!==null&&newParentNode.type==="FunctionTypeAnnotation"){var oldNeedsParens=oldParentNode.params.length!==1||!!oldParentNode.params[0].name,newNeedParens=newParentNode.params.length!==1||!!newParentNode.params[0].name;if(!oldNeedsParens&&newNeedParens)return !1}if(newNode.type===oldNode.type){var childReprints=[];if(findChildReprints(newPath,oldPath,childReprints))reprints.push.apply(reprints,childReprints);else if(oldNode.loc)reprints.push({oldPath:oldPath.copy(),newPath:newPath.copy()});else return !1;return !0}return Expression.check(newNode)&&Expression.check(oldNode)&&oldNode.loc?(reprints.push({oldPath:oldPath.copy(),newPath:newPath.copy()}),!0):!1}return findChildReprints(newPath,oldPath,reprints)}function findChildReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();if(isObject.assert(newNode),isObject.assert(oldNode),newNode.original===null||newPath.needsParens()&&!oldPath.hasParens())return !1;var keys=(0, util_1.getUnionOfKeys)(oldNode,newNode);(oldNode.type==="File"||newNode.type==="File")&&delete keys.tokens,delete keys.loc;var originalReprintCount=reprints.length;for(var k in keys)if(k.charAt(0)!=="_"){newPath.stack.push(k,types.getFieldValue(newNode,k)),oldPath.stack.push(k,types.getFieldValue(oldNode,k));var canReprint=findAnyReprints(newPath,oldPath,reprints);if(newPath.stack.length-=2,oldPath.stack.length-=2,!canReprint)return !1}return !(ReturnStatement.check(newPath.getNode())&&reprints.length>originalReprintCount)}}});var require_printer3=__commonJS({"../../node_modules/recast/lib/printer.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.Printer=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),assert_1=tslib_1.__importDefault(__require("assert")),types=tslib_1.__importStar(require_main5()),comments_1=require_comments(),fast_path_1=tslib_1.__importDefault(require_fast_path()),lines_1=require_lines(),options_1=require_options(),patcher_1=require_patcher(),util=tslib_1.__importStar(require_util3()),namedTypes=types.namedTypes,isString=types.builtInTypes.string,isObject=types.builtInTypes.object,PrintResult=function PrintResult2(code,sourceMap){assert_1.default.ok(this instanceof PrintResult2),isString.assert(code),this.code=code,sourceMap&&(isObject.assert(sourceMap),this.map=sourceMap);},PRp=PrintResult.prototype,warnedAboutToString=!1;PRp.toString=function(){return warnedAboutToString||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),warnedAboutToString=!0),this.code};var emptyPrintResult=new PrintResult(""),Printer=function Printer2(config){assert_1.default.ok(this instanceof Printer2);var explicitTabWidth=config&&config.tabWidth;config=(0, options_1.normalize)(config),config.sourceFileName=null;function makePrintFunctionWith(options,overrides){return options=Object.assign({},options,overrides),function(path){return print(path,options)}}function print(path,options){if(assert_1.default.ok(path instanceof fast_path_1.default),options=options||{},options.includeComments)return (0, comments_1.printComments)(path,makePrintFunctionWith(options,{includeComments:!1}));var oldTabWidth=config.tabWidth;if(!explicitTabWidth){var loc=path.getNode().loc;loc&&loc.lines&&loc.lines.guessTabWidth&&(config.tabWidth=loc.lines.guessTabWidth());}var reprinter=(0, patcher_1.getReprinter)(path),lines=reprinter?reprinter(print):genericPrint(path,config,options,makePrintFunctionWith(options,{includeComments:!0,avoidRootParens:!1}));return config.tabWidth=oldTabWidth,lines}this.print=function(ast){if(!ast)return emptyPrintResult;var lines=print(fast_path_1.default.from(ast),{includeComments:!0,avoidRootParens:!1});return new PrintResult(lines.toString(config),util.composeSourceMaps(config.inputSourceMap,lines.getSourceMap(config.sourceMapName,config.sourceRoot)))},this.printGenerically=function(ast){if(!ast)return emptyPrintResult;function printGenerically(path2){return (0, comments_1.printComments)(path2,function(path3){return genericPrint(path3,config,{includeComments:!0,avoidRootParens:!1},printGenerically)})}var path=fast_path_1.default.from(ast),oldReuseWhitespace=config.reuseWhitespace;config.reuseWhitespace=!1;var pr=new PrintResult(printGenerically(path).toString(config));return config.reuseWhitespace=oldReuseWhitespace,pr};};exports.Printer=Printer;function genericPrint(path,config,options,printPath){assert_1.default.ok(path instanceof fast_path_1.default);var node=path.getValue(),parts=[],linesWithoutParens=genericPrintNoParens(path,config,printPath);if(!node||linesWithoutParens.isEmpty())return linesWithoutParens;var shouldAddParens=!1,decoratorsLines=printDecorators(path,printPath);return decoratorsLines.isEmpty()?options.avoidRootParens||(shouldAddParens=path.needsParens()):parts.push(decoratorsLines),shouldAddParens&&parts.unshift("("),parts.push(linesWithoutParens),shouldAddParens&&parts.push(")"),(0, lines_1.concat)(parts)}function genericPrintNoParens(path,options,print){var n=path.getValue();if(!n)return (0, lines_1.fromString)("");if(typeof n=="string")return (0, lines_1.fromString)(n,options);namedTypes.Printable.assert(n);var parts=[];switch(n.type){case"File":return path.call(print,"program");case"Program":return n.directives&&path.each(function(childPath){parts.push(print(childPath),`;
|
|
363
|
+
`));}return parts.push(print(commentPath)),(0, lines_1.concat)(parts)}function printComments(path,print){var value=path.getValue(),innerLines=print(path),comments=n.Node.check(value)&&types.getFieldValue(value,"comments");if(!comments||comments.length===0)return innerLines;var leadingParts=[],trailingParts=[innerLines];return path.each(function(commentPath){var comment=commentPath.getValue(),leading=types.getFieldValue(comment,"leading"),trailing=types.getFieldValue(comment,"trailing");leading||trailing&&!(n.Statement.check(value)||comment.type==="Block"||comment.type==="CommentBlock")?leadingParts.push(printLeadingComment(commentPath,print)):trailing&&trailingParts.push(printTrailingComment(commentPath,print));},"comments"),leadingParts.push.apply(leadingParts,trailingParts),(0, lines_1.concat)(leadingParts)}exports.printComments=printComments;}});var require_parser2=__commonJS({"../../node_modules/recast/lib/parser.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.parse=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),types=tslib_1.__importStar(require_main5()),b=types.builders,isObject=types.builtInTypes.object,isArray=types.builtInTypes.array,options_1=require_options(),lines_1=require_lines(),comments_1=require_comments(),util=tslib_1.__importStar(require_util3());function parse(source,options){options=(0, options_1.normalize)(options);var lines=(0, lines_1.fromString)(source,options),sourceWithoutTabs=lines.toString({tabWidth:options.tabWidth,reuseWhitespace:!1,useTabs:!1}),comments=[],ast=options.parser.parse(sourceWithoutTabs,{jsx:!0,loc:!0,locations:!0,range:options.range,comment:!0,onComment:comments,tolerant:util.getOption(options,"tolerant",!0),ecmaVersion:6,sourceType:util.getOption(options,"sourceType","module")}),tokens=Array.isArray(ast.tokens)?ast.tokens:require_esprima2().tokenize(sourceWithoutTabs,{loc:!0});delete ast.tokens,tokens.forEach(function(token){typeof token.value!="string"&&(token.value=lines.sliceString(token.loc.start,token.loc.end));}),Array.isArray(ast.comments)&&(comments=ast.comments,delete ast.comments),ast.loc?util.fixFaultyLocations(ast,lines):ast.loc={start:lines.firstPos(),end:lines.lastPos()},ast.loc.lines=lines,ast.loc.indent=0;var file,program;ast.type==="Program"?(program=ast,file=b.file(ast,options.sourceFileName||null),file.loc={start:lines.firstPos(),end:lines.lastPos(),lines,indent:0}):ast.type==="File"&&(file=ast,program=file.program),options.tokens&&(file.tokens=tokens);var trueProgramLoc=util.getTrueLoc({type:program.type,loc:program.loc,body:[],comments},lines);return program.loc.start=trueProgramLoc.start,program.loc.end=trueProgramLoc.end,(0, comments_1.attach)(comments,program.body.length?file.program:file,lines),new TreeCopier(lines,tokens).copy(file)}exports.parse=parse;var TreeCopier=function TreeCopier2(lines,tokens){(0, tiny_invariant_1.default)(this instanceof TreeCopier2),this.lines=lines,this.tokens=tokens,this.startTokenIndex=0,this.endTokenIndex=tokens.length,this.indent=0,this.seen=new Map;},TCp=TreeCopier.prototype;TCp.copy=function(node){if(this.seen.has(node))return this.seen.get(node);if(isArray.check(node)){var copy_1=new Array(node.length);return this.seen.set(node,copy_1),node.forEach(function(item,i2){copy_1[i2]=this.copy(item);},this),copy_1}if(!isObject.check(node))return node;util.fixFaultyLocations(node,this.lines);var copy=Object.create(Object.getPrototypeOf(node),{original:{value:node,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(node,copy);var loc=node.loc,oldIndent=this.indent,newIndent=oldIndent,oldStartTokenIndex=this.startTokenIndex,oldEndTokenIndex=this.endTokenIndex;loc&&((node.type==="Block"||node.type==="Line"||node.type==="CommentBlock"||node.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(loc.start))&&(newIndent=this.indent=loc.start.column),loc.lines=this.lines,loc.tokens=this.tokens,loc.indent=newIndent,this.findTokenRange(loc));for(var keys=Object.keys(node),keyCount=keys.length,i=0;i<keyCount;++i){var key=keys[i];key==="loc"||key==="tokens"&&node.type==="File"?copy[key]=node[key]:copy[key]=this.copy(node[key]);}return this.indent=oldIndent,this.startTokenIndex=oldStartTokenIndex,this.endTokenIndex=oldEndTokenIndex,copy};TCp.findTokenRange=function(loc){for(;this.startTokenIndex>0;){var token=loc.tokens[this.startTokenIndex];if(util.comparePos(loc.start,token.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<loc.tokens.length;){var token=loc.tokens[this.endTokenIndex];if(util.comparePos(token.loc.end,loc.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var token=loc.tokens[this.startTokenIndex];if(util.comparePos(token.loc.start,loc.start)<0)++this.startTokenIndex;else break}for(loc.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var token=loc.tokens[this.endTokenIndex-1];if(util.comparePos(loc.end,token.loc.end)<0)--this.endTokenIndex;else break}loc.end.token=this.endTokenIndex;};}});var require_fast_path=__commonJS({"../../node_modules/recast/lib/fast-path.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),types=tslib_1.__importStar(require_main5()),util=tslib_1.__importStar(require_util3()),n=types.namedTypes,isArray=types.builtInTypes.array,isNumber=types.builtInTypes.number,PRECEDENCE={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});var FastPath=function FastPath2(value){(0, tiny_invariant_1.default)(this instanceof FastPath2),this.stack=[value];},FPp=FastPath.prototype;FastPath.from=function(obj){if(obj instanceof FastPath)return obj.copy();if(obj instanceof types.NodePath){for(var copy=Object.create(FastPath.prototype),stack=[obj.value],pp=void 0;pp=obj.parentPath;obj=pp)stack.push(obj.name,pp.value);return copy.stack=stack.reverse(),copy}return new FastPath(obj)};FPp.copy=function(){var copy2=Object.create(FastPath.prototype);return copy2.stack=this.stack.slice(0),copy2};FPp.getName=function(){var s=this.stack,len=s.length;return len>1?s[len-2]:null};FPp.getValue=function(){var s=this.stack;return s[s.length-1]};FPp.valueIsDuplicate=function(){var s=this.stack,valueIndex=s.length-1;return s.lastIndexOf(s[valueIndex],valueIndex-1)>=0};function getNodeHelper(path,count){for(var s=path.stack,i=s.length-1;i>=0;i-=2){var value=s[i];if(n.Node.check(value)&&--count<0)return value}return null}FPp.getNode=function(count){return count===void 0&&(count=0),getNodeHelper(this,~~count)};FPp.getParentNode=function(count){return count===void 0&&(count=0),getNodeHelper(this,~~count+1)};FPp.getRootValue=function(){var s=this.stack;return s.length%2===0?s[1]:s[0]};FPp.call=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}var result=callback(this);return s.length=origLen,result};FPp.each=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}for(var i=0;i<value.length;++i)i in value&&(s.push(i,value[i]),callback(this),s.length-=2);s.length=origLen;};FPp.map=function(callback){for(var s=this.stack,origLen=s.length,value=s[origLen-1],argc=arguments.length,i=1;i<argc;++i){var name=arguments[i];value=value[name],s.push(name,value);}for(var result=new Array(value.length),i=0;i<value.length;++i)i in value&&(s.push(i,value[i]),result[i]=callback(this,i),s.length-=2);return s.length=origLen,result};FPp.hasParens=function(){var node=this.getNode(),prevToken=this.getPrevToken(node);if(!prevToken)return !1;var nextToken=this.getNextToken(node);if(!nextToken)return !1;if(prevToken.value==="("){if(nextToken.value===")")return !0;var justNeedsOpeningParen=!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0);if(justNeedsOpeningParen)return !0}return !1};FPp.getPrevToken=function(node){node=node||this.getNode();var loc=node&&node.loc,tokens=loc&&loc.tokens;if(tokens&&loc.start.token>0){var token=tokens[loc.start.token-1];if(token){var rootLoc=this.getRootValue().loc;if(util.comparePos(rootLoc.start,token.loc.start)<=0)return token}}return null};FPp.getNextToken=function(node){node=node||this.getNode();var loc=node&&node.loc,tokens=loc&&loc.tokens;if(tokens&&loc.end.token<tokens.length){var token=tokens[loc.end.token];if(token){var rootLoc=this.getRootValue().loc;if(util.comparePos(token.loc.end,rootLoc.end)<=0)return token}}return null};FPp.needsParens=function(assumeExpressionContext){var node=this.getNode();if(node.type==="AssignmentExpression"&&node.left.type==="ObjectPattern")return !0;var parent=this.getParentNode(),name=this.getName();if(this.getValue()!==node||n.Statement.check(node)||node.type==="Identifier"||parent&&parent.type==="ParenthesizedExpression")return !1;if(node.extra&&node.extra.parenthesized)return !0;if(!parent)return !1;if(node.type==="UnaryExpression"&&parent.type==="BinaryExpression"&&name==="left"&&parent.left===node&&parent.operator==="**")return !0;switch(node.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return parent.type==="MemberExpression"&&name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":return name==="callee"&&parent.callee===node;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":{var po=parent.operator,pp=PRECEDENCE[po],no=node.operator,np=PRECEDENCE[no];if(pp>np)return !0;if(pp===np&&name==="right")return (0, tiny_invariant_1.default)(parent.right===node),!0;break}default:return !1}break;case"SequenceExpression":switch(parent.type){case"ReturnStatement":return !1;case"ForStatement":return !1;case"ExpressionStatement":return name!=="expression";default:return !0}case"OptionalIndexedAccessType":return node.optional&&parent.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return parent.type==="NullableTypeAnnotation";case"Literal":return parent.type==="MemberExpression"&&isNumber.check(node.value)&&name==="object"&&parent.object===node;case"NumericLiteral":return parent.type==="MemberExpression"&&name==="object"&&parent.object===node;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(parent.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":case"NewExpression":return name==="callee"&&parent.callee===node;case"ConditionalExpression":return name==="test"&&parent.test===node;case"MemberExpression":return name==="object"&&parent.object===node;default:return !1}case"ArrowFunctionExpression":return n.CallExpression.check(parent)&&name==="callee"&&parent.callee===node||n.MemberExpression.check(parent)&&name==="object"&&parent.object===node||n.TSAsExpression&&n.TSAsExpression.check(parent)&&name==="expression"&&parent.expression===node?!0:isBinary(parent);case"ObjectExpression":if(parent.type==="ArrowFunctionExpression"&&name==="body"&&parent.body===node)return !0;break;case"TSAsExpression":if(parent.type==="ArrowFunctionExpression"&&name==="body"&&parent.body===node&&node.expression.type==="ObjectExpression")return !0;break;case"CallExpression":if(name==="declaration"&&n.ExportDefaultDeclaration.check(parent)&&n.FunctionExpression.check(node.callee))return !0}return parent.type==="NewExpression"&&name==="callee"&&parent.callee===node?containsCallExpression(node):!!(assumeExpressionContext!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function isBinary(node){return n.BinaryExpression.check(node)||n.LogicalExpression.check(node)}function containsCallExpression(node){return n.CallExpression.check(node)?!0:isArray.check(node)?node.some(containsCallExpression):n.Node.check(node)?types.someField(node,function(_name,child){return containsCallExpression(child)}):!1}FPp.canBeFirstInStatement=function(){var node=this.getNode();return !(n.FunctionExpression.check(node)||n.ObjectExpression.check(node)||n.ClassExpression.check(node))};FPp.firstInStatement=function(){for(var s=this.stack,parentName,parent,childName,child,i=s.length-1;i>=0;i-=2)if(n.Node.check(s[i])&&(childName=parentName,child=parent,parentName=s[i-1],parent=s[i]),!(!parent||!child)){if(n.BlockStatement.check(parent)&&parentName==="body"&&childName===0)return (0, tiny_invariant_1.default)(parent.body[0]===child),!0;if(n.ExpressionStatement.check(parent)&&childName==="expression")return (0, tiny_invariant_1.default)(parent.expression===child),!0;if(n.AssignmentExpression.check(parent)&&childName==="left")return (0, tiny_invariant_1.default)(parent.left===child),!0;if(n.ArrowFunctionExpression.check(parent)&&childName==="body")return (0, tiny_invariant_1.default)(parent.body===child),!0;if(n.SequenceExpression.check(parent)&&s[i+1]==="expressions"&&childName===0){(0, tiny_invariant_1.default)(parent.expressions[0]===child);continue}if(n.CallExpression.check(parent)&&childName==="callee"){(0, tiny_invariant_1.default)(parent.callee===child);continue}if(n.MemberExpression.check(parent)&&childName==="object"){(0, tiny_invariant_1.default)(parent.object===child);continue}if(n.ConditionalExpression.check(parent)&&childName==="test"){(0, tiny_invariant_1.default)(parent.test===child);continue}if(isBinary(parent)&&childName==="left"){(0, tiny_invariant_1.default)(parent.left===child);continue}if(n.UnaryExpression.check(parent)&&!parent.prefix&&childName==="argument"){(0, tiny_invariant_1.default)(parent.argument===child);continue}return !1}return !0};exports.default=FastPath;}});var require_patcher=__commonJS({"../../node_modules/recast/lib/patcher.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.getReprinter=exports.Patcher=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),linesModule=tslib_1.__importStar(require_lines()),types=tslib_1.__importStar(require_main5()),Printable=types.namedTypes.Printable,Expression=types.namedTypes.Expression,ReturnStatement=types.namedTypes.ReturnStatement,SourceLocation=types.namedTypes.SourceLocation,util_1=require_util3(),fast_path_1=tslib_1.__importDefault(require_fast_path()),isObject=types.builtInTypes.object,isArray=types.builtInTypes.array,isString=types.builtInTypes.string,riskyAdjoiningCharExp=/[0-9a-z_$]/i,Patcher=function Patcher2(lines){(0, tiny_invariant_1.default)(this instanceof Patcher2),(0, tiny_invariant_1.default)(lines instanceof linesModule.Lines);var self2=this,replacements=[];self2.replace=function(loc,lines2){isString.check(lines2)&&(lines2=linesModule.fromString(lines2)),replacements.push({lines:lines2,start:loc.start,end:loc.end});},self2.get=function(loc){loc=loc||{start:{line:1,column:0},end:{line:lines.length,column:lines.getLineLength(lines.length)}};var sliceFrom=loc.start,toConcat=[];function pushSlice(from,to){(0, tiny_invariant_1.default)((0, util_1.comparePos)(from,to)<=0),toConcat.push(lines.slice(from,to));}return replacements.sort(function(a,b){return (0, util_1.comparePos)(a.start,b.start)}).forEach(function(rep){(0, util_1.comparePos)(sliceFrom,rep.start)>0||(pushSlice(sliceFrom,rep.start),toConcat.push(rep.lines),sliceFrom=rep.end);}),pushSlice(sliceFrom,loc.end),linesModule.concat(toConcat)};};exports.Patcher=Patcher;var Pp=Patcher.prototype;Pp.tryToReprintComments=function(newNode,oldNode,print){var patcher=this;if(!newNode.comments&&!oldNode.comments)return !0;var newPath=fast_path_1.default.from(newNode),oldPath=fast_path_1.default.from(oldNode);newPath.stack.push("comments",getSurroundingComments(newNode)),oldPath.stack.push("comments",getSurroundingComments(oldNode));var reprints=[],ableToReprintComments=findArrayReprints(newPath,oldPath,reprints);return ableToReprintComments&&reprints.length>0&&reprints.forEach(function(reprint){var oldComment=reprint.oldPath.getValue();(0, tiny_invariant_1.default)(oldComment.leading||oldComment.trailing),patcher.replace(oldComment.loc,print(reprint.newPath).indentTail(oldComment.loc.indent));}),ableToReprintComments};function getSurroundingComments(node){var result=[];return node.comments&&node.comments.length>0&&node.comments.forEach(function(comment){(comment.leading||comment.trailing)&&result.push(comment);}),result}Pp.deleteComments=function(node){if(node.comments){var patcher=this;node.comments.forEach(function(comment){comment.leading?patcher.replace({start:comment.loc.start,end:node.loc.lines.skipSpaces(comment.loc.end,!1,!1)},""):comment.trailing&&patcher.replace({start:node.loc.lines.skipSpaces(comment.loc.start,!0,!1),end:comment.loc.end},"");});}};function getReprinter(path){(0, tiny_invariant_1.default)(path instanceof fast_path_1.default);var node=path.getValue();if(Printable.check(node)){var orig=node.original,origLoc=orig&&orig.loc,lines=origLoc&&origLoc.lines,reprints=[];if(!(!lines||!findReprints(path,reprints)))return function(print){var patcher=new Patcher(lines);reprints.forEach(function(reprint){var newNode=reprint.newPath.getValue(),oldNode=reprint.oldPath.getValue();SourceLocation.assert(oldNode.loc,!0);var needToPrintNewPathWithComments=!patcher.tryToReprintComments(newNode,oldNode,print);needToPrintNewPathWithComments&&patcher.deleteComments(oldNode);var newLines=print(reprint.newPath,{includeComments:needToPrintNewPathWithComments,avoidRootParens:oldNode.type===newNode.type&&reprint.oldPath.hasParens()}).indentTail(oldNode.loc.indent),nls=needsLeadingSpace(lines,oldNode.loc,newLines),nts=needsTrailingSpace(lines,oldNode.loc,newLines);if(nls||nts){var newParts=[];nls&&newParts.push(" "),newParts.push(newLines),nts&&newParts.push(" "),newLines=linesModule.concat(newParts);}patcher.replace(oldNode.loc,newLines);});var patchedLines=patcher.get(origLoc).indentTail(-orig.loc.indent);return path.needsParens()?linesModule.concat(["(",patchedLines,")"]):patchedLines}}}exports.getReprinter=getReprinter;function needsLeadingSpace(oldLines,oldLoc,newLines){var posBeforeOldLoc=(0, util_1.copyPos)(oldLoc.start),charBeforeOldLoc=oldLines.prevPos(posBeforeOldLoc)&&oldLines.charAt(posBeforeOldLoc),newFirstChar=newLines.charAt(newLines.firstPos());return charBeforeOldLoc&&riskyAdjoiningCharExp.test(charBeforeOldLoc)&&newFirstChar&&riskyAdjoiningCharExp.test(newFirstChar)}function needsTrailingSpace(oldLines,oldLoc,newLines){var charAfterOldLoc=oldLines.charAt(oldLoc.end),newLastPos=newLines.lastPos(),newLastChar=newLines.prevPos(newLastPos)&&newLines.charAt(newLastPos);return newLastChar&&riskyAdjoiningCharExp.test(newLastChar)&&charAfterOldLoc&&riskyAdjoiningCharExp.test(charAfterOldLoc)}function findReprints(newPath,reprints){var newNode=newPath.getValue();Printable.assert(newNode);var oldNode=newNode.original;if(Printable.assert(oldNode),(0, tiny_invariant_1.default)(reprints.length===0),newNode.type!==oldNode.type)return !1;var oldPath=new fast_path_1.default(oldNode),canReprint=findChildReprints(newPath,oldPath,reprints);return canReprint||(reprints.length=0),canReprint}function findAnyReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();return newNode===oldNode?!0:isArray.check(newNode)?findArrayReprints(newPath,oldPath,reprints):isObject.check(newNode)?findObjectReprints(newPath,oldPath,reprints):!1}function findArrayReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();if(newNode===oldNode||newPath.valueIsDuplicate()||oldPath.valueIsDuplicate())return !0;isArray.assert(newNode);var len=newNode.length;if(!(isArray.check(oldNode)&&oldNode.length===len))return !1;for(var i=0;i<len;++i){newPath.stack.push(i,newNode[i]),oldPath.stack.push(i,oldNode[i]);var canReprint=findAnyReprints(newPath,oldPath,reprints);if(newPath.stack.length-=2,oldPath.stack.length-=2,!canReprint)return !1}return !0}function findObjectReprints(newPath,oldPath,reprints){var newNode=newPath.getValue();if(isObject.assert(newNode),newNode.original===null)return !1;var oldNode=oldPath.getValue();if(!isObject.check(oldNode))return !1;if(newNode===oldNode||newPath.valueIsDuplicate()||oldPath.valueIsDuplicate())return !0;if(Printable.check(newNode)){if(!Printable.check(oldNode))return !1;var newParentNode=newPath.getParentNode(),oldParentNode=oldPath.getParentNode();if(oldParentNode!==null&&oldParentNode.type==="FunctionTypeAnnotation"&&newParentNode!==null&&newParentNode.type==="FunctionTypeAnnotation"){var oldNeedsParens=oldParentNode.params.length!==1||!!oldParentNode.params[0].name,newNeedParens=newParentNode.params.length!==1||!!newParentNode.params[0].name;if(!oldNeedsParens&&newNeedParens)return !1}if(newNode.type===oldNode.type){var childReprints=[];if(findChildReprints(newPath,oldPath,childReprints))reprints.push.apply(reprints,childReprints);else if(oldNode.loc)reprints.push({oldPath:oldPath.copy(),newPath:newPath.copy()});else return !1;return !0}return Expression.check(newNode)&&Expression.check(oldNode)&&oldNode.loc?(reprints.push({oldPath:oldPath.copy(),newPath:newPath.copy()}),!0):!1}return findChildReprints(newPath,oldPath,reprints)}function findChildReprints(newPath,oldPath,reprints){var newNode=newPath.getValue(),oldNode=oldPath.getValue();if(isObject.assert(newNode),isObject.assert(oldNode),newNode.original===null||newPath.needsParens()&&!oldPath.hasParens())return !1;var keys=(0, util_1.getUnionOfKeys)(oldNode,newNode);(oldNode.type==="File"||newNode.type==="File")&&delete keys.tokens,delete keys.loc;var originalReprintCount=reprints.length;for(var k in keys)if(k.charAt(0)!=="_"){newPath.stack.push(k,types.getFieldValue(newNode,k)),oldPath.stack.push(k,types.getFieldValue(oldNode,k));var canReprint=findAnyReprints(newPath,oldPath,reprints);if(newPath.stack.length-=2,oldPath.stack.length-=2,!canReprint)return !1}return !(ReturnStatement.check(newPath.getNode())&&reprints.length>originalReprintCount)}}});var require_printer3=__commonJS({"../../node_modules/recast/lib/printer.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.Printer=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),tiny_invariant_1=tslib_1.__importDefault(require_tiny_invariant_cjs()),types=tslib_1.__importStar(require_main5()),comments_1=require_comments(),fast_path_1=tslib_1.__importDefault(require_fast_path()),lines_1=require_lines(),options_1=require_options(),patcher_1=require_patcher(),util=tslib_1.__importStar(require_util3()),namedTypes=types.namedTypes,isString=types.builtInTypes.string,isObject=types.builtInTypes.object,PrintResult=function PrintResult2(code,sourceMap){(0, tiny_invariant_1.default)(this instanceof PrintResult2),isString.assert(code),this.code=code,sourceMap&&(isObject.assert(sourceMap),this.map=sourceMap);},PRp=PrintResult.prototype,warnedAboutToString=!1;PRp.toString=function(){return warnedAboutToString||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),warnedAboutToString=!0),this.code};var emptyPrintResult=new PrintResult(""),Printer=function Printer2(config){(0, tiny_invariant_1.default)(this instanceof Printer2);var explicitTabWidth=config&&config.tabWidth;config=(0, options_1.normalize)(config),config.sourceFileName=null;function makePrintFunctionWith(options,overrides){return options=Object.assign({},options,overrides),function(path){return print(path,options)}}function print(path,options){if((0, tiny_invariant_1.default)(path instanceof fast_path_1.default),options=options||{},options.includeComments)return (0, comments_1.printComments)(path,makePrintFunctionWith(options,{includeComments:!1}));var oldTabWidth=config.tabWidth;if(!explicitTabWidth){var loc=path.getNode().loc;loc&&loc.lines&&loc.lines.guessTabWidth&&(config.tabWidth=loc.lines.guessTabWidth());}var reprinter=(0, patcher_1.getReprinter)(path),lines=reprinter?reprinter(print):genericPrint(path,config,options,makePrintFunctionWith(options,{includeComments:!0,avoidRootParens:!1}));return config.tabWidth=oldTabWidth,lines}this.print=function(ast){if(!ast)return emptyPrintResult;var lines=print(fast_path_1.default.from(ast),{includeComments:!0,avoidRootParens:!1});return new PrintResult(lines.toString(config),util.composeSourceMaps(config.inputSourceMap,lines.getSourceMap(config.sourceMapName,config.sourceRoot)))},this.printGenerically=function(ast){if(!ast)return emptyPrintResult;function printGenerically(path2){return (0, comments_1.printComments)(path2,function(path3){return genericPrint(path3,config,{includeComments:!0,avoidRootParens:!1},printGenerically)})}var path=fast_path_1.default.from(ast),oldReuseWhitespace=config.reuseWhitespace;config.reuseWhitespace=!1;var pr=new PrintResult(printGenerically(path).toString(config));return config.reuseWhitespace=oldReuseWhitespace,pr};};exports.Printer=Printer;function genericPrint(path,config,options,printPath){(0, tiny_invariant_1.default)(path instanceof fast_path_1.default);var node=path.getValue(),parts=[],linesWithoutParens=genericPrintNoParens(path,config,printPath);if(!node||linesWithoutParens.isEmpty())return linesWithoutParens;var shouldAddParens=!1,decoratorsLines=printDecorators(path,printPath);return decoratorsLines.isEmpty()?options.avoidRootParens||(shouldAddParens=path.needsParens()):parts.push(decoratorsLines),shouldAddParens&&parts.unshift("("),parts.push(linesWithoutParens),shouldAddParens&&parts.push(")"),(0, lines_1.concat)(parts)}function genericPrintNoParens(path,options,print){var n=path.getValue();if(!n)return (0, lines_1.fromString)("");if(typeof n=="string")return (0, lines_1.fromString)(n,options);namedTypes.Printable.assert(n);var parts=[];switch(n.type){case"File":return path.call(print,"program");case"Program":return n.directives&&path.each(function(childPath){parts.push(print(childPath),`;
|
|
364
364
|
`);},"directives"),n.interpreter&&parts.push(path.call(print,"interpreter")),parts.push(path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print)},"body")),(0, lines_1.concat)(parts);case"Noop":case"EmptyStatement":return (0, lines_1.fromString)("");case"ExpressionStatement":return (0, lines_1.concat)([path.call(print,"expression"),";"]);case"ParenthesizedExpression":return (0, lines_1.concat)(["(",path.call(print,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return (0, lines_1.fromString)(" ").join([path.call(print,"left"),n.operator,path.call(print,"right")]);case"AssignmentPattern":return (0, lines_1.concat)([path.call(print,"left")," = ",path.call(print,"right")]);case"MemberExpression":case"OptionalMemberExpression":{parts.push(path.call(print,"object"));var property=path.call(print,"property"),optional=types.getFieldValue(n,"optional");return n.computed?parts.push(optional?"?.[":"[",property,"]"):parts.push(optional?"?.":".",property),(0, lines_1.concat)(parts)}case"ChainExpression":return path.call(print,"expression");case"MetaProperty":return (0, lines_1.concat)([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":return n.object&&parts.push(path.call(print,"object")),parts.push("::",path.call(print,"callee")),(0, lines_1.concat)(parts);case"Path":return (0, lines_1.fromString)(".").join(n.body);case"Identifier":return (0, lines_1.concat)([(0, lines_1.fromString)(n.name,options),n.optional?"?":"",path.call(print,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return (0, lines_1.concat)(["...",path.call(print,"argument"),path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return n.declare&&parts.push("declare "),n.async&&parts.push("async "),parts.push("function"),n.generator&&parts.push("*"),n.id?parts.push(" ",path.call(print,"id"),path.call(print,"typeParameters")):n.typeParameters&&parts.push(path.call(print,"typeParameters")),parts.push("(",printFunctionParams(path,options,print),")",path.call(print,"returnType")),n.body&&parts.push(" ",path.call(print,"body")),(0, lines_1.concat)(parts);case"ArrowFunctionExpression":return n.async&&parts.push("async "),n.typeParameters&&parts.push(path.call(print,"typeParameters")),!options.arrowParensAlways&&n.params.length===1&&!n.rest&&n.params[0].type==="Identifier"&&!n.params[0].typeAnnotation&&!n.returnType?parts.push(path.call(print,"params",0)):parts.push("(",printFunctionParams(path,options,print),")",path.call(print,"returnType")),parts.push(" => ",path.call(print,"body")),(0, lines_1.concat)(parts);case"MethodDefinition":return printMethod(path,options,print);case"YieldExpression":return parts.push("yield"),n.delegate&&parts.push("*"),n.argument&&parts.push(" ",path.call(print,"argument")),(0, lines_1.concat)(parts);case"AwaitExpression":return parts.push("await"),n.all&&parts.push("*"),n.argument&&parts.push(" ",path.call(print,"argument")),(0, lines_1.concat)(parts);case"ModuleExpression":return (0, lines_1.concat)([`module {
|
|
365
365
|
`,path.call(print,"body").indent(options.tabWidth),`
|
|
366
|
-
}`]);case"ModuleDeclaration":return parts.push("module",path.call(print,"id")),n.source?(
|
|
366
|
+
}`]);case"ModuleDeclaration":return parts.push("module",path.call(print,"id")),n.source?((0, tiny_invariant_1.default)(!n.body),parts.push("from",path.call(print,"source"))):parts.push(path.call(print,"body")),(0, lines_1.fromString)(" ").join(parts);case"ImportSpecifier":return n.importKind&&n.importKind!=="value"&&parts.push(n.importKind+" "),n.imported?(parts.push(path.call(print,"imported")),n.local&&n.local.name!==n.imported.name&&parts.push(" as ",path.call(print,"local"))):n.id&&(parts.push(path.call(print,"id")),n.name&&parts.push(" as ",path.call(print,"name"))),(0, lines_1.concat)(parts);case"ExportSpecifier":return n.exportKind&&n.exportKind!=="value"&&parts.push(n.exportKind+" "),n.local?(parts.push(path.call(print,"local")),n.exported&&n.exported.name!==n.local.name&&parts.push(" as ",path.call(print,"exported"))):n.id&&(parts.push(path.call(print,"id")),n.name&&parts.push(" as ",path.call(print,"name"))),(0, lines_1.concat)(parts);case"ExportBatchSpecifier":return (0, lines_1.fromString)("*");case"ImportNamespaceSpecifier":return parts.push("* as "),n.local?parts.push(path.call(print,"local")):n.id&&parts.push(path.call(print,"id")),(0, lines_1.concat)(parts);case"ImportDefaultSpecifier":return n.local?path.call(print,"local"):path.call(print,"id");case"TSExportAssignment":return (0, lines_1.concat)(["export = ",path.call(print,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return printExportDeclaration(path,options,print);case"ExportAllDeclaration":return parts.push("export *"),n.exported&&parts.push(" as ",path.call(print,"exported")),parts.push(" from ",path.call(print,"source"),";"),(0, lines_1.concat)(parts);case"TSNamespaceExportDeclaration":return parts.push("export as namespace ",path.call(print,"id")),maybeAddSemicolon((0, lines_1.concat)(parts));case"ExportNamespaceSpecifier":return (0, lines_1.concat)(["* as ",path.call(print,"exported")]);case"ExportDefaultSpecifier":return path.call(print,"exported");case"Import":return (0, lines_1.fromString)("import",options);case"ImportExpression":return (0, lines_1.concat)(["import(",path.call(print,"source"),")"]);case"ImportDeclaration":{if(parts.push("import "),n.importKind&&n.importKind!=="value"&&parts.push(n.importKind+" "),n.specifiers&&n.specifiers.length>0){var unbracedSpecifiers_1=[],bracedSpecifiers_1=[];if(path.each(function(specifierPath){var spec=specifierPath.getValue();spec.type==="ImportSpecifier"?bracedSpecifiers_1.push(print(specifierPath)):(spec.type==="ImportDefaultSpecifier"||spec.type==="ImportNamespaceSpecifier")&&unbracedSpecifiers_1.push(print(specifierPath));},"specifiers"),unbracedSpecifiers_1.forEach(function(lines2,i){i>0&&parts.push(", "),parts.push(lines2);}),bracedSpecifiers_1.length>0){var lines=(0, lines_1.fromString)(", ").join(bracedSpecifiers_1);lines.getLineLength(1)>options.wrapColumn&&(lines=(0, lines_1.concat)([(0, lines_1.fromString)(`,
|
|
367
367
|
`).join(bracedSpecifiers_1).indent(options.tabWidth),","])),unbracedSpecifiers_1.length>0&&parts.push(", "),lines.length>1?parts.push(`{
|
|
368
368
|
`,lines,`
|
|
369
369
|
}`):options.objectCurlySpacing?parts.push("{ ",lines," }"):parts.push("{",lines,"}");}parts.push(" from ");}return parts.push(path.call(print,"source"),maybePrintImportAssertions(path,options,print),";"),(0, lines_1.concat)(parts)}case"ImportAttribute":return (0, lines_1.concat)([path.call(print,"key"),": ",path.call(print,"value")]);case"StaticBlock":parts.push("static ");case"BlockStatement":{var naked_1=path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print)},"body");return naked_1.isEmpty()&&(!n.directives||n.directives.length===0)?(parts.push("{}"),(0, lines_1.concat)(parts)):(parts.push(`{
|
|
@@ -393,16 +393,16 @@ while`),parts.push(" (",path.call(print,"test"),");"),(0, lines_1.concat)(parts)
|
|
|
393
393
|
`,(0, lines_1.fromString)(`
|
|
394
394
|
`).join(path.map(print,"cases")),`
|
|
395
395
|
}`]);case"SwitchCase":return n.test?parts.push("case ",path.call(print,"test"),":"):parts.push("default:"),n.consequent.length>0&&parts.push(`
|
|
396
|
-
`,path.call(function(consequentPath){return printStatementSequence(consequentPath,options,print)},"consequent").indent(options.tabWidth)),(0, lines_1.concat)(parts);case"DebuggerStatement":return (0, lines_1.fromString)("debugger;");case"JSXAttribute":return parts.push(path.call(print,"name")),n.value&&parts.push("=",path.call(print,"value")),(0, lines_1.concat)(parts);case"JSXIdentifier":return (0, lines_1.fromString)(n.name,options);case"JSXNamespacedName":return (0, lines_1.fromString)(":").join([path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return (0, lines_1.fromString)(".").join([path.call(print,"object"),path.call(print,"property")]);case"JSXSpreadAttribute":return (0, lines_1.concat)(["{...",path.call(print,"argument"),"}"]);case"JSXSpreadChild":return (0, lines_1.concat)(["{...",path.call(print,"expression"),"}"]);case"JSXExpressionContainer":return (0, lines_1.concat)(["{",path.call(print,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var openingPropName="opening"+(n.type==="JSXElement"?"Element":"Fragment"),closingPropName="closing"+(n.type==="JSXElement"?"Element":"Fragment"),openingLines=path.call(print,openingPropName);if(n[openingPropName].selfClosing)return
|
|
397
|
-
`}return print(childPath)},"children")).indentTail(options.tabWidth),closingLines=path.call(print,closingPropName);return (0, lines_1.concat)([openingLines,childLines,closingLines])}case"JSXOpeningElement":{parts.push("<",path.call(print,"name"));var attrParts_1=[];path.each(function(attrPath){attrParts_1.push(" ",print(attrPath));},"attributes");var attrLines=(0, lines_1.concat)(attrParts_1),needLineWrap=attrLines.length>1||attrLines.getLineLength(1)>options.wrapColumn;return needLineWrap&&(attrParts_1.forEach(function(part,i){part===" "&&(
|
|
396
|
+
`,path.call(function(consequentPath){return printStatementSequence(consequentPath,options,print)},"consequent").indent(options.tabWidth)),(0, lines_1.concat)(parts);case"DebuggerStatement":return (0, lines_1.fromString)("debugger;");case"JSXAttribute":return parts.push(path.call(print,"name")),n.value&&parts.push("=",path.call(print,"value")),(0, lines_1.concat)(parts);case"JSXIdentifier":return (0, lines_1.fromString)(n.name,options);case"JSXNamespacedName":return (0, lines_1.fromString)(":").join([path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return (0, lines_1.fromString)(".").join([path.call(print,"object"),path.call(print,"property")]);case"JSXSpreadAttribute":return (0, lines_1.concat)(["{...",path.call(print,"argument"),"}"]);case"JSXSpreadChild":return (0, lines_1.concat)(["{...",path.call(print,"expression"),"}"]);case"JSXExpressionContainer":return (0, lines_1.concat)(["{",path.call(print,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var openingPropName="opening"+(n.type==="JSXElement"?"Element":"Fragment"),closingPropName="closing"+(n.type==="JSXElement"?"Element":"Fragment"),openingLines=path.call(print,openingPropName);if(n[openingPropName].selfClosing)return (0, tiny_invariant_1.default)(!n[closingPropName],"unexpected "+closingPropName+" element in self-closing "+n.type),openingLines;var childLines=(0, lines_1.concat)(path.map(function(childPath){var child=childPath.getValue();if(namedTypes.Literal.check(child)&&typeof child.value=="string"){if(/\S/.test(child.value))return child.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(child.value))return `
|
|
397
|
+
`}return print(childPath)},"children")).indentTail(options.tabWidth),closingLines=path.call(print,closingPropName);return (0, lines_1.concat)([openingLines,childLines,closingLines])}case"JSXOpeningElement":{parts.push("<",path.call(print,"name"));var attrParts_1=[];path.each(function(attrPath){attrParts_1.push(" ",print(attrPath));},"attributes");var attrLines=(0, lines_1.concat)(attrParts_1),needLineWrap=attrLines.length>1||attrLines.getLineLength(1)>options.wrapColumn;return needLineWrap&&(attrParts_1.forEach(function(part,i){part===" "&&((0, tiny_invariant_1.default)(i%2===0),attrParts_1[i]=`
|
|
398
398
|
`);}),attrLines=(0, lines_1.concat)(attrParts_1).indentTail(options.tabWidth)),parts.push(attrLines,n.selfClosing?" />":">"),(0, lines_1.concat)(parts)}case"JSXClosingElement":return (0, lines_1.concat)(["</",path.call(print,"name"),">"]);case"JSXOpeningFragment":return (0, lines_1.fromString)("<>");case"JSXClosingFragment":return (0, lines_1.fromString)("</>");case"JSXText":return (0, lines_1.fromString)(n.value,options);case"JSXEmptyExpression":return (0, lines_1.fromString)("");case"TypeAnnotatedIdentifier":return (0, lines_1.concat)([path.call(print,"annotation")," ",path.call(print,"identifier")]);case"ClassBody":return n.body.length===0?(0, lines_1.fromString)("{}"):(0, lines_1.concat)([`{
|
|
399
399
|
`,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print)},"body").indent(options.tabWidth),`
|
|
400
400
|
}`]);case"ClassPropertyDefinition":return parts.push("static ",path.call(print,"definition")),namedTypes.MethodDefinition.check(n.definition)||parts.push(";"),(0, lines_1.concat)(parts);case"ClassProperty":{n.declare&&parts.push("declare ");var access=n.accessibility||n.access;typeof access=="string"&&parts.push(access," "),n.static&&parts.push("static "),n.abstract&&parts.push("abstract "),n.readonly&&parts.push("readonly ");var key=path.call(print,"key");return n.computed&&(key=(0, lines_1.concat)(["[",key,"]"])),n.variance&&(key=(0, lines_1.concat)([printVariance(path,print),key])),parts.push(key),n.optional&&parts.push("?"),n.definite&&parts.push("!"),n.typeAnnotation&&parts.push(path.call(print,"typeAnnotation")),n.value&&parts.push(" = ",path.call(print,"value")),parts.push(";"),(0, lines_1.concat)(parts)}case"ClassPrivateProperty":return n.static&&parts.push("static "),parts.push(path.call(print,"key")),n.typeAnnotation&&parts.push(path.call(print,"typeAnnotation")),n.value&&parts.push(" = ",path.call(print,"value")),parts.push(";"),(0, lines_1.concat)(parts);case"ClassAccessorProperty":return parts.push.apply(parts,tslib_1.__spreadArray(tslib_1.__spreadArray([],printClassMemberModifiers(n),!1),["accessor "],!1)),n.computed?parts.push("[",path.call(print,"key"),"]"):parts.push(path.call(print,"key")),n.optional&&parts.push("?"),n.definite&&parts.push("!"),n.typeAnnotation&&parts.push(path.call(print,"typeAnnotation")),n.value&&parts.push(" = ",path.call(print,"value")),parts.push(";"),(0, lines_1.concat)(parts);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return n.declare&&parts.push("declare "),n.abstract&&parts.push("abstract "),parts.push("class"),n.id&&parts.push(" ",path.call(print,"id")),n.typeParameters&&parts.push(path.call(print,"typeParameters")),n.superClass&&parts.push(" extends ",path.call(print,"superClass"),path.call(print,"superTypeParameters")),n.extends&&n.extends.length>0&&parts.push(" extends ",(0, lines_1.fromString)(", ").join(path.map(print,"extends"))),n.implements&&n.implements.length>0&&parts.push(" implements ",(0, lines_1.fromString)(", ").join(path.map(print,"implements"))),parts.push(" ",path.call(print,"body")),n.type==="DeclareClass"?printFlowDeclaration(path,parts):(0, lines_1.concat)(parts);case"TemplateElement":return (0, lines_1.fromString)(n.value.raw,options).lockIndentTail();case"TemplateLiteral":{var expressions_1=path.map(print,"expressions");return parts.push("`"),path.each(function(childPath){var i=childPath.getName();parts.push(print(childPath)),i<expressions_1.length&&parts.push("${",expressions_1[i],"}");},"quasis"),parts.push("`"),(0, lines_1.concat)(parts).lockIndentTail()}case"TaggedTemplateExpression":return (0, lines_1.concat)([path.call(print,"tag"),path.call(print,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(n.type));case"CommentBlock":case"Block":return (0, lines_1.concat)(["/*",(0, lines_1.fromString)(n.value,options),"*/"]);case"CommentLine":case"Line":return (0, lines_1.concat)(["//",(0, lines_1.fromString)(n.value,options)]);case"TypeAnnotation":return n.typeAnnotation?(n.typeAnnotation.type!=="FunctionTypeAnnotation"&&parts.push(": "),parts.push(path.call(print,"typeAnnotation")),(0, lines_1.concat)(parts)):(0, lines_1.fromString)("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return (0, lines_1.fromString)("*",options);case"EmptyTypeAnnotation":return (0, lines_1.fromString)("empty",options);case"AnyTypeAnnotation":return (0, lines_1.fromString)("any",options);case"MixedTypeAnnotation":return (0, lines_1.fromString)("mixed",options);case"ArrayTypeAnnotation":return (0, lines_1.concat)([path.call(print,"elementType"),"[]"]);case"TupleTypeAnnotation":{var printed_2=path.map(print,"types"),joined=(0, lines_1.fromString)(", ").join(printed_2),oneLine_3=joined.getLineLength(1)<=options.wrapColumn;return oneLine_3?options.arrayBracketSpacing?parts.push("[ "):parts.push("["):parts.push(`[
|
|
401
401
|
`),path.each(function(elemPath){var i=elemPath.getName(),elem=elemPath.getValue();if(!elem)parts.push(",");else {var lines2=printed_2[i];oneLine_3?i>0&&parts.push(" "):lines2=lines2.indent(options.tabWidth),parts.push(lines2),(i<n.types.length-1||!oneLine_3&&util.isTrailingCommaEnabled(options,"arrays"))&&parts.push(","),oneLine_3||parts.push(`
|
|
402
|
-
`);}},"types"),oneLine_3&&options.arrayBracketSpacing?parts.push(" ]"):parts.push("]"),(0, lines_1.concat)(parts)}case"BooleanTypeAnnotation":return (0, lines_1.fromString)("boolean",options);case"BooleanLiteralTypeAnnotation":return
|
|
402
|
+
`);}},"types"),oneLine_3&&options.arrayBracketSpacing?parts.push(" ]"):parts.push("]"),(0, lines_1.concat)(parts)}case"BooleanTypeAnnotation":return (0, lines_1.fromString)("boolean",options);case"BooleanLiteralTypeAnnotation":return (0, tiny_invariant_1.default)(typeof n.value=="boolean"),(0, lines_1.fromString)(""+n.value,options);case"InterfaceTypeAnnotation":return parts.push("interface"),n.extends&&n.extends.length>0&&parts.push(" extends ",(0, lines_1.fromString)(", ").join(path.map(print,"extends"))),parts.push(" ",path.call(print,"body")),(0, lines_1.concat)(parts);case"DeclareFunction":return printFlowDeclaration(path,["function ",path.call(print,"id"),";"]);case"DeclareModule":return printFlowDeclaration(path,["module ",path.call(print,"id")," ",path.call(print,"body")]);case"DeclareModuleExports":return printFlowDeclaration(path,["module.exports",path.call(print,"typeAnnotation")]);case"DeclareVariable":return printFlowDeclaration(path,["var ",path.call(print,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return (0, lines_1.concat)(["declare ",printExportDeclaration(path,options,print)]);case"EnumDeclaration":return (0, lines_1.concat)(["enum ",path.call(print,"id"),path.call(print,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return (n.type==="EnumSymbolBody"||n.explicitType)&&parts.push(" of ",n.type.slice(4,-4).toLowerCase()),parts.push(` {
|
|
403
403
|
`,(0, lines_1.fromString)(`
|
|
404
404
|
`).join(path.map(print,"members")).indent(options.tabWidth),`
|
|
405
|
-
}`),(0, lines_1.concat)(parts);case"EnumDefaultedMember":return (0, lines_1.concat)([path.call(print,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return (0, lines_1.concat)([path.call(print,"id")," = ",path.call(print,"init"),","]);case"InferredPredicate":return (0, lines_1.fromString)("%checks",options);case"DeclaredPredicate":return (0, lines_1.concat)(["%checks(",path.call(print,"value"),")"]);case"FunctionTypeAnnotation":{var parent=path.getParentNode(0),isArrowFunctionTypeAnnotation=!(namedTypes.ObjectTypeCallProperty.check(parent)||namedTypes.ObjectTypeInternalSlot.check(parent)&&parent.method||namedTypes.DeclareFunction.check(path.getParentNode(2))),needsColon=isArrowFunctionTypeAnnotation&&!namedTypes.FunctionTypeParam.check(parent)&&!namedTypes.TypeAlias.check(parent);needsColon&&parts.push(": ");var hasTypeParameters=!!n.typeParameters,needsParens=hasTypeParameters||n.params.length!==1||n.params[0].name;return parts.push(hasTypeParameters?path.call(print,"typeParameters"):"",needsParens?"(":"",printFunctionParams(path,options,print),needsParens?")":""),n.returnType&&parts.push(isArrowFunctionTypeAnnotation?" => ":": ",path.call(print,"returnType")),(0, lines_1.concat)(parts)}case"FunctionTypeParam":{var name=path.call(print,"name");return parts.push(name),n.optional&&parts.push("?"),name.infos[0].line&&parts.push(": "),parts.push(path.call(print,"typeAnnotation")),(0, lines_1.concat)(parts)}case"GenericTypeAnnotation":return (0, lines_1.concat)([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":parts.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return n.declare&&parts.push("declare "),parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters")," "),n.extends&&n.extends.length>0&&parts.push("extends ",(0, lines_1.fromString)(", ").join(path.map(print,"extends"))," "),n.body&&parts.push(path.call(print,"body")),(0, lines_1.concat)(parts);case"ClassImplements":case"InterfaceExtends":return (0, lines_1.concat)([path.call(print,"id"),path.call(print,"typeParameters")]);case"IntersectionTypeAnnotation":return (0, lines_1.fromString)(" & ").join(path.map(print,"types"));case"NullableTypeAnnotation":return (0, lines_1.concat)(["?",path.call(print,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return (0, lines_1.fromString)("null",options);case"ThisTypeAnnotation":return (0, lines_1.fromString)("this",options);case"NumberTypeAnnotation":return (0, lines_1.fromString)("number",options);case"ObjectTypeCallProperty":return path.call(print,"value");case"ObjectTypeIndexer":return n.static&&parts.push("static "),parts.push(printVariance(path,print),"["),n.id&&parts.push(path.call(print,"id"),": "),parts.push(path.call(print,"key"),"]: ",path.call(print,"value")),(0, lines_1.concat)(parts);case"ObjectTypeProperty":return (0, lines_1.concat)([printVariance(path,print),path.call(print,"key"),n.optional?"?":"",": ",path.call(print,"value")]);case"ObjectTypeInternalSlot":return (0, lines_1.concat)([n.static?"static ":"","[[",path.call(print,"id"),"]]",n.optional?"?":"",n.value.type!=="FunctionTypeAnnotation"?": ":"",path.call(print,"value")]);case"QualifiedTypeIdentifier":return (0, lines_1.concat)([path.call(print,"qualification"),".",path.call(print,"id")]);case"StringLiteralTypeAnnotation":return (0, lines_1.fromString)(nodeStr(n.value,options),options);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return
|
|
405
|
+
}`),(0, lines_1.concat)(parts);case"EnumDefaultedMember":return (0, lines_1.concat)([path.call(print,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return (0, lines_1.concat)([path.call(print,"id")," = ",path.call(print,"init"),","]);case"InferredPredicate":return (0, lines_1.fromString)("%checks",options);case"DeclaredPredicate":return (0, lines_1.concat)(["%checks(",path.call(print,"value"),")"]);case"FunctionTypeAnnotation":{var parent=path.getParentNode(0),isArrowFunctionTypeAnnotation=!(namedTypes.ObjectTypeCallProperty.check(parent)||namedTypes.ObjectTypeInternalSlot.check(parent)&&parent.method||namedTypes.DeclareFunction.check(path.getParentNode(2))),needsColon=isArrowFunctionTypeAnnotation&&!namedTypes.FunctionTypeParam.check(parent)&&!namedTypes.TypeAlias.check(parent);needsColon&&parts.push(": ");var hasTypeParameters=!!n.typeParameters,needsParens=hasTypeParameters||n.params.length!==1||n.params[0].name;return parts.push(hasTypeParameters?path.call(print,"typeParameters"):"",needsParens?"(":"",printFunctionParams(path,options,print),needsParens?")":""),n.returnType&&parts.push(isArrowFunctionTypeAnnotation?" => ":": ",path.call(print,"returnType")),(0, lines_1.concat)(parts)}case"FunctionTypeParam":{var name=path.call(print,"name");return parts.push(name),n.optional&&parts.push("?"),name.infos[0].line&&parts.push(": "),parts.push(path.call(print,"typeAnnotation")),(0, lines_1.concat)(parts)}case"GenericTypeAnnotation":return (0, lines_1.concat)([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":parts.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return n.declare&&parts.push("declare "),parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters")," "),n.extends&&n.extends.length>0&&parts.push("extends ",(0, lines_1.fromString)(", ").join(path.map(print,"extends"))," "),n.body&&parts.push(path.call(print,"body")),(0, lines_1.concat)(parts);case"ClassImplements":case"InterfaceExtends":return (0, lines_1.concat)([path.call(print,"id"),path.call(print,"typeParameters")]);case"IntersectionTypeAnnotation":return (0, lines_1.fromString)(" & ").join(path.map(print,"types"));case"NullableTypeAnnotation":return (0, lines_1.concat)(["?",path.call(print,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return (0, lines_1.fromString)("null",options);case"ThisTypeAnnotation":return (0, lines_1.fromString)("this",options);case"NumberTypeAnnotation":return (0, lines_1.fromString)("number",options);case"ObjectTypeCallProperty":return path.call(print,"value");case"ObjectTypeIndexer":return n.static&&parts.push("static "),parts.push(printVariance(path,print),"["),n.id&&parts.push(path.call(print,"id"),": "),parts.push(path.call(print,"key"),"]: ",path.call(print,"value")),(0, lines_1.concat)(parts);case"ObjectTypeProperty":return (0, lines_1.concat)([printVariance(path,print),path.call(print,"key"),n.optional?"?":"",": ",path.call(print,"value")]);case"ObjectTypeInternalSlot":return (0, lines_1.concat)([n.static?"static ":"","[[",path.call(print,"id"),"]]",n.optional?"?":"",n.value.type!=="FunctionTypeAnnotation"?": ":"",path.call(print,"value")]);case"QualifiedTypeIdentifier":return (0, lines_1.concat)([path.call(print,"qualification"),".",path.call(print,"id")]);case"StringLiteralTypeAnnotation":return (0, lines_1.fromString)(nodeStr(n.value,options),options);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return (0, tiny_invariant_1.default)(typeof n.value=="number"),(0, lines_1.fromString)(JSON.stringify(n.value),options);case"BigIntLiteralTypeAnnotation":return (0, lines_1.fromString)(n.raw,options);case"StringTypeAnnotation":return (0, lines_1.fromString)("string",options);case"DeclareTypeAlias":parts.push("declare ");case"TypeAlias":return (0, lines_1.concat)(["type ",path.call(print,"id"),path.call(print,"typeParameters")," = ",path.call(print,"right"),";"]);case"DeclareOpaqueType":parts.push("declare ");case"OpaqueType":return parts.push("opaque type ",path.call(print,"id"),path.call(print,"typeParameters")),n.supertype&&parts.push(": ",path.call(print,"supertype")),n.impltype&&parts.push(" = ",path.call(print,"impltype")),parts.push(";"),(0, lines_1.concat)(parts);case"TypeCastExpression":return (0, lines_1.concat)(["(",path.call(print,"expression"),path.call(print,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return (0, lines_1.concat)(["<",(0, lines_1.fromString)(", ").join(path.map(print,"params")),">"]);case"Variance":return n.kind==="plus"?(0, lines_1.fromString)("+"):n.kind==="minus"?(0, lines_1.fromString)("-"):(0, lines_1.fromString)("");case"TypeParameter":return n.variance&&parts.push(printVariance(path,print)),parts.push(path.call(print,"name")),n.bound&&parts.push(path.call(print,"bound")),n.default&&parts.push("=",path.call(print,"default")),(0, lines_1.concat)(parts);case"TypeofTypeAnnotation":return (0, lines_1.concat)([(0, lines_1.fromString)("typeof ",options),path.call(print,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return (0, lines_1.concat)([path.call(print,"objectType"),n.optional?"?.":"","[",path.call(print,"indexType"),"]"]);case"UnionTypeAnnotation":return (0, lines_1.fromString)(" | ").join(path.map(print,"types"));case"VoidTypeAnnotation":return (0, lines_1.fromString)("void",options);case"NullTypeAnnotation":return (0, lines_1.fromString)("null",options);case"SymbolTypeAnnotation":return (0, lines_1.fromString)("symbol",options);case"BigIntTypeAnnotation":return (0, lines_1.fromString)("bigint",options);case"TSType":throw new Error("unprintable type: "+JSON.stringify(n.type));case"TSNumberKeyword":return (0, lines_1.fromString)("number",options);case"TSBigIntKeyword":return (0, lines_1.fromString)("bigint",options);case"TSObjectKeyword":return (0, lines_1.fromString)("object",options);case"TSBooleanKeyword":return (0, lines_1.fromString)("boolean",options);case"TSStringKeyword":return (0, lines_1.fromString)("string",options);case"TSSymbolKeyword":return (0, lines_1.fromString)("symbol",options);case"TSAnyKeyword":return (0, lines_1.fromString)("any",options);case"TSVoidKeyword":return (0, lines_1.fromString)("void",options);case"TSIntrinsicKeyword":return (0, lines_1.fromString)("intrinsic",options);case"TSThisType":return (0, lines_1.fromString)("this",options);case"TSNullKeyword":return (0, lines_1.fromString)("null",options);case"TSUndefinedKeyword":return (0, lines_1.fromString)("undefined",options);case"TSUnknownKeyword":return (0, lines_1.fromString)("unknown",options);case"TSNeverKeyword":return (0, lines_1.fromString)("never",options);case"TSArrayType":return (0, lines_1.concat)([path.call(print,"elementType"),"[]"]);case"TSLiteralType":return path.call(print,"literal");case"TSUnionType":return (0, lines_1.fromString)(" | ").join(path.map(print,"types"));case"TSIntersectionType":return (0, lines_1.fromString)(" & ").join(path.map(print,"types"));case"TSConditionalType":return parts.push(path.call(print,"checkType")," extends ",path.call(print,"extendsType")," ? ",path.call(print,"trueType")," : ",path.call(print,"falseType")),(0, lines_1.concat)(parts);case"TSInferType":return parts.push("infer ",path.call(print,"typeParameter")),(0, lines_1.concat)(parts);case"TSParenthesizedType":return (0, lines_1.concat)(["(",path.call(print,"typeAnnotation"),")"]);case"TSFunctionType":return (0, lines_1.concat)([path.call(print,"typeParameters"),"(",printFunctionParams(path,options,print),") => ",path.call(print,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return (0, lines_1.concat)(["new ",path.call(print,"typeParameters"),"(",printFunctionParams(path,options,print),") => ",path.call(print,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return parts.push(n.readonly?"readonly ":"","[",path.call(print,"typeParameter"),"]",n.optional?"?":""),n.typeAnnotation&&parts.push(": ",path.call(print,"typeAnnotation"),";"),(0, lines_1.concat)([`{
|
|
406
406
|
`,(0, lines_1.concat)(parts).indent(options.tabWidth),`
|
|
407
407
|
}`]);case"TSTupleType":return (0, lines_1.concat)(["[",(0, lines_1.fromString)(", ").join(path.map(print,"elementTypes")),"]"]);case"TSNamedTupleMember":return parts.push(path.call(print,"label")),n.optional&&parts.push("?"),parts.push(": ",path.call(print,"elementType")),(0, lines_1.concat)(parts);case"TSRestType":return (0, lines_1.concat)(["...",path.call(print,"typeAnnotation")]);case"TSOptionalType":return (0, lines_1.concat)([path.call(print,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return (0, lines_1.concat)([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSTypeOperator":return (0, lines_1.concat)([path.call(print,"operator")," ",path.call(print,"typeAnnotation")]);case"TSTypeLiteral":{var members=(0, lines_1.fromString)(`
|
|
408
408
|
`).join(path.map(print,"members").map(function(member){return lastNonSpaceCharacter(member)!==";"?member.concat(";"):member}));return members.isEmpty()?(0, lines_1.fromString)("{}",options):(parts.push(`{
|
|
@@ -417,7 +417,7 @@ while`),parts.push(" (",path.call(print,"test"),");"),(0, lines_1.concat)(parts)
|
|
|
417
417
|
`,naked.indent(options.tabWidth),`
|
|
418
418
|
}`),(0, lines_1.concat)(parts)}case"TSInstantiationExpression":return parts.push(path.call(print,"expression"),path.call(print,"typeParameters")),(0, lines_1.concat)(parts);case"V8IntrinsicIdentifier":return (0, lines_1.concat)(["%",path.call(print,"name")]);case"TopicReference":return (0, lines_1.fromString)("#");case"ClassHeritage":case"ComprehensionBlock":case"ComprehensionExpression":case"Glob":case"GeneratorExpression":case"LetStatement":case"LetExpression":case"GraphExpression":case"GraphIndexExpression":case"XMLDefaultDeclaration":case"XMLAnyName":case"XMLQualifiedIdentifier":case"XMLFunctionQualifiedIdentifier":case"XMLAttributeSelector":case"XMLFilterExpression":case"XML":case"XMLElement":case"XMLList":case"XMLEscape":case"XMLText":case"XMLStartTag":case"XMLEndTag":case"XMLPointTag":case"XMLName":case"XMLAttribute":case"XMLCdata":case"XMLComment":case"XMLProcessingInstruction":default:debugger;throw new Error("unknown type: "+JSON.stringify(n.type))}}function printDecorators(path,printPath){var parts=[],node=path.getValue();return node.decorators&&node.decorators.length>0&&!util.getParentExportDeclaration(path)?path.each(function(decoratorPath){parts.push(printPath(decoratorPath),`
|
|
419
419
|
`);},"decorators"):util.isExportDeclaration(node)&&node.declaration&&node.declaration.decorators&&path.each(function(decoratorPath){parts.push(printPath(decoratorPath),`
|
|
420
|
-
`);},"declaration","decorators"),(0, lines_1.concat)(parts)}function printStatementSequence(path,options,print){var filtered=[],sawComment=!1,sawStatement=!1;path.each(function(stmtPath){var stmt=stmtPath.getValue();stmt&&(stmt.type==="EmptyStatement"&&!(stmt.comments&&stmt.comments.length>0)||(namedTypes.Comment.check(stmt)?sawComment=!0:namedTypes.Statement.check(stmt)?sawStatement=!0:isString.assert(stmt),filtered.push({node:stmt,printed:print(stmtPath)})));}),sawComment&&
|
|
420
|
+
`);},"declaration","decorators"),(0, lines_1.concat)(parts)}function printStatementSequence(path,options,print){var filtered=[],sawComment=!1,sawStatement=!1;path.each(function(stmtPath){var stmt=stmtPath.getValue();stmt&&(stmt.type==="EmptyStatement"&&!(stmt.comments&&stmt.comments.length>0)||(namedTypes.Comment.check(stmt)?sawComment=!0:namedTypes.Statement.check(stmt)?sawStatement=!0:isString.assert(stmt),filtered.push({node:stmt,printed:print(stmtPath)})));}),sawComment&&(0, tiny_invariant_1.default)(sawStatement===!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var prevTrailingSpace=null,len=filtered.length,parts=[];return filtered.forEach(function(info,i){var printed=info.printed,stmt=info.node,multiLine=printed.length>1,notFirst=i>0,notLast=i<len-1,leadingSpace,trailingSpace,lines=stmt&&stmt.loc&&stmt.loc.lines,trueLoc=lines&&options.reuseWhitespace&&util.getTrueLoc(stmt,lines);if(notFirst)if(trueLoc){var beforeStart=lines.skipSpaces(trueLoc.start,!0),beforeStartLine=beforeStart?beforeStart.line:1,leadingGap=trueLoc.start.line-beforeStartLine;leadingSpace=Array(leadingGap+1).join(`
|
|
421
421
|
`);}else leadingSpace=multiLine?`
|
|
422
422
|
|
|
423
423
|
`:`
|
|
@@ -439,7 +439,7 @@ while`),parts.push(" (",path.call(print,"test"),");"),(0, lines_1.concat)(parts)
|
|
|
439
439
|
}`):parts.push(" ",flat," }"),(0, lines_1.concat)(parts)}return (0, lines_1.fromString)("")}function printExportDeclaration(path,options,print){var decl=path.getValue(),parts=["export "];decl.exportKind&&decl.exportKind==="type"&&(decl.declaration||parts.push("type "));var shouldPrintSpaces=options.objectCurlySpacing;if(namedTypes.Declaration.assert(decl),(decl.default||decl.type==="ExportDefaultDeclaration")&&parts.push("default "),decl.declaration)parts.push(path.call(print,"declaration"));else if(decl.specifiers){if(decl.specifiers.length===1&&decl.specifiers[0].type==="ExportBatchSpecifier")parts.push("*");else if(decl.specifiers.length===0)parts.push("{}");else if(decl.specifiers[0].type==="ExportDefaultSpecifier"){var unbracedSpecifiers_2=[],bracedSpecifiers_2=[];if(path.each(function(specifierPath){var spec=specifierPath.getValue();spec.type==="ExportDefaultSpecifier"?unbracedSpecifiers_2.push(print(specifierPath)):bracedSpecifiers_2.push(print(specifierPath));},"specifiers"),unbracedSpecifiers_2.forEach(function(lines2,i){i>0&&parts.push(", "),parts.push(lines2);}),bracedSpecifiers_2.length>0){var lines_2=(0, lines_1.fromString)(", ").join(bracedSpecifiers_2);lines_2.getLineLength(1)>options.wrapColumn&&(lines_2=(0, lines_1.concat)([(0, lines_1.fromString)(`,
|
|
440
440
|
`).join(bracedSpecifiers_2).indent(options.tabWidth),","])),unbracedSpecifiers_2.length>0&&parts.push(", "),lines_2.length>1?parts.push(`{
|
|
441
441
|
`,lines_2,`
|
|
442
|
-
}`):options.objectCurlySpacing?parts.push("{ ",lines_2," }"):parts.push("{",lines_2,"}");}}else parts.push(shouldPrintSpaces?"{ ":"{",(0, lines_1.fromString)(", ").join(path.map(print,"specifiers")),shouldPrintSpaces?" }":"}");decl.source&&parts.push(" from ",path.call(print,"source"),maybePrintImportAssertions(path,options,print));}var lines=(0, lines_1.concat)(parts);return lastNonSpaceCharacter(lines)!==";"&&!(decl.declaration&&(decl.declaration.type==="FunctionDeclaration"||decl.declaration.type==="ClassDeclaration"||decl.declaration.type==="TSModuleDeclaration"||decl.declaration.type==="TSInterfaceDeclaration"||decl.declaration.type==="TSEnumDeclaration"))&&(lines=(0, lines_1.concat)([lines,";"])),lines}function printFlowDeclaration(path,parts){var parentExportDecl=util.getParentExportDeclaration(path);return parentExportDecl?
|
|
442
|
+
}`):options.objectCurlySpacing?parts.push("{ ",lines_2," }"):parts.push("{",lines_2,"}");}}else parts.push(shouldPrintSpaces?"{ ":"{",(0, lines_1.fromString)(", ").join(path.map(print,"specifiers")),shouldPrintSpaces?" }":"}");decl.source&&parts.push(" from ",path.call(print,"source"),maybePrintImportAssertions(path,options,print));}var lines=(0, lines_1.concat)(parts);return lastNonSpaceCharacter(lines)!==";"&&!(decl.declaration&&(decl.declaration.type==="FunctionDeclaration"||decl.declaration.type==="ClassDeclaration"||decl.declaration.type==="TSModuleDeclaration"||decl.declaration.type==="TSInterfaceDeclaration"||decl.declaration.type==="TSEnumDeclaration"))&&(lines=(0, lines_1.concat)([lines,";"])),lines}function printFlowDeclaration(path,parts){var parentExportDecl=util.getParentExportDeclaration(path);return parentExportDecl?(0, tiny_invariant_1.default)(parentExportDecl.type==="DeclareExportDeclaration"):parts.unshift("declare "),(0, lines_1.concat)(parts)}function printVariance(path,print){return path.call(function(variancePath){var value=variancePath.getValue();return value?value==="plus"?(0, lines_1.fromString)("+"):value==="minus"?(0, lines_1.fromString)("-"):print(variancePath):(0, lines_1.fromString)("")},"variance")}function adjustClause(clause,options){return clause.length>1?(0, lines_1.concat)([" ",clause]):(0, lines_1.concat)([`
|
|
443
443
|
`,maybeAddSemicolon(clause).indent(options.tabWidth)])}function lastNonSpaceCharacter(lines){var pos=lines.lastPos();do{var ch=lines.charAt(pos);if(/\S/.test(ch))return ch}while(lines.prevPos(pos))}function endsWithBrace(lines){return lastNonSpaceCharacter(lines)==="}"}function swapQuotes(str){return str.replace(/['"]/g,function(m){return m==='"'?"'":'"'})}function getPossibleRaw(node){var value=types.getFieldValue(node,"value"),extra=types.getFieldValue(node,"extra");if(extra&&typeof extra.raw=="string"&&value==extra.rawValue)return extra.raw;if(node.type==="Literal"){var raw=node.raw;if(typeof raw=="string"&&value==raw)return raw}}function jsSafeStringify(str){return JSON.stringify(str).replace(/[\u2028\u2029]/g,function(m){return "\\u"+m.charCodeAt(0).toString(16)})}function nodeStr(str,options){switch(isString.assert(str),options.quote){case"auto":{var double=jsSafeStringify(str),single=swapQuotes(jsSafeStringify(swapQuotes(str)));return double.length>single.length?single:double}case"single":return swapQuotes(jsSafeStringify(swapQuotes(str)));case"double":default:return jsSafeStringify(str)}}function maybeAddSemicolon(lines){var eoc=lastNonSpaceCharacter(lines);return !eoc||`
|
|
444
444
|
};`.indexOf(eoc)<0?(0, lines_1.concat)([lines,";"]):lines}}});var require_main6=__commonJS({"../../node_modules/recast/main.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.run=exports.prettyPrint=exports.print=exports.visit=exports.types=exports.parse=void 0;var tslib_1=(init_tslib_es6(),__toCommonJS(tslib_es6_exports)),fs_1=tslib_1.__importDefault(__require("fs")),types=tslib_1.__importStar(require_main5());exports.types=types;var parser_1=require_parser2();Object.defineProperty(exports,"parse",{enumerable:!0,get:function(){return parser_1.parse}});var printer_1=require_printer3(),ast_types_1=require_main5();Object.defineProperty(exports,"visit",{enumerable:!0,get:function(){return ast_types_1.visit}});function print(node,options){return new printer_1.Printer(options).print(node)}exports.print=print;function prettyPrint(node,options){return new printer_1.Printer(options).printGenerically(node)}exports.prettyPrint=prettyPrint;function run(transformer,options){return runFile(process.argv[2],transformer,options)}exports.run=run;function runFile(path,transformer,options){fs_1.default.readFile(path,"utf-8",function(err,code){if(err){console.error(err);return}runString(code,transformer,options);});}function defaultWriteback(output){process.stdout.write(output);}function runString(code,transformer,options){var writeback=options&&options.writeback||defaultWriteback;transformer((0, parser_1.parse)(code,options),function(node){writeback(print(node,options).code);});}}});var require_virtual_types=__commonJS({"../../node_modules/@babel/traverse/lib/path/lib/virtual-types.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.Var=exports.User=exports.Statement=exports.SpreadProperty=exports.Scope=exports.RestProperty=exports.ReferencedMemberExpression=exports.ReferencedIdentifier=exports.Referenced=exports.Pure=exports.NumericLiteralTypeAnnotation=exports.Generated=exports.ForAwaitStatement=exports.Flow=exports.Expression=exports.ExistentialTypeParam=exports.BlockScoped=exports.BindingIdentifier=void 0;exports.ReferencedIdentifier=["Identifier","JSXIdentifier"];exports.ReferencedMemberExpression=["MemberExpression"];exports.BindingIdentifier=["Identifier"];exports.Statement=["Statement"];exports.Expression=["Expression"];exports.Scope=["Scopable","Pattern"];exports.Referenced=null;exports.BlockScoped=null;exports.Var=["VariableDeclaration"];exports.User=null;exports.Generated=null;exports.Pure=null;exports.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];exports.RestProperty=["RestElement"];exports.SpreadProperty=["RestElement"];exports.ExistentialTypeParam=["ExistsTypeAnnotation"];exports.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];exports.ForAwaitStatement=["ForOfStatement"];}});var require_virtual_types_validator=__commonJS({"../../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.isBindingIdentifier=isBindingIdentifier;exports.isBlockScoped=isBlockScoped;exports.isExpression=isExpression;exports.isFlow=isFlow;exports.isForAwaitStatement=isForAwaitStatement;exports.isGenerated=isGenerated;exports.isPure=isPure;exports.isReferenced=isReferenced;exports.isReferencedIdentifier=isReferencedIdentifier;exports.isReferencedMemberExpression=isReferencedMemberExpression;exports.isRestProperty=isRestProperty;exports.isScope=isScope;exports.isSpreadProperty=isSpreadProperty;exports.isStatement=isStatement;exports.isUser=isUser;exports.isVar=isVar;var _t=require_lib13(),{isBinding,isBlockScoped:nodeIsBlockScoped,isExportDeclaration,isExpression:nodeIsExpression,isFlow:nodeIsFlow,isForStatement,isForXStatement,isIdentifier,isImportDeclaration,isImportSpecifier,isJSXIdentifier,isJSXMemberExpression,isMemberExpression,isRestElement:nodeIsRestElement,isReferenced:nodeIsReferenced,isScope:nodeIsScope,isStatement:nodeIsStatement,isVar:nodeIsVar,isVariableDeclaration,react,isForOfStatement}=_t,{isCompatTag}=react;function isReferencedIdentifier(opts){let{node,parent}=this;if(!isIdentifier(node,opts)&&!isJSXMemberExpression(parent,opts))if(isJSXIdentifier(node,opts)){if(isCompatTag(node.name))return !1}else return !1;return nodeIsReferenced(node,parent,this.parentPath.parent)}function isReferencedMemberExpression(){let{node,parent}=this;return isMemberExpression(node)&&nodeIsReferenced(node,parent)}function isBindingIdentifier(){let{node,parent}=this,grandparent=this.parentPath.parent;return isIdentifier(node)&&isBinding(node,parent,grandparent)}function isStatement(){let{node,parent}=this;return nodeIsStatement(node)?!(isVariableDeclaration(node)&&(isForXStatement(parent,{left:node})||isForStatement(parent,{init:node}))):!1}function isExpression(){return this.isIdentifier()?this.isReferencedIdentifier():nodeIsExpression(this.node)}function isScope(){return nodeIsScope(this.node,this.parent)}function isReferenced(){return nodeIsReferenced(this.node,this.parent)}function isBlockScoped(){return nodeIsBlockScoped(this.node)}function isVar(){return nodeIsVar(this.node)}function isUser(){return this.node&&!!this.node.loc}function isGenerated(){return !this.isUser()}function isPure(constantsOnly){return this.scope.isPure(this.node,constantsOnly)}function isFlow(){let{node}=this;return nodeIsFlow(node)?!0:isImportDeclaration(node)?node.importKind==="type"||node.importKind==="typeof":isExportDeclaration(node)?node.exportKind==="type":isImportSpecifier(node)?node.importKind==="type"||node.importKind==="typeof":!1}function isRestProperty(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectPattern()}function isSpreadProperty(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectExpression()}function isForAwaitStatement(){return isForOfStatement(this.node,{await:!0})}exports.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},exports.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};}});var require_visitors=__commonJS({"../../node_modules/@babel/traverse/lib/visitors.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.explode=explode;exports.isExplodedVisitor=isExplodedVisitor;exports.merge=merge;exports.verify=verify;var virtualTypes=require_virtual_types(),virtualTypesValidators=require_virtual_types_validator(),_t=require_lib13(),{DEPRECATED_KEYS,DEPRECATED_ALIASES,FLIPPED_ALIAS_KEYS,TYPES,__internal__deprecationWarning:deprecationWarning}=_t;function isVirtualType(type){return type in virtualTypes}function isExplodedVisitor(visitor){return visitor?._exploded}function explode(visitor){if(isExplodedVisitor(visitor))return visitor;visitor._exploded=!0;for(let nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;let parts=nodeType.split("|");if(parts.length===1)continue;let fns=visitor[nodeType];delete visitor[nodeType];for(let part of parts)visitor[part]=fns;}verify(visitor),delete visitor.__esModule,ensureEntranceObjects(visitor),ensureCallbackArrays(visitor);for(let nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType)||!isVirtualType(nodeType))continue;let fns=visitor[nodeType];for(let type of Object.keys(fns))fns[type]=wrapCheck(nodeType,fns[type]);delete visitor[nodeType];let types=virtualTypes[nodeType];if(types!==null)for(let type of types)visitor[type]?mergePair(visitor[type],fns):visitor[type]=fns;else mergePair(visitor,fns);}for(let nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;let aliases=FLIPPED_ALIAS_KEYS[nodeType];if(nodeType in DEPRECATED_KEYS){let deprecatedKey=DEPRECATED_KEYS[nodeType];deprecationWarning(nodeType,deprecatedKey,"Visitor "),aliases=[deprecatedKey];}else if(nodeType in DEPRECATED_ALIASES){let deprecatedAlias=DEPRECATED_ALIASES[nodeType];deprecationWarning(nodeType,deprecatedAlias,"Visitor "),aliases=FLIPPED_ALIAS_KEYS[deprecatedAlias];}if(!aliases)continue;let fns=visitor[nodeType];delete visitor[nodeType];for(let alias of aliases){let existing=visitor[alias];existing?mergePair(existing,fns):visitor[alias]=Object.assign({},fns);}}for(let nodeType of Object.keys(visitor))shouldIgnoreKey(nodeType)||ensureCallbackArrays(visitor[nodeType]);return visitor}function verify(visitor){if(!visitor._verified){if(typeof visitor=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let nodeType of Object.keys(visitor)){if((nodeType==="enter"||nodeType==="exit")&&validateVisitorMethods(nodeType,visitor[nodeType]),shouldIgnoreKey(nodeType))continue;if(TYPES.indexOf(nodeType)<0)throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`);let visitors=visitor[nodeType];if(typeof visitors=="object")for(let visitorKey of Object.keys(visitors))if(visitorKey==="enter"||visitorKey==="exit")validateVisitorMethods(`${nodeType}.${visitorKey}`,visitors[visitorKey]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${nodeType} that has the invalid property ${visitorKey}`)}visitor._verified=!0;}}function validateVisitorMethods(path,val){let fns=[].concat(val);for(let fn of fns)if(typeof fn!="function")throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`)}function merge(visitors,states=[],wrapper){let mergedVisitor={};for(let i=0;i<visitors.length;i++){let visitor=explode(visitors[i]),state=states[i],topVisitor=visitor;(state||wrapper)&&(topVisitor=wrapWithStateOrWrapper(topVisitor,state,wrapper)),mergePair(mergedVisitor,topVisitor);for(let key of Object.keys(visitor)){if(shouldIgnoreKey(key))continue;let typeVisitor=visitor[key];(state||wrapper)&&(typeVisitor=wrapWithStateOrWrapper(typeVisitor,state,wrapper));let nodeVisitor=mergedVisitor[key]||(mergedVisitor[key]={});mergePair(nodeVisitor,typeVisitor);}}return mergedVisitor}function wrapWithStateOrWrapper(oldVisitor,state,wrapper){let newVisitor={};for(let phase of ["enter","exit"]){let fns=oldVisitor[phase];Array.isArray(fns)&&(fns=fns.map(function(fn){let newFn=fn;return state&&(newFn=function(path){fn.call(state,path,state);}),wrapper&&(newFn=wrapper(state?.key,phase,newFn)),newFn!==fn&&(newFn.toString=()=>fn.toString()),newFn}),newVisitor[phase]=fns);}return newVisitor}function ensureEntranceObjects(obj){for(let key of Object.keys(obj)){if(shouldIgnoreKey(key))continue;let fns=obj[key];typeof fns=="function"&&(obj[key]={enter:fns});}}function ensureCallbackArrays(obj){obj.enter&&!Array.isArray(obj.enter)&&(obj.enter=[obj.enter]),obj.exit&&!Array.isArray(obj.exit)&&(obj.exit=[obj.exit]);}function wrapCheck(nodeType,fn){let fnKey=`is${nodeType}`,validator=virtualTypesValidators[fnKey],newFn=function(path){if(validator.call(path))return fn.apply(this,arguments)};return newFn.toString=()=>fn.toString(),newFn}function shouldIgnoreKey(key){return key[0]==="_"||key==="enter"||key==="exit"||key==="shouldSkip"||key==="denylist"||key==="noScope"||key==="skipKeys"||key==="blacklist"}function mergePair(dest,src){for(let phase of ["enter","exit"])src[phase]&&(dest[phase]=[].concat(dest[phase]||[],src[phase]));}}});var require_cache=__commonJS({"../../node_modules/@babel/traverse/lib/cache.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.clear=clear;exports.clearPath=clearPath;exports.clearScope=clearScope;exports.getCachedPaths=getCachedPaths;exports.getOrCreateCachedPaths=getOrCreateCachedPaths;exports.scope=exports.path=void 0;var pathsCache=exports.path=new WeakMap;exports.scope=new WeakMap;function clear(){clearPath(),clearScope();}function clearPath(){exports.path=pathsCache=new WeakMap;}function clearScope(){exports.scope=new WeakMap;}var nullHub=Object.freeze({});function getCachedPaths(hub,parent){var _pathsCache$get,_hub;return hub=null,(_pathsCache$get=pathsCache.get((_hub=hub)!=null?_hub:nullHub))==null?void 0:_pathsCache$get.get(parent)}function getOrCreateCachedPaths(hub,parent){var _hub2,_hub3;hub=null;let parents=pathsCache.get((_hub2=hub)!=null?_hub2:nullHub);parents||pathsCache.set((_hub3=hub)!=null?_hub3:nullHub,parents=new WeakMap);let paths=parents.get(parent);return paths||parents.set(parent,paths=new Map),paths}}});var require_lib15=__commonJS({"../../node_modules/@babel/helper-split-export-declaration/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=splitExportDeclaration;var _t=require_lib13(),{cloneNode,exportNamedDeclaration,exportSpecifier,identifier,variableDeclaration,variableDeclarator}=_t;function splitExportDeclaration(exportDeclaration){if(!exportDeclaration.isExportDeclaration()||exportDeclaration.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(exportDeclaration.isExportDefaultDeclaration()){let declaration2=exportDeclaration.get("declaration"),standaloneDeclaration=declaration2.isFunctionDeclaration()||declaration2.isClassDeclaration(),exportExpr=declaration2.isFunctionExpression()||declaration2.isClassExpression(),scope=declaration2.isScope()?declaration2.scope.parent:declaration2.scope,id=declaration2.node.id,needBindingRegistration=!1;id?exportExpr&&scope.hasBinding(id.name)&&(needBindingRegistration=!0,id=scope.generateUidIdentifier(id.name)):(needBindingRegistration=!0,id=scope.generateUidIdentifier("default"),(standaloneDeclaration||exportExpr)&&(declaration2.node.id=cloneNode(id)));let updatedDeclaration=standaloneDeclaration?declaration2.node:variableDeclaration("var",[variableDeclarator(cloneNode(id),declaration2.node)]),updatedExportDeclaration=exportNamedDeclaration(null,[exportSpecifier(cloneNode(id),identifier("default"))]);return exportDeclaration.insertAfter(updatedExportDeclaration),exportDeclaration.replaceWith(updatedDeclaration),needBindingRegistration&&scope.registerDeclaration(exportDeclaration),exportDeclaration}else if(exportDeclaration.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let declaration=exportDeclaration.get("declaration"),bindingIdentifiers=declaration.getOuterBindingIdentifiers(),specifiers=Object.keys(bindingIdentifiers).map(name=>exportSpecifier(identifier(name),identifier(name))),aliasDeclar=exportNamedDeclaration(null,specifiers);return exportDeclaration.insertAfter(aliasDeclar),exportDeclaration.replaceWith(declaration.node),exportDeclaration}}});var require_lib16=__commonJS({"../../node_modules/@babel/helper-environment-visitor/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;exports.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;exports.skipAllButComputedKey=function(path){path.skip(),path.node.computed&&path.context.maybeQueue(path.get("key"));};function requeueComputedKeyAndDecorators(path){let{context,node}=path;if(node.computed&&context.maybeQueue(path.get("key")),node.decorators)for(let decorator of path.get("decorators"))context.maybeQueue(decorator);}var visitor={FunctionParent(path){path.isArrowFunctionExpression()||(path.skip(),path.isMethod()&&requeueComputedKeyAndDecorators(path));},Property(path){path.isObjectProperty()||(path.skip(),requeueComputedKeyAndDecorators(path));}},_default=visitor;exports.default=_default;}});var require_renamer=__commonJS({"../../node_modules/@babel/traverse/lib/scope/lib/renamer.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _helperSplitExportDeclaration=require_lib15(),t=require_lib13(),_helperEnvironmentVisitor=require_lib16(),_traverseNode=require_traverse_node(),_visitors=require_visitors(),renameVisitor={ReferencedIdentifier({node},state){node.name===state.oldName&&(node.name=state.newName);},Scope(path,state){path.scope.bindingIdentifierEquals(state.oldName,state.binding.identifier)||(path.skip(),path.isMethod()&&(0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path));},ObjectProperty({node,scope},state){let{name}=node.key;if(node.shorthand&&(name===state.oldName||name===state.newName)&&scope.getBindingIdentifier(name)===state.binding.identifier){var _node$extra;node.shorthand=!1,(_node$extra=node.extra)!=null&&_node$extra.shorthand&&(node.extra.shorthand=!1);}},"AssignmentExpression|Declaration|VariableDeclarator"(path,state){if(path.isVariableDeclaration())return;let ids=path.getOuterBindingIdentifiers();for(let name in ids)name===state.oldName&&(ids[name].name=state.newName);}},Renamer=class{constructor(binding,oldName,newName){this.newName=newName,this.oldName=oldName,this.binding=binding;}maybeConvertFromExportDeclaration(parentDeclar){let maybeExportDeclar=parentDeclar.parentPath;if(maybeExportDeclar.isExportDeclaration()){if(maybeExportDeclar.isExportDefaultDeclaration()){let{declaration}=maybeExportDeclar.node;if(t.isDeclaration(declaration)&&!declaration.id)return}maybeExportDeclar.isExportAllDeclaration()||(0, _helperSplitExportDeclaration.default)(maybeExportDeclar);}}maybeConvertFromClassFunctionDeclaration(path){return path}maybeConvertFromClassFunctionExpression(path){return path}rename(){let{binding,oldName,newName}=this,{scope,path}=binding,parentDeclar=path.find(path2=>path2.isDeclaration()||path2.isFunctionExpression()||path2.isClassExpression());parentDeclar&&parentDeclar.getOuterBindingIdentifiers()[oldName]===binding.identifier&&this.maybeConvertFromExportDeclaration(parentDeclar);let blockToTraverse=arguments[0]||scope.block;(0, _traverseNode.traverseNode)(blockToTraverse,(0, _visitors.explode)(renameVisitor),scope,this,scope.path,{discriminant:!0}),arguments[0]||(scope.removeOwnBinding(oldName),scope.bindings[newName]=binding,this.binding.identifier.name=newName),parentDeclar&&(this.maybeConvertFromClassFunctionDeclaration(path),this.maybeConvertFromClassFunctionExpression(path));}};exports.default=Renamer;}});var require_binding=__commonJS({"../../node_modules/@babel/traverse/lib/scope/binding.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var Binding=class{constructor({identifier,scope,path,kind}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=identifier,this.scope=scope,this.path=path,this.kind=kind,(kind==="var"||kind==="hoisted")&&isDeclaredInLoop(path)&&this.reassign(path),this.clearValue();}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0;}setValue(value){this.hasDeoptedValue||(this.hasValue=!0,this.value=value);}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null;}reassign(path){this.constant=!1,this.constantViolations.indexOf(path)===-1&&this.constantViolations.push(path);}reference(path){this.referencePaths.indexOf(path)===-1&&(this.referenced=!0,this.references++,this.referencePaths.push(path));}dereference(){this.references--,this.referenced=!!this.references;}};exports.default=Binding;function isDeclaredInLoop(path){for(let{parentPath,key}=path;parentPath;{parentPath,key}=parentPath){if(parentPath.isFunctionParent())return !1;if(parentPath.isWhile()||parentPath.isForXStatement()||parentPath.isForStatement()&&key==="body")return !0}return !1}}});var require_globals=__commonJS({"../../node_modules/@babel/traverse/node_modules/globals/globals.json"(exports,module){module.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}};}});var require_globals2=__commonJS({"../../node_modules/@babel/traverse/node_modules/globals/index.js"(exports,module){module.exports=require_globals();}});var require_scope2=__commonJS({"../../node_modules/@babel/traverse/lib/scope/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _renamer=require_renamer(),_index=require_lib21(),_binding=require_binding(),_globals=require_globals2(),_t=require_lib13(),t=_t,_cache=require_cache(),_visitors=require_visitors(),{NOT_LOCAL_BINDING,callExpression,cloneNode,getBindingIdentifiers,identifier,isArrayExpression,isBinary,isClass,isClassBody,isClassDeclaration,isExportAllDeclaration,isExportDefaultDeclaration,isExportNamedDeclaration,isFunctionDeclaration,isIdentifier,isImportDeclaration,isLiteral,isMethod,isModuleSpecifier,isNullLiteral,isObjectExpression,isProperty,isPureish,isRegExpLiteral,isSuper,isTaggedTemplateExpression,isTemplateLiteral,isThisExpression,isUnaryExpression,isVariableDeclaration,matchesPattern,memberExpression,numericLiteral,toIdentifier,variableDeclaration,variableDeclarator,isRecordExpression,isTupleExpression,isObjectProperty,isTopicReference,isMetaProperty,isPrivateName,isExportDeclaration,buildUndefinedNode}=_t;function gatherNodeParts(node,parts){switch(node?.type){default:if(isImportDeclaration(node)||isExportDeclaration(node)){var _node$specifiers;if((isExportAllDeclaration(node)||isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.source)gatherNodeParts(node.source,parts);else if((isExportNamedDeclaration(node)||isImportDeclaration(node))&&(_node$specifiers=node.specifiers)!=null&&_node$specifiers.length)for(let e of node.specifiers)gatherNodeParts(e,parts);else (isExportDefaultDeclaration(node)||isExportNamedDeclaration(node))&&node.declaration&&gatherNodeParts(node.declaration,parts);}else isModuleSpecifier(node)?gatherNodeParts(node.local,parts):isLiteral(node)&&!isNullLiteral(node)&&!isRegExpLiteral(node)&&!isTemplateLiteral(node)&&parts.push(node.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(node.object,parts),gatherNodeParts(node.property,parts);break;case"Identifier":case"JSXIdentifier":parts.push(node.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(node.callee,parts);break;case"ObjectExpression":case"ObjectPattern":for(let e of node.properties)gatherNodeParts(e,parts);break;case"SpreadElement":case"RestElement":gatherNodeParts(node.argument,parts);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(node.key,parts);break;case"ThisExpression":parts.push("this");break;case"Super":parts.push("super");break;case"Import":parts.push("import");break;case"DoExpression":parts.push("do");break;case"YieldExpression":parts.push("yield"),gatherNodeParts(node.argument,parts);break;case"AwaitExpression":parts.push("await"),gatherNodeParts(node.argument,parts);break;case"AssignmentExpression":gatherNodeParts(node.left,parts);break;case"VariableDeclarator":gatherNodeParts(node.id,parts);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":gatherNodeParts(node.id,parts);break;case"PrivateName":gatherNodeParts(node.id,parts);break;case"ParenthesizedExpression":gatherNodeParts(node.expression,parts);break;case"UnaryExpression":case"UpdateExpression":gatherNodeParts(node.argument,parts);break;case"MetaProperty":gatherNodeParts(node.meta,parts),gatherNodeParts(node.property,parts);break;case"JSXElement":gatherNodeParts(node.openingElement,parts);break;case"JSXOpeningElement":gatherNodeParts(node.name,parts);break;case"JSXFragment":gatherNodeParts(node.openingFragment,parts);break;case"JSXOpeningFragment":parts.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(node.namespace,parts),gatherNodeParts(node.name,parts);break}}var collectorVisitor={ForStatement(path){let declar=path.get("init");if(declar.isVar()){let{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",declar);}},Declaration(path){if(path.isBlockScoped()||path.isImportDeclaration()||path.isExportDeclaration())return;(path.scope.getFunctionParent()||path.scope.getProgramParent()).registerDeclaration(path);},ImportDeclaration(path){path.scope.getBlockParent().registerDeclaration(path);},ReferencedIdentifier(path,state){state.references.push(path);},ForXStatement(path,state){let left=path.get("left");if(left.isPattern()||left.isIdentifier())state.constantViolations.push(path);else if(left.isVar()){let{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",left);}},ExportDeclaration:{exit(path){let{node,scope}=path;if(isExportAllDeclaration(node))return;let declar=node.declaration;if(isClassDeclaration(declar)||isFunctionDeclaration(declar)){let id=declar.id;if(!id)return;let binding=scope.getBinding(id.name);binding?.reference(path);}else if(isVariableDeclaration(declar))for(let decl of declar.declarations)for(let name of Object.keys(getBindingIdentifiers(decl))){let binding=scope.getBinding(name);binding?.reference(path);}}},LabeledStatement(path){path.scope.getBlockParent().registerDeclaration(path);},AssignmentExpression(path,state){state.assignments.push(path);},UpdateExpression(path,state){state.constantViolations.push(path);},UnaryExpression(path,state){path.node.operator==="delete"&&state.constantViolations.push(path);},BlockScoped(path){let scope=path.scope;if(scope.path===path&&(scope=scope.parent),scope.getBlockParent().registerDeclaration(path),path.isClassDeclaration()&&path.node.id){let name=path.node.id.name;path.scope.bindings[name]=path.scope.parent.getBinding(name);}},CatchClause(path){path.scope.registerBinding("let",path);},Function(path){let params=path.get("params");for(let param of params)path.scope.registerBinding("param",param);path.isFunctionExpression()&&path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path.get("id"),path);},ClassExpression(path){path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path);}},uid=0,Scope=class _Scope{constructor(path){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node}=path,cached=_cache.scope.get(node);if(cached?.path===path)return cached;_cache.scope.set(node,this),this.uid=uid++,this.block=node,this.path=path,this.labels=new Map,this.inited=!1;}get parent(){var _parent;let parent,path=this.path;do{let shouldSkip=path.key==="key"||path.listKey==="decorators";path=path.parentPath,shouldSkip&&path.isMethod()&&(path=path.parentPath),path&&path.isScope()&&(parent=path);}while(path&&!parent);return (_parent=parent)==null?void 0:_parent.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(node,opts,state){(0, _index.default)(node,opts,this,state,this.path);}generateDeclaredUidIdentifier(name){let id=this.generateUidIdentifier(name);return this.push({id}),cloneNode(id)}generateUidIdentifier(name){return identifier(this.generateUid(name))}generateUid(name="temp"){name=toIdentifier(name).replace(/^_+/,"").replace(/[0-9]+$/g,"");let uid2,i=1;do uid2=this._generateUid(name,i),i++;while(this.hasLabel(uid2)||this.hasBinding(uid2)||this.hasGlobal(uid2)||this.hasReference(uid2));let program=this.getProgramParent();return program.references[uid2]=!0,program.uids[uid2]=!0,uid2}_generateUid(name,i){let id=name;return i>1&&(id+=i),`_${id}`}generateUidBasedOnNode(node,defaultName){let parts=[];gatherNodeParts(node,parts);let id=parts.join("$");return id=id.replace(/^_/,"")||defaultName||"ref",this.generateUid(id.slice(0,20))}generateUidIdentifierBasedOnNode(node,defaultName){return identifier(this.generateUidBasedOnNode(node,defaultName))}isStatic(node){if(isThisExpression(node)||isSuper(node)||isTopicReference(node))return !0;if(isIdentifier(node)){let binding=this.getBinding(node.name);return binding?binding.constant:this.hasBinding(node.name)}return !1}maybeGenerateMemoised(node,dontPush){if(this.isStatic(node))return null;{let id=this.generateUidIdentifierBasedOnNode(node);return dontPush?id:(this.push({id}),cloneNode(id))}}checkBlockScopedCollisions(local,kind,name,id){if(kind==="param"||local.kind==="local")return;if(kind==="let"||local.kind==="let"||local.kind==="const"||local.kind==="module"||local.kind==="param"&&kind==="const")throw this.hub.buildError(id,`Duplicate declaration "${name}"`,TypeError)}rename(oldName,newName){let binding=this.getBinding(oldName);binding&&(newName||(newName=this.generateUidIdentifier(oldName).name),new _renamer.default(binding,oldName,newName).rename(arguments[2]));}_renameFromMap(map,oldName,newName,value){map[oldName]&&(map[newName]=value,map[oldName]=null);}dump(){let sep="-".repeat(60);console.log(sep);let scope=this;do{console.log("#",scope.block.type);for(let name of Object.keys(scope.bindings)){let binding=scope.bindings[name];console.log(" -",name,{constant:binding.constant,references:binding.references,violations:binding.constantViolations.length,kind:binding.kind});}}while(scope=scope.parent);console.log(sep);}toArray(node,i,arrayLikeIsIterable){if(isIdentifier(node)){let binding=this.getBinding(node.name);if(binding!=null&&binding.constant&&binding.path.isGenericType("Array"))return node}if(isArrayExpression(node))return node;if(isIdentifier(node,{name:"arguments"}))return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"),identifier("prototype")),identifier("slice")),identifier("call")),[node]);let helperName,args=[node];return i===!0?helperName="toConsumableArray":typeof i=="number"?(args.push(numericLiteral(i)),helperName="slicedToArray"):helperName="toArray",arrayLikeIsIterable&&(args.unshift(this.hub.addHelper(helperName)),helperName="maybeArrayLike"),callExpression(this.hub.addHelper(helperName),args)}hasLabel(name){return !!this.getLabel(name)}getLabel(name){return this.labels.get(name)}registerLabel(path){this.labels.set(path.node.label.name,path);}registerDeclaration(path){if(path.isLabeledStatement())this.registerLabel(path);else if(path.isFunctionDeclaration())this.registerBinding("hoisted",path.get("id"),path);else if(path.isVariableDeclaration()){let declarations=path.get("declarations"),{kind}=path.node;for(let declar of declarations)this.registerBinding(kind==="using"||kind==="await using"?"const":kind,declar);}else if(path.isClassDeclaration()){if(path.node.declare)return;this.registerBinding("let",path);}else if(path.isImportDeclaration()){let isTypeDeclaration=path.node.importKind==="type"||path.node.importKind==="typeof",specifiers=path.get("specifiers");for(let specifier of specifiers){let isTypeSpecifier=isTypeDeclaration||specifier.isImportSpecifier()&&(specifier.node.importKind==="type"||specifier.node.importKind==="typeof");this.registerBinding(isTypeSpecifier?"unknown":"module",specifier);}}else if(path.isExportDeclaration()){let declar=path.get("declaration");(declar.isClassDeclaration()||declar.isFunctionDeclaration()||declar.isVariableDeclaration())&&this.registerDeclaration(declar);}else this.registerBinding("unknown",path);}buildUndefinedNode(){return buildUndefinedNode()}registerConstantViolation(path){let ids=path.getBindingIdentifiers();for(let name of Object.keys(ids)){var _this$getBinding;(_this$getBinding=this.getBinding(name))==null||_this$getBinding.reassign(path);}}registerBinding(kind,path,bindingPath=path){if(!kind)throw new ReferenceError("no `kind`");if(path.isVariableDeclaration()){let declarators=path.get("declarations");for(let declar of declarators)this.registerBinding(kind,declar);return}let parent=this.getProgramParent(),ids=path.getOuterBindingIdentifiers(!0);for(let name of Object.keys(ids)){parent.references[name]=!0;for(let id of ids[name]){let local=this.getOwnBinding(name);if(local){if(local.identifier===id)continue;this.checkBlockScopedCollisions(local,kind,name,id);}local?this.registerConstantViolation(bindingPath):this.bindings[name]=new _binding.default({identifier:id,scope:this,path:bindingPath,kind});}}}addGlobal(node){this.globals[node.name]=node;}hasUid(name){let scope=this;do if(scope.uids[name])return !0;while(scope=scope.parent);return !1}hasGlobal(name){let scope=this;do if(scope.globals[name])return !0;while(scope=scope.parent);return !1}hasReference(name){return !!this.getProgramParent().references[name]}isPure(node,constantsOnly){if(isIdentifier(node)){let binding=this.getBinding(node.name);return binding?constantsOnly?binding.constant:!0:!1}else {if(isThisExpression(node)||isMetaProperty(node)||isTopicReference(node)||isPrivateName(node))return !0;if(isClass(node)){var _node$decorators;return node.superClass&&!this.isPure(node.superClass,constantsOnly)||((_node$decorators=node.decorators)==null?void 0:_node$decorators.length)>0?!1:this.isPure(node.body,constantsOnly)}else if(isClassBody(node)){for(let method of node.body)if(!this.isPure(method,constantsOnly))return !1;return !0}else {if(isBinary(node))return this.isPure(node.left,constantsOnly)&&this.isPure(node.right,constantsOnly);if(isArrayExpression(node)||isTupleExpression(node)){for(let elem of node.elements)if(elem!==null&&!this.isPure(elem,constantsOnly))return !1;return !0}else if(isObjectExpression(node)||isRecordExpression(node)){for(let prop of node.properties)if(!this.isPure(prop,constantsOnly))return !1;return !0}else if(isMethod(node)){var _node$decorators2;return !(node.computed&&!this.isPure(node.key,constantsOnly)||((_node$decorators2=node.decorators)==null?void 0:_node$decorators2.length)>0)}else if(isProperty(node)){var _node$decorators3;return !(node.computed&&!this.isPure(node.key,constantsOnly)||((_node$decorators3=node.decorators)==null?void 0:_node$decorators3.length)>0||(isObjectProperty(node)||node.static)&&node.value!==null&&!this.isPure(node.value,constantsOnly))}else {if(isUnaryExpression(node))return this.isPure(node.argument,constantsOnly);if(isTaggedTemplateExpression(node))return matchesPattern(node.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(node.quasi,constantsOnly);if(isTemplateLiteral(node)){for(let expression of node.expressions)if(!this.isPure(expression,constantsOnly))return !1;return !0}else return isPureish(node)}}}}setData(key,val){return this.data[key]=val}getData(key){let scope=this;do{let data=scope.data[key];if(data!=null)return data}while(scope=scope.parent)}removeData(key){let scope=this;do scope.data[key]!=null&&(scope.data[key]=null);while(scope=scope.parent)}init(){this.inited||(this.inited=!0,this.crawl());}crawl(){let path=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let programParent=this.getProgramParent();if(programParent.crawling)return;let state={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,path.type!=="Program"&&(0, _visitors.isExplodedVisitor)(collectorVisitor)){for(let visit of collectorVisitor.enter)visit.call(state,path,state);let typeVisitors=collectorVisitor[path.type];if(typeVisitors)for(let visit of typeVisitors.enter)visit.call(state,path,state);}path.traverse(collectorVisitor,state),this.crawling=!1;for(let path2 of state.assignments){let ids=path2.getBindingIdentifiers();for(let name of Object.keys(ids))path2.scope.getBinding(name)||programParent.addGlobal(ids[name]);path2.scope.registerConstantViolation(path2);}for(let ref of state.references){let binding=ref.scope.getBinding(ref.node.name);binding?binding.reference(ref):programParent.addGlobal(ref.node);}for(let path2 of state.constantViolations)path2.scope.registerConstantViolation(path2);}push(opts){let path=this.path;path.isPattern()?path=this.getPatternParent().path:!path.isBlockStatement()&&!path.isProgram()&&(path=this.getBlockParent().path),path.isSwitchStatement()&&(path=(this.getFunctionParent()||this.getProgramParent()).path);let{init,unique,kind="var",id}=opts;if(!init&&!unique&&(kind==="var"||kind==="let")&&path.isFunction()&&!path.node.name&&t.isCallExpression(path.parent,{callee:path.node})&&path.parent.arguments.length<=path.node.params.length&&t.isIdentifier(id)){path.pushContainer("params",id),path.scope.registerBinding("param",path.get("params")[path.node.params.length-1]);return}(path.isLoop()||path.isCatchClause()||path.isFunction())&&(path.ensureBlock(),path=path.get("body"));let blockHoist=opts._blockHoist==null?2:opts._blockHoist,dataKey=`declaration:${kind}:${blockHoist}`,declarPath=!unique&&path.getData(dataKey);if(!declarPath){let declar=variableDeclaration(kind,[]);declar._blockHoist=blockHoist,[declarPath]=path.unshiftContainer("body",[declar]),unique||path.setData(dataKey,declarPath);}let declarator=variableDeclarator(id,init),len=declarPath.node.declarations.push(declarator);path.scope.registerBinding(kind,declarPath.get("declarations")[len-1]);}getProgramParent(){let scope=this;do if(scope.path.isProgram())return scope;while(scope=scope.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let scope=this;do if(scope.path.isFunctionParent())return scope;while(scope=scope.parent);return null}getBlockParent(){let scope=this;do if(scope.path.isBlockParent())return scope;while(scope=scope.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let scope=this;do if(!scope.path.isPattern())return scope.getBlockParent();while(scope=scope.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let ids=Object.create(null),scope=this;do{for(let key of Object.keys(scope.bindings))key in ids||(ids[key]=scope.bindings[key]);scope=scope.parent;}while(scope);return ids}getAllBindingsOfKind(...kinds){let ids=Object.create(null);for(let kind of kinds){let scope=this;do{for(let name of Object.keys(scope.bindings)){let binding=scope.bindings[name];binding.kind===kind&&(ids[name]=binding);}scope=scope.parent;}while(scope)}return ids}bindingIdentifierEquals(name,node){return this.getBindingIdentifier(name)===node}getBinding(name){let scope=this,previousPath;do{let binding=scope.getOwnBinding(name);if(binding){var _previousPath;if(!((_previousPath=previousPath)!=null&&_previousPath.isPattern()&&binding.kind!=="param"&&binding.kind!=="local"))return binding}else if(!binding&&name==="arguments"&&scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break;previousPath=scope.path;}while(scope=scope.parent)}getOwnBinding(name){return this.bindings[name]}getBindingIdentifier(name){var _this$getBinding2;return (_this$getBinding2=this.getBinding(name))==null?void 0:_this$getBinding2.identifier}getOwnBindingIdentifier(name){let binding=this.bindings[name];return binding?.identifier}hasOwnBinding(name){return !!this.getOwnBinding(name)}hasBinding(name,opts){var _opts,_opts2,_opts3;return name?!!(this.hasOwnBinding(name)||(typeof opts=="boolean"&&(opts={noGlobals:opts}),this.parentHasBinding(name,opts))||!((_opts=opts)!=null&&_opts.noUids)&&this.hasUid(name)||!((_opts2=opts)!=null&&_opts2.noGlobals)&&_Scope.globals.includes(name)||!((_opts3=opts)!=null&&_opts3.noGlobals)&&_Scope.contextVariables.includes(name)):!1}parentHasBinding(name,opts){var _this$parent;return (_this$parent=this.parent)==null?void 0:_this$parent.hasBinding(name,opts)}moveBindingTo(name,scope){let info=this.getBinding(name);info&&(info.scope.removeOwnBinding(name),info.scope=scope,scope.bindings[name]=info);}removeOwnBinding(name){delete this.bindings[name];}removeBinding(name){var _this$getBinding3;(_this$getBinding3=this.getBinding(name))==null||_this$getBinding3.scope.removeOwnBinding(name);let scope=this;do scope.uids[name]&&(scope.uids[name]=!1);while(scope=scope.parent)}};exports.default=Scope;Scope.globals=Object.keys(_globals.builtin);Scope.contextVariables=["arguments","undefined","Infinity","NaN"];}});var require_ancestry=__commonJS({"../../node_modules/@babel/traverse/lib/path/ancestry.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.find=find2;exports.findParent=findParent;exports.getAncestry=getAncestry;exports.getDeepestCommonAncestorFrom=getDeepestCommonAncestorFrom;exports.getEarliestCommonAncestorFrom=getEarliestCommonAncestorFrom;exports.getFunctionParent=getFunctionParent;exports.getStatementParent=getStatementParent;exports.inType=inType;exports.isAncestor=isAncestor;exports.isDescendant=isDescendant;var _t=require_lib13(),{VISITOR_KEYS}=_t;function findParent(callback){let path=this;for(;path=path.parentPath;)if(callback(path))return path;return null}function find2(callback){let path=this;do if(callback(path))return path;while(path=path.parentPath);return null}function getFunctionParent(){return this.findParent(p=>p.isFunction())}function getStatementParent(){let path=this;do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())break;path=path.parentPath;}while(path);if(path&&(path.isProgram()||path.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return path}function getEarliestCommonAncestorFrom(paths){return this.getDeepestCommonAncestorFrom(paths,function(deepest,i,ancestries){let earliest,keys=VISITOR_KEYS[deepest.type];for(let ancestry of ancestries){let path=ancestry[i+1];if(!earliest){earliest=path;continue}if(path.listKey&&earliest.listKey===path.listKey&&path.key<earliest.key){earliest=path;continue}let earliestKeyIndex=keys.indexOf(earliest.parentKey),currentKeyIndex=keys.indexOf(path.parentKey);earliestKeyIndex>currentKeyIndex&&(earliest=path);}return earliest})}function getDeepestCommonAncestorFrom(paths,filter){if(!paths.length)return this;if(paths.length===1)return paths[0];let minDepth=1/0,lastCommonIndex,lastCommon,ancestries=paths.map(path=>{let ancestry=[];do ancestry.unshift(path);while((path=path.parentPath)&&path!==this);return ancestry.length<minDepth&&(minDepth=ancestry.length),ancestry}),first=ancestries[0];depthLoop:for(let i=0;i<minDepth;i++){let shouldMatch=first[i];for(let ancestry of ancestries)if(ancestry[i]!==shouldMatch)break depthLoop;lastCommonIndex=i,lastCommon=shouldMatch;}if(lastCommon)return filter?filter(lastCommon,lastCommonIndex,ancestries):lastCommon;throw new Error("Couldn't find intersection")}function getAncestry(){let path=this,paths=[];do paths.push(path);while(path=path.parentPath);return paths}function isAncestor(maybeDescendant){return maybeDescendant.isDescendant(this)}function isDescendant(maybeAncestor){return !!this.findParent(parent=>parent===maybeAncestor)}function inType(...candidateTypes){let path=this;for(;path;){for(let type of candidateTypes)if(path.node.type===type)return !0;path=path.parentPath;}return !1}}});var require_util4=__commonJS({"../../node_modules/@babel/traverse/lib/path/inference/util.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.createUnionType=createUnionType;var _t=require_lib13(),{createFlowUnionType,createTSUnionType,createUnionTypeAnnotation,isFlowType,isTSType}=_t;function createUnionType(types){{if(types.every(v=>isFlowType(v)))return createFlowUnionType?createFlowUnionType(types):createUnionTypeAnnotation(types);if(types.every(v=>isTSType(v))&&createTSUnionType)return createTSUnionType(types)}}}});var require_inferer_reference=__commonJS({"../../node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=_default;var _t=require_lib13(),_util=require_util4(),{BOOLEAN_NUMBER_BINARY_OPERATORS,createTypeAnnotationBasedOnTypeof,numberTypeAnnotation,voidTypeAnnotation}=_t;function _default(node){if(!this.isReferenced())return;let binding=this.scope.getBinding(node.name);if(binding)return binding.identifier.typeAnnotation?binding.identifier.typeAnnotation:getTypeAnnotationBindingConstantViolations(binding,this,node.name);if(node.name==="undefined")return voidTypeAnnotation();if(node.name==="NaN"||node.name==="Infinity")return numberTypeAnnotation();node.name;}function getTypeAnnotationBindingConstantViolations(binding,path,name){let types=[],functionConstantViolations=[],constantViolations=getConstantViolationsBefore(binding,path,functionConstantViolations),testType=getConditionalAnnotation(binding,path,name);if(testType){let testConstantViolations=getConstantViolationsBefore(binding,testType.ifStatement);constantViolations=constantViolations.filter(path2=>testConstantViolations.indexOf(path2)<0),types.push(testType.typeAnnotation);}if(constantViolations.length){constantViolations.push(...functionConstantViolations);for(let violation of constantViolations)types.push(violation.getTypeAnnotation());}if(types.length)return (0, _util.createUnionType)(types)}function getConstantViolationsBefore(binding,path,functions){let violations=binding.constantViolations.slice();return violations.unshift(binding.path),violations.filter(violation=>{violation=violation.resolve();let status=violation._guessExecutionStatusRelativeTo(path);return functions&&status==="unknown"&&functions.push(violation),status==="before"})}function inferAnnotationFromBinaryExpression(name,path){let operator=path.node.operator,right=path.get("right").resolve(),left=path.get("left").resolve(),target;if(left.isIdentifier({name})?target=right:right.isIdentifier({name})&&(target=left),target)return operator==="==="?target.getTypeAnnotation():BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator)>=0?numberTypeAnnotation():void 0;if(operator!=="==="&&operator!=="==")return;let typeofPath,typePath;if(left.isUnaryExpression({operator:"typeof"})?(typeofPath=left,typePath=right):right.isUnaryExpression({operator:"typeof"})&&(typeofPath=right,typePath=left),!typeofPath||!typeofPath.get("argument").isIdentifier({name})||(typePath=typePath.resolve(),!typePath.isLiteral()))return;let typeValue=typePath.node.value;if(typeof typeValue=="string")return createTypeAnnotationBasedOnTypeof(typeValue)}function getParentConditionalPath(binding,path,name){let parentPath;for(;parentPath=path.parentPath;){if(parentPath.isIfStatement()||parentPath.isConditionalExpression())return path.key==="test"?void 0:parentPath;if(parentPath.isFunction()&&parentPath.parentPath.scope.getBinding(name)!==binding)return;path=parentPath;}}function getConditionalAnnotation(binding,path,name){let ifStatement=getParentConditionalPath(binding,path,name);if(!ifStatement)return;let paths=[ifStatement.get("test")],types=[];for(let i=0;i<paths.length;i++){let path2=paths[i];if(path2.isLogicalExpression())path2.node.operator==="&&"&&(paths.push(path2.get("left")),paths.push(path2.get("right")));else if(path2.isBinaryExpression()){let type=inferAnnotationFromBinaryExpression(name,path2);type&&types.push(type);}}return types.length?{typeAnnotation:(0, _util.createUnionType)(types),ifStatement}:getConditionalAnnotation(binding,ifStatement,name)}}});var require_inferers=__commonJS({"../../node_modules/@babel/traverse/lib/path/inference/inferers.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.ArrayExpression=ArrayExpression;exports.AssignmentExpression=AssignmentExpression;exports.BinaryExpression=BinaryExpression;exports.BooleanLiteral=BooleanLiteral;exports.CallExpression=CallExpression;exports.ConditionalExpression=ConditionalExpression;exports.ClassDeclaration=exports.ClassExpression=exports.FunctionDeclaration=exports.ArrowFunctionExpression=exports.FunctionExpression=Func;Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _infererReference.default}});exports.LogicalExpression=LogicalExpression;exports.NewExpression=NewExpression;exports.NullLiteral=NullLiteral;exports.NumericLiteral=NumericLiteral;exports.ObjectExpression=ObjectExpression;exports.ParenthesizedExpression=ParenthesizedExpression;exports.RegExpLiteral=RegExpLiteral;exports.RestElement=RestElement;exports.SequenceExpression=SequenceExpression;exports.StringLiteral=StringLiteral;exports.TSAsExpression=TSAsExpression;exports.TSNonNullExpression=TSNonNullExpression;exports.TaggedTemplateExpression=TaggedTemplateExpression;exports.TemplateLiteral=TemplateLiteral;exports.TypeCastExpression=TypeCastExpression;exports.UnaryExpression=UnaryExpression;exports.UpdateExpression=UpdateExpression;exports.VariableDeclarator=VariableDeclarator;var _t=require_lib13(),_infererReference=require_inferer_reference(),_util=require_util4(),{BOOLEAN_BINARY_OPERATORS,BOOLEAN_UNARY_OPERATORS,NUMBER_BINARY_OPERATORS,NUMBER_UNARY_OPERATORS,STRING_UNARY_OPERATORS,anyTypeAnnotation,arrayTypeAnnotation,booleanTypeAnnotation,buildMatchMemberExpression,genericTypeAnnotation,identifier,nullLiteralTypeAnnotation,numberTypeAnnotation,stringTypeAnnotation,tupleTypeAnnotation,unionTypeAnnotation,voidTypeAnnotation,isIdentifier}=_t;function VariableDeclarator(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function TypeCastExpression(node){return node.typeAnnotation}TypeCastExpression.validParent=!0;function TSAsExpression(node){return node.typeAnnotation}TSAsExpression.validParent=!0;function TSNonNullExpression(){return this.get("expression").getTypeAnnotation()}function NewExpression(node){if(node.callee.type==="Identifier")return genericTypeAnnotation(node.callee)}function TemplateLiteral(){return stringTypeAnnotation()}function UnaryExpression(node){let operator=node.operator;if(operator==="void")return voidTypeAnnotation();if(NUMBER_UNARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(STRING_UNARY_OPERATORS.indexOf(operator)>=0)return stringTypeAnnotation();if(BOOLEAN_UNARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation()}function BinaryExpression(node){let operator=node.operator;if(NUMBER_BINARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(BOOLEAN_BINARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation();if(operator==="+"){let right=this.get("right"),left=this.get("left");return left.isBaseType("number")&&right.isBaseType("number")?numberTypeAnnotation():left.isBaseType("string")||right.isBaseType("string")?stringTypeAnnotation():unionTypeAnnotation([stringTypeAnnotation(),numberTypeAnnotation()])}}function LogicalExpression(){let argumentTypes=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)}function ConditionalExpression(){let argumentTypes=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)}function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()}function ParenthesizedExpression(){return this.get("expression").getTypeAnnotation()}function AssignmentExpression(){return this.get("right").getTypeAnnotation()}function UpdateExpression(node){let operator=node.operator;if(operator==="++"||operator==="--")return numberTypeAnnotation()}function StringLiteral(){return stringTypeAnnotation()}function NumericLiteral(){return numberTypeAnnotation()}function BooleanLiteral(){return booleanTypeAnnotation()}function NullLiteral(){return nullLiteralTypeAnnotation()}function RegExpLiteral(){return genericTypeAnnotation(identifier("RegExp"))}function ObjectExpression(){return genericTypeAnnotation(identifier("Object"))}function ArrayExpression(){return genericTypeAnnotation(identifier("Array"))}function RestElement(){return ArrayExpression()}RestElement.validParent=!0;function Func(){return genericTypeAnnotation(identifier("Function"))}var isArrayFrom=buildMatchMemberExpression("Array.from"),isObjectKeys=buildMatchMemberExpression("Object.keys"),isObjectValues=buildMatchMemberExpression("Object.values"),isObjectEntries=buildMatchMemberExpression("Object.entries");function CallExpression(){let{callee}=this.node;return isObjectKeys(callee)?arrayTypeAnnotation(stringTypeAnnotation()):isArrayFrom(callee)||isObjectValues(callee)||isIdentifier(callee,{name:"Array"})?arrayTypeAnnotation(anyTypeAnnotation()):isObjectEntries(callee)?arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(),anyTypeAnnotation()])):resolveCall(this.get("callee"))}function TaggedTemplateExpression(){return resolveCall(this.get("tag"))}function resolveCall(callee){if(callee=callee.resolve(),callee.isFunction()){let{node}=callee;if(node.async)return node.generator?genericTypeAnnotation(identifier("AsyncIterator")):genericTypeAnnotation(identifier("Promise"));if(node.generator)return genericTypeAnnotation(identifier("Iterator"));if(callee.node.returnType)return callee.node.returnType}}}});var require_inference=__commonJS({"../../node_modules/@babel/traverse/lib/path/inference/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports._getTypeAnnotation=_getTypeAnnotation;exports.baseTypeStrictlyMatches=baseTypeStrictlyMatches;exports.couldBeBaseType=couldBeBaseType;exports.getTypeAnnotation=getTypeAnnotation;exports.isBaseType=isBaseType;exports.isGenericType=isGenericType;var inferers=require_inferers(),_t=require_lib13(),{anyTypeAnnotation,isAnyTypeAnnotation,isArrayTypeAnnotation,isBooleanTypeAnnotation,isEmptyTypeAnnotation,isFlowBaseAnnotation,isGenericTypeAnnotation,isIdentifier,isMixedTypeAnnotation,isNumberTypeAnnotation,isStringTypeAnnotation,isTSArrayType,isTSTypeAnnotation,isTSTypeReference,isTupleTypeAnnotation,isTypeAnnotation,isUnionTypeAnnotation,isVoidTypeAnnotation,stringTypeAnnotation,voidTypeAnnotation}=_t;function getTypeAnnotation(){let type=this.getData("typeAnnotation");return type!=null||(type=this._getTypeAnnotation()||anyTypeAnnotation(),(isTypeAnnotation(type)||isTSTypeAnnotation(type))&&(type=type.typeAnnotation),this.setData("typeAnnotation",type)),type}var typeAnnotationInferringNodes=new WeakSet;function _getTypeAnnotation(){let node=this.node;if(!node)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let declar=this.parentPath.parentPath,declarParent=declar.parentPath;return declar.key==="left"&&declarParent.isForInStatement()?stringTypeAnnotation():declar.key==="left"&&declarParent.isForOfStatement()?anyTypeAnnotation():voidTypeAnnotation()}else return;if(node.typeAnnotation)return node.typeAnnotation;if(!typeAnnotationInferringNodes.has(node)){typeAnnotationInferringNodes.add(node);try{var _inferer;let inferer=inferers[node.type];if(inferer)return inferer.call(this,node);if(inferer=inferers[this.parentPath.type],(_inferer=inferer)!=null&&_inferer.validParent)return this.parentPath.getTypeAnnotation()}finally{typeAnnotationInferringNodes.delete(node);}}}function isBaseType(baseName,soft){return _isBaseType(baseName,this.getTypeAnnotation(),soft)}function _isBaseType(baseName,type,soft){if(baseName==="string")return isStringTypeAnnotation(type);if(baseName==="number")return isNumberTypeAnnotation(type);if(baseName==="boolean")return isBooleanTypeAnnotation(type);if(baseName==="any")return isAnyTypeAnnotation(type);if(baseName==="mixed")return isMixedTypeAnnotation(type);if(baseName==="empty")return isEmptyTypeAnnotation(type);if(baseName==="void")return isVoidTypeAnnotation(type);if(soft)return !1;throw new Error(`Unknown base type ${baseName}`)}function couldBeBaseType(name){let type=this.getTypeAnnotation();if(isAnyTypeAnnotation(type))return !0;if(isUnionTypeAnnotation(type)){for(let type2 of type.types)if(isAnyTypeAnnotation(type2)||_isBaseType(name,type2,!0))return !0;return !1}else return _isBaseType(name,type,!0)}function baseTypeStrictlyMatches(rightArg){let left=this.getTypeAnnotation(),right=rightArg.getTypeAnnotation();return !isAnyTypeAnnotation(left)&&isFlowBaseAnnotation(left)?right.type===left.type:!1}function isGenericType(genericName){let type=this.getTypeAnnotation();return genericName==="Array"&&(isTSArrayType(type)||isArrayTypeAnnotation(type)||isTupleTypeAnnotation(type))?!0:isGenericTypeAnnotation(type)&&isIdentifier(type.id,{name:genericName})||isTSTypeReference(type)&&isIdentifier(type.typeName,{name:genericName})}}});var require_lib17=__commonJS({"../../node_modules/@babel/parser/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}var Position=class{constructor(line,col,index){this.line=void 0,this.column=void 0,this.index=void 0,this.line=line,this.column=col,this.index=index;}},SourceLocation=class{constructor(start,end){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=start,this.end=end;}};function createPositionWithColumnOffset(position,columnOffset){let{line,column,index}=position;return new Position(line,column+columnOffset,index+columnOffset)}var code="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",ModuleErrors={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code}},NodeDescriptions={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},toNodeDescription=({type,prefix:prefix2})=>type==="UpdateExpression"?NodeDescriptions.UpdateExpression[String(prefix2)]:NodeDescriptions[type],StandardErrors={AccessorIsGenerator:({kind})=>`A ${kind}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind})=>`Missing initializer in ${kind} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName})=>`\`${exportName}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase})=>`'import.${phase}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName,exportName})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
445
445
|
- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type})=>`'${type==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type})=>`Unsyntactic ${type==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName})=>`A string literal cannot be used as an imported binding.
|
|
@@ -520,7 +520,7 @@ ${rootStack}`,err}}}}});var require_lib19=__commonJS({"../../node_modules/@babel
|
|
|
520
520
|
}`;return (0, eval)(wrapper)}return t4.isLiteral(storySort)||t4.isArrayExpression(storySort)||t4.isObjectExpression(storySort)?parseValue(storySort):unsupported("storySort",!0)}},t5=__toESM2(require_lib13()),generate4=__toESM2(require_lib14()),enrichCsfStory=(csf,csfSource,key,options)=>{let storyExport=csfSource.getStoryExport(key),source=!options?.disableSource&&extractSource(storyExport),description=!options?.disableDescription&&extractDescription(csfSource._storyStatements[key]),parameters=[],originalParameters=t5.memberExpression(t5.identifier(key),t5.identifier("parameters"));parameters.push(t5.spreadElement(originalParameters));let optionalDocs=t5.optionalMemberExpression(originalParameters,t5.identifier("docs"),!1,!0),extraDocsParameters=[];if(source){let optionalSource=t5.optionalMemberExpression(optionalDocs,t5.identifier("source"),!1,!0);extraDocsParameters.push(t5.objectProperty(t5.identifier("source"),t5.objectExpression([t5.objectProperty(t5.identifier("originalSource"),t5.stringLiteral(source)),t5.spreadElement(optionalSource)])));}if(description){let optionalDescription=t5.optionalMemberExpression(optionalDocs,t5.identifier("description"),!1,!0);extraDocsParameters.push(t5.objectProperty(t5.identifier("description"),t5.objectExpression([t5.objectProperty(t5.identifier("story"),t5.stringLiteral(description)),t5.spreadElement(optionalDescription)])));}if(extraDocsParameters.length>0){parameters.push(t5.objectProperty(t5.identifier("docs"),t5.objectExpression([t5.spreadElement(optionalDocs),...extraDocsParameters])));let addParameter=t5.expressionStatement(t5.assignmentExpression("=",originalParameters,t5.objectExpression(parameters)));csf._ast.program.body.push(addParameter);}},addComponentDescription=(node,path,value)=>{if(!path.length){node.properties.find(p=>t5.isObjectProperty(p)&&t5.isIdentifier(p.key)&&p.key.name==="component")||node.properties.unshift(value);return}let[first,...rest]=path,existing=node.properties.find(p=>t5.isObjectProperty(p)&&t5.isIdentifier(p.key)&&p.key.name===first&&t5.isObjectExpression(p.value)),subNode;existing?subNode=existing.value:(subNode=t5.objectExpression([]),node.properties.push(t5.objectProperty(t5.identifier(first),subNode))),addComponentDescription(subNode,rest,value);},enrichCsfMeta=(csf,csfSource,options)=>{let description=!options?.disableDescription&&extractDescription(csfSource._metaStatement);if(description){let metaNode=csf._metaNode;metaNode&&t5.isObjectExpression(metaNode)&&addComponentDescription(metaNode,["parameters","docs","description"],t5.objectProperty(t5.identifier("component"),t5.stringLiteral(description)));}},enrichCsf=(csf,csfSource,options)=>{enrichCsfMeta(csf,csfSource,options),Object.keys(csf._storyExports).forEach(key=>{enrichCsfStory(csf,csfSource,key,options);});},extractSource=node=>{let src=t5.isVariableDeclarator(node)?node.init:node,{code}=generate4.default(src,{});return code},extractDescription=node=>node?.leadingComments?node.leadingComments.map(comment=>comment.type==="CommentLine"||!comment.value.startsWith("*")?null:comment.value.split(`
|
|
521
521
|
`).map(line=>line.replace(/^(\s+)?(\*+)?(\s)?/,"")).join(`
|
|
522
522
|
`).trim()).filter(Boolean).join(`
|
|
523
|
-
`):"";}});var require_debug=__commonJS({"../../node_modules/semver/internal/debug.js"(exports,module){var debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug;}});var require_constants5=__commonJS({"../../node_modules/semver/internal/constants.js"(exports,module){var SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=256-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}});var require_re=__commonJS({"../../node_modules/semver/internal/re.js"(exports,module){var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants5(),debug=require_debug();exports=module.exports={};var re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={},R=0,LETTERDASHNUMBER="[a-zA-Z0-9-]",safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value},createToken=(name,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0);};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${LETTERDASHNUMBER}+`);createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);createToken("FULL",`^${src[t.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`);createToken("COERCERTL",src[t.COERCE],!0);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0);exports.tildeTrimReplace="$1~";createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0);exports.caretTrimReplace="$1^";createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0);exports.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}});var require_parse_options=__commonJS({"../../node_modules/semver/internal/parse-options.js"(exports,module){var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions;}});var require_identifiers=__commonJS({"../../node_modules/semver/internal/identifiers.js"(exports,module){var numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers};}});var require_semver3=__commonJS({"../../node_modules/semver/classes/semver.js"(exports,module){var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants5(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers(),SemVer=class _SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof _SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version;}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof _SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new _SemVer(other,this.options);}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof _SemVer||(other=new _SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return -1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{let a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return -1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof _SemVer||(other=new _SemVer(other,this.options));let i=0;do{let a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return -1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else {let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base);}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease;}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};module.exports=SemVer;}});var require_compare_build=__commonJS({"../../node_modules/semver/functions/compare-build.js"(exports,module){var SemVer=require_semver3(),compareBuild=(a,b,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild;}});var require_sort2=__commonJS({"../../node_modules/semver/functions/sort.js"(exports,module){var compareBuild=require_compare_build(),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort;}});var require_parse6=__commonJS({"../../node_modules/semver/functions/parse.js"(exports,module){var SemVer=require_semver3(),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse;}});var require_valid=__commonJS({"../../node_modules/semver/functions/valid.js"(exports,module){var parse=require_parse6(),valid=(version,options)=>{let v=parse(version,options);return v?v.version:null};module.exports=valid;}});var require_clean=__commonJS({"../../node_modules/semver/functions/clean.js"(exports,module){var parse=require_parse6(),clean=(version,options)=>{let s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean;}});var require_inc2=__commonJS({"../../node_modules/semver/functions/inc.js"(exports,module){var SemVer=require_semver3(),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc;}});var require_diff=__commonJS({"../../node_modules/semver/functions/diff.js"(exports,module){var parse=require_parse6(),diff=(version1,version2)=>{let v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return !lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";let prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff;}});var require_major=__commonJS({"../../node_modules/semver/functions/major.js"(exports,module){var SemVer=require_semver3(),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major;}});var require_minor=__commonJS({"../../node_modules/semver/functions/minor.js"(exports,module){var SemVer=require_semver3(),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor;}});var require_patch=__commonJS({"../../node_modules/semver/functions/patch.js"(exports,module){var SemVer=require_semver3(),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch;}});var require_prerelease=__commonJS({"../../node_modules/semver/functions/prerelease.js"(exports,module){var parse=require_parse6(),prerelease=(version,options)=>{let parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease;}});var require_compare=__commonJS({"../../node_modules/semver/functions/compare.js"(exports,module){var SemVer=require_semver3(),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare;}});var require_rcompare=__commonJS({"../../node_modules/semver/functions/rcompare.js"(exports,module){var compare=require_compare(),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare;}});var require_compare_loose=__commonJS({"../../node_modules/semver/functions/compare-loose.js"(exports,module){var compare=require_compare(),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose;}});var require_rsort=__commonJS({"../../node_modules/semver/functions/rsort.js"(exports,module){var compareBuild=require_compare_build(),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort;}});var require_gt2=__commonJS({"../../node_modules/semver/functions/gt.js"(exports,module){var compare=require_compare(),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt;}});var require_lt2=__commonJS({"../../node_modules/semver/functions/lt.js"(exports,module){var compare=require_compare(),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt;}});var require_eq=__commonJS({"../../node_modules/semver/functions/eq.js"(exports,module){var compare=require_compare(),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq;}});var require_neq=__commonJS({"../../node_modules/semver/functions/neq.js"(exports,module){var compare=require_compare(),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq;}});var require_gte2=__commonJS({"../../node_modules/semver/functions/gte.js"(exports,module){var compare=require_compare(),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte;}});var require_lte2=__commonJS({"../../node_modules/semver/functions/lte.js"(exports,module){var compare=require_compare(),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte;}});var require_cmp=__commonJS({"../../node_modules/semver/functions/cmp.js"(exports,module){var eq=require_eq(),neq=require_neq(),gt=require_gt2(),gte=require_gte2(),lt=require_lt2(),lte=require_lte2(),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp;}});var require_coerce=__commonJS({"../../node_modules/semver/functions/coerce.js"(exports,module){var SemVer=require_semver3(),parse=require_parse6(),{safeRe:re,t}=require_re(),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else {let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1;}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce;}});var require_iterator=__commonJS({"../../node_modules/yallist/iterator.js"(exports,module){module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value;};};}});var require_yallist=__commonJS({"../../node_modules/yallist/yallist.js"(exports,module){module.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item);});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next};Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++;}};Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++;}};Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length};Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length};Yallist.prototype.pop=function(){if(this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}};Yallist.prototype.shift=function(){if(this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}};Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next;};Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev;};Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value};Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value};Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res};Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res};Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc};Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc};Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr};Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr};Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret};Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret};Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret};Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p;}return this.head=tail,this.tail=head,this};function insert(self2,node,value){var inserted=node===self2.head?new Node(value,null,node,self2):new Node(value,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++;}function unshift(self2,item){self2.head=new Node(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++;}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null;}try{require_iterator()(Yallist);}catch{}}});var require_lru_cache=__commonJS({"../../node_modules/semver/node_modules/lru-cache/index.js"(exports,module){var Yallist=require_yallist(),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1,LRUCache=class{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;let lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset();}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this);}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale;}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this);}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length;})),trim(this);}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){let prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev;}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){let next=walker.next;forEachStep(this,fn,walker,thisp),walker=next;}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0;}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");let now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;let item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}let hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return !1;let hit=this[CACHE].get(key).value;return !isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){let node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key));}load(arr){this.reset();let now=Date.now();for(let l=arr.length-1;l>=0;l--){let hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else {let maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge);}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,!1));}},get=(self2,key,doUse)=>{let node=self2[CACHE].get(key);if(node){let hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return !1;let diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){let prev=walker.prev;del(self2,walker),walker=prev;}},del=(self2,node)=>{if(node){let hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node);}},Entry=class{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0;}},forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2);};module.exports=LRUCache;}});var require_range2=__commonJS({"../../node_modules/semver/classes/range.js"(exports,module){var Range=class _Range{constructor(range,options){if(options=parseOptions(options),range instanceof _Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new _Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format();}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return [comp];rangeMap.set(comp.value,comp);}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return !1;if(typeof version=="string")try{version=new SemVer(version,this.options);}catch{return !1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return !0;return !1}};module.exports=Range;var LRU=require_lru_cache(),cache=new LRU({max:1e3}),parseOptions=require_parse_options(),Comparator=require_comparator2(),debug=require_debug(),SemVer=require_semver3(),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants5(),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{let r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);let r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return !1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){let allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return !0}return !1}return !0};}});var require_comparator2=__commonJS({"../../node_modules/semver/classes/comparator.js"(exports,module){var ANY=Symbol("SemVer ANY"),Comparator=class _Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof _Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value;}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this);}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY;}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return !0;if(typeof version=="string")try{version=new SemVer(version,this.options);}catch{return !1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}};module.exports=Comparator;var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver3(),Range=require_range2();}});var require_satisfies=__commonJS({"../../node_modules/semver/functions/satisfies.js"(exports,module){var Range=require_range2(),satisfies2=(version,range,options)=>{try{range=new Range(range,options);}catch{return !1}return range.test(version)};module.exports=satisfies2;}});var require_to_comparators=__commonJS({"../../node_modules/semver/ranges/to-comparators.js"(exports,module){var Range=require_range2(),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators;}});var require_max_satisfying=__commonJS({"../../node_modules/semver/ranges/max-satisfying.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),maxSatisfying=(versions2,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch{return null}return versions2.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options));}),max};module.exports=maxSatisfying;}});var require_min_satisfying=__commonJS({"../../node_modules/semver/ranges/min-satisfying.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),minSatisfying=(versions2,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch{return null}return versions2.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options));}),min};module.exports=minSatisfying;}});var require_min_version=__commonJS({"../../node_modules/semver/ranges/min-version.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),gt=require_gt2(),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin);}return minver&&range.test(minver)?minver:null};module.exports=minVersion;}});var require_valid2=__commonJS({"../../node_modules/semver/ranges/valid.js"(exports,module){var Range=require_range2(),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange;}});var require_outside=__commonJS({"../../node_modules/semver/ranges/outside.js"(exports,module){var SemVer=require_semver3(),Comparator=require_comparator2(),{ANY}=Comparator,Range=require_range2(),satisfies2=require_satisfies(),gt=require_gt2(),lt=require_lt2(),lte=require_lte2(),gte=require_gte2(),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies2(version,range,options))return !1;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator);}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return !1;if(low.operator===ecomp&<fn(version,low.semver))return !1}return !0};module.exports=outside;}});var require_gtr=__commonJS({"../../node_modules/semver/ranges/gtr.js"(exports,module){var outside=require_outside(),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr;}});var require_ltr=__commonJS({"../../node_modules/semver/ranges/ltr.js"(exports,module){var outside=require_outside(),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr;}});var require_intersects=__commonJS({"../../node_modules/semver/ranges/intersects.js"(exports,module){var Range=require_range2(),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects;}});var require_simplify=__commonJS({"../../node_modules/semver/ranges/simplify.js"(exports,module){var satisfies2=require_satisfies(),compare=require_compare();module.exports=(versions2,range,options)=>{let set=[],first=null,prev=null,v=versions2.sort((a,b)=>compare(a,b,options));for(let version of v)satisfies2(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);let ranges=[];for(let[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);let simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range};}});var require_subset=__commonJS({"../../node_modules/semver/ranges/subset.js"(exports,module){var Range=require_range2(),Comparator=require_comparator2(),{ANY}=Comparator,satisfies2=require_satisfies(),compare=require_compare(),subset=(sub,dom,options={})=>{if(sub===dom)return !0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return !1}return !0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return !0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return !0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion;}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return !0;dom=minimumVersion;}let eqSet=new Set,gt,lt;for(let c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(let eq of eqSet){if(gt&&!satisfies2(eq,String(gt),options)||lt&&!satisfies2(eq,String(lt),options))return null;for(let c of dom)if(!satisfies2(eq,String(c),options))return !1;return !0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return !1}else if(gt.operator===">="&&!satisfies2(gt.semver,String(c),options))return !1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return !1}else if(lt.operator==="<="&&!satisfies2(lt.semver,String(c),options))return !1}if(!c.operator&&(lt||gt)&>ltComp!==0)return !1}return !(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset;}});var require_semver4=__commonJS({"../../node_modules/semver/index.js"(exports,module){var internalRe=require_re(),constants=require_constants5(),SemVer=require_semver3(),identifiers=require_identifiers(),parse=require_parse6(),valid=require_valid(),clean=require_clean(),inc=require_inc2(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort2(),rsort=require_rsort(),gt=require_gt2(),lt=require_lt2(),eq=require_eq(),neq=require_neq(),gte=require_gte2(),lte=require_lte2(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator2(),Range=require_range2(),satisfies2=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies:satisfies2,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};}});var require_tiny_invariant_cjs=__commonJS({"../../node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(exports,module){var isProduction=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided=typeof message=="function"?message():message,value=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value)}}module.exports=invariant;}});var tslib_es6_exports2={};__export(tslib_es6_exports2,{__assign:()=>__assign2,__asyncDelegator:()=>__asyncDelegator2,__asyncGenerator:()=>__asyncGenerator2,__asyncValues:()=>__asyncValues2,__await:()=>__await2,__awaiter:()=>__awaiter2,__classPrivateFieldGet:()=>__classPrivateFieldGet2,__classPrivateFieldSet:()=>__classPrivateFieldSet2,__createBinding:()=>__createBinding2,__decorate:()=>__decorate2,__exportStar:()=>__exportStar2,__extends:()=>__extends2,__generator:()=>__generator2,__importDefault:()=>__importDefault2,__importStar:()=>__importStar2,__makeTemplateObject:()=>__makeTemplateObject2,__metadata:()=>__metadata2,__param:()=>__param2,__read:()=>__read2,__rest:()=>__rest2,__spread:()=>__spread2,__spreadArrays:()=>__spreadArrays2,__values:()=>__values2});function __extends2(d,b){extendStatics2(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}function __rest2(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t}function __decorate2(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __param2(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex);}}function __metadata2(metadataKey,metadataValue){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(metadataKey,metadataValue)}function __awaiter2(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());})}function __generator2(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=op[0]&2?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[op[0]&2,t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_);}catch(e){op=[6,e],y=0;}finally{f=t=0;}if(op[0]&5)throw op[1];return {value:op[0]?op[1]:void 0,done:!0}}}function __createBinding2(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k];}function __exportStar2(m,exports){for(var p in m)p!=="default"&&!exports.hasOwnProperty(p)&&(exports[p]=m[p]);}function __values2(o){var s=typeof Symbol=="function"&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&typeof o.length=="number")return {next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read2(o,n){var m=typeof Symbol=="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)ar.push(r.value);}catch(error){e={error};}finally{try{r&&!r.done&&(m=i.return)&&m.call(i);}finally{if(e)throw e.error}}return ar}function __spread2(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read2(arguments[i]));return ar}function __spreadArrays2(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}function __await2(v){return this instanceof __await2?(this.v=v,this):new __await2(v)}function __asyncGenerator2(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){g[n]&&(i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v);})});}function resume(n,v){try{step(g[n](v));}catch(e){settle(q[0][3],e);}}function step(r){r.value instanceof __await2?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r);}function fulfill(value){resume("next",value);}function reject(value){resume("throw",value);}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1]);}}function __asyncDelegator2(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return (p=!p)?{value:__await2(o[n](v)),done:n==="return"}:f?f(v):v}:f;}}function __asyncValues2(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values2=="function"?__values2(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value);})};}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v2){resolve({value:v2,done:d});},reject);}}function __makeTemplateObject2(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked}function __importStar2(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)Object.hasOwnProperty.call(mod,k)&&(result[k]=mod[k]);return result.default=mod,result}function __importDefault2(mod){return mod&&mod.__esModule?mod:{default:mod}}function __classPrivateFieldGet2(receiver,privateMap){if(!privateMap.has(receiver))throw new TypeError("attempted to get private field on non-instance");return privateMap.get(receiver)}function __classPrivateFieldSet2(receiver,privateMap,value){if(!privateMap.has(receiver))throw new TypeError("attempted to set private field on non-instance");return privateMap.set(receiver,value),value}var extendStatics2,__assign2,init_tslib_es62=__esm({"../../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js"(){extendStatics2=function(d,b){return extendStatics2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d2,b2){d2.__proto__=b2;}||function(d2,b2){for(var p in b2)b2.hasOwnProperty(p)&&(d2[p]=b2[p]);},extendStatics2(d,b)};__assign2=function(){return __assign2=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);}return t},__assign2.apply(this,arguments)};}});var require_constants6=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/constants.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.SAFE_TIME=exports.S_IFLNK=exports.S_IFREG=exports.S_IFDIR=exports.S_IFMT=void 0;exports.S_IFMT=61440;exports.S_IFDIR=16384;exports.S_IFREG=32768;exports.S_IFLNK=40960;exports.SAFE_TIME=456789e3;}});var require_statUtils=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/statUtils.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.areStatsEqual=exports.convertToBigIntStats=exports.clearStats=exports.makeEmptyStats=exports.makeDefaultStats=exports.BigIntStatsEntry=exports.StatEntry=exports.DirEntry=exports.DEFAULT_MODE=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),nodeUtils=tslib_1.__importStar(__require("util")),constants_1=require_constants6();exports.DEFAULT_MODE=constants_1.S_IFREG|420;var DirEntry=class{constructor(){this.name="",this.mode=0;}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFDIR}isFIFO(){return !1}isFile(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFREG}isSocket(){return !1}isSymbolicLink(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFLNK}};exports.DirEntry=DirEntry;var StatEntry=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=exports.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1;}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFDIR}isFIFO(){return !1}isFile(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFREG}isSocket(){return !1}isSymbolicLink(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFLNK}};exports.StatEntry=StatEntry;var BigIntStatsEntry=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(exports.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1);}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFDIR)}isFIFO(){return !1}isFile(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFREG)}isSocket(){return !1}isSymbolicLink(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFLNK)}};exports.BigIntStatsEntry=BigIntStatsEntry;function makeDefaultStats(){return new StatEntry}exports.makeDefaultStats=makeDefaultStats;function makeEmptyStats(){return clearStats(makeDefaultStats())}exports.makeEmptyStats=makeEmptyStats;function clearStats(stats){for(let key in stats)if(Object.prototype.hasOwnProperty.call(stats,key)){let element=stats[key];typeof element=="number"?stats[key]=0:typeof element=="bigint"?stats[key]=BigInt(0):nodeUtils.types.isDate(element)&&(stats[key]=new Date(0));}return stats}exports.clearStats=clearStats;function convertToBigIntStats(stats){let bigintStats=new BigIntStatsEntry;for(let key in stats)if(Object.prototype.hasOwnProperty.call(stats,key)){let element=stats[key];typeof element=="number"?bigintStats[key]=BigInt(element):nodeUtils.types.isDate(element)&&(bigintStats[key]=new Date(element));}return bigintStats.atimeNs=bigintStats.atimeMs*BigInt(1e6),bigintStats.mtimeNs=bigintStats.mtimeMs*BigInt(1e6),bigintStats.ctimeNs=bigintStats.ctimeMs*BigInt(1e6),bigintStats.birthtimeNs=bigintStats.birthtimeMs*BigInt(1e6),bigintStats}exports.convertToBigIntStats=convertToBigIntStats;function areStatsEqual(a,b){if(a.atimeMs!==b.atimeMs||a.birthtimeMs!==b.birthtimeMs||a.blksize!==b.blksize||a.blocks!==b.blocks||a.ctimeMs!==b.ctimeMs||a.dev!==b.dev||a.gid!==b.gid||a.ino!==b.ino||a.isBlockDevice()!==b.isBlockDevice()||a.isCharacterDevice()!==b.isCharacterDevice()||a.isDirectory()!==b.isDirectory()||a.isFIFO()!==b.isFIFO()||a.isFile()!==b.isFile()||a.isSocket()!==b.isSocket()||a.isSymbolicLink()!==b.isSymbolicLink()||a.mode!==b.mode||a.mtimeMs!==b.mtimeMs||a.nlink!==b.nlink||a.rdev!==b.rdev||a.size!==b.size||a.uid!==b.uid)return !1;let aN=a,bN=b;return !(aN.atimeNs!==bN.atimeNs||aN.mtimeNs!==bN.mtimeNs||aN.ctimeNs!==bN.ctimeNs||aN.birthtimeNs!==bN.birthtimeNs)}exports.areStatsEqual=areStatsEqual;}});var require_path5=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/path.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.toFilename=exports.convertPath=exports.ppath=exports.npath=exports.Filename=exports.PortablePath=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),path_1=tslib_1.__importDefault(__require("path")),PathType;(function(PathType2){PathType2[PathType2.File=0]="File",PathType2[PathType2.Portable=1]="Portable",PathType2[PathType2.Native=2]="Native";})(PathType||(PathType={}));exports.PortablePath={root:"/",dot:".",parent:".."};exports.Filename={nodeModules:"node_modules",manifest:"package.json",lockfile:"yarn.lock",virtual:"__virtual__",pnpJs:".pnp.js",pnpCjs:".pnp.cjs",rc:".yarnrc.yml"};exports.npath=Object.create(path_1.default);exports.ppath=Object.create(path_1.default.posix);exports.npath.cwd=()=>process.cwd();exports.ppath.cwd=()=>toPortablePath(process.cwd());exports.ppath.resolve=(...segments)=>segments.length>0&&exports.ppath.isAbsolute(segments[0])?path_1.default.posix.resolve(...segments):path_1.default.posix.resolve(exports.ppath.cwd(),...segments);var contains=function(pathUtils,from,to){return from=pathUtils.normalize(from),to=pathUtils.normalize(to),from===to?".":(from.endsWith(pathUtils.sep)||(from=from+pathUtils.sep),to.startsWith(from)?to.slice(from.length):null)};exports.npath.fromPortablePath=fromPortablePath;exports.npath.toPortablePath=toPortablePath;exports.npath.contains=(from,to)=>contains(exports.npath,from,to);exports.ppath.contains=(from,to)=>contains(exports.ppath,from,to);var WINDOWS_PATH_REGEXP=/^([a-zA-Z]:.*)$/,UNC_WINDOWS_PATH_REGEXP=/^\/\/(\.\/)?(.*)$/,PORTABLE_PATH_REGEXP=/^\/([a-zA-Z]:.*)$/,UNC_PORTABLE_PATH_REGEXP=/^\/unc\/(\.dot\/)?(.*)$/;function fromPortablePath(p){if(process.platform!=="win32")return p;let portablePathMatch,uncPortablePathMatch;if(portablePathMatch=p.match(PORTABLE_PATH_REGEXP))p=portablePathMatch[1];else if(uncPortablePathMatch=p.match(UNC_PORTABLE_PATH_REGEXP))p=`\\\\${uncPortablePathMatch[1]?".\\":""}${uncPortablePathMatch[2]}`;else return p;return p.replace(/\//g,"\\")}function toPortablePath(p){if(process.platform!=="win32")return p;p=p.replace(/\\/g,"/");let windowsPathMatch,uncWindowsPathMatch;return (windowsPathMatch=p.match(WINDOWS_PATH_REGEXP))?p=`/${windowsPathMatch[1]}`:(uncWindowsPathMatch=p.match(UNC_WINDOWS_PATH_REGEXP))&&(p=`/unc/${uncWindowsPathMatch[1]?".dot/":""}${uncWindowsPathMatch[2]}`),p}function convertPath(targetPathUtils,sourcePath){return targetPathUtils===exports.npath?fromPortablePath(sourcePath):toPortablePath(sourcePath)}exports.convertPath=convertPath;function toFilename(filename){if(exports.npath.parse(filename).dir!==""||exports.ppath.parse(filename).dir!=="")throw new Error(`Invalid filename: "${filename}"`);return filename}exports.toFilename=toFilename;}});var require_copyPromise=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.copyPromise=exports.LinkStrategy=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),fs_1=tslib_1.__importDefault(__require("fs")),constants=tslib_1.__importStar(require_constants6()),path_1=require_path5(),defaultTime=new Date(constants.SAFE_TIME*1e3),LinkStrategy;(function(LinkStrategy2){LinkStrategy2.Allow="allow",LinkStrategy2.ReadOnly="readOnly";})(LinkStrategy=exports.LinkStrategy||(exports.LinkStrategy={}));async function copyPromise(destinationFs,destination,sourceFs,source,opts){let normalizedDestination=destinationFs.pathUtils.normalize(destination),normalizedSource=sourceFs.pathUtils.normalize(source),prelayout=[],postlayout=[],{atime,mtime}=opts.stableTime?{atime:defaultTime,mtime:defaultTime}:await sourceFs.lstatPromise(normalizedSource);await destinationFs.mkdirpPromise(destinationFs.pathUtils.dirname(destination),{utimes:[atime,mtime]});let updateTime=typeof destinationFs.lutimesPromise=="function"?destinationFs.lutimesPromise.bind(destinationFs):destinationFs.utimesPromise.bind(destinationFs);await copyImpl(prelayout,postlayout,updateTime,destinationFs,normalizedDestination,sourceFs,normalizedSource,{...opts,didParentExist:!0});for(let operation of prelayout)await operation();await Promise.all(postlayout.map(operation=>operation()));}exports.copyPromise=copyPromise;async function copyImpl(prelayout,postlayout,updateTime,destinationFs,destination,sourceFs,source,opts){var _a,_b;let destinationStat=opts.didParentExist?await maybeLStat(destinationFs,destination):null,sourceStat=await sourceFs.lstatPromise(source),{atime,mtime}=opts.stableTime?{atime:defaultTime,mtime:defaultTime}:sourceStat,updated;switch(!0){case sourceStat.isDirectory():updated=await copyFolder(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;case sourceStat.isFile():updated=await copyFile(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;case sourceStat.isSymbolicLink():updated=await copySymlink(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;default:throw new Error(`Unsupported file type (${sourceStat.mode})`)}return (updated||((_a=destinationStat?.mtime)===null||_a===void 0?void 0:_a.getTime())!==mtime.getTime()||((_b=destinationStat?.atime)===null||_b===void 0?void 0:_b.getTime())!==atime.getTime())&&(postlayout.push(()=>updateTime(destination,atime,mtime)),updated=!0),(destinationStat===null||(destinationStat.mode&511)!==(sourceStat.mode&511))&&(postlayout.push(()=>destinationFs.chmodPromise(destination,sourceStat.mode&511)),updated=!0),updated}async function maybeLStat(baseFs,p){try{return await baseFs.lstatPromise(p)}catch{return null}}async function copyFolder(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){if(destinationStat!==null&&!destinationStat.isDirectory())if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;let updated=!1;destinationStat===null&&(prelayout.push(async()=>{try{await destinationFs.mkdirPromise(destination,{mode:sourceStat.mode});}catch(err){if(err.code!=="EEXIST")throw err}}),updated=!0);let entries=await sourceFs.readdirPromise(source),nextOpts=opts.didParentExist&&!destinationStat?{...opts,didParentExist:!1}:opts;if(opts.stableSort)for(let entry of entries.sort())await copyImpl(prelayout,postlayout,updateTime,destinationFs,destinationFs.pathUtils.join(destination,entry),sourceFs,sourceFs.pathUtils.join(source,entry),nextOpts)&&(updated=!0);else (await Promise.all(entries.map(async entry=>{await copyImpl(prelayout,postlayout,updateTime,destinationFs,destinationFs.pathUtils.join(destination,entry),sourceFs,sourceFs.pathUtils.join(source,entry),nextOpts);}))).some(status=>status)&&(updated=!0);return updated}var isCloneSupportedCache=new WeakMap;function makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy){return async()=>{await opFs.linkPromise(source,destination),linkStrategy===LinkStrategy.ReadOnly&&(sourceStat.mode&=-147,await opFs.chmodPromise(destination,sourceStat.mode));}}function makeCloneLinkOperation(opFs,destination,source,sourceStat,linkStrategy){let isCloneSupported=isCloneSupportedCache.get(opFs);return typeof isCloneSupported>"u"?async()=>{try{await opFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE_FORCE),isCloneSupportedCache.set(opFs,!0);}catch(err){if(err.code==="ENOSYS"||err.code==="ENOTSUP")isCloneSupportedCache.set(opFs,!1),await makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy)();else throw err}}:isCloneSupported?async()=>opFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE_FORCE):makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy)}async function copyFile(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){var _a;if(destinationStat!==null)if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;let linkStrategy=(_a=opts.linkStrategy)!==null&&_a!==void 0?_a:null,op=destinationFs===sourceFs?linkStrategy!==null?makeCloneLinkOperation(destinationFs,destination,source,sourceStat,linkStrategy):async()=>destinationFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE):linkStrategy!==null?makeLinkOperation(destinationFs,destination,source,sourceStat,linkStrategy):async()=>destinationFs.writeFilePromise(destination,await sourceFs.readFilePromise(source));return prelayout.push(async()=>op()),!0}async function copySymlink(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){if(destinationStat!==null)if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;return prelayout.push(async()=>{await destinationFs.symlinkPromise((0, path_1.convertPath)(destinationFs.pathUtils,await sourceFs.readlinkPromise(source)),destination);}),!0}}});var require_errors=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/errors.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.LibzipError=exports.ERR_DIR_CLOSED=exports.EOPNOTSUPP=exports.ENOTEMPTY=exports.EROFS=exports.EEXIST=exports.EISDIR=exports.ENOTDIR=exports.ENOENT=exports.EBADF=exports.EINVAL=exports.ENOSYS=exports.EBUSY=void 0;function makeError(code,message){return Object.assign(new Error(`${code}: ${message}`),{code})}function EBUSY(message){return makeError("EBUSY",message)}exports.EBUSY=EBUSY;function ENOSYS(message,reason){return makeError("ENOSYS",`${message}, ${reason}`)}exports.ENOSYS=ENOSYS;function EINVAL(reason){return makeError("EINVAL",`invalid argument, ${reason}`)}exports.EINVAL=EINVAL;function EBADF(reason){return makeError("EBADF",`bad file descriptor, ${reason}`)}exports.EBADF=EBADF;function ENOENT(reason){return makeError("ENOENT",`no such file or directory, ${reason}`)}exports.ENOENT=ENOENT;function ENOTDIR(reason){return makeError("ENOTDIR",`not a directory, ${reason}`)}exports.ENOTDIR=ENOTDIR;function EISDIR(reason){return makeError("EISDIR",`illegal operation on a directory, ${reason}`)}exports.EISDIR=EISDIR;function EEXIST(reason){return makeError("EEXIST",`file already exists, ${reason}`)}exports.EEXIST=EEXIST;function EROFS(reason){return makeError("EROFS",`read-only filesystem, ${reason}`)}exports.EROFS=EROFS;function ENOTEMPTY(reason){return makeError("ENOTEMPTY",`directory not empty, ${reason}`)}exports.ENOTEMPTY=ENOTEMPTY;function EOPNOTSUPP(reason){return makeError("EOPNOTSUPP",`operation not supported, ${reason}`)}exports.EOPNOTSUPP=EOPNOTSUPP;function ERR_DIR_CLOSED(){return makeError("ERR_DIR_CLOSED","Directory handle was closed")}exports.ERR_DIR_CLOSED=ERR_DIR_CLOSED;var LibzipError=class extends Error{constructor(message,code){super(message),this.name="Libzip Error",this.code=code;}};exports.LibzipError=LibzipError;}});var require_opendir=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.opendir=exports.CustomDir=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),errors=tslib_1.__importStar(require_errors()),CustomDir=class{constructor(path,nextDirent,opts={}){this.path=path,this.nextDirent=nextDirent,this.opts=opts,this.closed=!1;}throwIfClosed(){if(this.closed)throw errors.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let dirent;for(;(dirent=await this.read())!==null;)yield dirent;}finally{await this.close();}}read(cb){let dirent=this.readSync();return typeof cb<"u"?cb(null,dirent):Promise.resolve(dirent)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(cb){return this.closeSync(),typeof cb<"u"?cb(null):Promise.resolve()}closeSync(){var _a,_b;this.throwIfClosed(),(_b=(_a=this.opts).onClose)===null||_b===void 0||_b.call(_a),this.closed=!0;}};exports.CustomDir=CustomDir;function opendir(fakeFs,path,entries,opts){let nextDirent=()=>{let filename=entries.shift();return typeof filename>"u"?null:Object.assign(fakeFs.statSync(fakeFs.pathUtils.join(path,filename)),{name:filename})};return new CustomDir(path,nextDirent,opts)}exports.opendir=opendir;}});var require_FakeFS=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/FakeFS.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.normalizeLineEndings=exports.BasePortableFakeFS=exports.FakeFS=void 0;var os_1=__require("os"),copyPromise_1=require_copyPromise(),path_1=require_path5(),FakeFS=class{constructor(pathUtils){this.pathUtils=pathUtils;}async*genTraversePromise(init,{stableSort=!1}={}){let stack=[init];for(;stack.length>0;){let p=stack.shift();if((await this.lstatPromise(p)).isDirectory()){let entries=await this.readdirPromise(p);if(stableSort)for(let entry2 of entries.sort())stack.push(this.pathUtils.join(p,entry2));else throw new Error("Not supported")}else yield p;}}async removePromise(p,{recursive=!0,maxRetries=5}={}){let stat;try{stat=await this.lstatPromise(p);}catch(error){if(error.code==="ENOENT")return;throw error}if(stat.isDirectory()){if(recursive){let entries=await this.readdirPromise(p);await Promise.all(entries.map(entry=>this.removePromise(this.pathUtils.resolve(p,entry))));}for(let t=0;t<=maxRetries;t++)try{await this.rmdirPromise(p);break}catch(error){if(error.code!=="EBUSY"&&error.code!=="ENOTEMPTY")throw error;t<maxRetries&&await new Promise(resolve=>setTimeout(resolve,t*100));}}else await this.unlinkPromise(p);}removeSync(p,{recursive=!0}={}){let stat;try{stat=this.lstatSync(p);}catch(error){if(error.code==="ENOENT")return;throw error}if(stat.isDirectory()){if(recursive)for(let entry of this.readdirSync(p))this.removeSync(this.pathUtils.resolve(p,entry));this.rmdirSync(p);}else this.unlinkSync(p);}async mkdirpPromise(p,{chmod,utimes}={}){if(p=this.resolve(p),p===this.pathUtils.dirname(p))return;let parts=p.split(this.pathUtils.sep),createdDirectory;for(let u=2;u<=parts.length;++u){let subPath=parts.slice(0,u).join(this.pathUtils.sep);if(!this.existsSync(subPath)){try{await this.mkdirPromise(subPath);}catch(error){if(error.code==="EEXIST")continue;throw error}if(createdDirectory??(createdDirectory=subPath),chmod!=null&&await this.chmodPromise(subPath,chmod),utimes!=null)await this.utimesPromise(subPath,utimes[0],utimes[1]);else {let parentStat=await this.statPromise(this.pathUtils.dirname(subPath));await this.utimesPromise(subPath,parentStat.atime,parentStat.mtime);}}}return createdDirectory}mkdirpSync(p,{chmod,utimes}={}){if(p=this.resolve(p),p===this.pathUtils.dirname(p))return;let parts=p.split(this.pathUtils.sep),createdDirectory;for(let u=2;u<=parts.length;++u){let subPath=parts.slice(0,u).join(this.pathUtils.sep);if(!this.existsSync(subPath)){try{this.mkdirSync(subPath);}catch(error){if(error.code==="EEXIST")continue;throw error}if(createdDirectory??(createdDirectory=subPath),chmod!=null&&this.chmodSync(subPath,chmod),utimes!=null)this.utimesSync(subPath,utimes[0],utimes[1]);else {let parentStat=this.statSync(this.pathUtils.dirname(subPath));this.utimesSync(subPath,parentStat.atime,parentStat.mtime);}}}return createdDirectory}async copyPromise(destination,source,{baseFs=this,overwrite=!0,stableSort=!1,stableTime=!1,linkStrategy=null}={}){return await(0, copyPromise_1.copyPromise)(this,destination,baseFs,source,{overwrite,stableSort,stableTime,linkStrategy})}copySync(destination,source,{baseFs=this,overwrite=!0}={}){let stat=baseFs.lstatSync(source),exists=this.existsSync(destination);if(stat.isDirectory()){this.mkdirpSync(destination);let directoryListing=baseFs.readdirSync(source);for(let entry of directoryListing)this.copySync(this.pathUtils.join(destination,entry),baseFs.pathUtils.join(source,entry),{baseFs,overwrite});}else if(stat.isFile()){if(!exists||overwrite){exists&&this.removeSync(destination);let content=baseFs.readFileSync(source);this.writeFileSync(destination,content);}}else if(stat.isSymbolicLink()){if(!exists||overwrite){exists&&this.removeSync(destination);let target=baseFs.readlinkSync(source);this.symlinkSync((0, path_1.convertPath)(this.pathUtils,target),destination);}}else throw new Error(`Unsupported file type (file: ${source}, mode: 0o${stat.mode.toString(8).padStart(6,"0")})`);let mode=stat.mode&511;this.chmodSync(destination,mode);}async changeFilePromise(p,content,opts={}){return Buffer.isBuffer(content)?this.changeFileBufferPromise(p,content,opts):this.changeFileTextPromise(p,content,opts)}async changeFileBufferPromise(p,content,{mode}={}){let current=Buffer.alloc(0);try{current=await this.readFilePromise(p);}catch{}Buffer.compare(current,content)!==0&&await this.writeFilePromise(p,content,{mode});}async changeFileTextPromise(p,content,{automaticNewlines,mode}={}){let current="";try{current=await this.readFilePromise(p,"utf8");}catch{}let normalizedContent=automaticNewlines?normalizeLineEndings(current,content):content;current!==normalizedContent&&await this.writeFilePromise(p,normalizedContent,{mode});}changeFileSync(p,content,opts={}){return Buffer.isBuffer(content)?this.changeFileBufferSync(p,content,opts):this.changeFileTextSync(p,content,opts)}changeFileBufferSync(p,content,{mode}={}){let current=Buffer.alloc(0);try{current=this.readFileSync(p);}catch{}Buffer.compare(current,content)!==0&&this.writeFileSync(p,content,{mode});}changeFileTextSync(p,content,{automaticNewlines=!1,mode}={}){let current="";try{current=this.readFileSync(p,"utf8");}catch{}let normalizedContent=automaticNewlines?normalizeLineEndings(current,content):content;current!==normalizedContent&&this.writeFileSync(p,normalizedContent,{mode});}async movePromise(fromP,toP){try{await this.renamePromise(fromP,toP);}catch(error){if(error.code==="EXDEV")await this.copyPromise(toP,fromP),await this.removePromise(fromP);else throw error}}moveSync(fromP,toP){try{this.renameSync(fromP,toP);}catch(error){if(error.code==="EXDEV")this.copySync(toP,fromP),this.removeSync(fromP);else throw error}}async lockPromise(affectedPath,callback){let lockPath=`${affectedPath}.flock`,interval=1e3/60,startTime=Date.now(),fd=null,isAlive=async()=>{let pid;try{[pid]=await this.readJsonPromise(lockPath);}catch{return Date.now()-startTime<500}try{return process.kill(pid,0),!0}catch{return !1}};for(;fd===null;)try{fd=await this.openPromise(lockPath,"wx");}catch(error){if(error.code==="EEXIST"){if(!await isAlive())try{await this.unlinkPromise(lockPath);continue}catch{}if(Date.now()-startTime<60*1e3)await new Promise(resolve=>setTimeout(resolve,interval));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${lockPath})`)}else throw error}await this.writePromise(fd,JSON.stringify([process.pid]));try{return await callback()}finally{try{await this.closePromise(fd),await this.unlinkPromise(lockPath);}catch{}}}async readJsonPromise(p){let content=await this.readFilePromise(p,"utf8");try{return JSON.parse(content)}catch(error){throw error.message+=` (in ${p})`,error}}readJsonSync(p){let content=this.readFileSync(p,"utf8");try{return JSON.parse(content)}catch(error){throw error.message+=` (in ${p})`,error}}async writeJsonPromise(p,data){return await this.writeFilePromise(p,`${JSON.stringify(data,null,2)}
|
|
523
|
+
`):"";}});var require_debug=__commonJS({"../../node_modules/semver/internal/debug.js"(exports,module){var debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug;}});var require_constants5=__commonJS({"../../node_modules/semver/internal/constants.js"(exports,module){var SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=256-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}});var require_re=__commonJS({"../../node_modules/semver/internal/re.js"(exports,module){var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants5(),debug=require_debug();exports=module.exports={};var re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={},R=0,LETTERDASHNUMBER="[a-zA-Z0-9-]",safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value},createToken=(name,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0);};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${LETTERDASHNUMBER}+`);createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);createToken("FULL",`^${src[t.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`);createToken("COERCERTL",src[t.COERCE],!0);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0);exports.tildeTrimReplace="$1~";createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0);exports.caretTrimReplace="$1^";createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0);exports.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}});var require_parse_options=__commonJS({"../../node_modules/semver/internal/parse-options.js"(exports,module){var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions;}});var require_identifiers=__commonJS({"../../node_modules/semver/internal/identifiers.js"(exports,module){var numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers};}});var require_semver3=__commonJS({"../../node_modules/semver/classes/semver.js"(exports,module){var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants5(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers(),SemVer=class _SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof _SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version;}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof _SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new _SemVer(other,this.options);}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof _SemVer||(other=new _SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return -1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{let a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return -1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof _SemVer||(other=new _SemVer(other,this.options));let i=0;do{let a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return -1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else {let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base);}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease;}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};module.exports=SemVer;}});var require_compare_build=__commonJS({"../../node_modules/semver/functions/compare-build.js"(exports,module){var SemVer=require_semver3(),compareBuild=(a,b,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild;}});var require_sort2=__commonJS({"../../node_modules/semver/functions/sort.js"(exports,module){var compareBuild=require_compare_build(),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort;}});var require_parse6=__commonJS({"../../node_modules/semver/functions/parse.js"(exports,module){var SemVer=require_semver3(),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse;}});var require_valid=__commonJS({"../../node_modules/semver/functions/valid.js"(exports,module){var parse=require_parse6(),valid=(version,options)=>{let v=parse(version,options);return v?v.version:null};module.exports=valid;}});var require_clean=__commonJS({"../../node_modules/semver/functions/clean.js"(exports,module){var parse=require_parse6(),clean=(version,options)=>{let s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean;}});var require_inc2=__commonJS({"../../node_modules/semver/functions/inc.js"(exports,module){var SemVer=require_semver3(),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc;}});var require_diff=__commonJS({"../../node_modules/semver/functions/diff.js"(exports,module){var parse=require_parse6(),diff=(version1,version2)=>{let v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return !lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";let prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff;}});var require_major=__commonJS({"../../node_modules/semver/functions/major.js"(exports,module){var SemVer=require_semver3(),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major;}});var require_minor=__commonJS({"../../node_modules/semver/functions/minor.js"(exports,module){var SemVer=require_semver3(),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor;}});var require_patch=__commonJS({"../../node_modules/semver/functions/patch.js"(exports,module){var SemVer=require_semver3(),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch;}});var require_prerelease=__commonJS({"../../node_modules/semver/functions/prerelease.js"(exports,module){var parse=require_parse6(),prerelease=(version,options)=>{let parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease;}});var require_compare=__commonJS({"../../node_modules/semver/functions/compare.js"(exports,module){var SemVer=require_semver3(),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare;}});var require_rcompare=__commonJS({"../../node_modules/semver/functions/rcompare.js"(exports,module){var compare=require_compare(),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare;}});var require_compare_loose=__commonJS({"../../node_modules/semver/functions/compare-loose.js"(exports,module){var compare=require_compare(),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose;}});var require_rsort=__commonJS({"../../node_modules/semver/functions/rsort.js"(exports,module){var compareBuild=require_compare_build(),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort;}});var require_gt2=__commonJS({"../../node_modules/semver/functions/gt.js"(exports,module){var compare=require_compare(),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt;}});var require_lt2=__commonJS({"../../node_modules/semver/functions/lt.js"(exports,module){var compare=require_compare(),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt;}});var require_eq=__commonJS({"../../node_modules/semver/functions/eq.js"(exports,module){var compare=require_compare(),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq;}});var require_neq=__commonJS({"../../node_modules/semver/functions/neq.js"(exports,module){var compare=require_compare(),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq;}});var require_gte2=__commonJS({"../../node_modules/semver/functions/gte.js"(exports,module){var compare=require_compare(),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte;}});var require_lte2=__commonJS({"../../node_modules/semver/functions/lte.js"(exports,module){var compare=require_compare(),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte;}});var require_cmp=__commonJS({"../../node_modules/semver/functions/cmp.js"(exports,module){var eq=require_eq(),neq=require_neq(),gt=require_gt2(),gte=require_gte2(),lt=require_lt2(),lte=require_lte2(),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp;}});var require_coerce=__commonJS({"../../node_modules/semver/functions/coerce.js"(exports,module){var SemVer=require_semver3(),parse=require_parse6(),{safeRe:re,t}=require_re(),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else {let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1;}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce;}});var require_iterator=__commonJS({"../../node_modules/yallist/iterator.js"(exports,module){module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value;};};}});var require_yallist=__commonJS({"../../node_modules/yallist/yallist.js"(exports,module){module.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item);});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next};Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++;}};Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++;}};Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length};Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length};Yallist.prototype.pop=function(){if(this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}};Yallist.prototype.shift=function(){if(this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}};Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next;};Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev;};Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value};Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value};Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res};Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res};Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc};Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc};Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr};Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr};Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret};Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret};Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret};Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p;}return this.head=tail,this.tail=head,this};function insert(self2,node,value){var inserted=node===self2.head?new Node(value,null,node,self2):new Node(value,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++;}function unshift(self2,item){self2.head=new Node(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++;}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null;}try{require_iterator()(Yallist);}catch{}}});var require_lru_cache=__commonJS({"../../node_modules/semver/node_modules/lru-cache/index.js"(exports,module){var Yallist=require_yallist(),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1,LRUCache=class{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;let lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset();}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this);}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale;}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this);}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length;})),trim(this);}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){let prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev;}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){let next=walker.next;forEachStep(this,fn,walker,thisp),walker=next;}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0;}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");let now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;let item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}let hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return !1;let hit=this[CACHE].get(key).value;return !isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){let node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key));}load(arr){this.reset();let now=Date.now();for(let l=arr.length-1;l>=0;l--){let hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else {let maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge);}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,!1));}},get=(self2,key,doUse)=>{let node=self2[CACHE].get(key);if(node){let hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return !1;let diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){let prev=walker.prev;del(self2,walker),walker=prev;}},del=(self2,node)=>{if(node){let hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node);}},Entry=class{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0;}},forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2);};module.exports=LRUCache;}});var require_range2=__commonJS({"../../node_modules/semver/classes/range.js"(exports,module){var Range=class _Range{constructor(range,options){if(options=parseOptions(options),range instanceof _Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new _Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format();}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return [comp];rangeMap.set(comp.value,comp);}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return !1;if(typeof version=="string")try{version=new SemVer(version,this.options);}catch{return !1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return !0;return !1}};module.exports=Range;var LRU=require_lru_cache(),cache=new LRU({max:1e3}),parseOptions=require_parse_options(),Comparator=require_comparator2(),debug=require_debug(),SemVer=require_semver3(),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants5(),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{let r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);let r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return !1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){let allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return !0}return !1}return !0};}});var require_comparator2=__commonJS({"../../node_modules/semver/classes/comparator.js"(exports,module){var ANY=Symbol("SemVer ANY"),Comparator=class _Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof _Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value;}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this);}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY;}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return !0;if(typeof version=="string")try{version=new SemVer(version,this.options);}catch{return !1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}};module.exports=Comparator;var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver3(),Range=require_range2();}});var require_satisfies=__commonJS({"../../node_modules/semver/functions/satisfies.js"(exports,module){var Range=require_range2(),satisfies2=(version,range,options)=>{try{range=new Range(range,options);}catch{return !1}return range.test(version)};module.exports=satisfies2;}});var require_to_comparators=__commonJS({"../../node_modules/semver/ranges/to-comparators.js"(exports,module){var Range=require_range2(),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators;}});var require_max_satisfying=__commonJS({"../../node_modules/semver/ranges/max-satisfying.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),maxSatisfying=(versions2,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch{return null}return versions2.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options));}),max};module.exports=maxSatisfying;}});var require_min_satisfying=__commonJS({"../../node_modules/semver/ranges/min-satisfying.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),minSatisfying=(versions2,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch{return null}return versions2.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options));}),min};module.exports=minSatisfying;}});var require_min_version=__commonJS({"../../node_modules/semver/ranges/min-version.js"(exports,module){var SemVer=require_semver3(),Range=require_range2(),gt=require_gt2(),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin);}return minver&&range.test(minver)?minver:null};module.exports=minVersion;}});var require_valid2=__commonJS({"../../node_modules/semver/ranges/valid.js"(exports,module){var Range=require_range2(),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange;}});var require_outside=__commonJS({"../../node_modules/semver/ranges/outside.js"(exports,module){var SemVer=require_semver3(),Comparator=require_comparator2(),{ANY}=Comparator,Range=require_range2(),satisfies2=require_satisfies(),gt=require_gt2(),lt=require_lt2(),lte=require_lte2(),gte=require_gte2(),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies2(version,range,options))return !1;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator);}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return !1;if(low.operator===ecomp&<fn(version,low.semver))return !1}return !0};module.exports=outside;}});var require_gtr=__commonJS({"../../node_modules/semver/ranges/gtr.js"(exports,module){var outside=require_outside(),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr;}});var require_ltr=__commonJS({"../../node_modules/semver/ranges/ltr.js"(exports,module){var outside=require_outside(),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr;}});var require_intersects=__commonJS({"../../node_modules/semver/ranges/intersects.js"(exports,module){var Range=require_range2(),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects;}});var require_simplify=__commonJS({"../../node_modules/semver/ranges/simplify.js"(exports,module){var satisfies2=require_satisfies(),compare=require_compare();module.exports=(versions2,range,options)=>{let set=[],first=null,prev=null,v=versions2.sort((a,b)=>compare(a,b,options));for(let version of v)satisfies2(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);let ranges=[];for(let[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);let simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range};}});var require_subset=__commonJS({"../../node_modules/semver/ranges/subset.js"(exports,module){var Range=require_range2(),Comparator=require_comparator2(),{ANY}=Comparator,satisfies2=require_satisfies(),compare=require_compare(),subset=(sub,dom,options={})=>{if(sub===dom)return !0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return !1}return !0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return !0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return !0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion;}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return !0;dom=minimumVersion;}let eqSet=new Set,gt,lt;for(let c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(let eq of eqSet){if(gt&&!satisfies2(eq,String(gt),options)||lt&&!satisfies2(eq,String(lt),options))return null;for(let c of dom)if(!satisfies2(eq,String(c),options))return !1;return !0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return !1}else if(gt.operator===">="&&!satisfies2(gt.semver,String(c),options))return !1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return !1}else if(lt.operator==="<="&&!satisfies2(lt.semver,String(c),options))return !1}if(!c.operator&&(lt||gt)&>ltComp!==0)return !1}return !(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset;}});var require_semver4=__commonJS({"../../node_modules/semver/index.js"(exports,module){var internalRe=require_re(),constants=require_constants5(),SemVer=require_semver3(),identifiers=require_identifiers(),parse=require_parse6(),valid=require_valid(),clean=require_clean(),inc=require_inc2(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort2(),rsort=require_rsort(),gt=require_gt2(),lt=require_lt2(),eq=require_eq(),neq=require_neq(),gte=require_gte2(),lte=require_lte2(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator2(),Range=require_range2(),satisfies2=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies:satisfies2,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};}});var require_tiny_invariant_cjs2=__commonJS({"../../node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(exports,module){var isProduction=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided=typeof message=="function"?message():message,value=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value)}}module.exports=invariant;}});var tslib_es6_exports2={};__export(tslib_es6_exports2,{__assign:()=>__assign2,__asyncDelegator:()=>__asyncDelegator2,__asyncGenerator:()=>__asyncGenerator2,__asyncValues:()=>__asyncValues2,__await:()=>__await2,__awaiter:()=>__awaiter2,__classPrivateFieldGet:()=>__classPrivateFieldGet2,__classPrivateFieldSet:()=>__classPrivateFieldSet2,__createBinding:()=>__createBinding2,__decorate:()=>__decorate2,__exportStar:()=>__exportStar2,__extends:()=>__extends2,__generator:()=>__generator2,__importDefault:()=>__importDefault2,__importStar:()=>__importStar2,__makeTemplateObject:()=>__makeTemplateObject2,__metadata:()=>__metadata2,__param:()=>__param2,__read:()=>__read2,__rest:()=>__rest2,__spread:()=>__spread2,__spreadArrays:()=>__spreadArrays2,__values:()=>__values2});function __extends2(d,b){extendStatics2(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __);}function __rest2(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t}function __decorate2(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __param2(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex);}}function __metadata2(metadataKey,metadataValue){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(metadataKey,metadataValue)}function __awaiter2(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());})}function __generator2(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=op[0]&2?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[op[0]&2,t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_);}catch(e){op=[6,e],y=0;}finally{f=t=0;}if(op[0]&5)throw op[1];return {value:op[0]?op[1]:void 0,done:!0}}}function __createBinding2(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k];}function __exportStar2(m,exports){for(var p in m)p!=="default"&&!exports.hasOwnProperty(p)&&(exports[p]=m[p]);}function __values2(o){var s=typeof Symbol=="function"&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&typeof o.length=="number")return {next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read2(o,n){var m=typeof Symbol=="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)ar.push(r.value);}catch(error){e={error};}finally{try{r&&!r.done&&(m=i.return)&&m.call(i);}finally{if(e)throw e.error}}return ar}function __spread2(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read2(arguments[i]));return ar}function __spreadArrays2(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}function __await2(v){return this instanceof __await2?(this.v=v,this):new __await2(v)}function __asyncGenerator2(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){g[n]&&(i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v);})});}function resume(n,v){try{step(g[n](v));}catch(e){settle(q[0][3],e);}}function step(r){r.value instanceof __await2?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r);}function fulfill(value){resume("next",value);}function reject(value){resume("throw",value);}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1]);}}function __asyncDelegator2(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return (p=!p)?{value:__await2(o[n](v)),done:n==="return"}:f?f(v):v}:f;}}function __asyncValues2(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values2=="function"?__values2(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value);})};}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v2){resolve({value:v2,done:d});},reject);}}function __makeTemplateObject2(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked}function __importStar2(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)Object.hasOwnProperty.call(mod,k)&&(result[k]=mod[k]);return result.default=mod,result}function __importDefault2(mod){return mod&&mod.__esModule?mod:{default:mod}}function __classPrivateFieldGet2(receiver,privateMap){if(!privateMap.has(receiver))throw new TypeError("attempted to get private field on non-instance");return privateMap.get(receiver)}function __classPrivateFieldSet2(receiver,privateMap,value){if(!privateMap.has(receiver))throw new TypeError("attempted to set private field on non-instance");return privateMap.set(receiver,value),value}var extendStatics2,__assign2,init_tslib_es62=__esm({"../../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js"(){extendStatics2=function(d,b){return extendStatics2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d2,b2){d2.__proto__=b2;}||function(d2,b2){for(var p in b2)b2.hasOwnProperty(p)&&(d2[p]=b2[p]);},extendStatics2(d,b)};__assign2=function(){return __assign2=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);}return t},__assign2.apply(this,arguments)};}});var require_constants6=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/constants.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.SAFE_TIME=exports.S_IFLNK=exports.S_IFREG=exports.S_IFDIR=exports.S_IFMT=void 0;exports.S_IFMT=61440;exports.S_IFDIR=16384;exports.S_IFREG=32768;exports.S_IFLNK=40960;exports.SAFE_TIME=456789e3;}});var require_statUtils=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/statUtils.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.areStatsEqual=exports.convertToBigIntStats=exports.clearStats=exports.makeEmptyStats=exports.makeDefaultStats=exports.BigIntStatsEntry=exports.StatEntry=exports.DirEntry=exports.DEFAULT_MODE=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),nodeUtils=tslib_1.__importStar(__require("util")),constants_1=require_constants6();exports.DEFAULT_MODE=constants_1.S_IFREG|420;var DirEntry=class{constructor(){this.name="",this.mode=0;}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFDIR}isFIFO(){return !1}isFile(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFREG}isSocket(){return !1}isSymbolicLink(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFLNK}};exports.DirEntry=DirEntry;var StatEntry=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=exports.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1;}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFDIR}isFIFO(){return !1}isFile(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFREG}isSocket(){return !1}isSymbolicLink(){return (this.mode&constants_1.S_IFMT)===constants_1.S_IFLNK}};exports.StatEntry=StatEntry;var BigIntStatsEntry=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(exports.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1);}isBlockDevice(){return !1}isCharacterDevice(){return !1}isDirectory(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFDIR)}isFIFO(){return !1}isFile(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFREG)}isSocket(){return !1}isSymbolicLink(){return (this.mode&BigInt(constants_1.S_IFMT))===BigInt(constants_1.S_IFLNK)}};exports.BigIntStatsEntry=BigIntStatsEntry;function makeDefaultStats(){return new StatEntry}exports.makeDefaultStats=makeDefaultStats;function makeEmptyStats(){return clearStats(makeDefaultStats())}exports.makeEmptyStats=makeEmptyStats;function clearStats(stats){for(let key in stats)if(Object.prototype.hasOwnProperty.call(stats,key)){let element=stats[key];typeof element=="number"?stats[key]=0:typeof element=="bigint"?stats[key]=BigInt(0):nodeUtils.types.isDate(element)&&(stats[key]=new Date(0));}return stats}exports.clearStats=clearStats;function convertToBigIntStats(stats){let bigintStats=new BigIntStatsEntry;for(let key in stats)if(Object.prototype.hasOwnProperty.call(stats,key)){let element=stats[key];typeof element=="number"?bigintStats[key]=BigInt(element):nodeUtils.types.isDate(element)&&(bigintStats[key]=new Date(element));}return bigintStats.atimeNs=bigintStats.atimeMs*BigInt(1e6),bigintStats.mtimeNs=bigintStats.mtimeMs*BigInt(1e6),bigintStats.ctimeNs=bigintStats.ctimeMs*BigInt(1e6),bigintStats.birthtimeNs=bigintStats.birthtimeMs*BigInt(1e6),bigintStats}exports.convertToBigIntStats=convertToBigIntStats;function areStatsEqual(a,b){if(a.atimeMs!==b.atimeMs||a.birthtimeMs!==b.birthtimeMs||a.blksize!==b.blksize||a.blocks!==b.blocks||a.ctimeMs!==b.ctimeMs||a.dev!==b.dev||a.gid!==b.gid||a.ino!==b.ino||a.isBlockDevice()!==b.isBlockDevice()||a.isCharacterDevice()!==b.isCharacterDevice()||a.isDirectory()!==b.isDirectory()||a.isFIFO()!==b.isFIFO()||a.isFile()!==b.isFile()||a.isSocket()!==b.isSocket()||a.isSymbolicLink()!==b.isSymbolicLink()||a.mode!==b.mode||a.mtimeMs!==b.mtimeMs||a.nlink!==b.nlink||a.rdev!==b.rdev||a.size!==b.size||a.uid!==b.uid)return !1;let aN=a,bN=b;return !(aN.atimeNs!==bN.atimeNs||aN.mtimeNs!==bN.mtimeNs||aN.ctimeNs!==bN.ctimeNs||aN.birthtimeNs!==bN.birthtimeNs)}exports.areStatsEqual=areStatsEqual;}});var require_path5=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/path.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.toFilename=exports.convertPath=exports.ppath=exports.npath=exports.Filename=exports.PortablePath=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),path_1=tslib_1.__importDefault(__require("path")),PathType;(function(PathType2){PathType2[PathType2.File=0]="File",PathType2[PathType2.Portable=1]="Portable",PathType2[PathType2.Native=2]="Native";})(PathType||(PathType={}));exports.PortablePath={root:"/",dot:".",parent:".."};exports.Filename={nodeModules:"node_modules",manifest:"package.json",lockfile:"yarn.lock",virtual:"__virtual__",pnpJs:".pnp.js",pnpCjs:".pnp.cjs",rc:".yarnrc.yml"};exports.npath=Object.create(path_1.default);exports.ppath=Object.create(path_1.default.posix);exports.npath.cwd=()=>process.cwd();exports.ppath.cwd=()=>toPortablePath(process.cwd());exports.ppath.resolve=(...segments)=>segments.length>0&&exports.ppath.isAbsolute(segments[0])?path_1.default.posix.resolve(...segments):path_1.default.posix.resolve(exports.ppath.cwd(),...segments);var contains=function(pathUtils,from,to){return from=pathUtils.normalize(from),to=pathUtils.normalize(to),from===to?".":(from.endsWith(pathUtils.sep)||(from=from+pathUtils.sep),to.startsWith(from)?to.slice(from.length):null)};exports.npath.fromPortablePath=fromPortablePath;exports.npath.toPortablePath=toPortablePath;exports.npath.contains=(from,to)=>contains(exports.npath,from,to);exports.ppath.contains=(from,to)=>contains(exports.ppath,from,to);var WINDOWS_PATH_REGEXP=/^([a-zA-Z]:.*)$/,UNC_WINDOWS_PATH_REGEXP=/^\/\/(\.\/)?(.*)$/,PORTABLE_PATH_REGEXP=/^\/([a-zA-Z]:.*)$/,UNC_PORTABLE_PATH_REGEXP=/^\/unc\/(\.dot\/)?(.*)$/;function fromPortablePath(p){if(process.platform!=="win32")return p;let portablePathMatch,uncPortablePathMatch;if(portablePathMatch=p.match(PORTABLE_PATH_REGEXP))p=portablePathMatch[1];else if(uncPortablePathMatch=p.match(UNC_PORTABLE_PATH_REGEXP))p=`\\\\${uncPortablePathMatch[1]?".\\":""}${uncPortablePathMatch[2]}`;else return p;return p.replace(/\//g,"\\")}function toPortablePath(p){if(process.platform!=="win32")return p;p=p.replace(/\\/g,"/");let windowsPathMatch,uncWindowsPathMatch;return (windowsPathMatch=p.match(WINDOWS_PATH_REGEXP))?p=`/${windowsPathMatch[1]}`:(uncWindowsPathMatch=p.match(UNC_WINDOWS_PATH_REGEXP))&&(p=`/unc/${uncWindowsPathMatch[1]?".dot/":""}${uncWindowsPathMatch[2]}`),p}function convertPath(targetPathUtils,sourcePath){return targetPathUtils===exports.npath?fromPortablePath(sourcePath):toPortablePath(sourcePath)}exports.convertPath=convertPath;function toFilename(filename){if(exports.npath.parse(filename).dir!==""||exports.ppath.parse(filename).dir!=="")throw new Error(`Invalid filename: "${filename}"`);return filename}exports.toFilename=toFilename;}});var require_copyPromise=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.copyPromise=exports.LinkStrategy=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),fs_1=tslib_1.__importDefault(__require("fs")),constants=tslib_1.__importStar(require_constants6()),path_1=require_path5(),defaultTime=new Date(constants.SAFE_TIME*1e3),LinkStrategy;(function(LinkStrategy2){LinkStrategy2.Allow="allow",LinkStrategy2.ReadOnly="readOnly";})(LinkStrategy=exports.LinkStrategy||(exports.LinkStrategy={}));async function copyPromise(destinationFs,destination,sourceFs,source,opts){let normalizedDestination=destinationFs.pathUtils.normalize(destination),normalizedSource=sourceFs.pathUtils.normalize(source),prelayout=[],postlayout=[],{atime,mtime}=opts.stableTime?{atime:defaultTime,mtime:defaultTime}:await sourceFs.lstatPromise(normalizedSource);await destinationFs.mkdirpPromise(destinationFs.pathUtils.dirname(destination),{utimes:[atime,mtime]});let updateTime=typeof destinationFs.lutimesPromise=="function"?destinationFs.lutimesPromise.bind(destinationFs):destinationFs.utimesPromise.bind(destinationFs);await copyImpl(prelayout,postlayout,updateTime,destinationFs,normalizedDestination,sourceFs,normalizedSource,{...opts,didParentExist:!0});for(let operation of prelayout)await operation();await Promise.all(postlayout.map(operation=>operation()));}exports.copyPromise=copyPromise;async function copyImpl(prelayout,postlayout,updateTime,destinationFs,destination,sourceFs,source,opts){var _a,_b;let destinationStat=opts.didParentExist?await maybeLStat(destinationFs,destination):null,sourceStat=await sourceFs.lstatPromise(source),{atime,mtime}=opts.stableTime?{atime:defaultTime,mtime:defaultTime}:sourceStat,updated;switch(!0){case sourceStat.isDirectory():updated=await copyFolder(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;case sourceStat.isFile():updated=await copyFile(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;case sourceStat.isSymbolicLink():updated=await copySymlink(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts);break;default:throw new Error(`Unsupported file type (${sourceStat.mode})`)}return (updated||((_a=destinationStat?.mtime)===null||_a===void 0?void 0:_a.getTime())!==mtime.getTime()||((_b=destinationStat?.atime)===null||_b===void 0?void 0:_b.getTime())!==atime.getTime())&&(postlayout.push(()=>updateTime(destination,atime,mtime)),updated=!0),(destinationStat===null||(destinationStat.mode&511)!==(sourceStat.mode&511))&&(postlayout.push(()=>destinationFs.chmodPromise(destination,sourceStat.mode&511)),updated=!0),updated}async function maybeLStat(baseFs,p){try{return await baseFs.lstatPromise(p)}catch{return null}}async function copyFolder(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){if(destinationStat!==null&&!destinationStat.isDirectory())if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;let updated=!1;destinationStat===null&&(prelayout.push(async()=>{try{await destinationFs.mkdirPromise(destination,{mode:sourceStat.mode});}catch(err){if(err.code!=="EEXIST")throw err}}),updated=!0);let entries=await sourceFs.readdirPromise(source),nextOpts=opts.didParentExist&&!destinationStat?{...opts,didParentExist:!1}:opts;if(opts.stableSort)for(let entry of entries.sort())await copyImpl(prelayout,postlayout,updateTime,destinationFs,destinationFs.pathUtils.join(destination,entry),sourceFs,sourceFs.pathUtils.join(source,entry),nextOpts)&&(updated=!0);else (await Promise.all(entries.map(async entry=>{await copyImpl(prelayout,postlayout,updateTime,destinationFs,destinationFs.pathUtils.join(destination,entry),sourceFs,sourceFs.pathUtils.join(source,entry),nextOpts);}))).some(status=>status)&&(updated=!0);return updated}var isCloneSupportedCache=new WeakMap;function makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy){return async()=>{await opFs.linkPromise(source,destination),linkStrategy===LinkStrategy.ReadOnly&&(sourceStat.mode&=-147,await opFs.chmodPromise(destination,sourceStat.mode));}}function makeCloneLinkOperation(opFs,destination,source,sourceStat,linkStrategy){let isCloneSupported=isCloneSupportedCache.get(opFs);return typeof isCloneSupported>"u"?async()=>{try{await opFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE_FORCE),isCloneSupportedCache.set(opFs,!0);}catch(err){if(err.code==="ENOSYS"||err.code==="ENOTSUP")isCloneSupportedCache.set(opFs,!1),await makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy)();else throw err}}:isCloneSupported?async()=>opFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE_FORCE):makeLinkOperation(opFs,destination,source,sourceStat,linkStrategy)}async function copyFile(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){var _a;if(destinationStat!==null)if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;let linkStrategy=(_a=opts.linkStrategy)!==null&&_a!==void 0?_a:null,op=destinationFs===sourceFs?linkStrategy!==null?makeCloneLinkOperation(destinationFs,destination,source,sourceStat,linkStrategy):async()=>destinationFs.copyFilePromise(source,destination,fs_1.default.constants.COPYFILE_FICLONE):linkStrategy!==null?makeLinkOperation(destinationFs,destination,source,sourceStat,linkStrategy):async()=>destinationFs.writeFilePromise(destination,await sourceFs.readFilePromise(source));return prelayout.push(async()=>op()),!0}async function copySymlink(prelayout,postlayout,updateTime,destinationFs,destination,destinationStat,sourceFs,source,sourceStat,opts){if(destinationStat!==null)if(opts.overwrite)prelayout.push(async()=>destinationFs.removePromise(destination)),destinationStat=null;else return !1;return prelayout.push(async()=>{await destinationFs.symlinkPromise((0, path_1.convertPath)(destinationFs.pathUtils,await sourceFs.readlinkPromise(source)),destination);}),!0}}});var require_errors=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/errors.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.LibzipError=exports.ERR_DIR_CLOSED=exports.EOPNOTSUPP=exports.ENOTEMPTY=exports.EROFS=exports.EEXIST=exports.EISDIR=exports.ENOTDIR=exports.ENOENT=exports.EBADF=exports.EINVAL=exports.ENOSYS=exports.EBUSY=void 0;function makeError(code,message){return Object.assign(new Error(`${code}: ${message}`),{code})}function EBUSY(message){return makeError("EBUSY",message)}exports.EBUSY=EBUSY;function ENOSYS(message,reason){return makeError("ENOSYS",`${message}, ${reason}`)}exports.ENOSYS=ENOSYS;function EINVAL(reason){return makeError("EINVAL",`invalid argument, ${reason}`)}exports.EINVAL=EINVAL;function EBADF(reason){return makeError("EBADF",`bad file descriptor, ${reason}`)}exports.EBADF=EBADF;function ENOENT(reason){return makeError("ENOENT",`no such file or directory, ${reason}`)}exports.ENOENT=ENOENT;function ENOTDIR(reason){return makeError("ENOTDIR",`not a directory, ${reason}`)}exports.ENOTDIR=ENOTDIR;function EISDIR(reason){return makeError("EISDIR",`illegal operation on a directory, ${reason}`)}exports.EISDIR=EISDIR;function EEXIST(reason){return makeError("EEXIST",`file already exists, ${reason}`)}exports.EEXIST=EEXIST;function EROFS(reason){return makeError("EROFS",`read-only filesystem, ${reason}`)}exports.EROFS=EROFS;function ENOTEMPTY(reason){return makeError("ENOTEMPTY",`directory not empty, ${reason}`)}exports.ENOTEMPTY=ENOTEMPTY;function EOPNOTSUPP(reason){return makeError("EOPNOTSUPP",`operation not supported, ${reason}`)}exports.EOPNOTSUPP=EOPNOTSUPP;function ERR_DIR_CLOSED(){return makeError("ERR_DIR_CLOSED","Directory handle was closed")}exports.ERR_DIR_CLOSED=ERR_DIR_CLOSED;var LibzipError=class extends Error{constructor(message,code){super(message),this.name="Libzip Error",this.code=code;}};exports.LibzipError=LibzipError;}});var require_opendir=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.opendir=exports.CustomDir=void 0;var tslib_1=(init_tslib_es62(),__toCommonJS(tslib_es6_exports2)),errors=tslib_1.__importStar(require_errors()),CustomDir=class{constructor(path,nextDirent,opts={}){this.path=path,this.nextDirent=nextDirent,this.opts=opts,this.closed=!1;}throwIfClosed(){if(this.closed)throw errors.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let dirent;for(;(dirent=await this.read())!==null;)yield dirent;}finally{await this.close();}}read(cb){let dirent=this.readSync();return typeof cb<"u"?cb(null,dirent):Promise.resolve(dirent)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(cb){return this.closeSync(),typeof cb<"u"?cb(null):Promise.resolve()}closeSync(){var _a,_b;this.throwIfClosed(),(_b=(_a=this.opts).onClose)===null||_b===void 0||_b.call(_a),this.closed=!0;}};exports.CustomDir=CustomDir;function opendir(fakeFs,path,entries,opts){let nextDirent=()=>{let filename=entries.shift();return typeof filename>"u"?null:Object.assign(fakeFs.statSync(fakeFs.pathUtils.join(path,filename)),{name:filename})};return new CustomDir(path,nextDirent,opts)}exports.opendir=opendir;}});var require_FakeFS=__commonJS({"../../node_modules/@yarnpkg/fslib/lib/FakeFS.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.normalizeLineEndings=exports.BasePortableFakeFS=exports.FakeFS=void 0;var os_1=__require("os"),copyPromise_1=require_copyPromise(),path_1=require_path5(),FakeFS=class{constructor(pathUtils){this.pathUtils=pathUtils;}async*genTraversePromise(init,{stableSort=!1}={}){let stack=[init];for(;stack.length>0;){let p=stack.shift();if((await this.lstatPromise(p)).isDirectory()){let entries=await this.readdirPromise(p);if(stableSort)for(let entry2 of entries.sort())stack.push(this.pathUtils.join(p,entry2));else throw new Error("Not supported")}else yield p;}}async removePromise(p,{recursive=!0,maxRetries=5}={}){let stat;try{stat=await this.lstatPromise(p);}catch(error){if(error.code==="ENOENT")return;throw error}if(stat.isDirectory()){if(recursive){let entries=await this.readdirPromise(p);await Promise.all(entries.map(entry=>this.removePromise(this.pathUtils.resolve(p,entry))));}for(let t=0;t<=maxRetries;t++)try{await this.rmdirPromise(p);break}catch(error){if(error.code!=="EBUSY"&&error.code!=="ENOTEMPTY")throw error;t<maxRetries&&await new Promise(resolve=>setTimeout(resolve,t*100));}}else await this.unlinkPromise(p);}removeSync(p,{recursive=!0}={}){let stat;try{stat=this.lstatSync(p);}catch(error){if(error.code==="ENOENT")return;throw error}if(stat.isDirectory()){if(recursive)for(let entry of this.readdirSync(p))this.removeSync(this.pathUtils.resolve(p,entry));this.rmdirSync(p);}else this.unlinkSync(p);}async mkdirpPromise(p,{chmod,utimes}={}){if(p=this.resolve(p),p===this.pathUtils.dirname(p))return;let parts=p.split(this.pathUtils.sep),createdDirectory;for(let u=2;u<=parts.length;++u){let subPath=parts.slice(0,u).join(this.pathUtils.sep);if(!this.existsSync(subPath)){try{await this.mkdirPromise(subPath);}catch(error){if(error.code==="EEXIST")continue;throw error}if(createdDirectory??(createdDirectory=subPath),chmod!=null&&await this.chmodPromise(subPath,chmod),utimes!=null)await this.utimesPromise(subPath,utimes[0],utimes[1]);else {let parentStat=await this.statPromise(this.pathUtils.dirname(subPath));await this.utimesPromise(subPath,parentStat.atime,parentStat.mtime);}}}return createdDirectory}mkdirpSync(p,{chmod,utimes}={}){if(p=this.resolve(p),p===this.pathUtils.dirname(p))return;let parts=p.split(this.pathUtils.sep),createdDirectory;for(let u=2;u<=parts.length;++u){let subPath=parts.slice(0,u).join(this.pathUtils.sep);if(!this.existsSync(subPath)){try{this.mkdirSync(subPath);}catch(error){if(error.code==="EEXIST")continue;throw error}if(createdDirectory??(createdDirectory=subPath),chmod!=null&&this.chmodSync(subPath,chmod),utimes!=null)this.utimesSync(subPath,utimes[0],utimes[1]);else {let parentStat=this.statSync(this.pathUtils.dirname(subPath));this.utimesSync(subPath,parentStat.atime,parentStat.mtime);}}}return createdDirectory}async copyPromise(destination,source,{baseFs=this,overwrite=!0,stableSort=!1,stableTime=!1,linkStrategy=null}={}){return await(0, copyPromise_1.copyPromise)(this,destination,baseFs,source,{overwrite,stableSort,stableTime,linkStrategy})}copySync(destination,source,{baseFs=this,overwrite=!0}={}){let stat=baseFs.lstatSync(source),exists=this.existsSync(destination);if(stat.isDirectory()){this.mkdirpSync(destination);let directoryListing=baseFs.readdirSync(source);for(let entry of directoryListing)this.copySync(this.pathUtils.join(destination,entry),baseFs.pathUtils.join(source,entry),{baseFs,overwrite});}else if(stat.isFile()){if(!exists||overwrite){exists&&this.removeSync(destination);let content=baseFs.readFileSync(source);this.writeFileSync(destination,content);}}else if(stat.isSymbolicLink()){if(!exists||overwrite){exists&&this.removeSync(destination);let target=baseFs.readlinkSync(source);this.symlinkSync((0, path_1.convertPath)(this.pathUtils,target),destination);}}else throw new Error(`Unsupported file type (file: ${source}, mode: 0o${stat.mode.toString(8).padStart(6,"0")})`);let mode=stat.mode&511;this.chmodSync(destination,mode);}async changeFilePromise(p,content,opts={}){return Buffer.isBuffer(content)?this.changeFileBufferPromise(p,content,opts):this.changeFileTextPromise(p,content,opts)}async changeFileBufferPromise(p,content,{mode}={}){let current=Buffer.alloc(0);try{current=await this.readFilePromise(p);}catch{}Buffer.compare(current,content)!==0&&await this.writeFilePromise(p,content,{mode});}async changeFileTextPromise(p,content,{automaticNewlines,mode}={}){let current="";try{current=await this.readFilePromise(p,"utf8");}catch{}let normalizedContent=automaticNewlines?normalizeLineEndings(current,content):content;current!==normalizedContent&&await this.writeFilePromise(p,normalizedContent,{mode});}changeFileSync(p,content,opts={}){return Buffer.isBuffer(content)?this.changeFileBufferSync(p,content,opts):this.changeFileTextSync(p,content,opts)}changeFileBufferSync(p,content,{mode}={}){let current=Buffer.alloc(0);try{current=this.readFileSync(p);}catch{}Buffer.compare(current,content)!==0&&this.writeFileSync(p,content,{mode});}changeFileTextSync(p,content,{automaticNewlines=!1,mode}={}){let current="";try{current=this.readFileSync(p,"utf8");}catch{}let normalizedContent=automaticNewlines?normalizeLineEndings(current,content):content;current!==normalizedContent&&this.writeFileSync(p,normalizedContent,{mode});}async movePromise(fromP,toP){try{await this.renamePromise(fromP,toP);}catch(error){if(error.code==="EXDEV")await this.copyPromise(toP,fromP),await this.removePromise(fromP);else throw error}}moveSync(fromP,toP){try{this.renameSync(fromP,toP);}catch(error){if(error.code==="EXDEV")this.copySync(toP,fromP),this.removeSync(fromP);else throw error}}async lockPromise(affectedPath,callback){let lockPath=`${affectedPath}.flock`,interval=1e3/60,startTime=Date.now(),fd=null,isAlive=async()=>{let pid;try{[pid]=await this.readJsonPromise(lockPath);}catch{return Date.now()-startTime<500}try{return process.kill(pid,0),!0}catch{return !1}};for(;fd===null;)try{fd=await this.openPromise(lockPath,"wx");}catch(error){if(error.code==="EEXIST"){if(!await isAlive())try{await this.unlinkPromise(lockPath);continue}catch{}if(Date.now()-startTime<60*1e3)await new Promise(resolve=>setTimeout(resolve,interval));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${lockPath})`)}else throw error}await this.writePromise(fd,JSON.stringify([process.pid]));try{return await callback()}finally{try{await this.closePromise(fd),await this.unlinkPromise(lockPath);}catch{}}}async readJsonPromise(p){let content=await this.readFilePromise(p,"utf8");try{return JSON.parse(content)}catch(error){throw error.message+=` (in ${p})`,error}}readJsonSync(p){let content=this.readFileSync(p,"utf8");try{return JSON.parse(content)}catch(error){throw error.message+=` (in ${p})`,error}}async writeJsonPromise(p,data){return await this.writeFilePromise(p,`${JSON.stringify(data,null,2)}
|
|
524
524
|
`)}writeJsonSync(p,data){return this.writeFileSync(p,`${JSON.stringify(data,null,2)}
|
|
525
525
|
`)}async preserveTimePromise(p,cb){let stat=await this.lstatPromise(p),result=await cb();typeof result<"u"&&(p=result),this.lutimesPromise?await this.lutimesPromise(p,stat.atime,stat.mtime):stat.isSymbolicLink()||await this.utimesPromise(p,stat.atime,stat.mtime);}async preserveTimeSync(p,cb){let stat=this.lstatSync(p),result=cb();typeof result<"u"&&(p=result),this.lutimesSync?this.lutimesSync(p,stat.atime,stat.mtime):stat.isSymbolicLink()||this.utimesSync(p,stat.atime,stat.mtime);}};exports.FakeFS=FakeFS;var BasePortableFakeFS=class extends FakeFS{constructor(){super(path_1.ppath);}};exports.BasePortableFakeFS=BasePortableFakeFS;function getEndOfLine(content){let matches=content.match(/\r?\n/g);if(matches===null)return os_1.EOL;let crlf=matches.filter(nl=>nl===`\r
|
|
526
526
|
`).length,lf=matches.length-crlf;return crlf>lf?`\r
|
|
@@ -536,7 +536,7 @@ ${rootStack}`,err}}}}});var require_lib19=__commonJS({"../../node_modules/@babel
|
|
|
536
536
|
`),!mainConfigPath)throw new import_server_errors.MainFileMissingError({location:configDir})}function loadCustomPresets({configDir}){validateConfigurationFiles(configDir);let presets=serverRequire(import_path2.default.resolve(configDir,"presets"));if(serverRequire(import_path2.default.resolve(configDir,"main"))){let resolved=serverResolve(import_path2.default.resolve(configDir,"main"));if(resolved)return [resolved]}return presets||[]}var import_resolve_from=__toESM2(require_resolve_from()),safeResolveFrom=(path18,file)=>{try{return (0,import_resolve_from.default)(path18,file)}catch{return}},safeResolve=file=>{try{return __require.resolve(file)}catch{return}},import_path3=__toESM2(__require("path"));function normalizePath(id){return import_path3.default.posix.normalize(slash(id))}function stripAbsNodeModulesPath(absPath){let splits=absPath.split(`node_modules${import_path3.default.sep}`);return normalizePath(splits[splits.length-1])}var isObject=val=>val!=null&&typeof val=="object"&&Array.isArray(val)===!1,isFunction=val=>typeof val=="function";function filterPresetsConfig(presetsConfig){return presetsConfig.filter(preset=>{let presetName=typeof preset=="string"?preset:preset.name;return !/@storybook[\\\\/]preset-typescript/.test(presetName)})}function resolvePathToMjs(filePath){let{dir,name}=(0, import_path4.parse)(filePath),mjsPath=(0, import_path4.join)(dir,`${name}.mjs`);return safeResolve(mjsPath)?mjsPath:filePath}function resolvePresetFunction(input,presetOptions,storybookOptions){return isFunction(input)?[...input({...storybookOptions,...presetOptions})]:Array.isArray(input)?[...input]:[]}var resolveAddonName=(configDir,name,options)=>{let resolve=name.startsWith("/")?safeResolve:safeResolveFrom.bind(null,configDir),resolved=resolve(name);if(resolved){let{dir:fdir,name:fname}=(0, import_path4.parse)(resolved);if(name.match(/\/(manager|register(-panel)?)(\.(js|mjs|ts|tsx|jsx))?$/))return {type:"virtual",name,managerEntries:[resolvePathToMjs((0, import_path4.join)(fdir,fname))]};if(name.match(/\/(preset)(\.(js|mjs|ts|tsx|jsx))?$/))return {type:"presets",name:resolved}}let checkExists=exportName=>{if(resolve(`${name}${exportName}`))return `${name}${exportName}`},absolutizeExport=(exportName,preferMJS)=>{let found=resolve(`${name}${exportName}`);if(found)return preferMJS?resolvePathToMjs(found):found},managerFile=absolutizeExport("/manager",!0),registerFile=absolutizeExport("/register",!0)||absolutizeExport("/register-panel",!0),previewFile=checkExists("/preview"),previewFileAbsolute=absolutizeExport("/preview",!0),presetFile=absolutizeExport("/preset",!1);if(!(managerFile||previewFile)&&presetFile)return {type:"presets",name:presetFile};if(managerFile||registerFile||previewFile||presetFile){let managerEntries=[];return managerFile&&managerEntries.push(managerFile),!managerFile&®isterFile&&!presetFile&&managerEntries.push(registerFile),{type:"virtual",name,...managerEntries.length?{managerEntries}:{},...previewFile?{previewAnnotations:[previewFileAbsolute?{bare:previewFile.includes("node_modules")?stripAbsNodeModulesPath(previewFile):previewFile,absolute:previewFileAbsolute}:previewFile]}:{},...presetFile?{presets:[{name:presetFile,options}]}:{}}}if(resolved)return {type:"presets",name:resolved}},map=({configDir})=>item=>{let options=isObject(item)&&item.options||void 0,name=isObject(item)?item.name:item,resolved;try{resolved=resolveAddonName(configDir,name,options);}catch{import_node_logger2.logger.error(`Addon value should end in /manager or /preview or /register OR it should be a valid preset https://storybook.js.org/docs/react/addons/writing-presets/
|
|
537
537
|
${item}`);return}if(!resolved){import_node_logger2.logger.warn(`Could not resolve addon "${name}", skipping. Is it installed?`);return}return {...options?{options}:{},...resolved}};async function getContent(input){if(input.type==="virtual"){let{type,name:name2,...rest}=input;return rest}let name=input.name?input.name:input;return interopRequireDefault(name)}async function loadPreset(input,level,storybookOptions){let presetName=input.name?input.name:input;try{let presetOptions=input.options?input.options:{},contents=await getContent(input);if(typeof contents=="function"&&(contents=contents(storybookOptions,presetOptions)),Array.isArray(contents))return await loadPresets(contents,level+1,storybookOptions);if(isObject(contents)){let{addons:addonsInput=[],presets:presetsInput=[],...rest}=contents,filter=i=>!0;storybookOptions.isCritical!==!0&&(storybookOptions.build?.test?.disabledAddons?.length||0)>0&&(filter=i=>{let name=i.name?i.name:i;return !storybookOptions.build?.test?.disabledAddons?.find(n=>name.includes(n))});let subPresets=resolvePresetFunction(presetsInput,presetOptions,storybookOptions).filter(filter),subAddons=resolvePresetFunction(addonsInput,presetOptions,storybookOptions).filter(filter);return [...await loadPresets([...subPresets],level+1,storybookOptions),...await loadPresets([...subAddons.map(map(storybookOptions))].filter(Boolean),level+1,storybookOptions),{name:presetName,preset:rest,options:presetOptions}]}throw new Error(import_ts_dedent2.dedent`
|
|
538
538
|
${input} is not a valid preset
|
|
539
|
-
`)}catch(error){if(storybookOptions?.isCritical)throw new import_server_errors2.CriticalPresetLoadError({error,presetName});let warning=level>0?` Failed to load preset: ${JSON.stringify(input)} on level ${level}`:` Failed to load preset: ${JSON.stringify(input)}`;return import_node_logger2.logger.warn(warning),import_node_logger2.logger.error(error),[]}}async function loadPresets(presets,level,storybookOptions){return !presets||!Array.isArray(presets)||!presets.length?[]:(await Promise.all(presets.map(async preset=>loadPreset(preset,level,storybookOptions)))).reduce((acc,loaded)=>acc.concat(loaded),[])}function applyPresets(presets,extension,config,args,storybookOptions){let presetResult=new Promise(res=>res(config));return presets.length?presets.reduce((accumulationPromise,{preset,options})=>{let change=preset[extension];if(!change)return accumulationPromise;if(typeof change=="function"){let extensionFn=change,context={preset,combinedOptions:{...storybookOptions,...args,...options,presetsList:presets,presets:{apply:async(ext,c,a={})=>applyPresets(presets,ext,c,a,storybookOptions)}}};return accumulationPromise.then(newConfig=>extensionFn.call(context.preset,newConfig,context.combinedOptions))}return accumulationPromise.then(newConfig=>Array.isArray(newConfig)&&Array.isArray(change)?[...newConfig,...change]:isObject(newConfig)&&isObject(change)?{...newConfig,...change}:change)},presetResult):presetResult}async function getPresets(presets,storybookOptions){let loadedPresets=await loadPresets(presets,0,storybookOptions);return {apply:async(extension,config,args={})=>applyPresets(loadedPresets,extension,config,args,storybookOptions)}}async function loadAllPresets(options){let{corePresets=[],overridePresets=[],...restOptions}=options,presetsConfig=[...corePresets,...loadCustomPresets(options),...overridePresets],filteredPresetConfig=filterPresetsConfig(presetsConfig);return filteredPresetConfig.length<presetsConfig.length&&import_node_logger2.logger.warn("Storybook now supports TypeScript natively. You can safely remove `@storybook/preset-typescript`."),getPresets(filteredPresetConfig,restOptions)}var import_file_system_cache=__toESM2(require_lib5());function createFileSystemCache(options){return (0, import_file_system_cache.default)(options)}var import_path5=__toESM2(__require("path")),import_find_cache_dir=__toESM2(require_find_cache_dir());function resolvePathInStorybookCache(fileOrDirectoryName,sub="default"){let cacheDirectory=(0, import_find_cache_dir.default)({name:"storybook"});return cacheDirectory||=import_path5.default.join(process.cwd(),".cache","storybook"),import_path5.default.join(cacheDirectory,sub,fileOrDirectoryName)}var cache=createFileSystemCache({basePath:resolvePathInStorybookCache("dev-server"),ns:"storybook"}),import_fs_extra2=require_lib6(),import_path7=__require("path"),import_tempy=__toESM2(require_tempy()),import_path6=__toESM2(__require("path")),import_fs_extra=__toESM2(require_lib6());function getStorybookConfiguration(storybookScript,shortName,longName){if(!storybookScript)return null;let parts=storybookScript.split(/[\s='"]+/),index=parts.indexOf(longName);return index===-1&&(index=parts.indexOf(shortName)),index===-1?null:parts[index+1]}var rendererPackages={"@storybook/react":"react","@storybook/vue3":"vue3","@storybook/angular":"angular","@storybook/html":"html","@storybook/web-components":"web-components","@storybook/polymer":"polymer","@storybook/ember":"ember","@storybook/svelte":"svelte","@storybook/preact":"preact","@storybook/server":"server","storybook-framework-qwik":"qwik","storybook-solidjs":"solid","@storybook/vue":"vue"},frameworkPackages={"@storybook/angular":"angular","@storybook/ember":"ember","@storybook/html-vite":"html-vite","@storybook/html-webpack5":"html-webpack5","@storybook/nextjs":"nextjs","@storybook/preact-vite":"preact-vite","@storybook/preact-webpack5":"preact-webpack5","@storybook/react-vite":"react-vite","@storybook/react-webpack5":"react-webpack5","@storybook/server-webpack5":"server-webpack5","@storybook/svelte-vite":"svelte-vite","@storybook/svelte-webpack5":"svelte-webpack5","@storybook/sveltekit":"sveltekit","@storybook/vue3-vite":"vue3-vite","@storybook/vue3-webpack5":"vue3-webpack5","@storybook/web-components-vite":"web-components-vite","@storybook/web-components-webpack5":"web-components-webpack5","storybook-framework-qwik":"qwik","storybook-solidjs-vite":"solid"},builderPackages=["@storybook/builder-webpack5","@storybook/builder-vite"],logger2=console,findDependency=({dependencies,devDependencies,peerDependencies},predicate)=>[Object.entries(dependencies||{}).find(predicate),Object.entries(devDependencies||{}).find(predicate),Object.entries(peerDependencies||{}).find(predicate)],getRendererInfo=packageJson=>{let[dep,devDep,peerDep]=findDependency(packageJson,([key])=>rendererPackages[key]),[pkg,version]=dep||devDep||peerDep||[];return dep&&devDep&&dep[0]===devDep[0]&&logger2.warn(`Found "${dep[0]}" in both "dependencies" and "devDependencies". This is probably a mistake.`),dep&&peerDep&&dep[0]===peerDep[0]&&logger2.warn(`Found "${dep[0]}" in both "dependencies" and "peerDependencies". This is probably a mistake.`),{version,frameworkPackage:pkg}},validConfigExtensions=["ts","js","tsx","jsx","mjs","cjs"],findConfigFile=(prefix,configDir)=>{let filePrefix=import_path6.default.join(configDir,prefix),extension=validConfigExtensions.find(ext=>import_fs_extra.default.existsSync(`${filePrefix}.${ext}`));return extension?`${filePrefix}.${extension}`:null},getConfigInfo=(packageJson,configDir)=>{let storybookConfigDir=configDir??".storybook",storybookScript=packageJson.scripts?.storybook;if(storybookScript&&!configDir){let configParam=getStorybookConfiguration(storybookScript,"-c","--config-dir");configParam&&(storybookConfigDir=configParam);}return {configDir:storybookConfigDir,mainConfig:findConfigFile("main",storybookConfigDir),previewConfig:findConfigFile("preview",storybookConfigDir),managerConfig:findConfigFile("manager",storybookConfigDir)}},getStorybookInfo=(packageJson,configDir)=>{let rendererInfo=getRendererInfo(packageJson),configInfo=getConfigInfo(packageJson,configDir);return {...rendererInfo,...configInfo}},versions_default={"@storybook/addon-a11y":"8.0.0-rc.1","@storybook/addon-actions":"8.0.0-rc.1","@storybook/addon-backgrounds":"8.0.0-rc.1","@storybook/addon-controls":"8.0.0-rc.1","@storybook/addon-docs":"8.0.0-rc.1","@storybook/addon-essentials":"8.0.0-rc.1","@storybook/addon-highlight":"8.0.0-rc.1","@storybook/addon-interactions":"8.0.0-rc.1","@storybook/addon-jest":"8.0.0-rc.1","@storybook/addon-links":"8.0.0-rc.1","@storybook/addon-mdx-gfm":"8.0.0-rc.1","@storybook/addon-measure":"8.0.0-rc.1","@storybook/addon-onboarding":"8.0.0-rc.1","@storybook/addon-outline":"8.0.0-rc.1","@storybook/addon-storysource":"8.0.0-rc.1","@storybook/addon-themes":"8.0.0-rc.1","@storybook/addon-toolbars":"8.0.0-rc.1","@storybook/addon-viewport":"8.0.0-rc.1","@storybook/angular":"8.0.0-rc.1","@storybook/blocks":"8.0.0-rc.1","@storybook/builder-manager":"8.0.0-rc.1","@storybook/builder-vite":"8.0.0-rc.1","@storybook/builder-webpack5":"8.0.0-rc.1","@storybook/channels":"8.0.0-rc.1","@storybook/cli":"8.0.0-rc.1","@storybook/client-logger":"8.0.0-rc.1","@storybook/codemod":"8.0.0-rc.1","@storybook/components":"8.0.0-rc.1","@storybook/core-common":"8.0.0-rc.1","@storybook/core-events":"8.0.0-rc.1","@storybook/core-server":"8.0.0-rc.1","@storybook/core-webpack":"8.0.0-rc.1","@storybook/csf-plugin":"8.0.0-rc.1","@storybook/csf-tools":"8.0.0-rc.1","@storybook/docs-tools":"8.0.0-rc.1","@storybook/ember":"8.0.0-rc.1","@storybook/html":"8.0.0-rc.1","@storybook/html-vite":"8.0.0-rc.1","@storybook/html-webpack5":"8.0.0-rc.1","@storybook/instrumenter":"8.0.0-rc.1","@storybook/manager":"8.0.0-rc.1","@storybook/manager-api":"8.0.0-rc.1","@storybook/nextjs":"8.0.0-rc.1","@storybook/node-logger":"8.0.0-rc.1","@storybook/preact":"8.0.0-rc.1","@storybook/preact-vite":"8.0.0-rc.1","@storybook/preact-webpack5":"8.0.0-rc.1","@storybook/preset-create-react-app":"8.0.0-rc.1","@storybook/preset-html-webpack":"8.0.0-rc.1","@storybook/preset-preact-webpack":"8.0.0-rc.1","@storybook/preset-react-webpack":"8.0.0-rc.1","@storybook/preset-server-webpack":"8.0.0-rc.1","@storybook/preset-svelte-webpack":"8.0.0-rc.1","@storybook/preset-vue3-webpack":"8.0.0-rc.1","@storybook/preview":"8.0.0-rc.1","@storybook/preview-api":"8.0.0-rc.1","@storybook/react":"8.0.0-rc.1","@storybook/react-dom-shim":"8.0.0-rc.1","@storybook/react-vite":"8.0.0-rc.1","@storybook/react-webpack5":"8.0.0-rc.1","@storybook/router":"8.0.0-rc.1","@storybook/server":"8.0.0-rc.1","@storybook/server-webpack5":"8.0.0-rc.1","@storybook/source-loader":"8.0.0-rc.1","@storybook/svelte":"8.0.0-rc.1","@storybook/svelte-vite":"8.0.0-rc.1","@storybook/svelte-webpack5":"8.0.0-rc.1","@storybook/sveltekit":"8.0.0-rc.1","@storybook/telemetry":"8.0.0-rc.1","@storybook/test":"8.0.0-rc.1","@storybook/theming":"8.0.0-rc.1","@storybook/types":"8.0.0-rc.1","@storybook/vue3":"8.0.0-rc.1","@storybook/vue3-vite":"8.0.0-rc.1","@storybook/vue3-webpack5":"8.0.0-rc.1","@storybook/web-components":"8.0.0-rc.1","@storybook/web-components-vite":"8.0.0-rc.1","@storybook/web-components-webpack5":"8.0.0-rc.1",sb:"8.0.0-rc.1",storybook:"8.0.0-rc.1"};function parseList(str){return str.split(",").map(item=>item.trim()).filter(item=>item.length>0)}async function getCoercedStorybookVersion(packageManager){return (await Promise.all(Object.keys(rendererPackages).map(async pkg=>({name:pkg,version:await packageManager.getPackageVersion(pkg)})))).filter(({version})=>!!version)[0]?.version}function getEnvConfig(program,configEnv){Object.keys(configEnv).forEach(fieldName=>{let envVarName=configEnv[fieldName],envVarValue=process.env[envVarName];envVarValue&&(program[fieldName]=envVarValue);});}var createLogStream=async(logFileName="storybook.log")=>{let finalLogPath=(0, import_path7.join)(process.cwd(),logFileName),temporaryLogPath=import_tempy.default.file({name:logFileName}),logStream=(0, import_fs_extra2.createWriteStream)(temporaryLogPath,{encoding:"utf8"});return new Promise((resolve,reject)=>{logStream.once("open",()=>{resolve({logStream,moveLogFile:async()=>(0, import_fs_extra2.move)(temporaryLogPath,finalLogPath,{overwrite:!0}),clearLogFile:async()=>(0, import_fs_extra2.writeFile)(temporaryLogPath,""),removeLogFile:async()=>(0, import_fs_extra2.remove)(temporaryLogPath),readLogFile:async()=>(0, import_fs_extra2.readFile)(temporaryLogPath,"utf8")});}),logStream.once("error",reject);})},isCorePackage=pkg=>Object.keys(versions_default).includes(pkg),import_node_logger3=require_dist4(),predicateFor=addon=>entry=>{let name=entry.name||entry;return name&&name.includes(addon)},isCorrectOrder=(addons,before,after)=>{let essentialsIndex=addons.findIndex(predicateFor("@storybook/addon-essentials")),beforeIndex=addons.findIndex(predicateFor(before.name)),afterIndex=addons.findIndex(predicateFor(after.name));return beforeIndex===-1&&before.inEssentials&&(beforeIndex=essentialsIndex),afterIndex===-1&&after.inEssentials&&(afterIndex=essentialsIndex),beforeIndex!==-1&&afterIndex!==-1&&beforeIndex<=afterIndex},checkAddonOrder=async({before,after,configFile,getConfig})=>{try{let config=await getConfig(configFile);if(!config?.addons){import_node_logger3.logger.warn("Unable to find 'addons' config in main Storybook config");return}if(!isCorrectOrder(config.addons,before,after)){let orEssentials=" (or '@storybook/addon-essentials')",beforeText=`'${before.name}'${before.inEssentials?orEssentials:""}`,afterText=`'${after.name}'${after.inEssentials?orEssentials:""}`;import_node_logger3.logger.warn(`Expected ${beforeText} to be listed before ${afterText} in main Storybook config.`);}}catch{import_node_logger3.logger.warn(`Unable to load config file: ${configFile}`);}},import_lazy_universal_dotenv=require_lib8(),import_path8=__toESM2(__require("path")),import_find_up=__toESM2(require_find_up3()),getProjectRoot=()=>{let result;if(process.env.STORYBOOK_PROJECT_ROOT)return process.env.STORYBOOK_PROJECT_ROOT;try{let found=import_find_up.default.sync(".git",{type:"directory"});found&&(result=import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".svn",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".hg",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".yarn",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{result=result||__dirname.split("node_modules")[0];}catch{}return result||process.cwd()},nodePathsToArray=nodePath=>nodePath.split(process.platform==="win32"?";":":").filter(Boolean).map(p=>import_path8.default.resolve("./",p)),relativePattern=/^\.{1,2}([/\\]|$)/;function normalizeStoryPath(filename){return relativePattern.test(filename)?filename:`.${import_path8.default.sep}${filename}`}function loadEnvs(options={}){let defaultNodeEnv=options.production?"production":"development",env={NODE_ENV:process.env.NODE_ENV||defaultNodeEnv,NODE_PATH:process.env.NODE_PATH||"",STORYBOOK:process.env.STORYBOOK||"true",PUBLIC_URL:options.production?".":""};Object.keys(process.env).filter(name=>/^STORYBOOK_/.test(name)).forEach(name=>{env[name]=process.env[name];});let base=Object.entries(env).reduce((acc,[k,v])=>Object.assign(acc,{[k]:JSON.stringify(v)}),{}),{stringified,raw}=(0, import_lazy_universal_dotenv.getEnvironment)({nodeEnv:env.NODE_ENV}),fullRaw={...env,...raw};return fullRaw.NODE_PATH=nodePathsToArray(fullRaw.NODE_PATH||""),{stringified:{...base,...stringified},raw:fullRaw}}var stringifyEnvs=raw=>Object.entries(raw).reduce((acc,[key,value])=>(acc[key]=JSON.stringify(value),acc),{}),stringifyProcessEnvs=raw=>Object.entries(raw).reduce((acc,[key,value])=>(acc[`process.env.${key}`]=JSON.stringify(value),acc),{}),NODE_MODULES_RE=/node_modules/,commonGlobOptions=glob2=>NODE_MODULES_RE.test(glob2)?{}:{ignore:["**/node_modules/**"]};async function getBuilderOptions(options){let framework=await options.presets.apply("framework",{},options);if(typeof framework!="string"&&framework?.options?.builder)return framework.options.builder;let{builder}=await options.presets.apply("core",{},options);return typeof builder!="string"&&builder?.options?builder.options:{}}var import_ts_dedent3=(init_esm(),__toCommonJS(esm_exports));async function getFrameworkName(options){let framework=await options.presets.apply("framework","",options);if(!framework)throw new Error(import_ts_dedent3.dedent`
|
|
539
|
+
`)}catch(error){if(storybookOptions?.isCritical)throw new import_server_errors2.CriticalPresetLoadError({error,presetName});let warning=level>0?` Failed to load preset: ${JSON.stringify(input)} on level ${level}`:` Failed to load preset: ${JSON.stringify(input)}`;return import_node_logger2.logger.warn(warning),import_node_logger2.logger.error(error),[]}}async function loadPresets(presets,level,storybookOptions){return !presets||!Array.isArray(presets)||!presets.length?[]:(await Promise.all(presets.map(async preset=>loadPreset(preset,level,storybookOptions)))).reduce((acc,loaded)=>acc.concat(loaded),[])}function applyPresets(presets,extension,config,args,storybookOptions){let presetResult=new Promise(res=>res(config));return presets.length?presets.reduce((accumulationPromise,{preset,options})=>{let change=preset[extension];if(!change)return accumulationPromise;if(typeof change=="function"){let extensionFn=change,context={preset,combinedOptions:{...storybookOptions,...args,...options,presetsList:presets,presets:{apply:async(ext,c,a={})=>applyPresets(presets,ext,c,a,storybookOptions)}}};return accumulationPromise.then(newConfig=>extensionFn.call(context.preset,newConfig,context.combinedOptions))}return accumulationPromise.then(newConfig=>Array.isArray(newConfig)&&Array.isArray(change)?[...newConfig,...change]:isObject(newConfig)&&isObject(change)?{...newConfig,...change}:change)},presetResult):presetResult}async function getPresets(presets,storybookOptions){let loadedPresets=await loadPresets(presets,0,storybookOptions);return {apply:async(extension,config,args={})=>applyPresets(loadedPresets,extension,config,args,storybookOptions)}}async function loadAllPresets(options){let{corePresets=[],overridePresets=[],...restOptions}=options,presetsConfig=[...corePresets,...loadCustomPresets(options),...overridePresets],filteredPresetConfig=filterPresetsConfig(presetsConfig);return filteredPresetConfig.length<presetsConfig.length&&import_node_logger2.logger.warn("Storybook now supports TypeScript natively. You can safely remove `@storybook/preset-typescript`."),getPresets(filteredPresetConfig,restOptions)}var import_file_system_cache=__toESM2(require_lib5());function createFileSystemCache(options){return (0, import_file_system_cache.default)(options)}var import_path5=__toESM2(__require("path")),import_find_cache_dir=__toESM2(require_find_cache_dir());function resolvePathInStorybookCache(fileOrDirectoryName,sub="default"){let cacheDirectory=(0, import_find_cache_dir.default)({name:"storybook"});return cacheDirectory||=import_path5.default.join(process.cwd(),".cache","storybook"),import_path5.default.join(cacheDirectory,sub,fileOrDirectoryName)}var cache=createFileSystemCache({basePath:resolvePathInStorybookCache("dev-server"),ns:"storybook"}),import_fs_extra2=require_lib6(),import_path7=__require("path"),import_tempy=__toESM2(require_tempy()),import_path6=__toESM2(__require("path")),import_fs_extra=__toESM2(require_lib6());function getStorybookConfiguration(storybookScript,shortName,longName){if(!storybookScript)return null;let parts=storybookScript.split(/[\s='"]+/),index=parts.indexOf(longName);return index===-1&&(index=parts.indexOf(shortName)),index===-1?null:parts[index+1]}var rendererPackages={"@storybook/react":"react","@storybook/vue3":"vue3","@storybook/angular":"angular","@storybook/html":"html","@storybook/web-components":"web-components","@storybook/polymer":"polymer","@storybook/ember":"ember","@storybook/svelte":"svelte","@storybook/preact":"preact","@storybook/server":"server","storybook-framework-qwik":"qwik","storybook-solidjs":"solid","@storybook/vue":"vue"},frameworkPackages={"@storybook/angular":"angular","@storybook/ember":"ember","@storybook/html-vite":"html-vite","@storybook/html-webpack5":"html-webpack5","@storybook/nextjs":"nextjs","@storybook/preact-vite":"preact-vite","@storybook/preact-webpack5":"preact-webpack5","@storybook/react-vite":"react-vite","@storybook/react-webpack5":"react-webpack5","@storybook/server-webpack5":"server-webpack5","@storybook/svelte-vite":"svelte-vite","@storybook/svelte-webpack5":"svelte-webpack5","@storybook/sveltekit":"sveltekit","@storybook/vue3-vite":"vue3-vite","@storybook/vue3-webpack5":"vue3-webpack5","@storybook/web-components-vite":"web-components-vite","@storybook/web-components-webpack5":"web-components-webpack5","storybook-framework-qwik":"qwik","storybook-solidjs-vite":"solid"},builderPackages=["@storybook/builder-webpack5","@storybook/builder-vite"],logger2=console,findDependency=({dependencies,devDependencies,peerDependencies},predicate)=>[Object.entries(dependencies||{}).find(predicate),Object.entries(devDependencies||{}).find(predicate),Object.entries(peerDependencies||{}).find(predicate)],getRendererInfo=packageJson=>{let[dep,devDep,peerDep]=findDependency(packageJson,([key])=>rendererPackages[key]),[pkg,version]=dep||devDep||peerDep||[];return dep&&devDep&&dep[0]===devDep[0]&&logger2.warn(`Found "${dep[0]}" in both "dependencies" and "devDependencies". This is probably a mistake.`),dep&&peerDep&&dep[0]===peerDep[0]&&logger2.warn(`Found "${dep[0]}" in both "dependencies" and "peerDependencies". This is probably a mistake.`),{version,frameworkPackage:pkg}},validConfigExtensions=["ts","js","tsx","jsx","mjs","cjs"],findConfigFile=(prefix,configDir)=>{let filePrefix=import_path6.default.join(configDir,prefix),extension=validConfigExtensions.find(ext=>import_fs_extra.default.existsSync(`${filePrefix}.${ext}`));return extension?`${filePrefix}.${extension}`:null},getConfigInfo=(packageJson,configDir)=>{let storybookConfigDir=configDir??".storybook",storybookScript=packageJson.scripts?.storybook;if(storybookScript&&!configDir){let configParam=getStorybookConfiguration(storybookScript,"-c","--config-dir");configParam&&(storybookConfigDir=configParam);}return {configDir:storybookConfigDir,mainConfig:findConfigFile("main",storybookConfigDir),previewConfig:findConfigFile("preview",storybookConfigDir),managerConfig:findConfigFile("manager",storybookConfigDir)}},getStorybookInfo=(packageJson,configDir)=>{let rendererInfo=getRendererInfo(packageJson),configInfo=getConfigInfo(packageJson,configDir);return {...rendererInfo,...configInfo}},versions_default={"@storybook/addon-a11y":"8.0.0-rc.2","@storybook/addon-actions":"8.0.0-rc.2","@storybook/addon-backgrounds":"8.0.0-rc.2","@storybook/addon-controls":"8.0.0-rc.2","@storybook/addon-docs":"8.0.0-rc.2","@storybook/addon-essentials":"8.0.0-rc.2","@storybook/addon-highlight":"8.0.0-rc.2","@storybook/addon-interactions":"8.0.0-rc.2","@storybook/addon-jest":"8.0.0-rc.2","@storybook/addon-links":"8.0.0-rc.2","@storybook/addon-mdx-gfm":"8.0.0-rc.2","@storybook/addon-measure":"8.0.0-rc.2","@storybook/addon-onboarding":"8.0.0-rc.2","@storybook/addon-outline":"8.0.0-rc.2","@storybook/addon-storysource":"8.0.0-rc.2","@storybook/addon-themes":"8.0.0-rc.2","@storybook/addon-toolbars":"8.0.0-rc.2","@storybook/addon-viewport":"8.0.0-rc.2","@storybook/angular":"8.0.0-rc.2","@storybook/blocks":"8.0.0-rc.2","@storybook/builder-manager":"8.0.0-rc.2","@storybook/builder-vite":"8.0.0-rc.2","@storybook/builder-webpack5":"8.0.0-rc.2","@storybook/channels":"8.0.0-rc.2","@storybook/cli":"8.0.0-rc.2","@storybook/client-logger":"8.0.0-rc.2","@storybook/codemod":"8.0.0-rc.2","@storybook/components":"8.0.0-rc.2","@storybook/core-common":"8.0.0-rc.2","@storybook/core-events":"8.0.0-rc.2","@storybook/core-server":"8.0.0-rc.2","@storybook/core-webpack":"8.0.0-rc.2","@storybook/csf-plugin":"8.0.0-rc.2","@storybook/csf-tools":"8.0.0-rc.2","@storybook/docs-tools":"8.0.0-rc.2","@storybook/ember":"8.0.0-rc.2","@storybook/html":"8.0.0-rc.2","@storybook/html-vite":"8.0.0-rc.2","@storybook/html-webpack5":"8.0.0-rc.2","@storybook/instrumenter":"8.0.0-rc.2","@storybook/manager":"8.0.0-rc.2","@storybook/manager-api":"8.0.0-rc.2","@storybook/nextjs":"8.0.0-rc.2","@storybook/node-logger":"8.0.0-rc.2","@storybook/preact":"8.0.0-rc.2","@storybook/preact-vite":"8.0.0-rc.2","@storybook/preact-webpack5":"8.0.0-rc.2","@storybook/preset-create-react-app":"8.0.0-rc.2","@storybook/preset-html-webpack":"8.0.0-rc.2","@storybook/preset-preact-webpack":"8.0.0-rc.2","@storybook/preset-react-webpack":"8.0.0-rc.2","@storybook/preset-server-webpack":"8.0.0-rc.2","@storybook/preset-svelte-webpack":"8.0.0-rc.2","@storybook/preset-vue3-webpack":"8.0.0-rc.2","@storybook/preview":"8.0.0-rc.2","@storybook/preview-api":"8.0.0-rc.2","@storybook/react":"8.0.0-rc.2","@storybook/react-dom-shim":"8.0.0-rc.2","@storybook/react-vite":"8.0.0-rc.2","@storybook/react-webpack5":"8.0.0-rc.2","@storybook/router":"8.0.0-rc.2","@storybook/server":"8.0.0-rc.2","@storybook/server-webpack5":"8.0.0-rc.2","@storybook/source-loader":"8.0.0-rc.2","@storybook/svelte":"8.0.0-rc.2","@storybook/svelte-vite":"8.0.0-rc.2","@storybook/svelte-webpack5":"8.0.0-rc.2","@storybook/sveltekit":"8.0.0-rc.2","@storybook/telemetry":"8.0.0-rc.2","@storybook/test":"8.0.0-rc.2","@storybook/theming":"8.0.0-rc.2","@storybook/types":"8.0.0-rc.2","@storybook/vue3":"8.0.0-rc.2","@storybook/vue3-vite":"8.0.0-rc.2","@storybook/vue3-webpack5":"8.0.0-rc.2","@storybook/web-components":"8.0.0-rc.2","@storybook/web-components-vite":"8.0.0-rc.2","@storybook/web-components-webpack5":"8.0.0-rc.2",sb:"8.0.0-rc.2",storybook:"8.0.0-rc.2"};function parseList(str){return str.split(",").map(item=>item.trim()).filter(item=>item.length>0)}async function getCoercedStorybookVersion(packageManager){return (await Promise.all(Object.keys(rendererPackages).map(async pkg=>({name:pkg,version:await packageManager.getPackageVersion(pkg)})))).filter(({version})=>!!version)[0]?.version}function getEnvConfig(program,configEnv){Object.keys(configEnv).forEach(fieldName=>{let envVarName=configEnv[fieldName],envVarValue=process.env[envVarName];envVarValue&&(program[fieldName]=envVarValue);});}var createLogStream=async(logFileName="storybook.log")=>{let finalLogPath=(0, import_path7.join)(process.cwd(),logFileName),temporaryLogPath=import_tempy.default.file({name:logFileName}),logStream=(0, import_fs_extra2.createWriteStream)(temporaryLogPath,{encoding:"utf8"});return new Promise((resolve,reject)=>{logStream.once("open",()=>{resolve({logStream,moveLogFile:async()=>(0, import_fs_extra2.move)(temporaryLogPath,finalLogPath,{overwrite:!0}),clearLogFile:async()=>(0, import_fs_extra2.writeFile)(temporaryLogPath,""),removeLogFile:async()=>(0, import_fs_extra2.remove)(temporaryLogPath),readLogFile:async()=>(0, import_fs_extra2.readFile)(temporaryLogPath,"utf8")});}),logStream.once("error",reject);})},isCorePackage=pkg=>Object.keys(versions_default).includes(pkg),import_node_logger3=require_dist4(),predicateFor=addon=>entry=>{let name=entry.name||entry;return name&&name.includes(addon)},isCorrectOrder=(addons,before,after)=>{let essentialsIndex=addons.findIndex(predicateFor("@storybook/addon-essentials")),beforeIndex=addons.findIndex(predicateFor(before.name)),afterIndex=addons.findIndex(predicateFor(after.name));return beforeIndex===-1&&before.inEssentials&&(beforeIndex=essentialsIndex),afterIndex===-1&&after.inEssentials&&(afterIndex=essentialsIndex),beforeIndex!==-1&&afterIndex!==-1&&beforeIndex<=afterIndex},checkAddonOrder=async({before,after,configFile,getConfig})=>{try{let config=await getConfig(configFile);if(!config?.addons){import_node_logger3.logger.warn("Unable to find 'addons' config in main Storybook config");return}if(!isCorrectOrder(config.addons,before,after)){let orEssentials=" (or '@storybook/addon-essentials')",beforeText=`'${before.name}'${before.inEssentials?orEssentials:""}`,afterText=`'${after.name}'${after.inEssentials?orEssentials:""}`;import_node_logger3.logger.warn(`Expected ${beforeText} to be listed before ${afterText} in main Storybook config.`);}}catch{import_node_logger3.logger.warn(`Unable to load config file: ${configFile}`);}},import_lazy_universal_dotenv=require_lib8(),import_path8=__toESM2(__require("path")),import_find_up=__toESM2(require_find_up3()),getProjectRoot=()=>{let result;if(process.env.STORYBOOK_PROJECT_ROOT)return process.env.STORYBOOK_PROJECT_ROOT;try{let found=import_find_up.default.sync(".git",{type:"directory"});found&&(result=import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".svn",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".hg",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{let found=import_find_up.default.sync(".yarn",{type:"directory"});found&&(result=result||import_path8.default.join(found,".."));}catch{}try{result=result||__dirname.split("node_modules")[0];}catch{}return result||process.cwd()},nodePathsToArray=nodePath=>nodePath.split(process.platform==="win32"?";":":").filter(Boolean).map(p=>import_path8.default.resolve("./",p)),relativePattern=/^\.{1,2}([/\\]|$)/;function normalizeStoryPath(filename){return relativePattern.test(filename)?filename:`.${import_path8.default.sep}${filename}`}function loadEnvs(options={}){let defaultNodeEnv=options.production?"production":"development",env={NODE_ENV:process.env.NODE_ENV||defaultNodeEnv,NODE_PATH:process.env.NODE_PATH||"",STORYBOOK:process.env.STORYBOOK||"true",PUBLIC_URL:options.production?".":""};Object.keys(process.env).filter(name=>/^STORYBOOK_/.test(name)).forEach(name=>{env[name]=process.env[name];});let base=Object.entries(env).reduce((acc,[k,v])=>Object.assign(acc,{[k]:JSON.stringify(v)}),{}),{stringified,raw}=(0, import_lazy_universal_dotenv.getEnvironment)({nodeEnv:env.NODE_ENV}),fullRaw={...env,...raw};return fullRaw.NODE_PATH=nodePathsToArray(fullRaw.NODE_PATH||""),{stringified:{...base,...stringified},raw:fullRaw}}var stringifyEnvs=raw=>Object.entries(raw).reduce((acc,[key,value])=>(acc[key]=JSON.stringify(value),acc),{}),stringifyProcessEnvs=raw=>Object.entries(raw).reduce((acc,[key,value])=>(acc[`process.env.${key}`]=JSON.stringify(value),acc),{}),NODE_MODULES_RE=/node_modules/,commonGlobOptions=glob2=>NODE_MODULES_RE.test(glob2)?{}:{ignore:["**/node_modules/**"]};async function getBuilderOptions(options){let framework=await options.presets.apply("framework",{},options);if(typeof framework!="string"&&framework?.options?.builder)return framework.options.builder;let{builder}=await options.presets.apply("core",{},options);return typeof builder!="string"&&builder?.options?builder.options:{}}var import_ts_dedent3=(init_esm(),__toCommonJS(esm_exports));async function getFrameworkName(options){let framework=await options.presets.apply("framework","",options);if(!framework)throw new Error(import_ts_dedent3.dedent`
|
|
540
540
|
You must specify a framework in '.storybook/main.js' config.
|
|
541
541
|
|
|
542
542
|
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#framework-field-mandatory
|
|
@@ -552,7 +552,7 @@ ${item}`);return}if(!resolved){import_node_logger2.logger.warn(`Could not resolv
|
|
|
552
552
|
`);});function paddedLog(message){let newMessage=message.split(`
|
|
553
553
|
`).map(line=>` ${line}`).join(`
|
|
554
554
|
`);logger6.log(newMessage);}function getChars(char,amount){let line="";for(let lc=0;lc<amount;lc+=1)line+=char;return line}function codeLog(codeLines,leftPadAmount){let maxLength=0,finalResult=codeLines.map(line=>(maxLength=line.length>maxLength?line.length:maxLength,line)).map(line=>{let rightPadAmount=maxLength-line.length,newLine=line+getChars(" ",rightPadAmount);return newLine=getChars(" ",leftPadAmount||2)+import_chalk.default.inverse(` ${newLine} `),newLine}).join(`
|
|
555
|
-
`);logger6.log(finalResult);}var import_chalk2=__toESM2(require_source());function logConfig(caption,config){console.log(import_chalk2.default.cyan(caption)),console.dir(config,{depth:null});}var fs2=__toESM2(__require("fs")),import_path13=__toESM2(__require("path")),pico2=__toESM2(require_picomatch2()),import_server_errors4=require_server_errors(),DEFAULT_TITLE_PREFIX="",DEFAULT_FILES_PATTERN="**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))",isDirectory=(configDir,entry)=>{try{return fs2.lstatSync(import_path13.default.resolve(configDir,entry)).isDirectory()}catch{return !1}},getDirectoryFromWorkingDir=({configDir,workingDir,directory})=>{let directoryFromConfig=import_path13.default.resolve(configDir,directory),directoryFromWorking=import_path13.default.relative(workingDir,directoryFromConfig);return normalizeStoryPath(directoryFromWorking)},normalizeStoriesEntry=(entry,{configDir,workingDir,defaultFilesPattern=DEFAULT_FILES_PATTERN})=>{let specifierWithoutMatcher;if(typeof entry=="string"){let globResult=pico2.scan(entry);if(globResult.isGlob){let directory2=globResult.prefix+globResult.base,files2=globResult.glob;specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:directory2,files:files2};}else isDirectory(configDir,entry)?specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:entry,files:defaultFilesPattern}:specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:import_path13.default.dirname(entry),files:import_path13.default.basename(entry)};}else specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,files:defaultFilesPattern,...entry};let files=slash(specifierWithoutMatcher.files),{directory:directoryRelativeToConfig}=specifierWithoutMatcher,directory=slash(getDirectoryFromWorkingDir({configDir,workingDir,directory:directoryRelativeToConfig})).replace(/\/$/,""),importPathMatcher=globToRegexp(`${directory}/${files}`);return {...specifierWithoutMatcher,directory,importPathMatcher}},normalizeStories=(entries,options)=>{if(!entries||Array.isArray(entries)&&entries.length===0)throw new import_server_errors4.InvalidStoriesEntryError;return entries.map(entry=>normalizeStoriesEntry(entry,options))},import_fs_extra4=__toESM2(require_lib6());async function readTemplate(filename){return import_fs_extra4.default.readFile(filename,{encoding:"utf8"})}var import_ts_dedent11=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_csf_tools=require_dist6(),import_node_path=__toESM2(__require("path")),import_cross_spawn=require_cross_spawn(),import_find_up7=require_find_up3(),import_sort=__toESM2(require_sort2()),import_os=__require("os"),import_ts_dedent7=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_find_up3=require_find_up3(),import_fs3=__require("fs"),import_path15=__toESM2(__require("path")),import_node_logger6=require_dist4(),import_chalk3=__toESM2(require_source()),import_semver=require_semver4(),import_execa=require_execa(),import_path14=__toESM2(__require("path")),import_fs22=__toESM2(__require("fs")),import_ts_dedent6=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_fs_extra5=require_lib6(),import_tiny_invariant=__toESM2(
|
|
555
|
+
`);logger6.log(finalResult);}var import_chalk2=__toESM2(require_source());function logConfig(caption,config){console.log(import_chalk2.default.cyan(caption)),console.dir(config,{depth:null});}var fs2=__toESM2(__require("fs")),import_path13=__toESM2(__require("path")),pico2=__toESM2(require_picomatch2()),import_server_errors4=require_server_errors(),DEFAULT_TITLE_PREFIX="",DEFAULT_FILES_PATTERN="**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))",isDirectory=(configDir,entry)=>{try{return fs2.lstatSync(import_path13.default.resolve(configDir,entry)).isDirectory()}catch{return !1}},getDirectoryFromWorkingDir=({configDir,workingDir,directory})=>{let directoryFromConfig=import_path13.default.resolve(configDir,directory),directoryFromWorking=import_path13.default.relative(workingDir,directoryFromConfig);return normalizeStoryPath(directoryFromWorking)},normalizeStoriesEntry=(entry,{configDir,workingDir,defaultFilesPattern=DEFAULT_FILES_PATTERN})=>{let specifierWithoutMatcher;if(typeof entry=="string"){let globResult=pico2.scan(entry);if(globResult.isGlob){let directory2=globResult.prefix+globResult.base,files2=globResult.glob;specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:directory2,files:files2};}else isDirectory(configDir,entry)?specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:entry,files:defaultFilesPattern}:specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,directory:import_path13.default.dirname(entry),files:import_path13.default.basename(entry)};}else specifierWithoutMatcher={titlePrefix:DEFAULT_TITLE_PREFIX,files:defaultFilesPattern,...entry};let files=slash(specifierWithoutMatcher.files),{directory:directoryRelativeToConfig}=specifierWithoutMatcher,directory=slash(getDirectoryFromWorkingDir({configDir,workingDir,directory:directoryRelativeToConfig})).replace(/\/$/,""),importPathMatcher=globToRegexp(`${directory}/${files}`);return {...specifierWithoutMatcher,directory,importPathMatcher}},normalizeStories=(entries,options)=>{if(!entries||Array.isArray(entries)&&entries.length===0)throw new import_server_errors4.InvalidStoriesEntryError;return entries.map(entry=>normalizeStoriesEntry(entry,options))},import_fs_extra4=__toESM2(require_lib6());async function readTemplate(filename){return import_fs_extra4.default.readFile(filename,{encoding:"utf8"})}var import_ts_dedent11=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_csf_tools=require_dist6(),import_node_path=__toESM2(__require("path")),import_cross_spawn=require_cross_spawn(),import_find_up7=require_find_up3(),import_sort=__toESM2(require_sort2()),import_os=__require("os"),import_ts_dedent7=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_find_up3=require_find_up3(),import_fs3=__require("fs"),import_path15=__toESM2(__require("path")),import_node_logger6=require_dist4(),import_chalk3=__toESM2(require_source()),import_semver=require_semver4(),import_execa=require_execa(),import_path14=__toESM2(__require("path")),import_fs22=__toESM2(__require("fs")),import_ts_dedent6=__toESM2((init_esm(),__toCommonJS(esm_exports))),import_fs_extra5=require_lib6(),import_tiny_invariant=__toESM2(require_tiny_invariant_cjs2()),logger7=console;function getPackageDetails(pkg){let idx=pkg.lastIndexOf("@");if(idx<=0)return [pkg,void 0];let packageName=pkg.slice(0,idx),packageVersion=pkg.slice(idx+1);return [packageName,packageVersion]}var JsPackageManager=class{async getPackageVersion(packageName,basePath=this.cwd){let packageJSON=await this.getPackageJSON(packageName,basePath);return packageJSON?packageJSON.version??null:null}async setRegistryURL(url){url?await this.executeCommand({command:"npm",args:["config","set","registry",url]}):await this.executeCommand({command:"npm",args:["config","delete","registry"]});}async getRegistryURL(){let url=(await this.executeCommand({command:"npm",args:["config","get","registry"]})).trim();return url==="undefined"?void 0:url}constructor(options){this.cwd=options?.cwd||process.cwd();}isStorybookInMonorepo(){let cwd=process.cwd();for(;;){try{let turboJsonPath=`${cwd}/turbo.json`,rushJsonPath=`${cwd}/rush.json`;if(import_fs22.default.existsSync(turboJsonPath)||import_fs22.default.existsSync(rushJsonPath))return !0;let packageJsonPath=__require.resolve(`${cwd}/package.json`),packageJsonFile=(0,import_fs_extra5.readFileSync)(packageJsonPath,"utf8");if(JSON.parse(packageJsonFile).workspaces)return !0}catch{}let parentDir=import_path14.default.dirname(cwd);if(parentDir===cwd)break;cwd=parentDir;}return !1}async installDependencies(){logger7.log("Installing dependencies..."),logger7.log();try{await this.runInstall();}catch(e){throw logger7.error("An error occurred while installing dependencies."),new HandledError(e)}}packageJsonPath(){if(!this.cwd)throw new Error("Missing cwd");return import_path14.default.resolve(this.cwd,"package.json")}async readPackageJson(){let packageJsonPath=this.packageJsonPath();if(!import_fs22.default.existsSync(packageJsonPath))throw new Error(`Could not read package.json file at ${packageJsonPath}`);let jsonContent=await(0, import_fs_extra5.readFile)(packageJsonPath,"utf8");return JSON.parse(jsonContent)}async writePackageJson(packageJson){let packageJsonToWrite={...packageJson};packageJsonToWrite.dependencies&&Object.keys(packageJsonToWrite.dependencies).length===0&&delete packageJsonToWrite.dependencies,packageJsonToWrite.devDependencies&&Object.keys(packageJsonToWrite.devDependencies).length===0&&delete packageJsonToWrite.devDependencies,packageJsonToWrite.peerDependencies&&Object.keys(packageJsonToWrite.peerDependencies).length===0&&delete packageJsonToWrite.peerDependencies;let content=`${JSON.stringify(packageJsonToWrite,null,2)}
|
|
556
556
|
`;await(0, import_fs_extra5.writeFile)(this.packageJsonPath(),content,"utf8");}async retrievePackageJson(){let packageJson;try{packageJson=await this.readPackageJson();}catch(err){let errMessage=String(err);if(errMessage.includes("Could not read package.json"))await this.initPackageJson(),packageJson=await this.readPackageJson();else throw new Error(import_ts_dedent6.default`
|
|
557
557
|
There was an error while reading the package.json file at ${this.packageJsonPath()}: ${errMessage}
|
|
558
558
|
Please fix the error and try again.
|